regclass.c (globalize_reg): Re-instate test that allows fixed registers to be declared as a variable even...
* regclass.c (globalize_reg): Re-instate test that allows fixed registers to be declared as a variable even after functions are defined. * testsuite/gcc.dg/991209-1.c: New test. From-SVN: r30853
This commit is contained in:
parent
309ada50de
commit
c07c7c9d25
|
@ -1,3 +1,9 @@
|
|||
Fri Dec 10 00:53:10 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
|
||||
|
||||
* regclass.c (globalize_reg): Re-instate test that allows
|
||||
fixed registers to be declared as a variable even after functions
|
||||
are defined.
|
||||
|
||||
Fri Dec 10 00:52:13 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
|
||||
|
||||
* i386.md (cpu attribute): Add "athlon".
|
||||
|
|
|
@ -218,7 +218,7 @@ struct reg_info_data {
|
|||
|
||||
static struct reg_info_data *reg_info_head;
|
||||
|
||||
/* No more global register vairiables may be declared; true once
|
||||
/* No more global register variables may be declared; true once
|
||||
regclass has been initialized. */
|
||||
|
||||
static int no_global_reg_vars = 0;
|
||||
|
@ -630,7 +630,7 @@ void
|
|||
globalize_reg (i)
|
||||
int i;
|
||||
{
|
||||
if (no_global_reg_vars)
|
||||
if (fixed_regs[i] == 0 && no_global_reg_vars)
|
||||
error ("global register variable follows a function definition");
|
||||
|
||||
if (global_regs[i])
|
||||
|
@ -767,7 +767,7 @@ regclass_init ()
|
|||
before regclass is run. */
|
||||
reg_pref = NULL;
|
||||
|
||||
/* No more global register vairiables may be declared. */
|
||||
/* No more global register variables may be declared. */
|
||||
no_global_reg_vars = 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
Fri Dec 10 00:53:10 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
|
||||
|
||||
* gcc.dg/991209-1.c: New test.
|
||||
|
||||
Wed Dec 8 23:44:08 1999 Nathan Sidwell <nathan@acm.org>
|
||||
|
||||
* gcc.c-torture/compile/991208-1.c: New test.
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
/* { dg-do compile { target i386-*-* } } */
|
||||
|
||||
int foo ()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
register char *stack_ptr asm ("%esp");
|
Loading…
Reference in New Issue