Handle internal functions in is_tm_pure_call
commitffda2f153972529bb8adf4927f7f3892ae18ac4a
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Nov 2015 10:19:56 +0000 (7 10:19 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Nov 2015 10:19:56 +0000 (7 10:19 +0000)
tree8372a00b740eeef727fce7449770593c486b85e2
parentac677063b7406b896e049b0d7d2ca275a8428157
Handle internal functions in is_tm_pure_call

The upcoming changes to use internal functions for things like sqrt
caused a failure in gcc.dg/tm/20100610.c, because we were trying to get
call flags from the null gimple_call_fn of an IFN_SQRT call.  We've been
making fairly heavy use of internal functions for a while now so I think
this might be latent.

Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi.

gcc/
* trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
internal functions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229925 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/trans-mem.c