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

sh-elf breakage and fix



It looks like some change broke target sh-elf, and it doesn't build:

gcc -c -DIN_GCC -DCROSS_COMPILE   -g -O2 -W -Wall -Wwrite-strings -Wstrict-p
rototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAV
E_CONFIG_H    -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/conf
ig -I../../gcc/gcc/../include \
	../../gcc/gcc/config/sh/sh.c -o sh.o
...
../../gcc/gcc/config/sh/sh.c: In function `fp_zero_operand':
../../gcc/gcc/config/sh/sh.c:5946: `REAL_VALUE_TYPE' undeclared (first use
in this function)
../../gcc/gcc/config/sh/sh.c:5946: (Each undeclared identifier is reported
only once
../../gcc/gcc/config/sh/sh.c:5946: for each function it appears in.)
...
make[1]: *** [sh.o] Error 1

It looks like the macro REAL_VALUE_TYPE was moved around, and config/sh/sh.c
can't find it currently.

With the patch, compilation proceeds but crashes when building muldi3.o:

/home/tm/gcc-build-sh-elf/gcc/xgcc -B/home/tm/gcc-build-sh-elf/gcc/ -B/usr/l
ocal/sh-elf/bin/ -B/usr/local/sh-elf/lib/ -isystem
/usr/local/sh-elf/include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-s
trings -Wstrict-prototypes -Wmissing-prototypes -isystem
/include   -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. 
-I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../
include  -m4-single -DL_muldi3 -c ../../gcc/gcc/libgcc2.c -o
libgcc/m4-single/_muldi3.o
../../gcc/gcc/libgcc2.c: In function `__muldi3':
../../gcc/gcc/libgcc2.c:367: internal error: Segmentation fault

Here is the patch:

2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>

	* config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.

*** sh.c.bak	Tue May 28 13:54:19 2002
--- sh.c	Tue May 28 14:02:32 2002
*************** Boston, MA 02111-1307, USA.  */
*** 41,46 ****
--- 41,47 ----
  #include "tm_p.h"
  #include "target.h"
  #include "target-def.h"
+ #include "real.h"

  int code_for_indirect_jump_scratch = CODE_FOR_indirect_jump_scratch;



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