Re: Fix pure/const discovery WRT interposition part 2

2016-06-13 Thread H.J. Lu
On Sat, Apr 16, 2016 at 9:47 AM, Jan Hubicka wrote: > Hi, > this patch updates ipa-pure-const.c to only propagate PURE flag across > calls that does not bind to local defs and are not explicitly declared const. > This gets memory state into shape that the callee produced by other

Fix pure/const discovery WRT interposition part 2

2016-04-16 Thread Jan Hubicka
Hi, this patch updates ipa-pure-const.c to only propagate PURE flag across calls that does not bind to local defs and are not explicitly declared const. This gets memory state into shape that the callee produced by other compiler and still accessing memory is safe. We need similar logic for