[Bug c/116726] [14/15 Regression] compiler segfault when using certain struct redefinitions

2024-09-17 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116726 --- Comment #6 from Peter Damianov --- Another testcase: not an ICE, but I think rejects-valid ``` typedef void f(struct s1); struct s1 { int f1; }; typedef void f(struct s1); ``` :5:14: error: conflicting types for 'f'; have 'void(struct s1)

[Bug c/116726] compiler segfault when using certain struct redefinitions

2024-09-15 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116726 Peter Damianov changed: What|Removed |Added CC||peter0x44 at disroot dot org --- Comme

[Bug middle-end/116377] Warnings emit repeatedly when inlining occurs

2024-08-14 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116377 --- Comment #2 from Peter Damianov --- I know the testcase contains infinite recursion, what I was reporting was the warning about the strncpy repeating multiple times, with progressively more "inlined from" notes. I couldn't find a way to cons

[Bug c/116377] New: Warnings emit repeatedly when inlining occurs

2024-08-14 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116377 Bug ID: 116377 Summary: Warnings emit repeatedly when inlining occurs Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug ipa/102061] Cloned function names get exposed in warning messages

2024-08-07 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102061 --- Comment #6 from Peter Damianov --- I confirmed this is the case. Compiling the example from the testcase independent-cloneids-1.c confirms that lhd_decl_printable_name is also used for -fdump-rtl-final, my patch results in: ;; Function bar (

[Bug ipa/102061] Cloned function names get exposed in warning messages

2024-08-02 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102061 --- Comment #5 from Peter Damianov --- I finally got some time to look at the test failures this patch causes. https://gcc.gnu.org/cgit/gcc/tree/gcc/testsuite/gcc.dg/independent-cloneids-1.c Perhaps decl_printable_name is also used when writing

[Bug ipa/102061] .constprop gets exposed in warning message

2024-07-02 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102061 --- Comment #3 from Peter Damianov --- diff --git a/gcc/langhooks.cc b/gcc/langhooks.cc index 61f2b676256..89a89b74535 100644 --- a/gcc/langhooks.cc +++ b/gcc/langhooks.cc @@ -223,6 +223,8 @@ lhd_get_alias_set (tree ARG_UNUSED (t)) const char *

[Bug c/39438] Can't compile a wrapper around strftime with -Werror=format-nonliteral

2024-06-02 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39438 Peter Damianov changed: What|Removed |Added CC||peter0x44 at disroot dot org --- Commen

[Bug libstdc++/110572] ld.lld: error: duplicate symbol: std::type_info::operator==(std::type_info const&) const

2024-05-31 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110572 --- Comment #8 from Peter Damianov --- The suggested fix works for g++, but not clang++.

[Bug preprocessor/88424] Inserts newlines when preserving comments for a file using Windows newlines

2024-05-25 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88424 --- Comment #5 from Peter Damianov --- I checked clang's behavior, and it does CRLF -> LF from non-comments, but it leaves them intact in comments. I'm not really sure if this behavior is worth emulating or not. I think it would be better to remo

[Bug preprocessor/88424] Inserts newlines when preserving comments for a file using Windows newlines

2024-05-25 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88424 --- Comment #4 from Peter Damianov --- All of the non-commments are turned to LF line endings. So it must be something specifically to do with comment processing.

[Bug preprocessor/88424] Inserts newlines when preserving comments for a file using Windows newlines

2024-05-25 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88424 --- Comment #3 from Peter Damianov --- Looking in a hex editor, what gcc is doing is changing the CRLF to LFLF, there is no CR in the output. /* If the file is using old-school Mac line endings (\r only), terminate with another \r, not an

[Bug c++/115190] -fmodule-mapper does not accept CRLF files

2024-05-24 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115190 --- Comment #8 from Peter Damianov --- I have been totally unable to reproduce this outside of MSYS2, with any compilers I built myself. The "MSYS2 MSYS" shell also doesn't have this problem. I can't explain why. I tried investigating, but didn

[Bug c++/115190] -fmodule-mapper does not accept CRLF files

2024-05-22 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115190 Peter Damianov changed: What|Removed |Added CC||peter0x44 at disroot dot org --- Comme

[Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c

2024-05-20 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80182 --- Comment #10 from Peter Damianov --- https://sourceware.org/bugzilla/show_bug.cgi?id=31761 Bug report for binutils here.

[Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c

2024-05-20 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80182 Peter Damianov changed: What|Removed |Added Assignee|peter0x44 at disroot dot org |unassigned at gcc dot gnu.org -

[Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c

2024-05-16 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80182 --- Comment #8 from Peter Damianov --- This might arguably actually be a BFD linker problem. Both lld and mold don't have the problem for the example. Gold also has the same issue.

[Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c

2024-05-15 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80182 --- Comment #6 from Peter Damianov --- Unfortuantely, this patch fails to bootstrap on linaro CI, but it bootstraps fine on my machine. All my attempts to reproduce this failed, and I am really not sure what to do from here. https://patchwork.so

[Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c

2024-05-12 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80182 Peter Damianov changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c

2024-05-11 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80182 --- Comment #5 from Peter Damianov --- I submitted a patch for this: https://gcc.gnu.org/pipermail/gcc-patches/2024-May/651340.html

[Bug c++/108620] coroutines: ICE: in instantiate_type, at cp/class.cc:8742 when assign the return value of co_yield to a member of class/struct

2024-05-06 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108620 Peter Damianov changed: What|Removed |Added CC||peter0x44 at disroot dot org --- Comme

[Bug other/114951] New: Incorrect documentation link emitted for warning options ending in =

2024-05-05 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114951 Bug ID: 114951 Summary: Incorrect documentation link emitted for warning options ending in = Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal

[Bug libfortran/112364] calloc used incorrectly

2024-04-16 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112364 Peter Damianov changed: What|Removed |Added CC||peter0x44 at disroot dot org --- Comme

[Bug ipa/108383] g++ ICE with -O3 and -flto and -fdeclone-ctor-dtor on simple function

2024-04-16 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108383 Peter Damianov changed: What|Removed |Added CC||peter0x44 at disroot dot org --- Comme

[Bug lto/110710] LTO linker on Windows creates an invalid Makefile

2024-03-26 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110710 --- Comment #13 from peter0x44 at disroot dot org --- https://gcc.gnu.org/pipermail/gcc-patches/2024-March/648427.html Patch submitted. Couldn't figure out how to assign myself in bugzilla.

[Bug lto/110710] LTO linker on Windows creates an invalid Makefile

2024-03-26 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110710 --- Comment #12 from peter0x44 at disroot dot org --- diff --git a/gcc/lto-wrapper.cc b/gcc/lto-wrapper.cc index 5186d040ce0..7119157d830 100644 --- a/gcc/lto-wrapper.cc +++ b/gcc/lto-wrapper.cc @@ -2024,9 +2024,7 @@ cont: trunca

[Bug target/108866] Allow to pass Windows resource file (.rc) as input to gcc

2024-03-15 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108866 peter0x44 at disroot dot org changed: What|Removed |Added CC||peter0x44 at disroot dot o

[Bug lto/110710] LTO linker on Windows creates an invalid Makefile

2024-03-15 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110710 --- Comment #11 from peter0x44 at disroot dot org --- .I did some digging into why lto-wrapper.cc is emitting these commands It seems that they are not essential. /* If we are not preserving the ltrans input files then truncate them as soon a

[Bug lto/114353] New: ICE when passing LTO object files compiled for x86_64-pc-linux-gnu to x86_64-w64-mingw32-gcc

2024-03-15 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114353 Bug ID: 114353 Summary: ICE when passing LTO object files compiled for x86_64-pc-linux-gnu to x86_64-w64-mingw32-gcc Product: gcc Version: 13.2.1 Status: UNCONFIRMED

[Bug lto/110710] LTO linker on Windows creates an invalid Makefile

2024-03-14 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110710 --- Comment #10 from peter0x44 at disroot dot org --- > For a workaround, I would recommend busybox-w32. It's what w64devkit uses. > You can just put it on your PATH and see if it solves that issue. Just to be completely explicit, what I mean t

[Bug lto/110710] LTO linker on Windows creates an invalid Makefile

2024-03-14 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110710 --- Comment #9 from peter0x44 at disroot dot org --- That sent twice... sorry

[Bug lto/110710] LTO linker on Windows creates an invalid Makefile

2024-03-14 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110710 --- Comment #8 from peter0x44 at disroot dot org --- The way make works is it prefers using an sh.exe if it finds it on the PATH. https://git.savannah.gnu.org/cgit/make.git/tree/src/variable.c#n1637 (see variable.c of GNU make) Otherwise, cmd.e

[Bug lto/110710] LTO linker on Windows creates an invalid Makefile

2024-03-14 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110710 peter0x44 at disroot dot org changed: What|Removed |Added CC||peter0x44 at disroot dot o

[Bug c/44854] Improve diagnostic for missing member name or '; ' in a struct

2024-02-18 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44854 peter0x44 at disroot dot org changed: What|Removed |Added CC||peter0x44 at disroot dot or

[Bug driver/108865] gcc on Windows fails with Unicode path to source file

2023-11-14 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108865 --- Comment #37 from peter0x44 at disroot dot org --- Sorry, comment got sent by accident, before I was done typing. And you replied before I finished, too. Thanks for pointing me in the correct direction. === IRRELEVANT Executables with this

[Bug driver/108865] gcc on Windows fails with Unicode path to source file

2023-11-14 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108865 peter0x44 at disroot dot org changed: What|Removed |Added CC||peter0x44 at disroot dot o

[Bug libstdc++/110572] ld.lld: error: duplicate symbol: std::type_info::operator==(std::type_info const&) const

2023-09-01 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110572 peter0x44 at disroot dot org changed: What|Removed |Added CC||peter0x44 at disroot dot o