*** empty log message ***
authorMike Stump <mrs@gcc.gnu.org>
Mon, 29 Jun 1992 19:15:14 +0000 (19:15 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Mon, 29 Jun 1992 19:15:14 +0000 (19:15 +0000)
From-SVN: r1341

gcc/collect2.c
gcc/dwarfout.c

index 7b5feb23e9f1f4c049aeb66ee5df94821613cef5..a04022267ed1e7ebafd42ab409ef308929f04ef2 100644 (file)
@@ -198,6 +198,9 @@ static void  choose_temp_base ();
 
 generic *xcalloc ();
 generic *xmalloc ();
+
+extern char *index ();
+extern char *rindex ();
 \f
 char *
 my_strerror (e)
@@ -483,7 +486,7 @@ main (argc, argv)
 
   if (prefix == (char *)0)
     {
-      p = strrchr (argv[0], '/');
+      p = rindex (argv[0], '/');
       if (p != (char *)0)
        {
          prefix = argv[0];
@@ -676,7 +679,7 @@ main (argc, argv)
            }
 
       else if (first_file
-              && (p = strrchr (arg, '.')) != (char *)0
+              && (p = rindex (arg, '.')) != (char *)0
               && strcmp (p, ".o") == 0)
        {
          first_file = 0;
index 3ab4c7a4d7a94092b3a121c8c61c097154f9c2fa..ab74207eb2e1dc3b64ade3221fe9c33ed8260ebc 100644 (file)
@@ -57,11 +57,13 @@ extern time_t time ();
 #include <string.h>
 #else
 #include <strings.h>
-#define strrchr rindex
 #endif
 
 extern char *getpwd ();
 
+extern char *index ();
+extern char *rindex ();
+
 /* IMPORTANT NOTE: Please see the file README.DWARF for important details
    regarding the GNU implementation of Dwarf.  */
 
@@ -992,7 +994,7 @@ dwarf_fund_type_name (ft)
 
    The current Dwarf draft specification calls for Dwarf fundamental types
    to accurately reflect the fact that a given type was either a "plain"
-   integral type or an explicitly "signed" integral type.  Unfortuantely,
+   integral type or an explicitly "signed" integral type.  Unfortunately,
    we can't always do this, because GCC may already have thrown away the
    information about the precise way in which the type was originally
    specified, as in:
@@ -1569,7 +1571,7 @@ data_member_location_attribute (decl)
     abort ();
 
   /* The bit position given by DECL_FIELD_BITPOS could be non-constant
-     in the case where one or more variable sized members preceeded this
+     in the case where one or more variable sized members preceded this
      member in the containing struct type.  We could probably correctly
      handle this case someday, by it's too complicated to deal with at
      the moment (and probably too rare to worry about), so just punt on
@@ -1794,7 +1796,7 @@ location_or_const_value_attribute (decl)
   /* Existing Dwarf debuggers need and expect the location descriptors for
      formal parameters to reflect either the place where the parameters get
      passed (if they are passed on the stack and in memory) or else the
-     (preserved) registers which the paramaters get copied to during the
+     (preserved) registers which the parameters get copied to during the
      function prologue.
 
      At least this is the way things are for most common CISC machines
@@ -2132,7 +2134,7 @@ bit_offset_attribute (decl)
   assert (type);                               /* Must be a bit field.  */
 
   /* The bit position given by DECL_FIELD_BITPOS could be non-constant
-     in the case where one or more variable sized members preceeded this
+     in the case where one or more variable sized members preceded this
      member in the containing struct type.  We could probably correctly
      handle this case someday, by it's too complicated to deal with at
      the moment, so just punt on the whole AT_bit_offset attribute for
@@ -4486,7 +4488,7 @@ dwarfout_line (filename, line)
         }
 
       {
-        register char *tail = strrchr (filename, '/');
+        register char *tail = rindex (filename, '/');
 
         if (tail != NULL)
           filename = tail;