Re: [PATCH] Don't unnecessarily create stack protector guard decls and MEMs (PR target/77957)

2016-10-13 Thread Richard Biener
On Thu, 13 Oct 2016, Jakub Jelinek wrote: > Hi! > > PR77957 is likely a rs6000 backend bug where a useless memory load causes > .LCTOC0 undefined reference in the end at -O0 and as such should be fixed, > but I think it is completely unnecessary to create those loads at all > if we know we are

[PATCH] Don't unnecessarily create stack protector guard decls and MEMs (PR target/77957)

2016-10-12 Thread Jakub Jelinek
Hi! PR77957 is likely a rs6000 backend bug where a useless memory load causes .LCTOC0 undefined reference in the end at -O0 and as such should be fixed, but I think it is completely unnecessary to create those loads at all if we know we are going to ignore it in the stack_protect_{set,test}