Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/gcc Correct comparison length botch in `deprecated ...
details: https://anonhg.NetBSD.org/src/rev/efc4ea8fe13a
branches: trunk
changeset: 471759:efc4ea8fe13a
user: kleink <kleink%NetBSD.org@localhost>
date: Sat Apr 10 15:14:11 1999 +0000
description:
Correct comparison length botch in `deprecated unix' symbol check;
fixes PR bin/7343.
diffstat:
gnu/dist/gcc/cccp.c | 2 +-
gnu/dist/gcc/cpphash.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 376e4de268df -r efc4ea8fe13a gnu/dist/gcc/cccp.c
--- a/gnu/dist/gcc/cccp.c Sat Apr 10 15:10:56 1999 +0000
+++ b/gnu/dist/gcc/cccp.c Sat Apr 10 15:14:11 1999 +0000
@@ -9579,7 +9579,7 @@
bucket = bucket->next;
}
/* Lookups pass no hashcode. #define passes one. Look for no hashcode. */
- if (islookup && !strncmp(name, "unix", len) && !warned_unix) {
+ if (islookup && len == 4 && bcmp(name, "unix", 4) == 0 && !warned_unix) {
warned_unix++;
warning("deprecated symbol \"unix\" is no longer predefined");
}
diff -r 376e4de268df -r efc4ea8fe13a gnu/dist/gcc/cpphash.c
--- a/gnu/dist/gcc/cpphash.c Sat Apr 10 15:10:56 1999 +0000
+++ b/gnu/dist/gcc/cpphash.c Sat Apr 10 15:14:11 1999 +0000
@@ -86,7 +86,7 @@
bucket = bucket->next;
}
/* Lookups pass no hashcode. #define passes one. Look for no hashcode. */
- if (islookup && !strncmp(name, "unix", len) && !warned_unix) {
+ if (islookup && len == 4 && bcmp(name, "unix", 4) == 0 && !warned_unix) {
warned_unix++;
warning("deprecated symbol \"unix\" is no longer predefined");
}
Home |
Main Index |
Thread Index |
Old Index