From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7433 invoked by alias); 8 Jul 2013 08:37:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 7381 invoked by uid 48); 8 Jul 2013 08:37:53 -0000 From: "Joost.VandeVondele at mat dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/57784] GCC inadvertedly truncates source text Date: Mon, 08 Jul 2013 08:37:00 -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: 4.7.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Joost.VandeVondele at mat dot ethz.ch X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-07/txt/msg00416.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57784 Joost VandeVondele changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Joost.VandeVondele at mat dot ethz | |.ch --- Comment #3 from Joost VandeVondele --- (In reply to Marc Glisse from comment #2) > Uh, what's wrong about using a heuristic and refusing to compile when the > name of the output file ends in .c, .C, .cc, .f90, etc (possibly unless some > -fweird-output-name is also passed) and the file already exists? I would also be strongly in favor of such a simple heuristic... it is really a common error that has bitten more than one user, including myself.