From 07c9d2eb2e9691d05219a18ecde9bc4a511d1a63 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Mon, 22 Oct 2001 14:43:31 +0000 Subject: 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 --- gcc/varasm.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gcc/varasm.c') 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. */ -- cgit v1.1