OSDN Git Service

* dwarf2out.c (dwarf2out_frame_init): Test value of DWARF2_UNWIND_INFO.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Jan 1998 23:26:51 +0000 (23:26 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Jan 1998 23:26:51 +0000 (23:26 +0000)
        * mips/sni-svr4.h: Define DWARF2_UNWIND_INFO as 0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17499 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mips/sni-svr4.h
gcc/dwarf2out.c

index ce25f7e..a4a45ef 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jan 27 00:26:50 1998  John Carr  <jfc@mit.edu>
+
+       * dwarf2out.c (dwarf2out_frame_init): Test value of DWARF2_UNWIND_INFO.
+       * mips/sni-svr4.h: Define DWARF2_UNWIND_INFO as 0.
+
 Tue Jan 27 00:07:02 1998  Jeffrey A Law  (law@cygnus.com)
 
         * emit-rtl.c (gen_lowpart_common): Handle more case where converting
index f42a882..8374669 100644 (file)
@@ -95,3 +95,5 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #undef SDB_DEBUGGING_INFO
 #undef MIPS_DEBUGGING_INFO
 #undef PREFERRED_DEBUGGING_TYPE
+
+#define DWARF2_UNWIND_INFO 0
index 6b23d6e..049dd51 100644 (file)
@@ -1877,9 +1877,12 @@ dwarf2out_frame_init ()
      sake of lookup_cfa.  */
 
 #ifdef DWARF2_UNWIND_INFO
-  /* On entry, the Canonical Frame Address is at SP.  */
-  dwarf2out_def_cfa (NULL, STACK_POINTER_REGNUM, INCOMING_FRAME_SP_OFFSET);
-  initial_return_save (INCOMING_RETURN_ADDR_RTX);
+  if (DWARF2_UNWIND_INFO)
+    {
+      /* On entry, the Canonical Frame Address is at SP.  */
+      dwarf2out_def_cfa (NULL, STACK_POINTER_REGNUM, INCOMING_FRAME_SP_OFFSET);
+      initial_return_save (INCOMING_RETURN_ADDR_RTX);
+    }
 #endif
 }