summaryrefslogtreecommitdiff
path: root/gcc/config/m68k
diff options
context:
space:
mode:
authorcrux <crux@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-09 14:00:21 +0000
committercrux <crux@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-09 14:00:21 +0000
commit0a893c29f8f2c3ad8542047218b2c1d5a9337046 (patch)
tree0c9ea6c13240638f450e4b7c92af4127356208c0 /gcc/config/m68k
parent2c440a1334f71402905241113ec103d0e92d165e (diff)
downloadgcc-0a893c29f8f2c3ad8542047218b2c1d5a9337046.tar.gz
Include function.h in most files. Remove most of the global variables
duplicated in function.h. Add accessor macros for them which access current_function. Delete INLINE_HEADER rtx and related code, replace with code using struct function to store inlining related data. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28626 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/m68k')
-rw-r--r--gcc/config/m68k/a-ux.h5
-rw-r--r--gcc/config/m68k/altos3068.h11
-rw-r--r--gcc/config/m68k/linux.h5
-rw-r--r--gcc/config/m68k/m68k.c1
-rw-r--r--gcc/config/m68k/m68kv4.h5
-rw-r--r--gcc/config/m68k/mot3300.h7
-rw-r--r--gcc/config/m68k/pbb.h5
-rw-r--r--gcc/config/m68k/tower-as.h7
8 files changed, 20 insertions, 26 deletions
diff --git a/gcc/config/m68k/a-ux.h b/gcc/config/m68k/a-ux.h
index 69ecb537224..229b6ab045b 100644
--- a/gcc/config/m68k/a-ux.h
+++ b/gcc/config/m68k/a-ux.h
@@ -150,9 +150,8 @@ crt2.o%s "
#define FUNCTION_EXTRA_EPILOGUE(FILE, SIZE) \
{ \
- extern int current_function_returns_pointer; \
- if ((current_function_returns_pointer) && \
- ! find_equiv_reg (0, get_last_insn (), 0, 0, 0, 8, Pmode)) \
+ if (current_function_returns_pointer \
+ && ! find_equiv_reg (0, get_last_insn (), 0, 0, 0, 8, Pmode)) \
asm_fprintf (FILE, "\t%s %Ra0,%Rd0\n", ASM_MOV_INSN); \
}
diff --git a/gcc/config/m68k/altos3068.h b/gcc/config/m68k/altos3068.h
index 5903a12d5a6..d68efb47f39 100644
--- a/gcc/config/m68k/altos3068.h
+++ b/gcc/config/m68k/altos3068.h
@@ -126,10 +126,9 @@ Boston, MA 02111-1307, USA. */
/* Return pointer values in both d0 and a0. */
#undef FUNCTION_EXTRA_EPILOGUE
-#define FUNCTION_EXTRA_EPILOGUE(FILE, SIZE) \
-{ \
- extern int current_function_returns_pointer; \
- if ((current_function_returns_pointer) && \
- ! find_equiv_reg (0, get_last_insn (), 0, 0, 0, 8, Pmode))\
- fprintf (FILE, "\tmovel d0,a0\n"); \
+#define FUNCTION_EXTRA_EPILOGUE(FILE, SIZE) \
+{ \
+ if (current_function_returns_pointer \
+ && ! find_equiv_reg (0, get_last_insn (), 0, 0, 0, 8, Pmode)) \
+ fprintf (FILE, "\tmovel d0,a0\n"); \
}
diff --git a/gcc/config/m68k/linux.h b/gcc/config/m68k/linux.h
index a1a4fffbb20..d100f5c6fe5 100644
--- a/gcc/config/m68k/linux.h
+++ b/gcc/config/m68k/linux.h
@@ -282,11 +282,10 @@ Boston, MA 02111-1307, USA. */
callers that have neglected to properly declare the callee can
still find the correct return value. */
-extern int current_function_returns_pointer;
#define FUNCTION_EXTRA_EPILOGUE(FILE, SIZE) \
do { \
- if ((current_function_returns_pointer) && \
- ! find_equiv_reg (0, get_last_insn (), 0, 0, 0, 8, Pmode)) \
+ if (current_function_returns_pointer \
+ && ! find_equiv_reg (0, get_last_insn (), 0, 0, 0, 8, Pmode)) \
asm_fprintf (FILE, "\tmove.l %Ra0,%Rd0\n"); \
} while (0);
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c
index 948030938f6..659c7057cb2 100644
--- a/gcc/config/m68k/m68k.c
+++ b/gcc/config/m68k/m68k.c
@@ -24,6 +24,7 @@ Boston, MA 02111-1307, USA. */
#include "system.h"
#include "tree.h"
#include "rtl.h"
+#include "function.h"
#include "regs.h"
#include "hard-reg-set.h"
#include "real.h"
diff --git a/gcc/config/m68k/m68kv4.h b/gcc/config/m68k/m68kv4.h
index 9f2744db0dc..6c229b6e558 100644
--- a/gcc/config/m68k/m68kv4.h
+++ b/gcc/config/m68k/m68kv4.h
@@ -179,11 +179,10 @@ while (0)
neglected to properly declare the callee can still find the correct return
value. */
-extern int current_function_returns_pointer;
#define FUNCTION_EXTRA_EPILOGUE(FILE, SIZE) \
do { \
- if ((current_function_returns_pointer) && \
- ! find_equiv_reg (0, get_last_insn (), 0, 0, 0, 8, Pmode)) \
+ if (current_function_returns_pointer \
+ && ! find_equiv_reg (0, get_last_insn (), 0, 0, 0, 8, Pmode)) \
asm_fprintf (FILE, "\tmov.l %Ra0,%Rd0\n"); \
} while (0);
diff --git a/gcc/config/m68k/mot3300.h b/gcc/config/m68k/mot3300.h
index e6eadd1216a..1a4ca6dbf84 100644
--- a/gcc/config/m68k/mot3300.h
+++ b/gcc/config/m68k/mot3300.h
@@ -145,10 +145,9 @@ Boston, MA 02111-1307, USA. */
#undef FUNCTION_EXTRA_EPILOGUE
#define FUNCTION_EXTRA_EPILOGUE(FILE, SIZE) \
- { extern int current_function_returns_pointer; \
- if ((current_function_returns_pointer) && \
- ! find_equiv_reg (0, get_last_insn (), 0, 0, 0, 8, Pmode)) \
- asm_fprintf (FILE, "\tmov.l %Ra0,%Rd0\n"); }
+{ if (current_function_returns_pointer \
+ && ! find_equiv_reg (0, get_last_insn (), 0, 0, 0, 8, Pmode)) \
+ asm_fprintf (FILE, "\tmov.l %Ra0,%Rd0\n"); }
#undef FUNCTION_PROFILER
#define FUNCTION_PROFILER(FILE, LABEL_NO) \
diff --git a/gcc/config/m68k/pbb.h b/gcc/config/m68k/pbb.h
index 41319c219af..9197ac35398 100644
--- a/gcc/config/m68k/pbb.h
+++ b/gcc/config/m68k/pbb.h
@@ -109,9 +109,8 @@ Boston, MA 02111-1307, USA. */
#undef FUNCTION_EXTRA_EPILOGUE
#define FUNCTION_EXTRA_EPILOGUE(FILE, SIZE) \
- { extern int current_function_returns_pointer; \
- if ((current_function_returns_pointer) && \
- ! find_equiv_reg (0, get_last_insn (), 0, 0, 0, 8, Pmode)) \
+{ if (current_function_returns_pointer \
+ && ! find_equiv_reg (0, get_last_insn (), 0, 0, 0, 8, Pmode)) \
asm_fprintf (FILE, "\tmovl %Rd0,%Ra0\n"); }
#define ASM_RETURN_CASE_JUMP \
diff --git a/gcc/config/m68k/tower-as.h b/gcc/config/m68k/tower-as.h
index 7b5771a1ef4..aeb54788497 100644
--- a/gcc/config/m68k/tower-as.h
+++ b/gcc/config/m68k/tower-as.h
@@ -185,10 +185,9 @@ Boston, MA 02111-1307, USA. */
#undef FUNCTION_EXTRA_EPILOGUE
#define FUNCTION_EXTRA_EPILOGUE(FILE, SIZE) \
- { extern int current_function_returns_pointer; \
- if ((current_function_returns_pointer) && \
- ! find_equiv_reg (0, get_last_insn (), 0, 0, 0, 8, Pmode)) \
- asm_fprintf (FILE, "\tmov.l %Rd0,%Ra0\n"); }
+{ if (current_function_returns_pointer \
+ && ! find_equiv_reg (0, get_last_insn (), 0, 0, 0, 8, Pmode)) \
+ asm_fprintf (FILE, "\tmov.l %Rd0,%Ra0\n"); }
/* This is how to output an insn to push a register on the stack.
It need not be very fast code. */