This is the mail archive of the gcc-bugs@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]

more hpux 10.20 trouble: bad gencodes.c file


More attempts to boot hppa2.0-hp-hpux10.20, this time --with-gnu-as .

gcc/gencodes.c is bad and will not compile in the stage 2 build, but it
compiles in stage 1.  The problem is that there are duplicate definitions
of many enums, such as cmp_type and processor_type; a number of macros are
redefined as well.

It turns out that the difficulty is that config/pa/pa32-regs.h and
config/pa/pa.h are included twice, and there are no include guards.
Adding #ifndef xxx/#define xxx 1/#endif constructs got the file to compile.
I have no idea why this doesn't show up in stage 1 (I have an older gcc,
2.8.1, on that machine which is being used for the initial build).

I seem to be having a similar problem in gcc/rtl.c; in this case, it
seems that ggc.h is getting included twice, judging from

/u/jbuck/gnu/src/cvs/gcc/gcc/ggc.h:200: redefinition of `ggc_statistics'
/u/jbuck/gnu/src/cvs/gcc/gcc/ggc.h:200: `ggc_statistics' previously declared her


How should this be handled?

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