This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR38406
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 5 Dec 2008 12:58:33 +0100 (CET)
- Subject: [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 } */