breakage with "[10/27] Using target structures for init_expmed"

Hans-Peter Nilsson hp@bitrange.com
Mon Jul 12 23:20:00 GMT 2010


On Wed, 7 Jul 2010, Richard Sandiford wrote:
> gcc/
> 	* Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
> 	* expmed.h: New file.

Missing the defaults for MAX_BITS_PER_WORD from expmed.c,
breaking non-bi-wordsize ports like cris-elf:

gcc -c   -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall
-Wwrite-strings -Wcast-qual -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wc++-compat -fno-common -Wno-error
-DHAVE_CONFIG_H -I. -I. -I/tmp/hpautotest-gcc1/gcc/gcc
-I/tmp/hpautotest-gcc1/gcc/gcc/.
-I/tmp/hpautotest-gcc1/gcc/gcc/../include
-I/tmp/hpautotest-gcc1/gcc/gcc/../libcpp/include
-I/tmp/hpautotest-gcc1/cris-elf/gccobj/./gmp
-I/tmp/hpautotest-gcc1/gcc/gmp
-I/tmp/hpautotest-gcc1/cris-elf/gccobj/./mpfr
-I/tmp/hpautotest-gcc1/gcc/mpfr
-I/tmp/hpautotest-gcc1/gcc/mpc/src
-I/tmp/hpautotest-gcc1/gcc/gcc/../libdecnumber
-I/tmp/hpautotest-gcc1/gcc/gcc/../libdecnumber/dpd
-I../libdecnumber   -I/usr/include/libelf
/tmp/hpautotest-gcc1/gcc/gcc/expmed.c -o expmed.o
In file included from /tmp/hpautotest-gcc1/gcc/gcc/expmed.c:41:
/tmp/hpautotest-gcc1/gcc/gcc/expmed.h:96: error:
'MAX_BITS_PER_WORD' undeclared here (not in a function)

Yeah, it's a obvious enough fix, but testing apparently isn't
trivial, so I'll leave the honors to you.

brgds, H-P



More information about the Gcc-patches mailing list