diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-05 17:24:37 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-05 17:24:37 +0000 |
commit | fb39ff6e1fc993b3588ce47fef930a72822c8d5d (patch) | |
tree | 7b5f0b07219e5a80c5cc9a52c95fd7029c3149d2 /gcc/c-cppbuiltin.c | |
parent | 27abdf9ab7d14052502d90283270e80a4f4e2df7 (diff) | |
download | ppe42-gcc-fb39ff6e1fc993b3588ce47fef930a72822c8d5d.tar.gz ppe42-gcc-fb39ff6e1fc993b3588ce47fef930a72822c8d5d.zip |
* Makefile.in (c-cppbuiltin.o): Depend on debug.h.
* c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
* doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
* common.opt (fdwarf2-cfi-asm): New.
* configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
* config.in, configure: Rebuild.
* dwarf2asm.c (dw2_asm_output_data_raw): New.
(dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
(dw2_force_const_mem): Externalize.
* dwarf2asm.h: Update.
* dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
generate a real label.
(output_cfi_directive): New.
(add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
(output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
(dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
and .cfi_lsda.
(dwarf2out_end_epilogue): Emit .cfi_endproc.
(output_loc_operands_raw, output_loc_sequence_raw): New.
(output_cfa_loc_raw): New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138733 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-cppbuiltin.c')
-rw-r--r-- | gcc/c-cppbuiltin.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/c-cppbuiltin.c b/gcc/c-cppbuiltin.c index 2d951fe450c..01f92155fd6 100644 --- a/gcc/c-cppbuiltin.c +++ b/gcc/c-cppbuiltin.c @@ -30,6 +30,7 @@ along with GCC; see the file COPYING3. If not see #include "c-pragma.h" #include "output.h" #include "except.h" /* For USING_SJLJ_EXCEPTIONS. */ +#include "debug.h" /* For dwarf2out_do_frame. */ #include "toplev.h" #include "tm_p.h" /* Target prototypes. */ #include "target.h" @@ -691,6 +692,11 @@ c_cpp_builtins (cpp_reader *pfile) cpp_define (pfile, "__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16"); #endif +#ifdef DWARF2_UNWIND_INFO + if (flag_dwarf2_cfi_asm && dwarf2out_do_frame ()) + cpp_define (pfile, "__GCC_HAVE_DWARF2_CFI_ASM"); +#endif + /* Make the choice of ObjC runtime visible to source code. */ if (c_dialect_objc () && flag_next_runtime) cpp_define (pfile, "__NEXT_RUNTIME__"); |