[Bug target/111107] i686-w64-mingw32 does not realign stack when __attribute__((aligned)) or __attribute__((vector_size)) are used

2025-04-30 Thread gabrielopcode at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=07 --- Comment #35 from Gabriel Ivăncescu --- (In reply to LIU Hao from comment #34) > > My experience is that _sometimes_ (how often?) GCC assumes the stack is > aligned. Yes, in theory it shouldn't, but in practice that's not the case. > Maybe w

[Bug target/111107] i686-w64-mingw32 does not realign stack when __attribute__((aligned)) or __attribute__((vector_size)) are used

2025-04-30 Thread gabrielopcode at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=07 --- Comment #33 from Gabriel Ivăncescu --- (In reply to LIU Hao from comment #31) > (In reply to Gabriel Ivăncescu from comment #30) > > Why would it not be safe? For MinGW specifically, what's not safe about it? > > The entire Windows stack ass

[Bug target/111107] i686-w64-mingw32 does not realign stack when __attribute__((aligned)) or __attribute__((vector_size)) are used

2025-04-29 Thread gabrielopcode at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=07 --- Comment #30 from Gabriel Ivăncescu --- (In reply to LIU Hao from comment #28) > Created attachment 61236 [details] > proposed patch #2 > > It might not be safe to decrease the preferred stack boundary, so let's keep > it as 16, but initiali

[Bug target/111107] i686-w64-mingw32 does not realign stack when __attribute__((aligned)) or __attribute__((vector_size)) are used

2023-11-25 Thread gabrielopcode at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=07 --- Comment #10 from Gabriel Ivăncescu --- (In reply to Alexander Monakov from comment #9) > -mpreferred-stack-boundary=n means that functions consume stack in > increments of 2**n. This is sufficient to ensure that once stack is aligned > to th

[Bug target/111107] i686-w64-mingw32 does not realign stack when __attribute__((aligned)) or __attribute__((vector_size)) are used

2023-08-28 Thread gabrielopcode at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=07 Gabriel Ivăncescu changed: What|Removed |Added CC||gabrielopcode at gmail dot com ---