diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2013-12-13 17:50:18 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2013-12-13 17:50:18 +0000 |
commit | 17fc8d6f0e361e17b6994e26859b075c527d00fc (patch) | |
tree | be2141f867bda3e7120ff6fe1a389f08afe0be32 /gcc/calls.c | |
parent | 1904eff11378de2472c6e5560470bda08216f57e (diff) | |
download | gcc-17fc8d6f0e361e17b6994e26859b075c527d00fc.tar.gz |
re PR tree-optimization/59149 (diagnose_tm_1 calls flags_from_decl_or_type on an ADDR_EXPR)
PR tree-optimization/59149
* calls.c (flags_from_decl_or_type): Fail on non decl or type.
* trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
if no type or decl.
From-SVN: r205967
Diffstat (limited to 'gcc/calls.c')
-rw-r--r-- | gcc/calls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/calls.c b/gcc/calls.c index 3963bc29754..2226e78a489 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -769,6 +769,8 @@ flags_from_decl_or_type (const_tree exp) || lookup_attribute ("transaction_pure", TYPE_ATTRIBUTES (exp)))) flags |= ECF_TM_PURE; } + else + gcc_unreachable (); if (TREE_THIS_VOLATILE (exp)) { |