Re: Warning: Immediates 21 and 32 will give undefined behavior.
- To: debian-hppa@lists.debian.org
- Cc: John David Anglin <dave@hiauly1.hia.nrc.ca>
- Subject: Re: Warning: Immediates 21 and 32 will give undefined behavior.
- From: Frans Pop <elendil@planet.nl>
- Date: Sat, 1 Aug 2009 10:20:47 +0200
- Message-id: <[🔎] 200908011020.47789.elendil@planet.nl>
- In-reply-to: <119aab440907311243v3e6cefffy4765f7eb7666f502@mail.gmail.com>
- References: <119aab440907311153k199bcb10nc6a9170706f932b7@mail.gmail.com> <20090731191053.41A6D5161@hiauly1.hia.nrc.ca> <119aab440907311243v3e6cefffy4765f7eb7666f502@mail.gmail.com>
On Friday 31 July 2009, Carlos O'Donell wrote:
> On Fri, Jul 31, 2009, John David Anglin<dave@hiauly1.hia.nrc.ca> wrote:
> >> > GCC loads various constants with depwi and depdi. The deposit
> >> > length was wrong.
> >
> > No, the bug is present in all released versions of gcc. They need
> > to build a snapshot from the current GCC svn tree (4.3, 4.4 or
> > trunk), or apply the patch to their own source.
> >
> > 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
> > * pa.c (compute_zdepwi_operands): Limit deposit length to 32 -
> > lsb. Cast "1" to unsigned HOST_WIDE_INT.
> > (compute_zdepdi_operands): Limit maximum length to 64 bits.
> > Limit deposit length to the maximum length - lsb. Extend length if
> > HOST_BITS_PER_WIDE_INT is 32.
>
> Would you mind filing a bug against debian gcc to have them pickup
> this patch for hppa?
Done: http://bugs.debian.org/539470
Cheers,
FJP
Reply to: