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 up gcc.dg/torture/pr39678.c


Hi!

In my overnight bootstrap, I've noticed gcc.dg/torture/pr39678.c
fails on powerpc*-linux (and supposedly on all other -funsigned-char
defaulting arches).

Fixed thusly, verified the testcase fails with 4.3/x86_64 and succeeds with
current 4.4 and trunk on x86_64 and ppc64, committed to trunk/4.4.

2009-04-21  Jakub Jelinek  <jakub@redhat.com>

	* gcc.dg/torture/pr39678.c (struct X): Make c field signed char.

--- gcc/testsuite/gcc.dg/torture/pr39678.c.jj	2009-04-10 10:13:51.000000000 +0200
+++ gcc/testsuite/gcc.dg/torture/pr39678.c	2009-04-21 09:37:29.000000000 +0200
@@ -3,7 +3,7 @@
 /* { dg-options "-Wno-psabi" } */
 
 struct X {
-  char c;
+  signed char c;
   __complex__ float val;
 };
 

	Jakub


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