summaryrefslogtreecommitdiff
path: root/gcc/cppmacro.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-23 07:50:42 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-23 07:50:42 +0000
commit5eb421aa2146efde7ff42e4364a08f5fdd90735e (patch)
tree10016d04f01992816df554bf3a61199c3f6ad534 /gcc/cppmacro.c
parent27c4c5c0d27bae150287a587caeb9296552eb44f (diff)
downloadgcc-5eb421aa2146efde7ff42e4364a08f5fdd90735e.tar.gz
* cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
* gcc.dg/cpp/mi6.c, gcc.dg/cpp/redef2.c: Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47282 138bc75d-0d04-0410-961f-82ee72b054a4
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 17dfe1566b0..403920c03a3 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;