diff options
author | Mike Stump <mrs@apple.com> | 2005-04-08 22:53:31 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 2005-04-08 22:53:31 +0000 |
commit | ad6aaeb698a79ea8ad25ac585a1bc688d91d6ced (patch) | |
tree | 66088fd8fc1b75ddca53ad15562130ac8d21898c /gcc | |
parent | b5969637ac29cca4c4012af5311056e7ac398066 (diff) | |
download | gcc-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/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/darwin.c | 2 |
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; } |