aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorChen Gang <gang.chen.5i5j@gmail.com>2015-01-12 09:02:33 +0000
committerMartin Liska <marxin@gcc.gnu.org>2015-01-12 09:02:33 +0000
commit9f54bf9c6f018c60c634be0521119b8727efffeb (patch)
tree9806beb17024f00e596ca7cc45df605dac10a4c2 /gcc/tree.h
parent90988f773c8e516007ead0d0d602a7c1708ddc23 (diff)
downloadgcc-9f54bf9c6f018c60c634be0521119b8727efffeb.zip
gcc-9f54bf9c6f018c60c634be0521119b8727efffeb.tar.gz
gcc-9f54bf9c6f018c60c634be0521119b8727efffeb.tar.bz2
re PR ipa/64550 (IPA fixes cause ICE in tree-ssa.c:939)
PR ipa/64550 PR ipa/64551 PR ipa/64552 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of '||' to fix typo issue. * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can accept and return NULL. From-SVN: r219449
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index fc8c8fe..ac27268 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -4640,7 +4640,7 @@ target_opts_for_fn (const_tree fndecl)
tree fn_opts = DECL_FUNCTION_SPECIFIC_TARGET (fndecl);
if (fn_opts == NULL_TREE)
fn_opts = target_option_default_node;
- return TREE_TARGET_OPTION (fn_opts);
+ return fn_opts == NULL_TREE ? NULL : TREE_TARGET_OPTION (fn_opts);
}
/* opt flag for function FNDECL, e.g. opts_for_fn (fndecl, optimize) is