This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: HP-UX IA64 ILP32 patch
- From: Richard Henderson <rth at redhat dot com>
- To: Steve Ellcey <sje at cup dot hp dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 12 Jul 2002 11:36:32 -0700
- Subject: Re: HP-UX IA64 ILP32 patch
- References: <200206241710.KAA15119@hpsje.cup.hp.com>
On Mon, Jun 24, 2002 at 10:10:11AM -0700, Steve Ellcey wrote:
> In 64 bit mode all symbolic operands are DImode (Pmode) but in 32 bit
> mode you can see both SImode (ptr_mode) symbols and DImode (Pmode)
> symbols. This is because of convert_memory_address in explow.c.
Grrr. Ok.
> Would
>
> if ((mode == ptr_mode) || (mode == Pmode))
>
> be preferable to
>
> if ((mode == DImode) || (mode == SImode))
>
> when I am checking modes? That way 64 bit mode will only check for DImode
> and 32 bit mode will allow either SImode or DImode symbols.
Yes. And, stylistically, without the extraneous parenthesis.
r~