aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1998-08-19 13:07:52 +0000
committerJim Wilson <wilson@gcc.gnu.org>1998-08-19 06:07:52 -0700
commitb77623bc5889b219981c7754add2b177a1a73b47 (patch)
tree2d7c8f0c90987dcc368fbb4268eaaaace3b9a414
parent9b559a2720cc45cd29e975aebe4688fda727c66d (diff)
downloadgcc-b77623bc5889b219981c7754add2b177a1a73b47.zip
gcc-b77623bc5889b219981c7754add2b177a1a73b47.tar.gz
gcc-b77623bc5889b219981c7754add2b177a1a73b47.tar.bz2
Fix SunOS4 build failure.
* collect2.c (extract_init_priority): Use atoi instead of strtoul. From-SVN: r21853
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/collect2.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 90a855d..5225264 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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".
diff --git a/gcc/collect2.c b/gcc/collect2.c
index c9b471d..cc0837a 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -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.