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]

egcs-19980707/sh-elf


Hi,

I tried to build an egcs-19980707 cross-compiler for target=sh-elf
hosted on an i686 linux-gnulibc1 PC, now I get warnings about a
duplicate define:

gcc -DCROSS_COMPILE -DIN_GCC    -g -O2  -DHAVE_CONFIG_H     -I.
-I/usr/src/packages/egcs/egcs-19980707/gcc
-I/usr/src/packages/egcs/egcs-19980707/gcc/config  \
  -DTARGET_NAME=\"sh-elf\" \
  -c `echo /usr/src/packages/egcs/egcs-19980707/gcc/toplev.c | sed
's,^\./,,'`
In file included from
/usr/src/packages/egcs/egcs-19980707/gcc/config/sh/elf.h:42,
                 from tm.h:1,
                 from
/usr/src/packages/egcs/egcs-19980707/gcc/config/i386/xm-i386.h:43,
                 from config.h:2,
                 from
/usr/src/packages/egcs/egcs-19980707/gcc/toplev.c:26:
/usr/src/packages/egcs/egcs-19980707/gcc/config/svr4.h:485: warning:
`MAX_OFILE_ALIGNMENT' redefined
/usr/src/packages/egcs/egcs-19980707/gcc/config/sh/sh.h:261: warning:
this is the location of the previous definition


I am not sure about it, but I think the tiny patch below fixes this
problem.

------------------------- snip--------------------
--- egcs-19980707.orig/gcc/config/sh/elf.h   Thu Jul  9 02:30:54 1998
+++ egcs-19980707/gcc/config/sh/elf.h       Thu Jul  9 05:34:21 1998
@@ -37,6 +37,7 @@
 #undef ASM_OUTPUT_DESTRUCTOR
 #undef ASM_DECLARE_FUNCTION_NAME
 #undef PREFERRED_DEBUGGING_TYPE
+#undef MAX_OFILE_ALIGNMENT

 /* Be ELF-like.  */
 #include "svr4.h"
------------------------- snip--------------------

Ralf.

--
Ralf Corsepius
Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung (FAW)
Helmholtzstr. 16, 89081 Ulm, Germany     Tel: +49/731/501-8690
mailto:corsepiu@faw.uni-ulm.de           FAX: +49/731/501-999
http://www.faw.uni-ulm.de





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