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
145f71b5
Commit
145f71b5
authored
Jan 11, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler: Fix names for hash/equality functions for unnamed types.
From-SVN: r183098
parent
58ef7568
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
gcc/go/gofrontend/types.cc
+11
-1
No files found.
gcc/go/gofrontend/types.cc
View file @
145f71b5
...
...
@@ -1504,7 +1504,17 @@ Type::specific_type_functions(Gogo* gogo, Named_type* name,
std
::
string
base_name
;
if
(
name
==
NULL
)
base_name
=
gogo
->
pack_hidden_name
(
this
->
mangled_name
(
gogo
),
false
);
{
// Mangled names can have '.' if they happen to refer to named
// types in some way. That's fine if this is simply a named
// type, but otherwise it will confuse the code that builds
// function identifiers. Remove '.' when necessary.
base_name
=
this
->
mangled_name
(
gogo
);
size_t
i
;
while
((
i
=
base_name
.
find
(
'.'
))
!=
std
::
string
::
npos
)
base_name
[
i
]
=
'$'
;
base_name
=
gogo
->
pack_hidden_name
(
base_name
,
false
);
}
else
{
// This name is already hidden or not as appropriate.
...
...
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