diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-08-21 05:13:00 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-09-12 09:57:36 -0700 |
commit | d90ed40436cded0647a963217abfdebee089e5f3 (patch) | |
tree | 599d9d25bda569630beb1d18e0d2f0820160a5a7 | |
parent | a0048735785370f59e567eb790634783de713918 (diff) | |
download | gcc-hjl/pr53037/master.tar.gz |
Update expected alignment in pr53037-1.C/pr53037-1.chjl/pr53037/master
Since alignment of int is 2 bytes for m68k, expect either 2 or 4
alignments in warning.
* g++.dg/pr53037-1.C: Expect either 2 or 4 alignments in
warning.
* gcc.dg/pr53037-1.c: Likewise.
-rw-r--r-- | gcc/testsuite/g++.dg/pr53037-1.C | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr53037-1.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gcc/testsuite/g++.dg/pr53037-1.C b/gcc/testsuite/g++.dg/pr53037-1.C index a3d8f99b54e..3ebaf241670 100644 --- a/gcc/testsuite/g++.dg/pr53037-1.C +++ b/gcc/testsuite/g++.dg/pr53037-1.C @@ -5,7 +5,7 @@ typedef unsigned long long __u64 __attribute__((aligned(4),warn_if_not_aligned(8))); -struct foo1 /* { dg-warning "alignment 4 of 'foo1' is less than 8" } */ +struct foo1 /* { dg-warning "alignment \[24\] of 'foo1' is less than 8" } */ { int i1; int i2; @@ -35,7 +35,7 @@ struct foo4 __u64 x; } __attribute__((aligned(8))); -struct foo5 /* { dg-warning "alignment 4 of 'foo5' is less than 16" } */ +struct foo5 /* { dg-warning "alignment \[24\] of 'foo5' is less than 16" } */ { int i1; int x __attribute__((warn_if_not_aligned(16))); /* { dg-warning "'foo5::x' offset 4 in 'foo5' isn't aligned to 16" } */ @@ -68,7 +68,7 @@ union bar2 __u64 x; } __attribute__((aligned(8))); -union bar3 /* { dg-warning "alignment 4 of 'bar3' is less than 16" } */ +union bar3 /* { dg-warning "alignment \[1-4\] of 'bar3' is less than 16" } */ { int i1; int x __attribute__((warn_if_not_aligned(16))); diff --git a/gcc/testsuite/gcc.dg/pr53037-1.c b/gcc/testsuite/gcc.dg/pr53037-1.c index 93af0a50cd4..1e4e0cbb204 100644 --- a/gcc/testsuite/gcc.dg/pr53037-1.c +++ b/gcc/testsuite/gcc.dg/pr53037-1.c @@ -39,7 +39,7 @@ struct foo5 { int i1; int x __attribute__((warn_if_not_aligned(16))); /* { dg-warning "'x' offset 4 in 'struct foo5' isn't aligned to 16" } */ -}; /* { dg-warning "alignment 4 of 'struct foo5' is less than 16" } */ +}; /* { dg-warning "alignment \[24\] of 'struct foo5' is less than 16" } */ struct foo6 { @@ -72,7 +72,7 @@ union bar3 { int i1; int x __attribute__((warn_if_not_aligned(16))); -}; /* { dg-warning "alignment 4 of 'union bar3' is less than 16" } */ +}; /* { dg-warning "alignment \[24\] of 'union bar3' is less than 16" } */ union bar4 { |