-
- Downloads
CFI-handling : Add a hook to allow target-specific Personality and LSDA indirections.
At present, the output of .cfi_personality and .cfi_lsda assumes ELF semantics for indirections. This isn't suitable for all targets and is one blocker to moving Darwin to use .cfi_xxxx. The patch adds a target hook that allows non-ELF targets to use indirections appropriate to their needs. gcc/ChangeLog: * config/darwin-protos.h (darwin_make_eh_symbol_indirect): New. * config/darwin.c (darwin_make_eh_symbol_indirect): New. Use Mach-O semantics for personality and ldsa indirections. * config/darwin.h (TARGET_ASM_MAKE_EH_SYMBOL_INDIRECT): New. * doc/tm.texi: Regenerate. * doc/tm.texi.in: Add TARGET_ASM_MAKE_EH_SYMBOL_INDIRECT hook. * dwarf2out.c (dwarf2out_do_cfi_startproc): If the target defines a hook for indirecting personality and ldsa references, use that otherwise default to ELF semantics. * target.def (make_eh_symbol_indirect): New target hook.
Showing
- gcc/config/darwin-protos.h 1 addition, 0 deletionsgcc/config/darwin-protos.h
- gcc/config/darwin.c 11 additions, 0 deletionsgcc/config/darwin.c
- gcc/config/darwin.h 3 additions, 0 deletionsgcc/config/darwin.h
- gcc/doc/tm.texi 4 additions, 0 deletionsgcc/doc/tm.texi
- gcc/doc/tm.texi.in 2 additions, 0 deletionsgcc/doc/tm.texi.in
- gcc/dwarf2out.c 12 additions, 2 deletionsgcc/dwarf2out.c
- gcc/target.def 10 additions, 0 deletionsgcc/target.def
Loading
Please register or sign in to comment