This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: adjust gcc.dg/20020919-1.c for x86 Darwin


For the reason the comment indicates; obvious.

Index: 20020919-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/20020919-1.c,v
retrieving revision 1.2
diff -c -r1.2 20020919-1.c
*** 20020919-1.c        2 Oct 2002 08:26:39 -0000       1.2
--- 20020919-1.c        25 Mar 2005 00:09:48 -0000
***************
*** 31,38 ****
--- 31,44 ----
  #elif defined (__i386__)
  # define REG1 "%eax"
  # define REG2 "%edx"
+ #if defined (__MACH__)
+ /* On Darwin -fpic is on by default, so don't use %ebx. */
+ # define REG3 "%esi"
+ # define REG4 "%edi"
+ #else
  # define REG3 "%ecx"
  # define REG4 "%ebx"
+ #endif
  #elif defined (__MMIX__)
  # define REG1 "$8"
  # define REG2 "$9"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]