On Thu, Jul 18, 2024 at 4:09 AM Sam James <s...@gentoo.org> wrote: > > All of these are for wrong-code bugs. Confirmed to be used before but > with no execution. > > Tested on x86_64-pc-linux-gnu and checked test logs before/after.
OK for both. > 2024-07-18 Sam James <s...@gentoo.org> > > PR c++/53288 > PR c++/57437 > PR c/65345 > PR libstdc++/88101 > PR tree-optimization/96369 > PR tree-optimization/102124 > PR tree-optimization/108692 > * c-c++-common/pr96369.c: Add dg-do run directive. > * gcc.dg/torture/pr102124.c: Ditto. > * gcc.dg/pr108692.c: Ditto. > * gcc.dg/atomic/pr65345-4.c: Ditto. > * g++.dg/cpp0x/lambda/lambda-return1.C: Ditto. > * g++.dg/init/lifetime4.C: Ditto. > * g++.dg/torture/builtin-clear-padding-1.C: Ditto. > * g++.dg/torture/builtin-clear-padding-2.C: Ditto. > * g++.dg/torture/builtin-clear-padding-3.C: Ditto. > * g++.dg/torture/builtin-clear-padding-4.C: Ditto. > * g++.dg/torture/builtin-clear-padding-5.C: Ditto. > --- > v3: Add a few other tests I noticed. Tweak ChangeLog format as adding > more PRs started to upset `git gcc-verify`. > v2: Fix ChangeLog format. Explicitly state how tested in commit msg. > Drop redundant dg-do compile where appropriate. > > gcc/testsuite/c-c++-common/pr96369.c | 2 +- > gcc/testsuite/g++.dg/cpp0x/lambda/lambda-return1.C | 1 + > gcc/testsuite/g++.dg/init/lifetime4.C | 2 +- > gcc/testsuite/g++.dg/torture/builtin-clear-padding-1.C | 1 + > gcc/testsuite/g++.dg/torture/builtin-clear-padding-2.C | 1 + > gcc/testsuite/g++.dg/torture/builtin-clear-padding-3.C | 1 + > gcc/testsuite/g++.dg/torture/builtin-clear-padding-4.C | 1 + > gcc/testsuite/g++.dg/torture/builtin-clear-padding-5.C | 1 + > gcc/testsuite/gcc.dg/atomic/pr65345-4.c | 1 + > gcc/testsuite/gcc.dg/pr108692.c | 2 +- > gcc/testsuite/gcc.dg/torture/pr102124.c | 1 + > 11 files changed, 11 insertions(+), 3 deletions(-) > > diff --git a/gcc/testsuite/c-c++-common/pr96369.c > b/gcc/testsuite/c-c++-common/pr96369.c > index 8c468d9fec2f..ec58a3fc6c92 100644 > --- a/gcc/testsuite/c-c++-common/pr96369.c > +++ b/gcc/testsuite/c-c++-common/pr96369.c > @@ -1,4 +1,4 @@ > -/* { dg-do compile } */ > +/* { dg-do run } */ > /* { dg-options "-O" } */ > > int main() > diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-return1.C > b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-return1.C > index 4b353b64c37e..df533e9a87cc 100644 > --- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-return1.C > +++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-return1.C > @@ -1,4 +1,5 @@ > // PR c++/57437 > +// { dg-do run } */ > // { dg-require-effective-target c++11 } > > struct A { > diff --git a/gcc/testsuite/g++.dg/init/lifetime4.C > b/gcc/testsuite/g++.dg/init/lifetime4.C > index 4106af7070cc..3e4825fff52f 100644 > --- a/gcc/testsuite/g++.dg/init/lifetime4.C > +++ b/gcc/testsuite/g++.dg/init/lifetime4.C > @@ -1,5 +1,5 @@ > // PR c++/53288 > -// { dg-do compile { target c++11 } } > +// { dg-do run { target c++11 } } > > struct B { > B(int data) : _data(data) { } > diff --git a/gcc/testsuite/g++.dg/torture/builtin-clear-padding-1.C > b/gcc/testsuite/g++.dg/torture/builtin-clear-padding-1.C > index 625a047ab1c7..f62dedc6fa6d 100644 > --- a/gcc/testsuite/g++.dg/torture/builtin-clear-padding-1.C > +++ b/gcc/testsuite/g++.dg/torture/builtin-clear-padding-1.C > @@ -1,4 +1,5 @@ > /* PR libstdc++/88101 */ > +/* { dg-do run } */ > > struct S {} s1, s2; > struct T : public S { char a; short b; char c; } t1, t2; > diff --git a/gcc/testsuite/g++.dg/torture/builtin-clear-padding-2.C > b/gcc/testsuite/g++.dg/torture/builtin-clear-padding-2.C > index 19cc78f66104..3cb55cff8d3e 100644 > --- a/gcc/testsuite/g++.dg/torture/builtin-clear-padding-2.C > +++ b/gcc/testsuite/g++.dg/torture/builtin-clear-padding-2.C > @@ -1,4 +1,5 @@ > /* PR libstdc++/88101 */ > +/* { dg-do run } */ > > #include <new> > > diff --git a/gcc/testsuite/g++.dg/torture/builtin-clear-padding-3.C > b/gcc/testsuite/g++.dg/torture/builtin-clear-padding-3.C > index d528196bf2dc..fe81e095e082 100644 > --- a/gcc/testsuite/g++.dg/torture/builtin-clear-padding-3.C > +++ b/gcc/testsuite/g++.dg/torture/builtin-clear-padding-3.C > @@ -1,4 +1,5 @@ > /* PR libstdc++/88101 */ > +/* { dg-do run } */ > > struct D { int a; int : 24; int b : 8; }; > struct E {}; > diff --git a/gcc/testsuite/g++.dg/torture/builtin-clear-padding-4.C > b/gcc/testsuite/g++.dg/torture/builtin-clear-padding-4.C > index 5936cdf876b2..88bd6bac65ec 100644 > --- a/gcc/testsuite/g++.dg/torture/builtin-clear-padding-4.C > +++ b/gcc/testsuite/g++.dg/torture/builtin-clear-padding-4.C > @@ -1,4 +1,5 @@ > // PR middle-end/101586 > +// { dg-do run } > > struct A { char a; }; > struct B : virtual A {}; > diff --git a/gcc/testsuite/g++.dg/torture/builtin-clear-padding-5.C > b/gcc/testsuite/g++.dg/torture/builtin-clear-padding-5.C > index b5f019147816..0795011077aa 100644 > --- a/gcc/testsuite/g++.dg/torture/builtin-clear-padding-5.C > +++ b/gcc/testsuite/g++.dg/torture/builtin-clear-padding-5.C > @@ -1,4 +1,5 @@ > // PR tree-optimization/102586 > +// { dg-do run } > // { dg-options "-Wno-inaccessible-base" } > > struct C0 {}; > diff --git a/gcc/testsuite/gcc.dg/atomic/pr65345-4.c > b/gcc/testsuite/gcc.dg/atomic/pr65345-4.c > index 6d44def7c2d4..dd2a3d39004a 100644 > --- a/gcc/testsuite/gcc.dg/atomic/pr65345-4.c > +++ b/gcc/testsuite/gcc.dg/atomic/pr65345-4.c > @@ -1,4 +1,5 @@ > /* PR c/65345 */ > +/* { dg-do run } */ > /* { dg-options "" } */ > > #define CHECK(X) if (!(X)) __builtin_abort () > diff --git a/gcc/testsuite/gcc.dg/pr108692.c b/gcc/testsuite/gcc.dg/pr108692.c > index fc25bf54e45d..13a27496ad9f 100644 > --- a/gcc/testsuite/gcc.dg/pr108692.c > +++ b/gcc/testsuite/gcc.dg/pr108692.c > @@ -1,5 +1,5 @@ > /* PR tree-optimization/108692 */ > -/* { dg-do compile } */ > +/* { dg-do run } */ > /* { dg-options "-O2 -ftree-vectorize" } */ > > __attribute__((noipa)) int > diff --git a/gcc/testsuite/gcc.dg/torture/pr102124.c > b/gcc/testsuite/gcc.dg/torture/pr102124.c > index a158b4a60b69..a0eb01521242 100644 > --- a/gcc/testsuite/gcc.dg/torture/pr102124.c > +++ b/gcc/testsuite/gcc.dg/torture/pr102124.c > @@ -1,4 +1,5 @@ > /* PR tree-optimization/102124 */ > +/* { dg-do run } */ > > int > foo (const unsigned char *a, const unsigned char *b, unsigned long len) > > -- > 2.45.2 >