OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
compiler: Avoid various crashes on error conditions.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
ipa.c
diff --git
a/gcc/ipa.c
b/gcc/ipa.c
index
2f79846
..
388291a
100644
(file)
--- a/
gcc/ipa.c
+++ b/
gcc/ipa.c
@@
-662,6
+662,8
@@
varpool_externally_visible_p (struct varpool_node *vnode, bool aliased)
if (varpool_used_from_object_file_p (vnode))
return true;
+ if (DECL_HARD_REGISTER (vnode->decl))
+ return true;
if (DECL_PRESERVE_P (vnode->decl))
return true;
if (lookup_attribute ("externally_visible",