aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorMike Stump <mrs@gcc.gnu.org>1996-07-23 20:03:47 +0000
committerMike Stump <mrs@gcc.gnu.org>1996-07-23 20:03:47 +0000
commit6adb4e3a29c612cc99a26a54364917e3a1709e8c (patch)
treed1acdc1258bb390e198f2a31596603f8e267eacf /gcc/varasm.c
parent3d1953912dca5809d9e37fccd9ee606d5b637dc4 (diff)
downloadgcc-6adb4e3a29c612cc99a26a54364917e3a1709e8c.zip
gcc-6adb4e3a29c612cc99a26a54364917e3a1709e8c.tar.gz
gcc-6adb4e3a29c612cc99a26a54364917e3a1709e8c.tar.bz2
install EH code
From-SVN: r12549
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c21
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.