From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 052753858D38; Thu, 16 May 2024 11:07:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 052753858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1715857635; bh=Eb7yfeQAmn0zAT2KXUhxKr62y6K0Y8nSXk79Tm2zfz0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HhyIUse40X05+RmwklaCSANsp0OoeL+KgreVJWuaJviWz0hOKEV0xyLj9R7ZdVmOc LprdQpMcZcrtWa/VoGjme/IgGM85v0oxbxBDjz3d6/CGRA/tRYHDBjcQwlqS7BU4yk ItgUa/T8uQiitoLaaDIPdhXPqBJ7gQgF2HKewlEM= From: "peter0x44 at disroot dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/80182] accidently invoked `gcc -lm -o file.c` which deletes file.c Date: Thu, 16 May 2024 11:07:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Version: 5.4.0 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: peter0x44 at disroot dot org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: peter0x44 at disroot dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80182 --- 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.=