Ignore:
Timestamp:
Sep 7, 2021, 9:59:12 AM (3 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
2bfee8e
Parents:
49b3389
Message:

Some clean-up to make Peter's changes to the exception benchmarks fit in better. And make test.sh a bit more robust.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/andrew_beach_MMath/code/fixup-empty-r.cfa

    r49b3389 r812ba3d  
    33#include <exception.hfa>
    44#include <fstream.hfa>
    5 #include <stdlib.hfa>                                                                   // strto
     5#include <stdlib.hfa>
    66
    77exception fixup_exception {
     
    1313        if (frames) {
    1414                nounwind_empty(frames - 1);
    15                 if ( frames == -1 ) printf( "42" );                             // prevent recursion optimizations
     15                // "Always" false, but prevents recursion elimination.
     16                if (-1 == frames) printf("~");
    1617        } else {
    1718                int fixup = 17;
    18                 throwResume (fixup_exception){&fixup_vt, fixup}; // change bad fixup
     19                throwResume (fixup_exception){&fixup_vt, fixup};
    1920        }
    2021}
Note: See TracChangeset for help on using the changeset viewer.