From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10632 invoked by alias); 9 May 2003 16:06:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 10514 invoked by uid 71); 9 May 2003 16:06:01 -0000 Resent-Date: 9 May 2003 16:06:01 -0000 Resent-Message-ID: <20030509160601.10513.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, gawrilow@math.tu-berlin.de Received: (qmail 2988 invoked by uid 48); 9 May 2003 16:03:03 -0000 Message-Id: <20030509160303.2987.qmail@sources.redhat.com> Date: Fri, 09 May 2003 16:06:00 -0000 From: gawrilow@math.tu-berlin.de Reply-To: gawrilow@math.tu-berlin.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: driver/10707: c++ linking impossible when -V specified X-SW-Source: 2003-05/txt/msg00769.txt.bz2 List-Id: >Number: 10707 >Category: driver >Synopsis: c++ linking impossible when -V specified >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri May 09 16:06:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Ewgenij Gawrilow >Release: 3.3, 3.4 (snapshots) >Organization: >Environment: gcc version 3.3 20030506 (prerelease); gcc version 3.4 20030509 (experimental); platform-independent >Description: If g++ is called with -V option and the only input files are objects and libraries, then the alternative driver called in chain cannot guess the language any more, forgets to put libstdc++ in the collect2 call, and the linker fails. >How-To-Repeat: Take a little C++ (Hello, world!) program, compile and link it separately, specifying the -V option in both commands. >Fix: Probably, the installation script could create an extra hardlink 'machine-g++-version'; the driver could then insert its basename into the execvp() first argument instead of fixed '-gcc-'. Or give along a -x option depending on the own basename. >Release-Note: >Audit-Trail: >Unformatted: