This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: fix gcc.dg/20020919-1.c on Darwin x86
- 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: Tue, 22 Mar 2005 10:39:56 -0800
- Subject: 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"