Re: [PATCH] Fix PR60115

2014-02-10 Thread Jakub Jelinek
On Mon, Feb 10, 2014 at 02:22:44PM +0100, Richard Biener wrote: > > This fixes PR60115 where the issue is that tree_could_trap_p does > not evaluate MEM_REFs for possibly out-of-bound accesses (in case > the access is lowered from an ARRAY_REF where the code does that). > > I've unified TARGET_ME

[PATCH] Fix PR60115

2014-02-10 Thread Richard Biener
This fixes PR60115 where the issue is that tree_could_trap_p does not evaluate MEM_REFs for possibly out-of-bound accesses (in case the access is lowered from an ARRAY_REF where the code does that). I've unified TARGET_MEM_REF and MEM_REF handling and made the order of checking for trapping base