[Bug libgcc/90918] -Wreturn-local-addr in __splitstack_find in libgcc/generic-morestack.c

2020-01-28 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90918 --- Comment #4 from Martin Sebor --- A pointer to a local variable is indeterminate when returned from the function and using it undefined. GCC substitutes null for such pointers to avoid accidentally clobbering the stack (this was disabled in r

[Bug libgcc/90918] -Wreturn-local-addr in __splitstack_find in libgcc/generic-morestack.c

2020-01-28 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90918 --- Comment #3 from Andreas Schwab --- Can't you use __builtin_frame_address?

[Bug libgcc/90918] -Wreturn-local-addr in __splitstack_find in libgcc/generic-morestack.c

2020-01-28 Thread ian at airs dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90918 Ian Lance Taylor changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug libgcc/90918] -Wreturn-local-addr in __splitstack_find in libgcc/generic-morestack.c

2020-01-28 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90918 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|