aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/cpp.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2009-06-19 15:25:16 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2009-06-19 15:25:16 +0000
commit88eeff6f5a1347dc09de33c26a68648c4dea7f80 (patch)
treefc52468ac72e4ed7eef097489864a842fdb17db4 /gcc/fortran/cpp.c
parent28a876a42966c74582188b6c124c790f0b724535 (diff)
downloadgcc-88eeff6f5a1347dc09de33c26a68648c4dea7f80.zip
gcc-88eeff6f5a1347dc09de33c26a68648c4dea7f80.tar.gz
gcc-88eeff6f5a1347dc09de33c26a68648c4dea7f80.tar.bz2
c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global variable with an anonymous type.
./: * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global variable with an anonymous type. fortran/: * cpp.c (struct gfc_cpp_option_data): Give this struct, used for the global variable gfc_cpp_option, a name. testsuite/: * gcc.dg/Wcxx-compat-16.c: New testcase. From-SVN: r148708
Diffstat (limited to 'gcc/fortran/cpp.c')
-rw-r--r--gcc/fortran/cpp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/cpp.c b/gcc/fortran/cpp.c
index 9187bed..ec8bb59 100644
--- a/gcc/fortran/cpp.c
+++ b/gcc/fortran/cpp.c
@@ -66,7 +66,7 @@ typedef struct gfc_cpp_macro_queue
} gfc_cpp_macro_queue;
static gfc_cpp_macro_queue *cpp_define_queue, *cpp_undefine_queue;
-struct
+struct gfc_cpp_option_data
{
/* Argument of -cpp, implied by SPEC;
if NULL, preprocessing disabled. */