[Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c
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
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 --- Comment #9 from Peter Damianov --- I think this should be transferred over to binutils, since I was told my patch in the driver wasn't desired anyway, and the specific issue doesn't show up when using other linkers. Whether it's worth doing something for the cases of `gcc -c file1.c -o file2.c` or others with -S and -E is a different issue, and a separate bug should be filed for that, if it's desired to do anything. I am no longer working on this.
[Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80182 Segher Boessenkool changed: What|Removed |Added CC||mkuvyrkov at gcc dot gnu.org --- Comment #7 from Segher Boessenkool --- I bet Maxim can help you with this. Maxim?
[Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c
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.sourceware.org/project/gcc/patch/20240512133857.1634-1-peter0...@disroot.org/ I won't be able to do any more without help.
[Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c
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
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