[Bug libgcc/106949] Memory leak using VLA/alloca with -fsplit-stack

2022-10-04 Thread iam at datacompboy dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106949 --- Comment #5 from Anton Fedorov --- Hhhhmmm... Interesting, it doesn't seems to be possible, but it would be fun way to fix to add cleanup(free) attribute to the variable if it has to be malloc'ed...

[Bug libgcc/106949] Memory leak using VLA/alloca with -fsplit-stack

2022-10-04 Thread iam at datacompboy dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106949 --- Comment #4 from Anton Fedorov --- > You can't just add a stack segment without changing the stack pointer. I can -- since we are on the initial stack at this point, no return into __morestack will happen so no attempt to release it, thus th