aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2005-04-08 22:53:31 +0000
committerMike Stump <mrs@gcc.gnu.org>2005-04-08 22:53:31 +0000
commitad6aaeb698a79ea8ad25ac585a1bc688d91d6ced (patch)
tree66088fd8fc1b75ddca53ad15562130ac8d21898c /gcc
parentb5969637ac29cca4c4012af5311056e7ac398066 (diff)
downloadgcc-ad6aaeb698a79ea8ad25ac585a1bc688d91d6ced.zip
gcc-ad6aaeb698a79ea8ad25ac585a1bc688d91d6ced.tar.gz
gcc-ad6aaeb698a79ea8ad25ac585a1bc688d91d6ced.tar.bz2
* config/darwin.c (indirect_data): Fix typo in strncmp logic.
From-SVN: r97866
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/darwin.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f2e639c..470e221 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2005-04-08 Mike Stump <mrs@apple.com>
+
+ * config/darwin.c (indirect_data): Fix typo in strncmp logic.
+
2005-04-08 Kazu Hirata <kazu@cs.umass.edu>
* c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index e6f41a2..0b2ddc3 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -169,7 +169,7 @@ indirect_data (rtx sym_ref)
lprefix = (((name[0] == '*' || name[0] == '&')
&& (name[1] == 'L' || (name[1] == '"' && name[2] == 'L')))
- || (strncmp (name, "_OBJC_", 6)));
+ || (strncmp (name, "_OBJC_", 6) == 0));
return ! lprefix;
}