From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: "H . J . Lu" Cc: gdb@sources.redhat.com Subject: Re: prgregset_t vs gdb_gregset_t on Linux: not the same! Date: Mon, 11 Jun 2001 06:48:00 -0000 Message-id: <3B24CC3B.8070407@cygnus.com> References: <20010608132730.A4056@nevyn.them.org> <20010608155907.A21698@nevyn.them.org> <20010608221452.B3344@lucon.org> <3B22492E.5020908@cygnus.com> <20010610002356.A1938@lucon.org> X-SW-Source: 2001-06/msg00073.html > # make > gcc -M -I. foo.c > foo.o: foo.c tm.h mips/tm-linux.h > gcc -M -I. foo.c -DFIXED > foo.o: foo.c tm.h mips/tm-linux.h tm-linux.h > > Did I miss something here? Actually no. I'm wrong on this count. Any way, back to the original tm-littlemips.h file: > #ifndef TM_MIPSLITTLELINUX_H > #define TM_MIPSLITTLELINUX_H > > #define TARGET_BYTE_ORDER LITTLE_ENDIAN > > #include "mips/tm-linux.h" both the little and big endian GNU/Linux/MIPS targets should use a single config/mips/tm-linux.h file. The code no longer needs to define TARGET_BYTE_ORDER. With regard to #include "tm-linux.h", I'd mimic *bsd. That way it is clear exactly what is going on. Regardless of the semantics of "" vs <>. Andrew