This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: Ada variable-sized objects, bit_size_type == TImode, and divti3
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: Ulrich Weigand <Ulrich dot Weigand at de dot ibm dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 20 Mar 2003 14:38:32 -0800
- Subject: Re: RFA: Ada variable-sized objects, bit_size_type == TImode, and divti3
- References: <OFBAB4CE9A.60EE15CF-ONC1256CEF.0072786F@de.ibm.com>
On Thu, Mar 20, 2003 at 09:58:58PM +0100, Ulrich Weigand wrote:
> Hello,
>
> Ada builds are currently failing on s390x due to missing __divti3.
>
> How does this work on other 64-bit platforms?
You can change the value of MIN_UNITS_PER_WORD when compiling libgcc2.c.
For example, in config/rs6000/rs6000.h:
/* Width of a word, in units (bytes). */
#define UNITS_PER_WORD (! TARGET_POWERPC64 ? 4 : 8)
#ifdef IN_LIBGCC2
#define MIN_UNITS_PER_WORD UNITS_PER_WORD
#else
#define MIN_UNITS_PER_WORD 4
#endif
This can cause some needed DImode functions to disappear; if that
happens, you'll need to find a way to add them again. That happened
for soft-float support for powerpc64-unknown-linux-gnu.
Janis