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
27605cbe
Commit
27605cbe
authored
Jul 13, 2004
by
Per Bothner
Committed by
Per Bothner
Jul 13, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* collect2.c (main): Handle --no-demangle and --demangle flags.
From-SVN: r84631
parent
56cf8686
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
2 deletions
+37
-2
gcc/ChangeLog
+4
-0
gcc/collect2.c
+33
-2
No files found.
gcc/ChangeLog
View file @
27605cbe
2004-07-13 Per Bothner <per@bothner.com>
* collect2.c (main): Handle --no-demangle and --demangle flags.
2004-07-13 Sebastian Pop <pop@cri.ensmp.fr>
* Makefile.in (OBJS-common): Add tree-data-ref.o.
...
...
gcc/collect2.c
View file @
27605cbe
...
...
@@ -185,6 +185,7 @@ enum pass {
int
vflag
;
/* true if -v */
static
int
rflag
;
/* true if -r */
static
int
strip_flag
;
/* true if -s */
static
const
char
*
demangle_flag
;
#ifdef COLLECT_EXPORT_LIST
static
int
export_flag
;
/* true if -bE */
static
int
aix64_flag
;
/* true if -b64 */
...
...
@@ -1070,8 +1071,10 @@ main (int argc, char **argv)
first_file
=
1
;
#ifdef HAVE_LD_DEMANGLE
if
(
!
no_demangle
)
*
ld1
++
=
*
ld2
++
=
"--demangle"
;
if
(
!
demangle_flag
&&
!
no_demangle
)
demangle_flag
=
"--demangle"
;
if
(
demangle_flag
)
*
ld1
++
=
*
ld2
++
=
demangle_flag
;
#endif
while
((
arg
=
*++
argv
)
!=
(
char
*
)
0
)
{
...
...
@@ -1167,6 +1170,34 @@ main (int argc, char **argv)
if
(
arg
[
2
]
==
'\0'
)
vflag
=
1
;
break
;
case
'-'
:
if
(
strcmp
(
arg
,
"--no-demangle"
)
==
0
)
{
demangle_flag
=
arg
;
no_demangle
=
1
;
ld1
--
;
ld2
--
;
}
else
if
(
strncmp
(
arg
,
"--demangle"
,
10
)
==
0
)
{
demangle_flag
=
arg
;
no_demangle
=
0
;
#ifndef HAVE_LD_DEMANGLE
if
(
arg
[
10
]
==
'='
)
{
enum
demangling_styles
style
=
cplus_demangle_name_to_style
(
arg
+
11
);
if
(
style
==
unknown_demangling
)
error
(
"unknown demangling style '%s'"
,
arg
+
11
);
else
current_demangling_style
=
style
;
}
#endif
ld1
--
;
ld2
--
;
}
break
;
}
}
else
if
((
p
=
strrchr
(
arg
,
'.'
))
!=
(
char
*
)
0
...
...
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