Testsuite PATCH: Backport uninit-C.c change

Mark Mitchell mark@codesourcery.com
Sat Aug 23 01:59:00 GMT 2003


I installed this mainline patch on the branch to quiet a spurious FAIL
on hppa2.0w-hp-hpux11.11.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com

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

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

Index: gcc.dg/uninit-C.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/uninit-C.c,v
retrieving revision 1.1.2.1
diff -c -5 -p -r1.1.2.1 uninit-C.c
*** gcc.dg/uninit-C.c	28 Jan 2003 02:00:55 -0000	1.1.2.1
--- gcc.dg/uninit-C.c	23 Aug 2003 01:56:22 -0000
***************
*** 1,10 ****
--- 1,15 ----
  /* Spurious uninitialized variable warning, inspired by libgcc2.c.  */
  /* { 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)
  {
    TItype w;



More information about the Gcc-patches mailing list