From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31223 invoked by alias); 28 Sep 2006 15:04:49 -0000 Received: (qmail 30854 invoked by alias); 28 Sep 2006 15:04:41 -0000 Date: Thu, 28 Sep 2006 15:04:00 -0000 Message-ID: <20060928150441.30853.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug driver/29270] "--" does not end option parsing In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "joseph at codesourcery dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-09/txt/msg02679.txt.bz2 List-Id: ------- Comment #3 from joseph at codesourcery dot com 2006-09-28 15:04 ------- Subject: Re: "--" does not end option parsing On Thu, 28 Sep 2006, pinskia at gcc dot gnu dot org wrote: > Hmm, one problem is that we need to know when we should pass -- on to cc1, etc. > also. For an example: > > gcc t.c -- -l.c > > is that -l.c a c source or a library for ld to have at and how do we invoke ld > then: > with "-- -l.c" or just "-l.c" It's a source file - everything after -- should be a source or object file according to the suffix. -lfoo would mean that an object file called literally -lfoo is to be linked, not libfoo.a. You could either pass -- to ld or change -lfoo to ./-lfoo. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29270