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.
2024-07-26 Sam James <sam@gentoo.org>
PR target/7559
PR c++/9704
PR c++/16115
PR c++/19317
PR rtl-optimization/11536
PR target/20322
PR tree-optimization/31966
PR rtl-optimization/41033
PR tree-optimization/67947
* g++.dg/cpp1z/byte1.C: Add dg-do run directive.
* g++.dg/init/call1.C: Ditto.
* g++.dg/init/copy5.C: Ditto.
* g++.dg/opt/nrv9.C: Ditto.
* gcc.dg/
20021006-1.c: Ditto.
* gcc.dg/
20030721-1.c: Ditto.
* gcc.dg/
20050307-1.c: Ditto.
* gcc.dg/pr41033.c: Ditto.
* gcc.dg/torture/pr67947.c: Ditto.
* gcc.dg/tree-ssa/pr31966.c: Ditto.
* gcc.dg/tree-ssa/tailcall-3.c: Ditto.
* gcc.dg/tree-ssa/vrp74.c: Ditto.
* gcc.target/nvptx/abort.c: Fix whitespace in dg directive.
// Test for std::byte aliasing properties.
-// { dg-do compile { target c++17 } }
+// { dg-do run { target c++17 } }
// { dg-options "-O3" }
#include <cstddef>
// Bug c++/16115
+// { dg-do run }
// { dg-options "-O2" }
extern "C" void abort();
+// { dg-do run }
// { dg-options "-O2" }
struct BOOL {
// PR c++/19317
+// { dg-do run }
// If we do both NRV and caller-side return slot opt for ga = f()
// constructing la sets ga.i to 0 too soon.
/* PR target/7559
This testcase was miscompiled on x86-64 due to wrong access to the struct
members. */
+/* { dg-do run } */
extern void abort(void);
-/* { dg-options "-O2" } */
/* PR optimization/11536 */
+/* { dg-do run } */
+/* { dg-options "-O2" } */
/* Origin: samal@kam.mff.cuni.cz <samal@kam.mff.cuni.cz> */
/* Testcase by Andrew Pinski <pinskia@physics.uc.edu> */
/* PR target/20322 */
+/* { dg-do run } */
extern void abort (void);
-/* { dg-options "-O1 -fno-strict-aliasing" } */
/* PR rtl-optimization/41033 */
+/* { dg-do run } */
+/* { dg-options "-O1 -fno-strict-aliasing" } */
struct X {
int i;
+/* { dg-do run } */
/* { dg-additional-options "-O3" } */
#include <stdlib.h>
/* Contributed by Jack Lloyd <lloyd@randombit.net> */
+/* { dg-do run } */
/* { dg-options "-O2 -ftree-vectorize" } */
/* { dg-options "-O2 -ftree-vectorize -march=nocona" { target { i?86-*-* x86_64-*-* } } } */
(e.g. s390) needs additional code. So it is invalid to do tail
call optimization here. */
-/* { dg-do compile } */
+/* { dg-do run } */
/* { dg-options "-O2" } */
extern void abort (void);
+/* { dg-do run } */
/* { dg-options "-O2" } */
void abort (void);
-/* { dg-do compile} */
+/* { dg-do compile } */
/* Annotate no return functions with a trailing 'trap'. */
extern void abort ();