From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15574 invoked by alias); 31 Jul 2002 13:15:59 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 15534 invoked from network); 31 Jul 2002 13:15:55 -0000 Received: from unknown (HELO executor.cambridge.redhat.com) (195.224.55.237) by sources.redhat.com with SMTP; 31 Jul 2002 13:15:55 -0000 Received: from talisman.cambridge.redhat.com (talisman.cambridge.redhat.com [172.16.18.81]) by executor.cambridge.redhat.com (Postfix) with ESMTP id C45D3ABB01; Wed, 31 Jul 2002 14:15:54 +0100 (BST) Received: (from rsandifo@localhost) by talisman.cambridge.redhat.com (8.11.6/8.11.0) id g6VDFsf03515; Wed, 31 Jul 2002 14:15:54 +0100 X-Authentication-Warning: talisman.cambridge.redhat.com: rsandifo set sender to rsandifo@redhat.com using -f To: Daniel Jacobowitz Cc: gcc-patches@sources.redhat.com, echristo@redhat.com Subject: Re: RFC: New approach to --with-cpu References: <20020730215824.GA21681@nevyn.them.org> From: Richard Sandiford Date: Wed, 31 Jul 2002 06:35:00 -0000 In-Reply-To: <20020730215824.GA21681@nevyn.them.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-07/txt/msg01862.txt.bz2 Daniel Jacobowitz writes: > +#ifdef TARGET_DEFAULT_OPTION_ARCH > + if (! option_present (*argcp, *argvp, "-march=")) > + add_option (argcp, argvp, "-march=" XSTRING (TARGET_DEFAULT_OPTION_ARCH)); > +#endif On mips, what should happen if you give -mips3 on the command line? Should it override the default -march? Seems like the default would win as things stand. I suppose you could have: if (!option_present (*argcp, *argvp, "-march=") && (!option_present (*argcp, *argvp, "-mips") || option_present (*argcp, *argvp, "-mips16"))) add_option (argcp, argvp, "-march=" XSTRING (TARGET_DEFAULT_OPTION_ARCH)); (since -mips16 shouldn't change the default arch) but maybe there needs to be some sort of target macro? Richard