This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Bootstrapping hppa64? CPP problem


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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]