* dwarf2out.c (initial_return_save): Define only if used.
authorAndreas Schwab <schwab@suse.de>
Sun, 1 Jul 2007 15:28:34 +0000 (15:28 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Sun, 1 Jul 2007 15:28:34 +0000 (15:28 +0000)
From-SVN: r126170

gcc/ChangeLog
gcc/dwarf2out.c

index 9ae3a017a0591123eb3fb6517cb9a535023f79b4..96c4582f1d5de521ea715e5071b3e253f44fdbad 100644 (file)
@@ -1,3 +1,7 @@
+2007-07-01  Andreas Schwab  <schwab@suse.de>
+
+       * dwarf2out.c (initial_return_save): Define only if used.
+
 2007-07-01  Richard Sandiford  <richard@codesourcery.com>
 
        Unreverting Richard's Revert of:
index 9bd7235356e87557b6243539dfdec59b29acb53a..140baf19eef903ff4319545d9ccfdbcc59b8c12c 100644 (file)
@@ -347,7 +347,9 @@ static void add_fde_cfi (const char *, dw_cfi_ref);
 static void lookup_cfa_1 (dw_cfi_ref, dw_cfa_location *);
 static void lookup_cfa (dw_cfa_location *);
 static void reg_save (const char *, unsigned, unsigned, HOST_WIDE_INT);
+#ifdef DWARF2_UNWIND_INFO
 static void initial_return_save (rtx);
+#endif
 static HOST_WIDE_INT stack_adjust_offset (rtx);
 static void output_cfi (dw_cfi_ref, dw_fde_ref, int);
 static void output_call_frame_info (int);
@@ -955,6 +957,7 @@ dwarf2out_return_reg (const char *label, unsigned int sreg)
   reg_save (label, DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM (sreg), 0);
 }
 
+#ifdef DWARF2_UNWIND_INFO
 /* Record the initial position of the return address.  RTL is
    INCOMING_RETURN_ADDR_RTX.  */
 
@@ -1012,6 +1015,7 @@ initial_return_save (rtx rtl)
   if (reg != DWARF_FRAME_RETURN_COLUMN)
     reg_save (NULL, DWARF_FRAME_RETURN_COLUMN, reg, offset - cfa.offset);
 }
+#endif
 
 /* Given a SET, calculate the amount of stack adjustment it
    contains.  */