Commit e3406b2a by Mark Mitchell Committed by Mark Mitchell

* varasm.c (make_decl_rtl): Fix typo in last change.

From-SVN: r39026
parent 357c6a4b
2001-01-12 Mark Mitchell <mark@codesourcery.com>
* varasm.c (make_decl_rtl): Fix typo in last change.
2001-01-14 Jeffrey Oldham <oldham@codesourcery.com>
* defaults.h (SUPPORTS_INIT_PRIORITY): New macro to indicate the
......
/* Test that putting an initialized variable in a register works. */
#ifdef __i386__
#define REGISTER asm ("eax")
#elif defined (__arm__)
#define REGISTER asm ("r0")
#else
/* Put examples for other architectures here. */
#define REGISTER
#endif
void f() {
register int i REGISTER = 3;
}
......@@ -663,7 +663,7 @@ make_decl_rtl (decl, asmspec)
{
int nregs;
if (DECL_INITIAL (decl) != 0 && !TREE_STATIC (decl))
if (DECL_INITIAL (decl) != 0 && TREE_STATIC (decl))
{
DECL_INITIAL (decl) = 0;
error ("global register variable has initial value");
......
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