Commit 518c1311 by John David Anglin Committed by John David Anglin

* collect2.c (main): Use strcmp when testing for "-shared".

From-SVN: r48520
parent 01b0d4b8
2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
* collect2.c (main): Use strcmp when testing for "-shared".
2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk> 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
* cppmacro.c: Don't include intl.h. Update comments. * cppmacro.c: Don't include intl.h. Update comments.
......
/* Collect static initialization info into data structures that can be /* Collect static initialization info into data structures that can be
traversed by C++ initialization and finalization routines. traversed by C++ initialization and finalization routines.
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 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). Contributed by Chris Smith (csmith@convex.com).
Heavily modified by Michael Meissner (meissner@cygnus.com), Heavily modified by Michael Meissner (meissner@cygnus.com),
Per Bothner (bothner@cygnus.com), and John Gilmore (gnu@cygnus.com). Per Bothner (bothner@cygnus.com), and John Gilmore (gnu@cygnus.com).
...@@ -1080,7 +1080,7 @@ main (argc, argv) ...@@ -1080,7 +1080,7 @@ main (argc, argv)
*c_ptr++ = obstack_copy0 (&permanent_obstack, q, strlen (q)); *c_ptr++ = obstack_copy0 (&permanent_obstack, q, strlen (q));
if (strcmp (q, "-EL") == 0 || strcmp (q, "-EB") == 0) if (strcmp (q, "-EL") == 0 || strcmp (q, "-EB") == 0)
*c_ptr++ = obstack_copy0 (&permanent_obstack, q, strlen (q)); *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; shared_obj = 1;
if (*q == '-' && q[1] == 'B') if (*q == '-' && q[1] == 'B')
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment