Changeset d43ed2c


Ignore:
Timestamp:
Aug 16, 2018, 3:24:27 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
afc2427
Parents:
eed6f5b
Message:

Disable the exception code which does not work with -fPIC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/exception.c

    reed6f5b rd43ed2c  
    246246}
    247247
     248#if defined(PIC)
     249#warning Exceptions not yet supported when using Position-Independent Code
     250__attribute__((noinline))
     251void __cfaabi_ehm__try_terminate(void (*try_block)(),
     252                void (*catch_block)(int index, exception_t * except),
     253                __attribute__((unused)) int (*match_block)(exception_t * except)) {
     254        abort();
     255}
     256#else
    248257// This is our personality routine.  For every stack frame anotated with ".cfi_personality 0x3,__gcfa_personality_v0".
    249258// This function will be called twice when unwinding.  Once in the search phased and once in the cleanup phase.
     
    477486);
    478487#endif // __i386 || __x86_64
     488#endif //PIC
Note: See TracChangeset for help on using the changeset viewer.