This is the mail archive of the 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 PR/14915 Testsuite failure on mips-sgi-irix6.5 in gcc.dg/builtins-32.c

As mentioned by Jim in the PR, we need to switch from checking

Bootstrapped on mips-sgi-irix6.5.  (I'm getting lots of wierd c++
failures on irix6.5 even without the patch, so those are unrelated.)

Anyway this patch fixes gcc.dg/builtins-32.c on mips.

Ok for mainline?


2004-04-12  Kaveh R. Ghazi  <>

	PR/target 14915
	* builtins.c (expand_builtin_signbit): Test BYTES_BIG_ENDIAN, not
diff -rup orig/egcc-CVS20040411/gcc/builtins.c egcc-CVS20040411/gcc/builtins.c
--- orig/egcc-CVS20040411/gcc/builtins.c	2004-04-09 17:03:58.000000000 -0400
+++ egcc-CVS20040411/gcc/builtins.c	2004-04-12 19:14:14.234793426 -0400
@@ -5036,7 +5036,7 @@ expand_builtin_signbit (tree exp, rtx ta
   if (GET_MODE_BITSIZE (imode) > GET_MODE_BITSIZE (rmode))
-      if (BITS_BIG_ENDIAN)
+      if (BYTES_BIG_ENDIAN)
 	bitpos = GET_MODE_BITSIZE (imode) - 1 - bitpos;
       temp = copy_to_mode_reg (imode, temp);
       temp = extract_bit_field (temp, 1, bitpos, 1,

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