summaryrefslogtreecommitdiff
path: root/gcc/read-rtl.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-29 11:23:11 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-29 11:23:11 +0000
commit192342fa546d9c9172c0b59d3f239aa8657b6642 (patch)
tree2b3c139cd4573e9884017982518d64d9dab2ba95 /gcc/read-rtl.c
parent5f97fb2262e60349d86d272652d046bb6b176f52 (diff)
downloadgcc-192342fa546d9c9172c0b59d3f239aa8657b6642.tar.gz
* read-rtl.c (apply_macro_to_string): Replace index with strchr.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88283 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/read-rtl.c')
-rw-r--r--gcc/read-rtl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c
index 2cd4e22a4c1..c9a3fee81dd 100644
--- a/gcc/read-rtl.c
+++ b/gcc/read-rtl.c
@@ -245,13 +245,13 @@ apply_macro_to_string (const char *string, struct mapping *macro, int value)
return string;
base = p = copy = ASTRDUP (string);
- while ((start = index (p, '<')) && (end = index (start, '>')))
+ while ((start = strchr (p, '<')) && (end = strchr (start, '>')))
{
p = start + 1;
/* If there's a "macro:" prefix, check whether the macro name matches.
Set ATTR to the start of the attribute name. */
- attr = index (p, ':');
+ attr = strchr (p, ':');
if (attr == 0 || attr > end)
attr = p;
else