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

From-SVN: r57320
This commit is contained in:
Geoffrey Keating 2002-09-19 23:01:49 +00:00 committed by Geoffrey Keating
parent 307f767b38
commit 2ee2d707a7
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2002-09-19 Geoffrey Keating <geoffk@apple.com>
* gcc.dg/20020312-2.c: Update for darwin.
2002-09-18 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.other/crash32.C: Mark ICE.

View File

@ -72,8 +72,8 @@
/* No pic register. */
#elif defined(__pj__)
/* No pic register. */
#elif defined(__powerpc__) || defined(__PPC__)
# ifdef __darwin__
#elif defined(__powerpc__) || defined(__PPC__) || defined(__POWERPC__)
# ifdef __MACH__
# define PIC_REG "31"
# else
# define PIC_REG "30"
@ -144,8 +144,9 @@ main()
/* 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__
register is in a register window, of course. On Darwin, you can't
call library routines from non-PIC code. */
#if !defined (__sparc__) && !(defined(__MACH__) && defined(__POWERPC__))
if (reg)
abort ();
#endif