]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR bootstrap/53913 (resource.c:1179:5: error: 'current_function_decl' undeclared...
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 10 Jul 2012 11:48:00 +0000 (11:48 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Tue, 10 Jul 2012 11:48:00 +0000 (11:48 +0000)
PR bootstrap/53913
* config/m68k/m68k.c (m68k_epilogue_uses): New.
* config/m68k/m68k.h (EPILOGUE_USES): Use it.
* config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.

From-SVN: r189410

gcc/ChangeLog
gcc/config/m68k/m68k-protos.h
gcc/config/m68k/m68k.c
gcc/config/m68k/m68k.h

index 8d0584764c689f3d7f3bffcf4b1ee6353c8ecec3..c5ebfd5222f1e894c61f437d0f6b45e5294602bd 100644 (file)
@@ -1,3 +1,10 @@
+2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
+
+       PR bootstrap/53913
+       * config/m68k/m68k.c (m68k_epilogue_uses): New.
+       * config/m68k/m68k.h (EPILOGUE_USES): Use it.
+       * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.
+
 2012-07-10  Richard Henderson  <rth@redhat.com>
 
        * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove.
index c77958812dc2556e95a4e0f6302d67df890863d9..a6b5dee181779eafff32141f15977d20dc7e1ed3 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions of target machine for GNU compiler.  Sun 68000/68020 version.
-   Copyright (C) 2000, 2002, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+   Copyright (C) 2000, 2002, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012
    Free Software Foundation, Inc.
 
 This file is part of GCC.
@@ -68,6 +68,7 @@ extern int emit_move_sequence (rtx *, enum machine_mode, rtx);
 extern bool m68k_movem_pattern_p (rtx, rtx, HOST_WIDE_INT, bool);
 extern const char *m68k_output_movem (rtx *, rtx, HOST_WIDE_INT, bool);
 extern void m68k_final_prescan_insn (rtx, rtx *, int);
+extern bool m68k_epilogue_uses (int);
 
 /* Functions from m68k.c used in constraints.md.  */
 extern rtx m68k_unwrap_symbol (rtx, bool);
index df705602baa02c9b6a6d7a9374a40cec78164fb7..0e55e1c230916c47f5932b5a568ced5ab277eb61 100644 (file)
@@ -6506,4 +6506,14 @@ m68k_init_sync_libfuncs (void)
   init_sync_libfuncs (UNITS_PER_WORD);
 }
 
+/* Implements EPILOGUE_USES.  All registers are live on exit from an
+   interrupt routine.  */
+bool
+m68k_epilogue_uses (int regno ATTRIBUTE_UNUSED)
+{
+  return (reload_completed
+         && (m68k_get_function_kind (current_function_decl)
+             == m68k_fk_interrupt_handler));
+}
+
 #include "gt-m68k.h"
index b8d8d9ce922ea91beb768268fe0685e19ff189c8..8be0879e2821aa196359a8341c4f2708fc9833c2 100644 (file)
@@ -802,11 +802,7 @@ do { if (cc_prev_status.flags & CC_IN_68881)                       \
 /* Before the prologue, the top of the frame is at 4(%sp).  */
 #define INCOMING_FRAME_SP_OFFSET 4
 
-/* All registers are live on exit from an interrupt routine.  */
-#define EPILOGUE_USES(REGNO)                                   \
-  (reload_completed                                            \
-   && (m68k_get_function_kind (current_function_decl)  \
-       == m68k_fk_interrupt_handler))
+#define EPILOGUE_USES(REGNO) m68k_epilogue_uses (REGNO)
 
 /* Describe how we implement __builtin_eh_return.  */
 #define EH_RETURN_DATA_REGNO(N) \