* gcc.dg/
20050121-1.c: Fix broken dg directives.
* gcc.dg/analzyer/pr93382.c: Likewise.
* gcc.dg/autopar/pr68460.c: Likewise.
* gcc.dg/c90-fordecl-1.c: Likewise.
* gcc.dg/cpp/trad/funlike-5.c: Likewise.
* gcc.dg/debug/dwarf2/dwarf-dfp.c: Likewise.
* gcc.dg/debug/dwarf2/dwarf-float.c: Likewise.
* gcc.dg/lto/pr52634_0.c: Likewise.
* gcc.dg/pr32069.c: Likewise.
* gcc.dg/pr35445.c: Likewise.
* gcc.dg/pr40172-3.c: Likewise.
* gcc.dg/pr87347.c: Likewise.
* gcc.dg/pr88660.c: Likewise.
* gcc.dg/pr89689.c: Likewise.
* gcc.dg/sinatan-2.c: Likewise.
* gcc.dg/sinhatanh-1.c: Likewise.
* gcc.dg/sinhovercosh-1.c: Likewise.
* gcc.dg/tls/opt-9.c: Likewise.
* gcc.dg/torture/builtins-1.c: Likewise.
* gcc.dg/torture/pr51106-1.c: Likewise.
* gcc.dg/torture/pr51106-2.c: Likewise.
* gcc.dg/torture/pr80281.c: Likewise.
* gcc.dg/torture/pr92252.c: Likewise.
* gcc.dg/tree-ssa/pr79448-2.c: Likewise.
* gcc.dg/tree-ssa/pr79448.c: Likewise.
* gcc.dg/tree-ssa/pr92163.c: Likewise.
* gcc.dg/tree-ssa/reassoc-28.c: Likewise.
* gcc.dg/tree-ssa/upcast-1.c: Likewise.
* gcc.dg/two-types-6.c: Likewise.
* gcc.dg/ubsan/c-shift-1.c: Likewise.
* gcc.dg/var-expand3.c: Likewise.
* gcc.dg/vect/costmodel/x86_64/costmodel-pr30843.c: Likewise.
* gcc.dg/vect/pr71264.c: Likewise.
+2020-05-07 Manfred Schwarb <manfred99@gmx.ch>
+
+ * gcc.dg/20050121-1.c: Fix broken dg directives.
+ * gcc.dg/analzyer/pr93382.c: Likewise.
+ * gcc.dg/autopar/pr68460.c: Likewise.
+ * gcc.dg/c90-fordecl-1.c: Likewise.
+ * gcc.dg/cpp/trad/funlike-5.c: Likewise.
+ * gcc.dg/debug/dwarf2/dwarf-dfp.c: Likewise.
+ * gcc.dg/debug/dwarf2/dwarf-float.c: Likewise.
+ * gcc.dg/lto/pr52634_0.c: Likewise.
+ * gcc.dg/pr32069.c: Likewise.
+ * gcc.dg/pr35445.c: Likewise.
+ * gcc.dg/pr40172-3.c: Likewise.
+ * gcc.dg/pr87347.c: Likewise.
+ * gcc.dg/pr88660.c: Likewise.
+ * gcc.dg/pr89689.c: Likewise.
+ * gcc.dg/sinatan-2.c: Likewise.
+ * gcc.dg/sinhatanh-1.c: Likewise.
+ * gcc.dg/sinhovercosh-1.c: Likewise.
+ * gcc.dg/tls/opt-9.c: Likewise.
+ * gcc.dg/torture/builtins-1.c: Likewise.
+ * gcc.dg/torture/pr51106-1.c: Likewise.
+ * gcc.dg/torture/pr51106-2.c: Likewise.
+ * gcc.dg/torture/pr80281.c: Likewise.
+ * gcc.dg/torture/pr92252.c: Likewise.
+ * gcc.dg/tree-ssa/pr79448-2.c: Likewise.
+ * gcc.dg/tree-ssa/pr79448.c: Likewise.
+ * gcc.dg/tree-ssa/pr92163.c: Likewise.
+ * gcc.dg/tree-ssa/reassoc-28.c: Likewise.
+ * gcc.dg/tree-ssa/upcast-1.c: Likewise.
+ * gcc.dg/two-types-6.c: Likewise.
+ * gcc.dg/ubsan/c-shift-1.c: Likewise.
+ * gcc.dg/var-expand3.c: Likewise.
+ * gcc.dg/vect/costmodel/x86_64/costmodel-pr30843.c: Likewise.
+ * gcc.dg/vect/pr71264.c: Likewise.
+
2020-05-07 Marek Polacek <polacek@redhat.com>
* g++.dg/other/operator1.C: Adjust expected message.
/* I accidentally broke this while developing a patch for PR 13000,
and didn't notice since the testsuite didn't catch it -- ian */
-/* { dg-do-compile } */
+/* { dg-do compile } */
void foo()
{
int n1[1];
fread (n1, sizeof (n1[0]), 1, fp); /* { dg-message "'n1' gets an unchecked value here" } */
- idx = n1[0]; /* { dg-message "'idx' has an unchecked value here (from 'n1')" */
+ idx = n1[0]; /* { dg-message "'idx' has an unchecked value here (from 'n1')" } */
}
int arr[10];
-/* { dg-do "compile" } */
+/* { dg-do compile } */
/* { dg-options "-O -ftree-parallelize-loops=2 -ftree-vectorize -fno-tree-ch -fno-tree-dominator-opts" } */
void abort (void);
int j = 0;
for (int i = 1; i <= 10; i++) /* { dg-bogus "warning" "warning in place of error" } */
/* { dg-error "'for' loop initial declarations are only allowed in C99 or C11 mode" "declaration in for loop" { target *-*-* } .-1 } */
- /* { dg-message "note: use option '-std=c99', '-std=gnu99', '-std=c11' or '-std=gnu11' to compile your code" "note" { target *-*-* } .-2 }} */
+ /* { dg-message "note: use option '-std=c99', '-std=gnu99', '-std=c11' or '-std=gnu11' to compile your code" "note" { target *-*-* } .-2 } */
j += i;
}
/* Test function like macro. */
/* Contributed by Devang Patel <dpatel@apple.com> */
-/* {do-do preprocess } */
+/* { dg-do preprocess } */
/* { dg-options "-traditional-cpp -E -dD" } */
int __srget (char *);
#define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : (int)(*(p)->_p++))
/* Verify the DWARF encoding of C99 decimal floating point types. */
-/* { dg-do compile */
+/* { dg-do compile } */
/* { dg-require-effective-target dfp } */
/* { dg-options "-O0 -gdwarf -dA" } */
/* { dg-final { scan-assembler "0x10.*DW_AT_encoding" } } */
/* Verify the DWARF encoding of C99 floating point types. */
-/* { dg-do compile */
+/* { dg-do compile } */
/* { dg-options "-O0 -gdwarf -dA" } */
/* { dg-final { scan-assembler "0x4.*DW_AT_encoding" } } */
/* { dg-final { scan-assembler "0x4.*DW_AT_byte_size" } } */
/* { dg-require-weak "" } */
/* { dg-require-alias "" } */
/* { dg-lto-do link } */
-/* { dg-lto-options {{-flto -r -flto-partition=1to1}} */
+/* { dg-lto-options {-flto -r -flto-partition=1to1} } */
/* { dg-extra-ld-options "-flinker-output=nolto-rel" } */
extern int cfliteValueCallBacks;
void baz (int *);
-/* { dg-do-compile } */
+/* { dg-do compile } */
/* { dg-options "-O0 -fsplit-wide-types" } */
long long int segfault (long long int a, long long int b)
/* PR c/35445 */
-/* { dg-do "compile" } */
+/* { dg-do compile } */
extern int i;
extern int i; /* { dg-message "was here" } */
/* PR middle-end/40172 */
-/* { dg-do compile */
+/* { dg-do compile } */
/* { dg-xfail-if "" { "*-*-*" } } */
/* { dg-options "-Wall -W -Werror -Wlogical-op" } */
-/* {dg-do compile} */
+/* { dg-do compile } */
/* { dg-options "-Wabsolute-value" } */
int a;
-/* { dg-do-compile } */
+/* { dg-do compile } */
/* { dg-options "-O -Wunused-but-set-variable" } */
int main(void)
-/* { dg-do-compile } */
+/* { dg-do compile } */
/* { dg-options "-O2 -Warray-bounds" } */
#include <string.h>
}
/* There must be no calls to sin, cos, or atan */
-/* {dg-final { scan-tree-dump-not "sin " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "cos " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "atan " "optimized" }} */
-/* {dg-final { scan-tree-dump-not "sinf " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "cosf " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "atanf " "optimized" }} */
-/* {dg-final { scan-tree-dump-not "sinl " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "cosl " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "atanl " "optimized" }} */
+/* { dg-final { scan-tree-dump-not "sin " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "cos " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "atan " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "sinf " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "cosf " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "atanf " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "sinl " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "cosl " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "atanl " "optimized" } } */
}
/* There must be no calls to sinh, cosh, or atanh */
-/* {dg-final { scan-tree-dump-not "sinh " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "cosh " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "atanh " "optimized" }} */
-/* {dg-final { scan-tree-dump-not "sinfh " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "cosfh " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "atanfh " "optimized" }} */
-/* {dg-final { scan-tree-dump-not "sinlh " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "coslh " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "atanlh " "optimized" }} */
+/* { dg-final { scan-tree-dump-not "sinh " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "cosh " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "atanh " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "sinfh " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "cosfh " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "atanfh " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "sinlh " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "coslh " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "atanlh " "optimized" } } */
}
/* There must be no calls to sinh, cosh, or atanh */
-/* {dg-final { scan-tree-dump-not "sinh " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "cosh " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "sinfh " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "cosfh " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "sinlh " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "coslh " "optimized" } } */
-/* {dg-final { scan-tree-dump-times "tanh " "1" "optimized" }} */
-/* {dg-final { scan-tree-dump-times "tanhl " "1" "optimized" }} */
-/* {dg-final { scan-tree-dump-times "tanhf " "1" "optimized" }} */
+/* { dg-final { scan-tree-dump-not "sinh " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "cosh " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "sinfh " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "cosfh " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "sinlh " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "coslh " "optimized" } } */
+/* { dg-final { scan-tree-dump-times "tanh " "1" "optimized" } } */
+/* { dg-final { scan-tree-dump-times "tanhl " "1" "optimized" } } */
+/* { dg-final { scan-tree-dump-times "tanhf " "1" "optimized" } } */
/* PR 21412 */
-/* { dg-do compile */
+/* { dg-do compile } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-O2 -fPIC" } */
/* { dg-require-effective-target tls } */
/* { dg-do compile } */
-/* { dg-options "-fdump-rtl-expand-all" */
+/* { dg-options "-fdump-rtl-expand-all" } */
int isdigit(int c)
{
return c >= 0;
/* PR target/51106 */
-/* { dg-do "compile" } */
+/* { dg-do compile } */
/* { dg-skip-if "RTL error" { "*-*-*" } { "-fno-fat-lto-objects" } { "" } } */
int
/* PR target/51106 */
-/* { dg-do "compile" } */
+/* { dg-do compile } */
/* { dg-skip-if "RTL error" { "*-*-*" } { "-fno-fat-lto-objects" } { "" } } */
/* { dg-skip-if "" { powerpc-ibm-aix* } } */
-/* { dg-run } */
+/* { dg-do run } */
/* { dg-require-effective-target int32plus } */
int
-/* { do-do compile } */
+/* { dg-do compile } */
/* { dg-additional-options "-ftree-vectorize" } */
long int ar;
char*
fill (char *buf, size_t len, int count)
{
- if (snprintf (buf, len, "%s: %d", gettext ("count"), count) >= len) /* { dg-bogus "directive output of 2 bytes causes result to exceed .INT_MAX." */
+ if (snprintf (buf, len, "%s: %d", gettext ("count"), count) >= len) /* { dg-bogus "directive output of 2 bytes causes result to exceed .INT_MAX." } */
return 0;
return buf;
char*
fill (char *buf, size_t len, int count)
{
- if (snprintf (buf, len, "%s: %d", gettext ("count"), count) >= len) /* { dg-bogus "directive output of 2 bytes causes result to exceed .INT_MAX." */
+ if (snprintf (buf, len, "%s: %d", gettext ("count"), count) >= len) /* { dg-bogus "directive output of 2 bytes causes result to exceed .INT_MAX." } */
return 0;
return buf;
-/* { dg-do "compile" } */
+/* { dg-do compile } */
/* { dg-require-effective-target fopenacc } */
/* { dg-options "-O2 -fexceptions -fnon-call-exceptions -fopenacc" } */
-/* { dg-do run} */
+/* { dg-do run } */
/* { dg-options "-O2" } */
#define LENGTH 4
-/* { do-go compile } */
+/* { dg-do compile } */
/* { dg-options "-fdump-tree-gimple" } */
typedef struct { int i; } Foo;
/* { dg-options "-std=gnu89" } // suppress default -pedantic-errors */
struct s {
- struct f {} /* dg-warning "does not declare anything" } */
+ struct f {} /* { dg-warning "does not declare anything" } */
struct g {} x; /* { dg-error "expected ';', identifier or " } */
};
-/* { dg-do compile} */
+/* { dg-do compile } */
/* { dg-options "-fsanitize=shift -w" } */
/* { dg-shouldfail "ubsan" } */
-/* { dg-do run { target { powerpc*-*-* && vmx_hw } } }} */
+/* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
/* { dg-options "-O2 -funroll-loops -ffast-math -fvariable-expansion-in-unroller -maltivec -fdump-rtl-loop2_unroll" } */
#include "altivec.h"
}
}
-/* { dg-final { scan-tree-dump-times "vectorization not profitable" 1 "vect" { target vect_interleave
-} } } */
-
+/* { dg-final { scan-tree-dump-times "vectorization not profitable" 1 "vect" { target vect_interleave } } } */
}
}
-/* { dg-final { scan-tree-dump "vectorized 1 loops in function" "vect" {
-xfail sparc*-*-* } } } */
+/* { dg-final { scan-tree-dump "vectorized 1 loops in function" "vect" { xfail sparc*-*-* } } } */
+