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]

[3.4/4.0 patch] fix PR testsuite/19275


This patch fixes PR testsuite/19275 in GCC 3.4.x and 4.0.x by
backporting the testcase changes already present in mainline & 4.1.
(The testcase failure occurs on x86 with -fpic or -fPIC.)

Tested on i686-unknown-linux-gnu by running make check (C-only) with
-fpic and -fPIC testsuite passes in 3.4.x and 4.0.x.  It passed.

Okay for 3.4 and 4.0?

		Thanks,
		--Kaveh


2005-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	PR testsuite/19275
	Backport from mainline:

	* gcc.dg/20020919-1.c:  Fix for x86 Darwin.
	* gcc.dg/20020919-1.c:  Remove unnecessary conditional.

diff -rup orig/egcc-4.0-SVN20051129/gcc/testsuite/gcc.dg/20020919-1.c egcc-4.0-SVN20051129/gcc/testsuite/gcc.dg/20020919-1.c
--- orig/egcc-4.0-SVN20051129/gcc/testsuite/gcc.dg/20020919-1.c	2005-11-03 10:42:36.000000000 -0500
+++ egcc-4.0-SVN20051129/gcc/testsuite/gcc.dg/20020919-1.c	2005-11-29 19:52:24.000000000 -0500
@@ -31,8 +31,9 @@
 #elif defined (__i386__)
 # define REG1 "%eax"
 # define REG2 "%edx"
-# define REG3 "%ecx"
-# define REG4 "%ebx"
+/* On Darwin -fpic is on by default, so don't use %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]