This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: handling -march=invalidarch option in GCC driver


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]