This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Specs file port
- From: Ian Lance Taylor <iant at google dot com>
- To: "Paulo J. Matos" <paulo at matos-sorge dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 08 Sep 2011 10:40:33 -0700
- Subject: Re: Specs file port
- References: <j4ad00$lkh$1@dough.gmane.org>
"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