]> gcc.gnu.org Git - gcc.git/commitdiff
* read-rtl.c (apply_macro_to_string): Replace index with strchr.
authorAaron W. LaFramboise <aaronavay62@aaronwl.com>
Wed, 29 Sep 2004 11:23:11 +0000 (05:23 -0600)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 29 Sep 2004 11:23:11 +0000 (11:23 +0000)
From-SVN: r88283

gcc/ChangeLog
gcc/read-rtl.c

index e4974136b1ed2c03bde002846a681b9a0538ebdf..aab2dc006a1f16781e4692f22e14afe7fbec5078 100644 (file)
@@ -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
index 2cd4e22a4c1d9b17d3c1c9028a8415f08d3adea5..c9a3fee81dd11c82c684117ae311d21d5c7b7cea 100644 (file)
@@ -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
This page took 0.076568 seconds and 5 git commands to generate.