Commit e421052c by Kaveh R. Ghazi Committed by Kaveh Ghazi

elxsi.c: Include "hard-reg-set.h" and/or don't declare `call_used_regs' explicitly.

	* elxsi.c: Include "hard-reg-set.h" and/or don't declare
	`call_used_regs' explicitly.
	* i860.c: Likewise.
	* m68k.c: Likewise.
	* ns32k.c: Likewise.
	* pa.c: Likewise.
	* vax.c: Likewise.
	* we32k.c: Likewise.

From-SVN: r48276
parent 91d2f4ba
2001-12-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* elxsi.c: Include "hard-reg-set.h" and/or don't declare
`call_used_regs' explicitly.
* i860.c: Likewise.
* m68k.c: Likewise.
* ns32k.c: Likewise.
* pa.c: Likewise.
* vax.c: Likewise.
* we32k.c: Likewise.
Fri Dec 21 23:30:14 CET 2001 Jan Hubicka <jh@suse.cz>
* i386.h (TARGET_CPU_DEFAULT_pentium_mmx): New.
......
......@@ -30,6 +30,7 @@ Boston, MA 02111-1307, USA. */
#include "expr.h"
#include "regs.h"
#include "flags.h"
#include "hard-reg-set.h"
#include "tm_p.h"
#include "target.h"
#include "target-def.h"
......@@ -103,7 +104,6 @@ elxsi_output_function_prologue (file, size)
{
register int regno;
register int cnt = 0;
extern char call_used_regs[];
/* the below two lines are a HACK, and should be deleted, but
for now are very much needed (1.35) */
......@@ -141,7 +141,6 @@ elxsi_output_function_epilogue (file, size)
{
register int regno;
register int cnt = 0;
extern char call_used_regs[];
/* this conditional is ONLY here because there is a BUG;
EXIT_IGNORE_STACK is ignored itself when the first part of
......
......@@ -1661,8 +1661,6 @@ sfmode_constant_to_ulong (x)
#define STACK_ALIGNMENT 16
#endif
extern char call_used_regs[];
const char *current_function_original_name;
static int must_preserve_r1;
......
......@@ -197,7 +197,6 @@ m68k_output_function_prologue (stream, size)
{
register int regno;
register int mask = 0;
extern char call_used_regs[];
HOST_WIDE_INT fsize = ((size) + 3) & -4;
/* unos stack probe */
......@@ -257,7 +256,6 @@ m68k_output_function_prologue (stream, size)
register int regno;
register int mask = 0;
int num_saved_regs = 0, first = 1;
extern char call_used_regs[];
HOST_WIDE_INT fsize = ((size) + 3) & -4;
if (frame_pointer_needed)
......@@ -361,7 +359,6 @@ m68k_output_function_prologue (stream, size)
{
register int regno;
register int mask = 0;
extern char call_used_regs[];
HOST_WIDE_INT fsize = ((size) + 3) & -4;
if (frame_pointer_needed)
......@@ -414,7 +411,6 @@ m68k_output_function_prologue (stream, size)
register int regno;
register int mask = 0;
int num_saved_regs = 0;
extern char call_used_regs[];
HOST_WIDE_INT fsize = (size + 3) & -4;
HOST_WIDE_INT cfa_offset = INCOMING_FRAME_SP_OFFSET;
HOST_WIDE_INT cfa_store_offset = cfa_offset;
......@@ -817,7 +813,6 @@ m68k_output_function_epilogue (stream, size)
register int mask, fmask;
register int nregs;
HOST_WIDE_INT offset, foffset, fpoffset;
extern char call_used_regs[];
HOST_WIDE_INT fsize = ((size) + 3) & -4;
int big = 0;
......@@ -930,7 +925,6 @@ m68k_output_function_epilogue (stream, size)
register int mask, fmask;
register int nregs;
HOST_WIDE_INT offset, foffset, fpoffset, first = 1;
extern char call_used_regs[];
HOST_WIDE_INT fsize = ((size) + 3) & -4;
int big = 0;
rtx insn = get_last_insn ();
......@@ -1101,7 +1095,6 @@ m68k_output_function_epilogue (stream, size)
register int mask, fmask;
register int nregs;
HOST_WIDE_INT offset, foffset;
extern char call_used_regs[];
HOST_WIDE_INT fsize = ((size) + 3) & -4;
int big = 0;
......@@ -1197,7 +1190,6 @@ m68k_output_function_epilogue (stream, size)
register int mask, fmask;
register int nregs;
HOST_WIDE_INT offset, foffset, fpoffset;
extern char call_used_regs[];
HOST_WIDE_INT fsize = (size + 3) & -4;
int big = 0;
rtx insn = get_last_insn ();
......
......@@ -145,7 +145,6 @@ ns32k_output_function_prologue (file, size)
register int regno, g_regs_used = 0;
int used_regs_buf[8], *bufp = used_regs_buf;
int used_fregs_buf[17], *fbufp = used_fregs_buf;
extern char call_used_regs[];
for (regno = R0_REGNUM; regno < F0_REGNUM; regno++)
if (regs_ever_live[regno]
......@@ -233,7 +232,6 @@ ns32k_output_function_prologue (file, size)
register int regno, g_regs_used = 0;
int used_regs_buf[8], *bufp = used_regs_buf;
int used_fregs_buf[8], *fbufp = used_fregs_buf;
extern char call_used_regs[];
for (regno = 0; regno < 8; regno++)
if (regs_ever_live[regno]
......@@ -327,7 +325,6 @@ ns32k_output_function_epilogue (file, size)
register int regno, g_regs_used = 0, f_regs_used = 0;
int used_regs_buf[8], *bufp = used_regs_buf;
int used_fregs_buf[17], *fbufp = used_fregs_buf;
extern char call_used_regs[];
if (flag_pic && current_function_uses_pic_offset_table)
fprintf (file, "\tlprd sb,tos\n");
......@@ -404,7 +401,6 @@ ns32k_output_function_epilogue (file, size)
register int regno, g_regs_used = 0, f_regs_used = 0;
int used_regs_buf[8], *bufp = used_regs_buf;
int used_fregs_buf[8], *fbufp = used_fregs_buf;
extern char call_used_regs[];
*fbufp++ = -2;
for (regno = 8; regno < 16; regno++)
......
......@@ -3043,7 +3043,6 @@ pa_output_function_prologue (file, size)
void
hppa_expand_prologue ()
{
extern char call_used_regs[];
int size = get_frame_size ();
int merge_sp_adjust_with_store = 0;
int i, offset;
......
......@@ -69,7 +69,6 @@ vax_output_function_prologue (file, size)
{
register int regno;
register int mask = 0;
extern char call_used_regs[];
for (regno = 0; regno < FIRST_PSEUDO_REGISTER; regno++)
if (regs_ever_live[regno] && !call_used_regs[regno])
......
......@@ -32,6 +32,7 @@ Boston, MA 02111-1307, USA. */
#include "regs.h"
#include "tree.h"
#include "expr.h"
#include "hard-reg-set.h"
#include "tm_p.h"
#include "target.h"
#include "target-def.h"
......@@ -68,7 +69,6 @@ we32k_output_function_prologue (file, size)
{
register int nregs_to_save;
register int regno;
extern char call_used_regs[];
nregs_to_save = 0;
for (regno = 8; regno > 2; regno--)
......@@ -95,7 +95,6 @@ we32k_output_function_epilogue (file, size)
{
register int nregs_to_restore;
register int regno;
extern char call_used_regs[];
nregs_to_restore = 0;
for (regno = 8; regno > 2; regno--)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment