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
This commit is contained in:
Uros Bizjak 2017-04-15 22:07:47 +02:00
parent 35cfdb17fa
commit 604f37cde8
14 changed files with 30 additions and 15 deletions

View File

@ -1,6 +1,22 @@
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>
* 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/goacc/multi-clause.f90: Likewise.
* gfortran.dg/pr41922.f90: Likewise.

View File

@ -1,7 +1,7 @@
/* PR tree-optimization/54669 */
/* Testcase by Zdenek Sojka <zsojka@seznam.cz> */
/* { dg-compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fexceptions -fnon-call-exceptions" } */
int a[10];

View File

@ -1,6 +1,6 @@
/* PR target/78582. */
/* { dg-options "-fprofile-generate" } */
/* { dg-compile } */
/* { dg-do compile } */
#include <setjmp.h>

View File

@ -1,5 +1,5 @@
/* PR middle-end/80020 - gcc confused about aligned_alloc argument order
{ dg-compile }
{ dg-do compile }
{ dg-options "-O2 -Wall -fdump-tree-optimized" } */
void sink (void*);

View File

@ -1,5 +1,5 @@
/* This ICEd due to an incomplete fix for PR57993. */
/* { dg-compile } */
/* { dg-do compile } */
extern "C"
{

View File

@ -2,7 +2,7 @@
Test case derived from the one submitted in the bug. It verifies
that the sprintf return value (or value range) optimization is not
performed for an unknown string. */
/* { dg-compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -Wall -Werror -fdump-tree-optimized -fprintf-return-value" } */
#define INT_MAX __INT_MAX__

View File

@ -2,7 +2,7 @@
gimple-ssa-sprintf.c:214
Disable warnings to exercise code paths through the pass that may
not be exercised when the -Wformat-overflow option is in effect. */
/* { dg-compile }
/* { dg-do compile }
{ dg-options "-O2 -fdump-tree-optimized -w" } */

View File

@ -1,6 +1,6 @@
/* PR middle-end/78476 - snprintf(0, 0, ...) with known arguments not
optimized away
{ dg-compile }
{ dg-do compile }
{ dg-options "-O2 -fdump-tree-optimized" }
{ dg-require-effective-target int32plus } */

View File

@ -4,7 +4,7 @@
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.
Test also verifies that unknown directives prevent the optimization.
{ dg-compile }
{ dg-do compile }
{ dg-options "-O2 -Wformat -fdump-tree-optimized" }
{ dg-require-effective-target int32plus } */

View File

@ -1,8 +1,7 @@
/* PR bootstrap/77676 - powerpc64 and powerpc64le stage2 bootstrap fail
Test case from comment 6 on the bug. */
/* { dg-compile } */
/* { dg-do compile } */
/* { dg-options "-Wall -Werror" } */
/* { dg-additional-options "-m32" { target { i?86-*-* x86_64-*-* } } } */
struct A
{

View File

@ -1,5 +1,5 @@
/* PR tree-optimization/79327 - wrong code at -O2 and -fprintf-return-value
{ dg-compile }
{ dg-do compile }
{ dg-options "-O2 -fdump-tree-optimized" } */
#define CAT(s, n) s ## n

View File

@ -1,6 +1,6 @@
/* PR tree-optimization/79352 - -fprintf-return-value doesn't handle
flexible-like array members properly
{ dg-compile }
{ dg-do compile }
{ dg-options "-O2 -fdump-tree-optimized" } */
struct A { int i; char a1[1]; };

View File

@ -1,6 +1,6 @@
/* PR tree-optimization/79376 - wrong lower bound with %s and non-constant
strings in -Wformat-overflow
{ dg-compile }
{ dg-do compile }
{ dg-options "-O2 -fdump-tree-optimized" } */
#define CAT(s, n) s ## n

View File

@ -1,7 +1,7 @@
/* PR tree-optimization/79691 - -Wformat-truncation suppressed by
(and only by) -Og
{ dg-compile }
{ dg-do compile }
{ dg-options "-Og -Wall -fdump-tree-optimized" } */
char d[2];