aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppmacro.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-11-23 07:50:42 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-11-23 07:50:42 +0000
commitf26311c174e96b624eac4eb8b54ef9ca6203e8b5 (patch)
tree10016d04f01992816df554bf3a61199c3f6ad534 /gcc/cppmacro.c
parent8d49efb01763a82caaad601b504151b1756639cb (diff)
downloadgcc-f26311c174e96b624eac4eb8b54ef9ca6203e8b5.zip
gcc-f26311c174e96b624eac4eb8b54ef9ca6203e8b5.tar.gz
gcc-f26311c174e96b624eac4eb8b54ef9ca6203e8b5.tar.bz2
cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
* cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic. * gcc.dg/cpp/mi6.c, gcc.dg/cpp/redef2.c: Update. From-SVN: r47282
Diffstat (limited to 'gcc/cppmacro.c')
-rw-r--r--gcc/cppmacro.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c
index 17dfe15..403920c 100644
--- a/gcc/cppmacro.c
+++ b/gcc/cppmacro.c
@@ -1124,9 +1124,6 @@ warn_of_redefinition (pfile, node, macro2)
if (node->flags & NODE_WARN)
return 1;
- if (! CPP_PEDANTIC (pfile))
- return 0;
-
/* Redefinition of a macro is allowed if and only if the old and new
definitions are the same. (6.10.3 paragraph 2). */
macro1 = node->value.macro;