aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron W. LaFramboise <aaronavay62@aaronwl.com>2004-09-29 05:23:11 -0600
committerRichard Sandiford <rsandifo@gcc.gnu.org>2004-09-29 11:23:11 +0000
commitb4f6904019599d3327bed05a65b9bebf458af635 (patch)
tree2b3c139cd4573e9884017982518d64d9dab2ba95
parent58c8adc12700ffb0a3fe9406863c869afe67b99d (diff)
downloadgcc-b4f6904019599d3327bed05a65b9bebf458af635.zip
gcc-b4f6904019599d3327bed05a65b9bebf458af635.tar.gz
gcc-b4f6904019599d3327bed05a65b9bebf458af635.tar.bz2
* read-rtl.c (apply_macro_to_string): Replace index with strchr.
From-SVN: r88283
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/read-rtl.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e497413..aab2dc0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2004-09-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
+
+ * read-rtl.c (apply_macro_to_string): Replace index with strchr.
+
2004-09-29 Jakub Jelinek <jakub@redhat.com>
* tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c
index 2cd4e22..c9a3fee 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