From: Richard Biener Date: Fri, 7 Apr 2017 08:47:43 +0000 (+0000) Subject: re PR tree-optimization/80334 (Segfault when taking address of copy of unaligned... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf7b869abb0818a7f9eada5c16afe31294e6fa9f;p=gcc.git re PR tree-optimization/80334 (Segfault when taking address of copy of unaligned struct) 2017-04-07 Richard Biener PR tree-optimization/80334 * g++.dg/torture/pr80334.C: Use __BIGGEST_ALIGNMENT__ for alignas on stack. From-SVN: r246757 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fc772c46723..d22a9a9538a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-04-07 Richard Biener + + PR tree-optimization/80334 + * g++.dg/torture/pr80334.C: Use __BIGGEST_ALIGNMENT__ for + alignas on stack. + 2017-04-07 Richard Biener PR middle-end/80341 diff --git a/gcc/testsuite/g++.dg/torture/pr80334.C b/gcc/testsuite/g++.dg/torture/pr80334.C index de50c463535..aee15487636 100644 --- a/gcc/testsuite/g++.dg/torture/pr80334.C +++ b/gcc/testsuite/g++.dg/torture/pr80334.C @@ -8,7 +8,7 @@ char x; int main() { - alignas(16) B b[3]; + alignas(__BIGGEST_ALIGNMENT__) B b[3]; for (int i = 0; i < 3; i++) b[i].unpacked.c = 'a' + i; for (int i = 0; i < 3; i++) {