Commit 604f37cd by Uros Bizjak

pr54669.c: Fix dg-do directive.

	* gcc.dg/pr54669.c: Fix dg-do directive.
	* gcc.dg/pr78582.c: Ditto.
	* gcc.dg/pr80020.c: Ditto.
	* gcc.dg/torture/pr57993-2.cpp: Ditto.
	* gcc.dg/tree-ssa/builtin-sprintf-3.c: Ditto.
	* gcc.dg/tree-ssa/builtin-sprintf-4.c: Ditto.
	* gcc.dg/tree-ssa/builtin-sprintf-5.c: Ditto.
	* gcc.dg/tree-ssa/builtin-sprintf-6.c: Ditto.
	* gcc.dg/tree-ssa/builtin-sprintf-warn-5.c: Ditto.
	* gcc.dg/tree-ssa/pr79327-2.c: Ditto.
	* gcc.dg/tree-ssa/pr79352.c: Ditto.
	* gcc.dg/tree-ssa/pr79376.c: Ditto.
	* gcc.dg/tree-ssa/pr79691.c: Ditto.

From-SVN: r246941
parent 35cfdb17
2017-04-15 Uros Bizjak <ubizjak@gmail.com>
* gcc.dg/pr54669.c: Fix dg-do directive.
* gcc.dg/pr78582.c: Ditto.
* gcc.dg/pr80020.c: Ditto.
* gcc.dg/torture/pr57993-2.cpp: Ditto.
* gcc.dg/tree-ssa/builtin-sprintf-3.c: Ditto.
* gcc.dg/tree-ssa/builtin-sprintf-4.c: Ditto.
* gcc.dg/tree-ssa/builtin-sprintf-5.c: Ditto.
* gcc.dg/tree-ssa/builtin-sprintf-6.c: Ditto.
* gcc.dg/tree-ssa/builtin-sprintf-warn-5.c: Ditto.
* gcc.dg/tree-ssa/pr79327-2.c: Ditto.
* gcc.dg/tree-ssa/pr79352.c: Ditto.
* gcc.dg/tree-ssa/pr79376.c: Ditto.
* gcc.dg/tree-ssa/pr79691.c: Ditto.
2017-04-15 Dominique d'Humieres <dominiq@lps.ens.fr> 2017-04-15 Dominique d'Humieres <dominiq@lps.ens.fr>
* gfortran.dg/deferred_character_3.f90: Fix dg directive. * gfortran.dg/deferred_character_3.f90: Fix dg-do directive.
* gfortran.dg/generic_29.f90: Likewise. * gfortran.dg/generic_29.f90: Likewise.
* gfortran.dg/goacc/multi-clause.f90: Likewise. * gfortran.dg/goacc/multi-clause.f90: Likewise.
* gfortran.dg/pr41922.f90: Likewise. * gfortran.dg/pr41922.f90: Likewise.
......
/* PR tree-optimization/54669 */ /* PR tree-optimization/54669 */
/* Testcase by Zdenek Sojka <zsojka@seznam.cz> */ /* Testcase by Zdenek Sojka <zsojka@seznam.cz> */
/* { dg-compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fexceptions -fnon-call-exceptions" } */ /* { dg-options "-O2 -fexceptions -fnon-call-exceptions" } */
int a[10]; int a[10];
......
/* PR target/78582. */ /* PR target/78582. */
/* { dg-options "-fprofile-generate" } */ /* { dg-options "-fprofile-generate" } */
/* { dg-compile } */ /* { dg-do compile } */
#include <setjmp.h> #include <setjmp.h>
......
/* PR middle-end/80020 - gcc confused about aligned_alloc argument order /* PR middle-end/80020 - gcc confused about aligned_alloc argument order
{ dg-compile } { dg-do compile }
{ dg-options "-O2 -Wall -fdump-tree-optimized" } */ { dg-options "-O2 -Wall -fdump-tree-optimized" } */
void sink (void*); void sink (void*);
......
/* This ICEd due to an incomplete fix for PR57993. */ /* This ICEd due to an incomplete fix for PR57993. */
/* { dg-compile } */ /* { dg-do compile } */
extern "C" extern "C"
{ {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Test case derived from the one submitted in the bug. It verifies Test case derived from the one submitted in the bug. It verifies
that the sprintf return value (or value range) optimization is not that the sprintf return value (or value range) optimization is not
performed for an unknown string. */ performed for an unknown string. */
/* { dg-compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -Wall -Werror -fdump-tree-optimized -fprintf-return-value" } */ /* { dg-options "-O2 -Wall -Werror -fdump-tree-optimized -fprintf-return-value" } */
#define INT_MAX __INT_MAX__ #define INT_MAX __INT_MAX__
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
gimple-ssa-sprintf.c:214 gimple-ssa-sprintf.c:214
Disable warnings to exercise code paths through the pass that may Disable warnings to exercise code paths through the pass that may
not be exercised when the -Wformat-overflow option is in effect. */ not be exercised when the -Wformat-overflow option is in effect. */
/* { dg-compile } /* { dg-do compile }
{ dg-options "-O2 -fdump-tree-optimized -w" } */ { dg-options "-O2 -fdump-tree-optimized -w" } */
......
/* PR middle-end/78476 - snprintf(0, 0, ...) with known arguments not /* PR middle-end/78476 - snprintf(0, 0, ...) with known arguments not
optimized away optimized away
{ dg-compile } { dg-do compile }
{ dg-options "-O2 -fdump-tree-optimized" } { dg-options "-O2 -fdump-tree-optimized" }
{ dg-require-effective-target int32plus } */ { dg-require-effective-target int32plus } */
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
A negative test complementing builtin-sprintf-5.c to verify that calls A negative test complementing builtin-sprintf-5.c to verify that calls
to the function that do not return a constant are not optimized away. to the function that do not return a constant are not optimized away.
Test also verifies that unknown directives prevent the optimization. Test also verifies that unknown directives prevent the optimization.
{ dg-compile } { dg-do compile }
{ dg-options "-O2 -Wformat -fdump-tree-optimized" } { dg-options "-O2 -Wformat -fdump-tree-optimized" }
{ dg-require-effective-target int32plus } */ { dg-require-effective-target int32plus } */
......
/* PR bootstrap/77676 - powerpc64 and powerpc64le stage2 bootstrap fail /* PR bootstrap/77676 - powerpc64 and powerpc64le stage2 bootstrap fail
Test case from comment 6 on the bug. */ Test case from comment 6 on the bug. */
/* { dg-compile } */ /* { dg-do compile } */
/* { dg-options "-Wall -Werror" } */ /* { dg-options "-Wall -Werror" } */
/* { dg-additional-options "-m32" { target { i?86-*-* x86_64-*-* } } } */
struct A struct A
{ {
......
/* PR tree-optimization/79327 - wrong code at -O2 and -fprintf-return-value /* PR tree-optimization/79327 - wrong code at -O2 and -fprintf-return-value
{ dg-compile } { dg-do compile }
{ dg-options "-O2 -fdump-tree-optimized" } */ { dg-options "-O2 -fdump-tree-optimized" } */
#define CAT(s, n) s ## n #define CAT(s, n) s ## n
......
/* PR tree-optimization/79352 - -fprintf-return-value doesn't handle /* PR tree-optimization/79352 - -fprintf-return-value doesn't handle
flexible-like array members properly flexible-like array members properly
{ dg-compile } { dg-do compile }
{ dg-options "-O2 -fdump-tree-optimized" } */ { dg-options "-O2 -fdump-tree-optimized" } */
struct A { int i; char a1[1]; }; struct A { int i; char a1[1]; };
......
/* PR tree-optimization/79376 - wrong lower bound with %s and non-constant /* PR tree-optimization/79376 - wrong lower bound with %s and non-constant
strings in -Wformat-overflow strings in -Wformat-overflow
{ dg-compile } { dg-do compile }
{ dg-options "-O2 -fdump-tree-optimized" } */ { dg-options "-O2 -fdump-tree-optimized" } */
#define CAT(s, n) s ## n #define CAT(s, n) s ## n
......
/* PR tree-optimization/79691 - -Wformat-truncation suppressed by /* PR tree-optimization/79691 - -Wformat-truncation suppressed by
(and only by) -Og (and only by) -Og
{ dg-compile } { dg-do compile }
{ dg-options "-Og -Wall -fdump-tree-optimized" } */ { dg-options "-Og -Wall -fdump-tree-optimized" } */
char d[2]; char d[2];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment