This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: adjust gcc.dg/20020919-1.c for x86 Darwin
- From: Dale Johannesen <dalej at apple dot com>
- To: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Cc: Dale Johannesen <dalej at apple dot com>
- Date: Thu, 24 Mar 2005 16:19:40 -0800
- Subject: 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"