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

2023-11-25 Thread alexhenrie24 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=07 --- Comment #13 from Alex Henrie --- I should clarify that I was testing with GCC 12.2. It turns out that GCC 12.3 does not crash, and I have now confirmed that the patch from comment #5 applied to GCC 12.3 fixes

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

2023-11-25 Thread alexhenrie24 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=07 --- Comment #12 from Alex Henrie --- Created attachment 56687 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56687=edit Minimal example to reproduce the crash Here's a minimal example that crashes on MinGW 12 with -m32 -mavx512f

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

2023-11-25 Thread alexhenrie24 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=07 --- Comment #11 from Alex Henrie --- Well, this is interesting: Unpatched MinGW 12 crashes in the same way if I set both -march=native and -mpreferred-stack-boundary=2. So the problem is not the patch itself, it's just that the patch revealed

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

2023-11-24 Thread alexhenrie24 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=07 Alex Henrie changed: What|Removed |Added CC||alexhenrie24 at gmail dot com ---

[Bug c/111056] Missing -Wsign-compare warning with enum values

2023-08-17 Thread alexhenrie24 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111056 --- Comment #3 from Alex Henrie --- By the way, thanks for pointing out that using constexpr suppresses the warning on GCC. Although Clang does not support constexpr in C yet, it is interesting that Clang is smart enough to not warn about a

[Bug c/111056] Missing -Wsign-compare warning with enum values

2023-08-17 Thread alexhenrie24 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111056 Alex Henrie changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/111056] New: Missing -Wsign-compare warning with enum values

2023-08-17 Thread alexhenrie24 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111056 Bug ID: 111056 Summary: Missing -Wsign-compare warning with enum values Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug analyzer/110426] Missing buffer overflow warning with function pointer that has the alloc_size attribute

2023-08-16 Thread alexhenrie24 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110426 --- Comment #4 from Alex Henrie --- I tried out your changes and the warnings look great now. Thank you!

[Bug analyzer/110426] New: Missing buffer overflow warning with function pointer that has the alloc_size attribute

2023-06-26 Thread alexhenrie24 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110426 Bug ID: 110426 Summary: Missing buffer overflow warning with function pointer that has the alloc_size attribute Product: gcc Version: 13.1.1 Status: UNCONFIRMED

[Bug c/66618] Failure to diagnose non-constant initializer for static object with -O1

2023-05-22 Thread alexhenrie24 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66618 --- Comment #9 from Alex Henrie --- (In reply to Andrew Pinski from comment #7) > (In reply to Alex Henrie from comment #6) > > This wasn't fixed properly, or it was broken again before the release of GCC > > 8.1: In GCC 8.1 and later no warning

[Bug c/66618] Failure to diagnose non-constant initializer for static object with -O1

2023-05-22 Thread alexhenrie24 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66618 Alex Henrie changed: What|Removed |Added CC||alexhenrie24 at gmail dot com --- Comment

[Bug c/108476] Please turn -Wreturn-type on by default for C

2023-01-23 Thread alexhenrie24 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108476 --- Comment #3 from Alex Henrie --- (In reply to Andrew Pinski from comment #1) > Note the warning should really be split into two different options. One for > the return type of the declaration and one for the missing return in > non-void

[Bug c/108476] New: Please turn -Wreturn-type on by default for C

2023-01-19 Thread alexhenrie24 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108476 Bug ID: 108476 Summary: Please turn -Wreturn-type on by default for C Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug tree-optimization/105677] New: Calling strlen on a string constant is optimized out, but calling wcslen on a string constant is not

2022-05-20 Thread alexhenrie24 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105677 Bug ID: 105677 Summary: Calling strlen on a string constant is optimized out, but calling wcslen on a string constant is not Product: gcc Version: 12.1.1 Status:

[Bug c/65403] -Wno-error= is an error

2021-08-12 Thread alexhenrie24 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65403 --- Comment #15 from Alex Henrie --- Nicholas Guriev also sent a patch for this issue: https://gcc.gnu.org/pipermail/gcc-patches/2021-June/573774.html