]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Remove dg-options from pr100305.c [PR100305]
authorJakub Jelinek <jakub@redhat.com>
Thu, 29 Apr 2021 09:42:08 +0000 (11:42 +0200)
committerJakub Jelinek <jakub@redhat.com>
Thu, 29 Apr 2021 09:45:31 +0000 (11:45 +0200)
The test FAILs on i?86-linux (due to -Wpsabi warnings).  But, on closer
inspection it seems there is another problem, the dg-options in the testcase
means that the test is compiled with -O0 -O, -O1 -O, -O2 -O, -O3 -O, -Os -O
etc. options, so effectively is tested multiple times with the same options.

Fixed by dropping the dg-options line, then we have -w by default and iterate
over all the optimization levels (including the -O).

2021-04-29  Jakub Jelinek  <jakub@redhat.com>

PR target/100305
* gcc.c-torture/compile/pr100305.c: Remove dg-options.  Add PR line.

(cherry picked from commit 62a44a9797edce11b1f7051ea0016ee975d41233)

gcc/testsuite/gcc.c-torture/compile/pr100305.c

index e098b90b589237535b7b491f6a754e488bd35f22..43d78bf6542805c4cb42b25e727e4e09a5a7119c 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-O" } */
+/* PR target/100305 */
 
 typedef double v2df __attribute__((vector_size(16)));