aboutsummaryrefslogtreecommitdiff
path: root/gcc/cccp.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@twinsun.com>1997-11-14 01:33:27 +0000
committerJeff Law <law@gcc.gnu.org>1997-11-13 18:33:27 -0700
commite7cbb6b66e279adaa5bba51256264659a474d37f (patch)
treecc12ecd2a5bda973abc3317825e928f961c7b300 /gcc/cccp.c
parent9f29ca789b773476c2a756542d0a0771edb2c047 (diff)
downloadgcc-e7cbb6b66e279adaa5bba51256264659a474d37f.zip
gcc-e7cbb6b66e279adaa5bba51256264659a474d37f.tar.gz
gcc-e7cbb6b66e279adaa5bba51256264659a474d37f.tar.bz2
cccp.c, cpplib.c (compare_defs): Don't complain about arg name respellings unless pedantic.
* cccp.c, cpplib.c (compare_defs): Don't complain about arg name respellings unless pedantic. * cpplib.c (compare_defs): Accept pfile as new arg. All callers changed. Bring over from the FSF. From-SVN: r16474
Diffstat (limited to 'gcc/cccp.c')
-rw-r--r--gcc/cccp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index 2a92acb..7db33d0 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -5811,7 +5811,8 @@ compare_defs (d1, d2)
if (d1->nargs != d2->nargs)
return 1;
- if (strcmp ((char *)d1->args.argnames, (char *)d2->args.argnames))
+ if (pedantic
+ && strcmp ((char *)d1->args.argnames, (char *)d2->args.argnames))
return 1;
for (a1 = d1->pattern, a2 = d2->pattern; a1 && a2;
a1 = a1->next, a2 = a2->next) {