[PATCH] Give up instead of ICE on invalid stringops attributes (PR tree-optimization/71588)

2016-06-20 Thread Jakub Jelinek
Hi! If users use attributes like const or pure incorrectly on stringops builtins, the tree-ssa-strlen.c pass can ICE, because it expects it can e.g. replace a strcpy (which should not be const or pure) with memcpy (which also shouldn't be const/pure) etc. The patch just pretends the calls aren't b

Re: [PATCH] Give up instead of ICE on invalid stringops attributes (PR tree-optimization/71588)

2016-06-20 Thread Jeff Law
On 06/20/2016 12:35 PM, Jakub Jelinek wrote: Hi! If users use attributes like const or pure incorrectly on stringops builtins, the tree-ssa-strlen.c pass can ICE, because it expects it can e.g. replace a strcpy (which should not be const or pure) with memcpy (which also shouldn't be const/pure)