aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/alias-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/alias-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/alias-1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.dg/alias-1.c b/gcc/testsuite/gcc.dg/alias-1.c
index 71056e9..a723083 100644
--- a/gcc/testsuite/gcc.dg/alias-1.c
+++ b/gcc/testsuite/gcc.dg/alias-1.c
@@ -1,5 +1,5 @@
// { dg-do compile }
-// { dg-options "-W -fstrict-aliasing" }
+// { dg-options "-Wstrict-aliasing -fstrict-aliasing" }
// Copyright (C) 2002 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 29 Sep 2002 <nathan@codesourcery.com>
@@ -19,9 +19,9 @@ YYSTYPE
addSibMacro(
YYSTYPE list )
{
- tDefEntry** ppT = (tDefEntry**)&list; // { dg-warning "type punning cast" "" }
+ tDefEntry** ppT = (tDefEntry**)&list; // { dg-warning "type-punned pointer" "" }
- struct incomplete *p = (struct incomplete *)&list; // { dg-warning "type punning to incomplete" "" }
+ struct incomplete *p = (struct incomplete *)&list; // { dg-warning "type-punning to incomplete" "" }
return list;
}