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: fix gcc.dg/20020919-1.c on Darwin x86


The test's use of EBX conflicts with Darwin's use of it as the PIC register
(on by default). Using ESI/EDI instead preserves the intent of the test.
I trust that will work on non-Darwin x86 platforms? OK?


2005-03-22 Dale Johannesen <dalej@apple.com>

* gcc.dg/20020919-1.c: Fix for darwin x86.

Index: 20020919-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/20020919-1.c,v
retrieving revision 1.2
diff -u -d -b -w -p -r1.2 20020919-1.c
--- 20020919-1.c        2 Oct 2002 08:26:39 -0000       1.2
+++ 20020919-1.c        22 Mar 2005 18:22:37 -0000
@@ -31,8 +31,8 @@
 #elif defined (__i386__)
 # define REG1 "%eax"
 # define REG2 "%edx"
-# define REG3 "%ecx"
-# define REG4 "%ebx"
+# define REG3 "%esi"
+# define REG4 "%edi"
 #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]