This is the mail archive of the gcc-patches@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: HP-UX IA64 ILP32 patch


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~


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