* gcc.dg/
20020312-2.c: Don't test epilogue vs global register
on sparc.
From-SVN: r51422
2002-03-26 Richard Henderson <rth@redhat.com>
+ * gcc.dg/20020312-2.c: Don't test epilogue vs global register
+ on sparc.
+
* gcc.dg/20001101-1.c: Add -mcpu=ultrasparc. Only run on
sparcv9 systems.
* gcc.dg/20001102-1.c: Likewise.
{
void *old_reg = reg;
reg = (void *) 1;
+
f ();
+
+ /* Additionally test that the prologue/epilogue properly does *not*
+ save and restore global registers. Not possible when the PIC
+ register is in a register window, of course. */
+#ifndef __sparc__
if (reg)
abort ();
+#endif
+
reg = old_reg;
return 0;
}