Commit 2ee2d707 by Geoffrey Keating Committed by Geoffrey Keating

* gcc.dg/20020312-2.c: Update for darwin.

From-SVN: r57320
parent 307f767b
2002-09-19 Geoffrey Keating <geoffk@apple.com>
* gcc.dg/20020312-2.c: Update for darwin.
2002-09-18 Nathan Sidwell <nathan@codesourcery.com> 2002-09-18 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.other/crash32.C: Mark ICE. * g++.old-deja/g++.other/crash32.C: Mark ICE.
......
...@@ -72,8 +72,8 @@ ...@@ -72,8 +72,8 @@
/* No pic register. */ /* No pic register. */
#elif defined(__pj__) #elif defined(__pj__)
/* No pic register. */ /* No pic register. */
#elif defined(__powerpc__) || defined(__PPC__) #elif defined(__powerpc__) || defined(__PPC__) || defined(__POWERPC__)
# ifdef __darwin__ # ifdef __MACH__
# define PIC_REG "31" # define PIC_REG "31"
# else # else
# define PIC_REG "30" # define PIC_REG "30"
...@@ -144,8 +144,9 @@ main() ...@@ -144,8 +144,9 @@ main()
/* Additionally test that the prologue/epilogue properly does *not* /* Additionally test that the prologue/epilogue properly does *not*
save and restore global registers. Not possible when the PIC save and restore global registers. Not possible when the PIC
register is in a register window, of course. */ register is in a register window, of course. On Darwin, you can't
#ifndef __sparc__ call library routines from non-PIC code. */
#if !defined (__sparc__) && !(defined(__MACH__) && defined(__POWERPC__))
if (reg) if (reg)
abort (); abort ();
#endif #endif
......
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