aboutsummaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>2002-01-03 19:34:16 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2002-01-03 19:34:16 +0000
commit518c131126e5829ed7e911b3421327ebef4dfb00 (patch)
treeaf3c1c9f4fc3b4d8f7e71c43435ffb51b944061b /gcc/collect2.c
parent01b0d4b85a401d257d9fe091e6647800b2ccbf00 (diff)
downloadgcc-518c131126e5829ed7e911b3421327ebef4dfb00.zip
gcc-518c131126e5829ed7e911b3421327ebef4dfb00.tar.gz
gcc-518c131126e5829ed7e911b3421327ebef4dfb00.tar.bz2
* collect2.c (main): Use strcmp when testing for "-shared".
From-SVN: r48520
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 96370e1..23e4606 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -1,7 +1,7 @@
/* Collect static initialization info into data structures that can be
traversed by C++ initialization and finalization routines.
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998,
- 1999, 2000, 2001 Free Software Foundation, Inc.
+ 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
Contributed by Chris Smith (csmith@convex.com).
Heavily modified by Michael Meissner (meissner@cygnus.com),
Per Bothner (bothner@cygnus.com), and John Gilmore (gnu@cygnus.com).
@@ -1080,7 +1080,7 @@ main (argc, argv)
*c_ptr++ = obstack_copy0 (&permanent_obstack, q, strlen (q));
if (strcmp (q, "-EL") == 0 || strcmp (q, "-EB") == 0)
*c_ptr++ = obstack_copy0 (&permanent_obstack, q, strlen (q));
- if (strncmp (q, "-shared", sizeof ("-shared") - 1) == 0)
+ if (strcmp (q, "-shared") == 0)
shared_obj = 1;
if (*q == '-' && q[1] == 'B')
{