diff options
author | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-07-23 20:03:47 +0000 |
---|---|---|
committer | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-07-23 20:03:47 +0000 |
commit | 485aaaafb299670b6334585f93d10acd11d9ebb9 (patch) | |
tree | d1acdc1258bb390e198f2a31596603f8e267eacf /gcc/varasm.c | |
parent | 037a52285fe7424ffa9f92aca8684ea3fab4c5a6 (diff) | |
download | gcc-485aaaafb299670b6334585f93d10acd11d9ebb9.tar.gz |
install EH code
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12549 138bc75d-0d04-0410-961f-82ee72b054a4
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 3878e8b893e..67a31ca998c 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. |