Message ID | CAJA7tRa8sMQbg==u8srmfRGKpbjA2+cF5c466xAHvpjZB+8_4w@mail.gmail.com |
---|---|
State | New |
Headers | show |
Ramana Radhakrishnan <ramana.gcc@googlemail.com> writes: > diff --git a/gcc/ChangeLog b/gcc/ChangeLog > index 354cdb9..8ef9a0f 100644 > --- a/gcc/ChangeLog > +++ b/gcc/ChangeLog > @@ -1,3 +1,8 @@ > +2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> > + > + * wide-int.cc (UTItype): Define. > + (UDWtype): Define for appropriate W_TYPE_SIZE. > + > 2014-05-08 Alan Modra <amodra@gmail.com> > > PR target/60737 > diff --git a/gcc/wide-int.cc b/gcc/wide-int.cc > index 69a15bc..3552e03 100644 > --- a/gcc/wide-int.cc > +++ b/gcc/wide-int.cc > @@ -34,6 +34,12 @@ typedef unsigned HOST_WIDE_INT UWtype; > typedef unsigned int UQItype __attribute__ ((mode (QI))); > typedef unsigned int USItype __attribute__ ((mode (SI))); > typedef unsigned int UDItype __attribute__ ((mode (DI))); > +typedef unsigned int UTItype __attribute__ ((mode (TI))); > +#if W_TYPE_SIZE == 32 > +# define UDWtype UDItype > +#elif W_TYPE_SIZE == 64 > +# define UDWtype UTItype > +#endif > #include "longlong.h" > #endif OK, thanks. Technically the W_TYPE_SIZE == 32 should be dead now that HWI is always 64 bits, but there's still a debate about whether wide-int should continue using HOST_WIDE_INT/int64_t or something else, so I think it would be best to keep it. Richard
On Thu, 8 May 2014, Ramana Radhakrishnan wrote: > <DATE> Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> > > * wide-int.cc (UTItype): Define. > (UDWtype): Define for appropriate W_TYPE_SIZE. This breaks builds for 32-bit hosts, where TImode isn't supported. You can only use TImode on the host if it's 64-bit. wide-int.cc:37:56: error: unable to emulate 'TI'
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 354cdb9..8ef9a0f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> + + * wide-int.cc (UTItype): Define. + (UDWtype): Define for appropriate W_TYPE_SIZE. + 2014-05-08 Alan Modra <amodra@gmail.com> PR target/60737 diff --git a/gcc/wide-int.cc b/gcc/wide-int.cc index 69a15bc..3552e03 100644 --- a/gcc/wide-int.cc +++ b/gcc/wide-int.cc @@ -34,6 +34,12 @@ typedef unsigned HOST_WIDE_INT UWtype; typedef unsigned int UQItype __attribute__ ((mode (QI))); typedef unsigned int USItype __attribute__ ((mode (SI))); typedef unsigned int UDItype __attribute__ ((mode (DI))); +typedef unsigned int UTItype __attribute__ ((mode (TI))); +#if W_TYPE_SIZE == 32 +# define UDWtype UDItype +#elif W_TYPE_SIZE == 64 +# define UDWtype UTItype +#endif #include "longlong.h" #endif