[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
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: alexhenrie24 at gmail dot com Target Milestone: --- #include int main() { signed int a = 1; enum : signed int { b = 1 }; unsigned int c = -1; if (a < c) // condition is true, -Wsign-compare warns ab

[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
Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: alexhenrie24 at gmail dot com Target Milestone: --- I expected to get a warning when compiling this program with -fanalyzer: #include extern void

[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
: c Assignee: unassigned at gcc dot gnu.org Reporter: alexhenrie24 at gmail dot com Target Milestone: --- According to the documentation, -Wreturn-type does the following: "Warn whenever a function is defined with a return type that defaults to int. Also warn abou

[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
: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: alexhenrie24 at gmail dot com Target Milestone: --- strlen example, source code: #include int main() { return

[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

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

2019-06-05 Thread alexhenrie24 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65403 --- Comment #13 from Alex Henrie --- I filled out all the forms and was approved to contribute code to GCC, but the patches have still not been reviewed: https://gcc.gnu.org/ml/gcc-patches/2019-03/msg00971.html

[Bug c/86407] Ignore function attributes in function type declarations?

2019-05-15 Thread alexhenrie24 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86407 --- Comment #6 from Alex Henrie --- Created attachment 46363 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46363=edit [PATCH] Add option to ignore fndecl attributes on function pointers This patch separates warnings about applying

[Bug c/86407] Ignore function attributes in function type declarations?

2019-05-03 Thread alexhenrie24 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86407 --- Comment #5 from Alex Henrie --- The fundamental problem here is that some people want to combine calling convention attributes and certain other attributes in a macro and then use that macro everywhere, whereas other people want to place

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

2019-03-04 Thread alexhenrie24 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65403 --- Comment #11 from Alex Henrie --- Created attachment 45889 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45889=edit Proposed patches I fixed up the patch from comment 4 and added a second patch with tests. Now I'm just waiting to

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

2019-03-01 Thread alexhenrie24 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65403 --- Comment #8 from Alex Henrie --- Why weren't Manuel's patches accepted?

[Bug c/89524] New: -Wno-error doesn't work with warnings from newer versions of GCC

2019-02-27 Thread alexhenrie24 at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: alexhenrie24 at gmail dot com Target Milestone: --- I am working on a Qt4 program that we need to compile with both GCC 4.8.5 and GCC 8.2.0. The build process sets the -Werror option

[Bug libstdc++/72830] istream::seekg should not reset eofbit if -std=c++98

2016-08-09 Thread alexhenrie24 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72830 --- Comment #2 from Alex Henrie --- All versions of GCC 5 and GCC 6 have the same problem.

[Bug libstdc++/72830] New: istream::seekg should not reset eofbit if -std=c++98

2016-08-08 Thread alexhenrie24 at gmail dot com
Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: alexhenrie24 at gmail dot com Target Milestone: --- Created attachment 39070 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39070=edit Test program that demonstrates the problem According to N3168