mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-16 02:20:27 +08:00
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
This commit is contained in:
parent
1904eff113
commit
17fc8d6f0e
@ -1,3 +1,10 @@
|
||||
2013-12-13 Aldy Hernandez <aldyh@redhat.com>
|
||||
|
||||
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.
|
||||
|
||||
2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
|
||||
|
||||
* config/arc/arc.h (BITS_PER_UNIT): Removed.
|
||||
|
@ -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))
|
||||
{
|
||||
|
@ -677,7 +677,8 @@ diagnose_tm_1 (gimple_stmt_iterator *gsi, bool *handled_ops_p,
|
||||
}
|
||||
else if (direct_call_p)
|
||||
{
|
||||
if (flags_from_decl_or_type (fn) & ECF_TM_BUILTIN)
|
||||
if (IS_TYPE_OR_DECL_P (fn)
|
||||
&& flags_from_decl_or_type (fn) & ECF_TM_BUILTIN)
|
||||
is_safe = true;
|
||||
else if (replacement)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user