diff options
author | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-02-19 19:06:38 +0000 |
---|---|---|
committer | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-02-19 19:06:38 +0000 |
commit | 83a23b050c3e304cdbfe91ddcad06d3a20aff63f (patch) | |
tree | 7833337ec015312bc0a4f42179ae921a7ef30c24 /gcc/ipa-reference.c | |
parent | d0b5b304bfbdd19e465aa12c0603d96c9d841a9a (diff) | |
download | gcc-83a23b050c3e304cdbfe91ddcad06d3a20aff63f.tar.gz |
PR objc/43061
* cgraphunit.c (process_function_and_variable_attributes): Check
DECL_PRESERVE_P instead of looking up attribute "used".
* ipa-pure-const.c (check_decl): Likewise.
* ipa-reference.c (has_proper_scope_for_analysis): Likewise.
* ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
* config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
instead of attribute "used".
* config/sol2-c.c (solaris_pragma_init): Likewise.
(solaris_pragma_fini): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156907 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-reference.c')
-rw-r--r-- | gcc/ipa-reference.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-reference.c b/gcc/ipa-reference.c index 98a4ce7d714..f00377fb9db 100644 --- a/gcc/ipa-reference.c +++ b/gcc/ipa-reference.c @@ -306,7 +306,7 @@ has_proper_scope_for_analysis (tree t) { /* If the variable has the "used" attribute, treat it as if it had a been touched by the devil. */ - if (lookup_attribute ("used", DECL_ATTRIBUTES (t))) + if (DECL_PRESERVE_P (t)) return false; /* Do not want to do anything with volatile except mark any |