Re: Question on scheduling of stack_protect_prologue

2019-01-18 Thread Segher Boessenkool
Hi! On Mon, Jan 14, 2019 at 12:24:43PM +, Matthew Malcomson wrote: > I've found a testcase where the stack protector code generated through > `-fstack-protector-all` doesn't actually protect anything. [ snip ] > When compiling on aarch64 with > ~gcc -fstack-protector-all -g -S stack-reorder.

Question on scheduling of stack_protect_prologue

2019-01-14 Thread Matthew Malcomson
I've found a testcase where the stack protector code generated through `-fstack-protector-all` doesn't actually protect anything. #+name stack-reorder.c #+begin_src c #include #include int foo (int a, int b, int c) {     char buf[64];     buf[a] = 1;     buf[b] = c;     // Just add somethin