This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: handling -march=invalidarch option in GCC driver
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: Marcus Binny <marcusbinny at yahoo dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 11 Oct 2003 11:29:34 -0700
- Subject: Re: handling -march=invalidarch option in GCC driver
- References: <20031011181750.97595.qmail@web60210.mail.yahoo.com>
Marcus Binny <marcusbinny@yahoo.com> writes:
> Following only handles the valid values of -march or
> if the -march is not given at all
> #define LINK_SPEC "\
> %{march=small: -lsmall } \
> %{march=big: -lbig } \
> %{!march*:%(link_default)}"
>
> but how to handle the situation if we want to
> link_default in case -march=someinvalidarch is given
> on the command line.
With 3.4, I *think* this will do what you want:
%{march=small: -lsmall ;
march=big : -lbig ;
: %(link_default) }
zw