aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@apple.com>2001-10-22 14:43:31 +0000
committerStan Shebs <shebs@gcc.gnu.org>2001-10-22 14:43:31 +0000
commit07c9d2eb2e9691d05219a18ecde9bc4a511d1a63 (patch)
tree6028234f9c01f45261eb56b926fa2cdb55368889 /gcc/varasm.c
parentbbea0391f048d6564ce44f4a27b8987318f2ea75 (diff)
downloadgcc-07c9d2eb2e9691d05219a18ecde9bc4a511d1a63.zip
gcc-07c9d2eb2e9691d05219a18ecde9bc4a511d1a63.tar.gz
gcc-07c9d2eb2e9691d05219a18ecde9bc4a511d1a63.tar.bz2
target.h (struct gcc_target): Add asm_out.exception_section, asm_out.eh_frame_section.
* target.h (struct gcc_target): Add asm_out.exception_section, asm_out.eh_frame_section. * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro. (TARGET_ASM_EH_FRAME_SECTION): New. (TARGET_INITIALIZER): Update. * output.h (default_exception_section): Declare. (default_eh_frame_section): Declare. * dwarf2out.c: Include target.h. (output_call_frame_info): Call target hook for eh frames. (default_eh_frame_section): New function. * except.c: Include target.h. (output_function_exception_table): Call target hook for exception section. * varasm.c (default_exception_section): Rename from exception_section, remove EXCEPTION_SECTION macro. * config/darwin.h (darwin_eh_frame_section): New function. (EXCEPTION_SECTION): Remove. (TARGET_ASM_EXCEPTION_SECTION): Define. * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove. (nextstep_exception_section): New function. (nextstep_eh_frame_section): New function. (TARGET_ASM_EXCEPTION_SECTION): Define. (TARGET_ASM_EH_FRAME_SECTION): Define. * config/pa/som.h (EXCEPTION_SECTION): Remove. (TARGET_ASM_EXCEPTION_SECTION): Define. * config/rs6000/sysv4.h, config/rs6000/xcoff.h (EXCEPTION_SECTION): Remove. (TARGET_ASM_EXCEPTION_SECTION): Define. * config/stormy16/stormy16.h: Remove comments referencing EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP. * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and TARGET_ASM_EH_FRAME_SECTION. From-SVN: r46409
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 4d6f4b6..6658fec 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -603,18 +603,14 @@ variable_section (decl, reloc)
table. */
void
-exception_section ()
+default_exception_section ()
{
-#if defined (EXCEPTION_SECTION)
- EXCEPTION_SECTION ();
-#else
if (targetm.have_named_sections)
named_section (NULL_TREE, ".gcc_except_table", 0);
else if (flag_pic)
data_section ();
else
readonly_data_section ();
-#endif
}
/* Tell assembler to switch to the section for string merging. */