From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16930 invoked by alias); 24 Feb 2003 07:16:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 16916 invoked by uid 71); 24 Feb 2003 07:16:00 -0000 Date: Mon, 24 Feb 2003 07:16:00 -0000 Message-ID: <20030224071600.16915.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Neil Booth Subject: Re: driver/9822: The "%c" spec option produces: gcc: spec failure: unrecognized spec option 'c' Reply-To: Neil Booth X-SW-Source: 2003-02/txt/msg01226.txt.bz2 List-Id: The following reply was made to PR driver/9822; it has been noted by GNATS. From: Neil Booth To: bradley-gnu@bradley.lcs.mit.edu Cc: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org Subject: Re: driver/9822: The "%c" spec option produces: gcc: spec failure: unrecognized spec option 'c' Date: Mon, 24 Feb 2003 07:02:51 +0000 bradley-gnu@bradley.lcs.mit.edu wrote:- > I tried to write a spec file that used the %c option, but it is no longer accepted by the driver. The error is printed by line 5234 of gcc.c. It's been removed as it is not necessary. > The gcc.info documentation says that %c is accepted, however: > > `%c' > > Process the `signed_char' spec. This is intended to be used to > > tell cpp whether a char is signed. It typically has the > > definition: > > %{funsigned-char:-D__CHAR_UNSIGNED__} > > This is probably a documentation bug, rather than a code bug. I think so. > The documentation on the spec files seems quite out-of-date. > For example, I cannot figure out, from the documentation, what does this entry mean in the spec file. > %{fsigned-char&unsigned-char} That's documented in gcc.c. I'm not sure why SPECS have been documented, they're really an internal thing in a constant state of flux. -fsigned-char or -funsigned-char should be all you need. Neil.