public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrea Pretto <andrea_pretto@yahoo.it>
To: "DY, JERRY U (SBCSI)" <jd2419@sbc.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Help with specs
Date: Mon, 23 Aug 2004 13:40:00 -0000	[thread overview]
Message-ID: <1093254518.792.4.camel@debian-host> (raw)
In-Reply-To: <AA1FDDF074D3564F9D4F9BCC5FCD2BD10840C2@CAFRFD1MSGUSR10.ITServices.sbc.com>

In my spec , I have changed my cpp line in this way:
*cpp:
%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}
-D_INCLUDE__STDC_A1_SOURCE

That is, I have appended -D_INCLUDE__STDC_A1_SOURCE, and this code

#include <stdio.h>

int main ( void ){

#ifdef _INCLUDE__STDC_A1_SOURCE
  printf("Yes\n");
#else
  printf("No\n");
#endif
  return 0;
}

print "Yes" string.
It seem correct.
	
On Mon, 2004-08-16 at 21:24, DY, JERRY U (SBCSI) wrote:
> Here's my config:
> 
> g++ -v
> Reading specs from
> /usr/local/appl/gcc-3.4.1/lib/gcc/hppa2.0w-hp-hpux11.11/3.4.1/specs
> Configured with: ../gcc-3.4.1/configure --prefix=/usr/local/appl/gcc
> --with-as=/usr/local/appl/binutils/bin/as --enable-threa
> ds=posix
> Thread model: posix
> gcc version 3.4.1
> 
> I wanted to change the specs so that -D_INCLUDE__STDC_A1_SOURCE is
> defined everytime the precompiler is invoked, so I modify the cpp entry
> in the specs file as follows:
> 
> *cpp:
> -D_INCLUDE__STDC_A1_SOURCE %{mt|pthread:-D_REENTRANT -D_THREAD_SAFE
> -D_POSIX_C_SOURCE=199506L}
> 
> But it doesn't appear to be working. Is there something wrong with my
> syntax or am I missing something? Thanks!
> 
> -Jerry

      reply	other threads:[~2004-08-23  9:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-17 11:30 DY, JERRY U (SBCSI)
2004-08-23 13:40 ` Andrea Pretto [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1093254518.792.4.camel@debian-host \
    --to=andrea_pretto@yahoo.it \
    --cc=gcc-help@gcc.gnu.org \
    --cc=jd2419@sbc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).