Fix SunOS4 build failure.
authorJason Merrill <jason@yorick.cygnus.com>
Wed, 19 Aug 1998 13:07:52 +0000 (13:07 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 19 Aug 1998 13:07:52 +0000 (06:07 -0700)
* collect2.c (extract_init_priority): Use atoi instead of strtoul.

From-SVN: r21853

gcc/ChangeLog
gcc/collect2.c

index 90a855d1fca133ff39c56abe464c960553d4cf25..522526495bec60210445349b403061827dd04978 100644 (file)
@@ -1,3 +1,7 @@
+Wed Aug 19 13:06:47 1998  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * collect2.c (extract_init_priority): Use atoi instead of strtoul.
+
 Wed Aug 19 13:51:35 1998  Hans-Peter Nilsson  <hp@axis.se>
 
        * tm.texi (Misc): Fix typo "teh".
index c9b471d4ba818b83c1eb9fb32fef5d008d14c951..cc0837aaf78f2f5bbe2f686178c445a3fbc2f51d 100644 (file)
@@ -1753,7 +1753,7 @@ extract_init_priority (name)
   pos += 10; /* strlen ("GLOBAL__X_") */
 
   /* Extract init_p number from ctor/dtor name. */
-  return strtoul(name + pos, NULL, 10);
+  return atoi (name + pos);
 }
 
 /* Insertion sort the ids from ctor/dtor list HEAD_PTR in descending order.