This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Optimize loading of special constants on h8300.
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: [patch] Optimize loading of special constants on h8300.
- From: law at redhat dot com
- Date: Wed, 29 Aug 2001 10:54:13 -0600
- cc: Kazu Hirata <kazu at hxi dot com>, gcc-patches at gcc dot gnu dot org
- Reply-To: law at redhat dot com
In message <20010829093920.B3625@redhat.com>you write:
> On Wed, Aug 29, 2001 at 08:19:17AM -0700, Kazu Hirata wrote:
> > ! switch (val)
> > {
> > ! case 0xffffffff:
>
> This fails cross-compiling from a 64-bit host. Please rewrite
> these as signed constants, or use (val & 0xffffffff).
Good point.
In Kazu's defense, I'm pretty sure the old code wasn't 64bit safe either.
jeff