Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
518c1311
Commit
518c1311
authored
Jan 03, 2002
by
John David Anglin
Committed by
John David Anglin
Jan 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* collect2.c (main): Use strcmp when testing for "-shared".
From-SVN: r48520
parent
01b0d4b8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
gcc/ChangeLog
+4
-0
gcc/collect2.c
+2
-2
No files found.
gcc/ChangeLog
View file @
518c1311
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
>
*
cppmacro
.
c
:
Don
'
t
include
intl
.
h
.
Update
comments
.
...
...
gcc/collect2.c
View file @
518c1311
/* 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
(
str
ncmp
(
q
,
"-shared"
,
sizeof
(
"-shared"
)
-
1
)
==
0
)
if
(
str
cmp
(
q
,
"-shared"
)
==
0
)
shared_obj
=
1
;
if
(
*
q
==
'-'
&&
q
[
1
]
==
'B'
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment