diff options
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index 3878e8b..67a31ca 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -33,6 +33,7 @@ Boston, MA 02111-1307, USA. */ #include "rtl.h" #include "tree.h" #include "flags.h" +#include "except.h" #include "function.h" #include "expr.h" #include "output.h" @@ -414,6 +415,26 @@ variable_section (decl, reloc) #endif } } + +/* Tell assembler to switch to the section for the exception handling + table. */ + +void +exception_section () +{ +#ifdef ASM_OUTPUT_SECTION_NAME + named_section (NULL_TREE, ".gcc_except_table"); +#else + if (flag_pic) + data_section (); + else +#if defined (EXCEPTION_SECTION) + EXCEPTION_SECTION (); +#else + readonly_data_section (); +#endif +#endif +} /* Create the rtl to represent a function, for a function definition. DECL is a FUNCTION_DECL node which describes which function. |