+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
--- /dev/null
+/* 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;
+}
{
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");