From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5121 invoked by alias); 8 Sep 2011 17:40:58 -0000 Received: (qmail 4902 invoked by uid 22791); 8 Sep 2011 17:40:54 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 08 Sep 2011 17:40:40 +0000 Received: from hpaq5.eem.corp.google.com (hpaq5.eem.corp.google.com [172.25.149.5]) by smtp-out.google.com with ESMTP id p88HecJw030763 for ; Thu, 8 Sep 2011 10:40:38 -0700 Received: from ywm13 (ywm13.prod.google.com [10.192.13.13]) by hpaq5.eem.corp.google.com with ESMTP id p88HdgL0028853 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 8 Sep 2011 10:40:37 -0700 Received: by ywm13 with SMTP id 13so855654ywm.28 for ; Thu, 08 Sep 2011 10:40:36 -0700 (PDT) Received: by 10.68.7.165 with SMTP id k5mr1414862pba.56.1315503636622; Thu, 08 Sep 2011 10:40:36 -0700 (PDT) Received: by 10.68.7.165 with SMTP id k5mr1414855pba.56.1315503636493; Thu, 08 Sep 2011 10:40:36 -0700 (PDT) Received: from coign.google.com ([216.239.45.130]) by mx.google.com with ESMTPS id u10sm14320806pbr.12.2011.09.08.10.40.35 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 08 Sep 2011 10:40:35 -0700 (PDT) From: Ian Lance Taylor To: "Paulo J. Matos" Cc: gcc-help@gcc.gnu.org Subject: Re: Specs file port References: Date: Thu, 08 Sep 2011 17:40:00 -0000 In-Reply-To: (Paulo J. Matos's message of "Thu, 8 Sep 2011 12:38:24 +0000 (UTC)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-09/txt/msg00071.txt.bz2 "Paulo J. Matos" 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