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]

problem with libgcc2.h


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.

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