public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c
       [not found] <bug-80182-4@http.gcc.gnu.org/bugzilla/>
@ 2024-05-11 14:48 ` peter0x44 at disroot dot org
  2024-05-12 18:39 ` peter0x44 at disroot dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: peter0x44 at disroot dot org @ 2024-05-11 14:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80182

--- Comment #5 from Peter Damianov <peter0x44 at disroot dot org> ---
I submitted a patch for this:
https://gcc.gnu.org/pipermail/gcc-patches/2024-May/651340.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c
       [not found] <bug-80182-4@http.gcc.gnu.org/bugzilla/>
  2024-05-11 14:48 ` [Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c peter0x44 at disroot dot org
@ 2024-05-12 18:39 ` peter0x44 at disroot dot org
  2024-05-15 20:57 ` peter0x44 at disroot dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: peter0x44 at disroot dot org @ 2024-05-12 18:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80182

Peter Damianov <peter0x44 at disroot dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c
       [not found] <bug-80182-4@http.gcc.gnu.org/bugzilla/>
  2024-05-11 14:48 ` [Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c peter0x44 at disroot dot org
  2024-05-12 18:39 ` peter0x44 at disroot dot org
@ 2024-05-15 20:57 ` peter0x44 at disroot dot org
  2024-05-15 21:25 ` segher at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: peter0x44 at disroot dot org @ 2024-05-15 20:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80182

--- Comment #6 from Peter Damianov <peter0x44 at disroot dot org> ---
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-peter0x44@disroot.org/

I won't be able to do any more without help.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c
       [not found] <bug-80182-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2024-05-15 20:57 ` peter0x44 at disroot dot org
@ 2024-05-15 21:25 ` segher at gcc dot gnu.org
  2024-05-16 11:07 ` peter0x44 at disroot dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: segher at gcc dot gnu.org @ 2024-05-15 21:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80182

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mkuvyrkov at gcc dot gnu.org

--- Comment #7 from Segher Boessenkool <segher at gcc dot gnu.org> ---
I bet Maxim can help you with this.  Maxim?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c
       [not found] <bug-80182-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2024-05-15 21:25 ` segher at gcc dot gnu.org
@ 2024-05-16 11:07 ` peter0x44 at disroot dot org
  2024-05-20 13:23 ` peter0x44 at disroot dot org
  2024-05-20 13:34 ` peter0x44 at disroot dot org
  6 siblings, 0 replies; 7+ messages in thread
From: peter0x44 at disroot dot org @ 2024-05-16 11:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80182

--- Comment #8 from Peter Damianov <peter0x44 at disroot dot org> ---
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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c
       [not found] <bug-80182-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2024-05-16 11:07 ` peter0x44 at disroot dot org
@ 2024-05-20 13:23 ` peter0x44 at disroot dot org
  2024-05-20 13:34 ` peter0x44 at disroot dot org
  6 siblings, 0 replies; 7+ messages in thread
From: peter0x44 at disroot dot org @ 2024-05-20 13:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80182

Peter Damianov <peter0x44 at disroot dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|peter0x44 at disroot dot org       |unassigned at gcc dot gnu.org

--- Comment #9 from Peter Damianov <peter0x44 at disroot dot org> ---
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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c
       [not found] <bug-80182-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2024-05-20 13:23 ` peter0x44 at disroot dot org
@ 2024-05-20 13:34 ` peter0x44 at disroot dot org
  6 siblings, 0 replies; 7+ messages in thread
From: peter0x44 at disroot dot org @ 2024-05-20 13:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80182

--- Comment #10 from Peter Damianov <peter0x44 at disroot dot org> ---
https://sourceware.org/bugzilla/show_bug.cgi?id=31761
Bug report for binutils here.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-05-20 13:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-80182-4@http.gcc.gnu.org/bugzilla/>
2024-05-11 14:48 ` [Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c peter0x44 at disroot dot org
2024-05-12 18:39 ` peter0x44 at disroot dot org
2024-05-15 20:57 ` peter0x44 at disroot dot org
2024-05-15 21:25 ` segher at gcc dot gnu.org
2024-05-16 11:07 ` peter0x44 at disroot dot org
2024-05-20 13:23 ` peter0x44 at disroot dot org
2024-05-20 13:34 ` peter0x44 at disroot dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).