This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Bootstrapping hppa64? CPP problem
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 10 Jul 2002 15:54:18 -0700 (PDT)
- Subject: Bootstrapping hppa64? CPP problem
- Reply-to: sje at cup dot hp dot com
I am curious if anyone is currently bootstrapping the hppa64 GCC
compiler from the latest sources? I am running into a very curious cpp
problem. With the attached example, using the cc1 that I just built I
get two definitions of sigpause showing up because _SVID2 seems to be
considered defined and undefined at the same time. It doesn't happen on
the other platforms I have tried but it happens consistenly for me on
PA64.
Steve Ellcey
sje@cup.hp.com
[hpsje - sje_pa64] $ cat x.c
#define _SVID2
#if !defined(_SVID2)
extern long sigpause(long);
#endif
#if defined(_SVID2)
extern int sigpause(int);
#endif
--------------------------------
[hpsje - sje_pa64] $ obj_pa64_gcc/gcc/cc1 -E -quiet x.c
# 1 "x.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "x.c"
extern long sigpause(long);
extern int sigpause(int);