public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Specs file port
@ 2011-09-08 12:38 Paulo J. Matos
  2011-09-08 17:40 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Paulo J. Matos @ 2011-09-08 12:38 UTC (permalink / raw)
  To: gcc-help


Hi,

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.

Any ideas?

-- 
PMatos

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Specs file port
  2011-09-08 12:38 Specs file port Paulo J. Matos
@ 2011-09-08 17:40 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2011-09-08 17:40 UTC (permalink / raw)
  To: Paulo J. Matos; +Cc: gcc-help

"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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-08 17:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-08 12:38 Specs file port Paulo J. Matos
2011-09-08 17:40 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).