[C PATCH] Diagnose predefined identifiers in pedantic mode
Dodji Seketeli
dodji@seketeli.org
Tue Aug 12 06:17:00 GMT 2014
Marek Polacek <polacek@redhat.com> a écrit:
> diff --git gcc/testsuite/gcc.dg/concat.c gcc/testsuite/gcc.dg/concat.c
> index 0b9d6f6..e3bfd46 100644
> --- gcc/testsuite/gcc.dg/concat.c
> +++ gcc/testsuite/gcc.dg/concat.c
> @@ -1,6 +1,7 @@
> /* Copyright (C) 2001 Free Software Foundation, Inc. */
>
> /* { dg-do compile } */
> +/* { dg-options "" } */
Just for my own education, why this change?
> diff --git gcc/testsuite/gcc.dg/pr22458-1.c gcc/testsuite/gcc.dg/pr22458-1.c
> index 8b8032c..023fb21 100644
> --- gcc/testsuite/gcc.dg/pr22458-1.c
> +++ gcc/testsuite/gcc.dg/pr22458-1.c
> @@ -1,4 +1,6 @@
> /* { dg-error "expected declaration or statement" "" { target *-*-* } 0 } */
> +/* { dg-options "" } */
> +
Likewise.
> diff --git gcc/testsuite/gcc.dg/pr33676.c gcc/testsuite/gcc.dg/pr33676.c
> index 79c830e..c234470 100644
> --- gcc/testsuite/gcc.dg/pr33676.c
> +++ gcc/testsuite/gcc.dg/pr33676.c
> @@ -1,4 +1,5 @@
> /* { dg-do run } */
> +/* { dg-options "" } */
> /* { dg-options "-O0 -mtune=i386 -fomit-frame-pointer" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
Likewise.
Cheers.
--
Dodji
More information about the Gcc-patches
mailing list