diff options
author | aldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-06 14:42:07 +0000 |
---|---|---|
committer | aldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-06 14:42:07 +0000 |
commit | c86dbacda4b6e5c8b7271207cb3db7bef6ef829a (patch) | |
tree | 97054f27aaa12ac7e5ee10d94fffd54a10b611ca /gcc/trans-mem.c | |
parent | 316830acf1ae6073edbc97f3d18f93c1e0aadb1e (diff) | |
download | gcc-c86dbacda4b6e5c8b7271207cb3db7bef6ef829a.tar.gz |
PR middle-end/52047
* trans-mem.c (expand_call_tm): Add an assertion.
* calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
functions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183936 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/trans-mem.c')
-rw-r--r-- | gcc/trans-mem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c index de7a913be66..d760db34b2a 100644 --- a/gcc/trans-mem.c +++ b/gcc/trans-mem.c @@ -1,5 +1,5 @@ /* Passes for transactional memory support. - Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GCC. @@ -2267,6 +2267,8 @@ expand_call_tm (struct tm_region *region, } node = cgraph_get_node (fn_decl); + /* All calls should have cgraph here. */ + gcc_assert (node); if (node->local.tm_may_enter_irr) transaction_subcode_ior (region, GTMA_MAY_ENTER_IRREVOCABLE); |