This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add word-sized conversion functions to libgcc2
- From: DJ Delorie <dj at redhat dot com>
- To: richard at codesourcery dot com
- Cc: anemet at caviumnetworks dot com, gcc-patches at gcc dot gnu dot org, roger at eyesopen dot com, mark at codesourcery dot com
- Date: Mon, 22 May 2006 23:25:22 -0400
- Subject: Re: [PATCH] Add word-sized conversion functions to libgcc2
- References: <17512.10364.797535.170801@localhost.localdomain> <87sln84jw1.fsf@talisman.home>
> - Make compiling libgcc2.c a no-op if LIBGCC2_UNITS_PER_WORD
> > MIN_UNITS_PER_WORD.
This totally breaks m32c-elf, which has MIN_UNITS_PER_WORD == 2 and
LIBGCC_UNITS_PER_WORD == 4. The whole file goes away and nearly every
program stops compiling.
m32c-elf is a 16 bit port with 64 bit "long long", which forces
libgcc2's units per word to 4:
# elif (MIN_UNITS_PER_WORD > 2 \
|| (MIN_UNITS_PER_WORD > 1 && LONG_LONG_TYPE_SIZE > 32))
# define LIBGCC2_UNITS_PER_WORD 4