install EH code
authorMike Stump <mrs@gcc.gnu.org>
Fri, 26 Jul 1996 18:17:32 +0000 (18:17 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Fri, 26 Jul 1996 18:17:32 +0000 (18:17 +0000)
From-SVN: r12568

gcc/config/rs6000/rs6000.h
gcc/config/sparc/sparc.h
gcc/config/sparc/sparc.md
gcc/config/vax/vax.h

index 59344544e1f01aff18e15d9c80e857505a940809..c365e64df6fc39bdfe3e093103be87721a392776 100644 (file)
@@ -2310,6 +2310,13 @@ extern int rs6000_trunc_used;
 
 #define READONLY_DATA_SECTION read_only_data_section
 
+
+/* Define the name of the section to use for the exception tables.
+   TODO: test and see if we can use read_only_data_section, if so,
+   remove this.  */
+
+#define EXCEPTION_SECTION data_section
+
 /* If we are referencing a function that is static or is known to be
    in this file, make the SYMBOL_REF special.  We can use this to indicate
    that we can branch to this function without emitting a no-op after the
index 01965e36066de86df70613208770f8ec7d1f94b3..44cba6a8b244a702fe69a4793d45530ea85276d3 100644 (file)
@@ -895,7 +895,7 @@ extern int sparc_mode_class[];
 #define FRAME_POINTER_REGNUM 30
 
 #if 0
-/* Register that is used for the return address.  */
+/* Register that is used for the return address for the flat model.  */
 #define RETURN_ADDR_REGNUM 15
 #endif
 
@@ -2168,6 +2168,8 @@ extern struct rtx_def *sparc_builtin_saveregs ();
    ? gen_rtx (REG, Pmode, 31)                  \
    : gen_rtx (MEM, Pmode,                      \
              memory_address (Pmode, plus_constant (frame, 15 * UNITS_PER_WORD))))
+
+#define DOESNT_NEED_UNWINDER (! TARGET_FLAT)
 \f
 /* Addressing modes, and classification of registers for them.  */
 
index f5a612ebdd5cb449f0cbffb79575a3240b0a3d2e..b5a6b36174bc737832d0bed44b0472d7c1b0800c 100644 (file)
   [(set_attr "type" "multi")])
 \f
 (define_insn "return"
-  [(return)]
+  [(return)
+   (use (reg:SI 31))]
   "! TARGET_EPILOGUE"
   "* return output_return (operands);"
   [(set_attr "type" "multi")])
index a0ec89f0e6b05498f6e6aba3924af32e29245c64..ddd8ac5f6fcaa0f1a80cfd850a56ff6e98b53716 100644 (file)
@@ -566,7 +566,9 @@ gen_rtx (PLUS, Pmode, frame, gen_rtx (CONST_INT, VOIDmode, 12))
    can ignore COUNT.  */
 
 #define RETURN_ADDR_RTX(COUNT, FRAME)  \
-  gen_rtx (MEM, Pmode, plus_constant (FRAME, RETURN_ADDRESS_OFFSET))
+  ((COUNT == 0)                                \
+   ? gen_rtx (MEM, Pmode, plus_constant (FRAME, RETURN_ADDRESS_OFFSET)) \
+   : (rtx) 0)
 
 \f
 /* Addressing modes, and classification of registers for them.  */