diff options
author | Bernd Schmidt <bernds@cygnus.co.uk> | 1999-08-09 14:00:21 +0000 |
---|---|---|
committer | Bernd Schmidt <crux@gcc.gnu.org> | 1999-08-09 14:00:21 +0000 |
commit | 49ad7cfa7ac804b56cff13d70022020126f24c55 (patch) | |
tree | 0c9ea6c13240638f450e4b7c92af4127356208c0 /gcc/config/m68k | |
parent | 0dde4175efc346c70069a8a090590d3e63be04fa (diff) | |
download | gcc-49ad7cfa7ac804b56cff13d70022020126f24c55.zip gcc-49ad7cfa7ac804b56cff13d70022020126f24c55.tar.gz gcc-49ad7cfa7ac804b56cff13d70022020126f24c55.tar.bz2 |
Include function.h in most files.
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.
From-SVN: r28626
Diffstat (limited to 'gcc/config/m68k')
-rw-r--r-- | gcc/config/m68k/a-ux.h | 5 | ||||
-rw-r--r-- | gcc/config/m68k/altos3068.h | 11 | ||||
-rw-r--r-- | gcc/config/m68k/linux.h | 5 | ||||
-rw-r--r-- | gcc/config/m68k/m68k.c | 1 | ||||
-rw-r--r-- | gcc/config/m68k/m68kv4.h | 5 | ||||
-rw-r--r-- | gcc/config/m68k/mot3300.h | 7 | ||||
-rw-r--r-- | gcc/config/m68k/pbb.h | 5 | ||||
-rw-r--r-- | gcc/config/m68k/tower-as.h | 7 |
8 files changed, 20 insertions, 26 deletions
diff --git a/gcc/config/m68k/a-ux.h b/gcc/config/m68k/a-ux.h index 69ecb53..229b6ab 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 5903a12..d68efb4 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 a1a4fff..d100f5c 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 9480309..659c705 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 9f2744d..6c229b6 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 e6eadd1..1a4ca6d 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 41319c2..9197ac3 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 7b5771a..aeb5478 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. */ |