This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: RFA: Ada variable-sized objects, bit_size_type == TImode, and divti3


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


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