This is the mail archive of the gcc-help@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: Specs file port


"Paulo J. Matos" <paulo@matos-sorge.com> writes:

> I am porting a specs file that has been in use with the very old gcc 
> 3.3.3 to gcc 4.6.1 and I am having some trouble with the following:
> *invoke_as:
> %{!S:-o %{|!pipe:%g.s} |
>  as %(asm_options) %{!pipe:%g.s} %A }
>
> which results in GCC 4.6.1 saying:
> xap-local-xap-gcc-4.6.1: fatal error: braced spec '|!pipe:%g.s} |
>  as %(asm_options) %{!pipe:%g.s} %A' is invalid at '|'
>
> I can't really find the problem. I have been looking at the manual and 
> can't really understand why gcc 4.6.1 is complaining but 3.3.3 seems 
> perfectly happy with it.

What is %{| supposed to mean?

Anyhow I suspect you want to change %{|!pipe:%g.s} to %|.s.  Same with
%{!pipe:%g.s}.

Ian


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