diff options
author | Joern Rennecke <joern.rennecke@embecosm.com> | 2010-06-29 18:22:00 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2010-06-29 19:22:00 +0100 |
commit | 38f8b050edd36ac977c564cab41cc1ce8e8a073e (patch) | |
tree | 00306b498ac87b11ae440e5a79b7b5301dea1ab1 /gcc/dwarf2out.c | |
parent | c75c86636fb6e359e0164fb228577ffe70c6d3af (diff) | |
download | gcc-38f8b050edd36ac977c564cab41cc1ce8e8a073e.zip gcc-38f8b050edd36ac977c564cab41cc1ce8e8a073e.tar.gz gcc-38f8b050edd36ac977c564cab41cc1ce8e8a073e.tar.bz2 |
re PR other/44034 (target hooks are hard to maintain)
gcc:
PR other/44034
* target.def, doc/tm.texi.in, genhooks.c: New files.
* target.h: Instead of defining individual hook members,
define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
include target.def.
* target-def.h: Instead of defining individual hook initializers,
include target-hooks-def.h.
* df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
targetm.live_on_entry -> targetm.extra_live_on_entry
targetm.sched.md_finish ->targetm.sched.finish
targetm.sched.md_init -> targetm.sched.init
targetm.sched.md_init_global -> targetm.sched.init_global
targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
targetm.asm_out.except_table_label ->
targetm.asm_out.emit_except_table_label
targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
targetm.target_help -> targetm.help
targetm.vectorize.builtin_support_vector_misalignment ->
targetm.vectorize.support_vector_misalignment
targetm.file_start_app_off -> targetm.asm_file_start_app_off
targetm.file_start_file_directive ->
targetm.asm_file_start_file_directive
* dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
* varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
* gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
TARGET_VECTOR_ALIGNMENT_REACHABLE ->
TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
* config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
* Makefile.in (TARGET_H): Depend on target.def.
(TARGET_DEF_H): Depend on target-hooks-def.h.
(target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
(s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
* doc/tm.texi: Regenerate.
gcc/c-family:
* c-common.c: Rename targetm member:
targetm.enum_va_list -> targetm.enum_va_list_p
gcc/po:
* EXCLUDES: Add genhooks.c.
Index: gcc/doc/tm.texi
From-SVN: r161547
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index ecfb37e..2dd8bcc 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -3463,8 +3463,8 @@ output_fde (dw_fde_ref fde, bool for_eh, bool second, char l1[20], l2[20]; dw_cfi_ref cfi; - targetm.asm_out.unwind_label (asm_out_file, fde->decl, for_eh, - /* empty */ 0); + targetm.asm_out.emit_unwind_label (asm_out_file, fde->decl, for_eh, + /* empty */ 0); targetm.asm_out.internal_label (asm_out_file, FDE_LABEL, for_eh + j); ASM_GENERATE_INTERNAL_LABEL (l1, FDE_AFTER_SIZE_LABEL, for_eh + j); @@ -3680,7 +3680,8 @@ output_call_frame_info (int for_eh) else if (fde_needed_for_eh_p (&fde_table[i])) any_eh_needed = true; else if (TARGET_USES_WEAK_UNWIND_INFO) - targetm.asm_out.unwind_label (asm_out_file, fde_table[i].decl, 1, 1); + targetm.asm_out.emit_unwind_label (asm_out_file, fde_table[i].decl, + 1, 1); if (!any_eh_needed) return; |