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/uninit-C.c on non 64-bit platforms


Many thanks to Jim Wilson and Kaveh Ghazi for proposing a suitable
solution.  The following patch fixes the failure of uninit-C.c on
32-bit platforms, and thereby the last unexpected failure on
i686-pc-linux-gnu.

Ok for mainline?


2003-06-05  Roger Sayle  <roger@eyesopen.com>
	    Jim Wilson  <wilson@tuliptree.org>

	* gcc.dg/uninit-C.c: Only test TImode on 64-bit platforms.


Index: uninit-C.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/uninit-C.c,v
retrieving revision 1.1
diff -c -3 -p -r1.1 uninit-C.c
*** uninit-C.c	28 Jan 2003 01:59:22 -0000	1.1
--- uninit-C.c	6 Jun 2003 03:58:49 -0000
***************
*** 2,8 ****
--- 2,14 ----
  /* { dg-do compile } */
  /* { dg-options "-O -Wuninitialized" } */

+ /* Not all platforms support TImode integers.  */
+ #if defined(__LP64__) || defined(__sparc__)
  typedef int TItype __attribute__ ((mode (TI)));
+ #else
+ typedef long TItype;
+ #endif
+

  TItype
  __subvdi3 (TItype a, TItype b)


Roger
--


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