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
gcc/
[pf3gnuchains/gcc-fork.git]
/
gcc
/
tree-ssa-ccp.c
diff --git
a/gcc/tree-ssa-ccp.c
b/gcc/tree-ssa-ccp.c
index
b9211a5
..
7cefbf8
100644
(file)
--- a/
gcc/tree-ssa-ccp.c
+++ b/
gcc/tree-ssa-ccp.c
@@
-300,7
+300,10
@@
get_symbol_constant_value (tree sym)
{
if (TREE_STATIC (sym)
&& TREE_READONLY (sym)
- && !MTAG_P (sym))
+ && !MTAG_P (sym)
+ /* Check if a read-only definition may be overridden at
+ link and run time. */
+ && targetm.binds_local_p (sym))
{
tree val = DECL_INITIAL (sym);
if (val