From 012cd3b6b52f81950a23953ef21e383d7bd29d06 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Wed, 24 Mar 2010 03:04:16 +0000 Subject: [PATCH] * g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Enhance portability. From-SVN: r157690 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8158d483c61..63432cf94d2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2010-03-23 Mike Stump + + * g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Enhance portability. + 2010-03-23 Jason Merrill * g++.dg/ext/altivec-17.C: Adjust error message. diff --git a/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C b/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C index 8b82874f51d..103248da487 100644 --- a/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C +++ b/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C @@ -4,9 +4,9 @@ int foo() { int x; - float& q = reinterpret_cast (x); /* { dg-message "initialized" "" { xfail *-*-* } } */ + float& q = reinterpret_cast (x); /* { dg-message "dereferencing type-punned" "" { target *-*-* } } */ q = 1.0; /* { dg-warning "does break strict-aliasing" "" { xfail *-*-* } } */ return x; } -/* { dg-message "dereferencing type-punned" "" { target *-*-* } 7 } */ +/* { dg-message "initialized" "" { xfail *-*-* } 7 } */ -- 2.11.4.GIT