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
ab038a80
Commit
ab038a80
authored
Mar 05, 2015
by
Jan Hubicka
Committed by
Jan Hubicka
Mar 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
From-SVN: r221226
parent
34349d55
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
gcc/ChangeLog
+4
-0
gcc/ipa-icf.c
+12
-0
No files found.
gcc/ChangeLog
View file @
ab038a80
2015-03-05 Jan Hubicka <hubicka@ucw.cz>
* ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
PR target/64342
...
...
gcc/ipa-icf.c
View file @
ab038a80
...
...
@@ -1480,6 +1480,18 @@ sem_variable::equals_wpa (sem_item *item,
ref
->
referred
,
ref2
->
referred
,
ref
->
address_matters_p
()))
return
false
;
/* DECL_FINAL_P flag on methods referred by virtual tables is used
to decide on completeness possible_polymorphic_call_targets lists
and therefore it must match. */
if
((
DECL_VIRTUAL_P
(
decl
)
||
DECL_VIRTUAL_P
(
item
->
decl
))
&&
(
DECL_VIRTUAL_P
(
ref
->
referred
->
decl
)
||
DECL_VIRTUAL_P
(
ref2
->
referred
->
decl
))
&&
((
DECL_VIRTUAL_P
(
ref
->
referred
->
decl
)
!=
DECL_VIRTUAL_P
(
ref2
->
referred
->
decl
))
||
(
DECL_FINAL_P
(
ref
->
referred
->
decl
)
!=
DECL_FINAL_P
(
ref2
->
referred
->
decl
))))
return
return_false_with_msg
(
"virtual or final flag mismatch"
);
}
return
true
;
...
...
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