[PATCH] Fix PR38406

Richard Guenther rguenther@suse.de
Fri Dec 5 11:59:00 GMT 2008


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 } */



More information about the Gcc-patches mailing list