[Bug middle-end/98055] __builtin_alloca should not have warn_unused_result attribute

2020-12-01 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98055 --- Comment #6 from Martin Sebor --- (In reply to Paul Smith from comment #5) > Is there some preprocessor magic that lets me know that I'm using GCC's > __builtin_alloc so I can avoid calling alloca(0) in that situation? The following detects

[Bug middle-end/98055] __builtin_alloca should not have warn_unused_result attribute

2020-11-30 Thread psmith at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98055 --- Comment #5 from Paul Smith --- IMO that response is missing the point. This bug should be reopened and resolved by removing this attribute from the __builtin_alloca function in GCC. That's all that's needed: there's no need for more

[Bug middle-end/98055] __builtin_alloca should not have warn_unused_result attribute

2020-11-29 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98055 Eric Gallager changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug middle-end/98055] __builtin_alloca should not have warn_unused_result attribute

2020-11-29 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98055 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/98055] __builtin_alloca should not have warn_unused_result attribute

2020-11-29 Thread psmith at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98055 --- Comment #2 from Paul Smith --- I see no resolution to that thread, but the current behavior of GCC in this respect is not right and Martin Sebor's arguments are missing the point: the thinking there is too GCC-centric. Whether or not