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 PR38406


The testcase Wstrict-aliasing-converted-assigned.c is optimized on ilp32
targets before the alias warning machinery comes along.  Thus the 
following restricts the test to lp64 ones.

Installed.

Richard.

2008-12-05  Richard Guenther  <rguenther@suse.de>

	PR testsuite/38406
	* gcc.dg/Wstrict-aliasing-converted-assigned.c: Restrict PTA
	alias warning to lp64 targets.

Index: testsuite/gcc.dg/Wstrict-aliasing-converted-assigned.c
===================================================================
*** testsuite/gcc.dg/Wstrict-aliasing-converted-assigned.c	(revision 142469)
--- testsuite/gcc.dg/Wstrict-aliasing-converted-assigned.c	(working copy)
*************** int foo()
*** 9,13 ****
    return i;
  }
  
! /* { dg-message "does break strict-aliasing" "" { target *-*-* } 8 } */
! /* { dg-message "initialized" "" { target *-*-* } 8 } */
--- 9,13 ----
    return i;
  }
  
! /* { dg-message "does break strict-aliasing" "" { target { *-*-* && lp64 } } 8 } */
! /* { dg-message "initialized" "" { target { *-*-* && lp64 } } 8 } */


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