This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
problem with libgcc2.h
- To: gcc-bugs at gcc dot gnu dot org
- Subject: problem with libgcc2.h
- From: Herman ten Brugge <Haj dot Ten dot Brugge at net dot HCC dot nl>
- Date: Thu, 14 Sep 2000 19:39:19 +0100 (WEST)
Hello,
The patch:
* libgcc2.h: Use LONG_LONG_TYPE_SIZE instead of MIN_UNITS_PER_WORD
to decide whether 64-bit support must be generated.
makes it impossible to compile the libgcc2.c for the c4x target. I do
not know why this patch is needed but setting MIN_UNITS_PER_WORD by
the target with the problem can perhaps solve this incompatablity. If not
then we probably need some other change to solve this problem.
Currently MIN_UNITS_PER_WORD is only used in caller-save.c and libgcc2.h.
Some backgound on the c4x:
The c4x has an odd char/short/int/long/float/double definition. They are
all 32 bits. This means that BITS_PER_UNIT=BITS_PER_WORD=32 and
UNITS_PER_WORD=1. LONG_LONG_TYPE_SIZE=64 bits and this means we get the
wrong definitions in the libgcc2.h file after the patch above.
Herman.