Patch: Simplification for i386 STACK_SIZE_MODE definition

Kai Tietz Kai.Tietz@onevision.com
Fri Mar 30 12:20:00 GMT 2007


Hello,

I suggest the following patch, to simplify the definition STACK_SIZE_MODE 
as Pmode. On any i386 target the stack size mode is equivalent to the 
Pmode.
Therefore the method in explow.c "emit_stack_probe" should use instead of 
word_mode the STACK_SIZE_MODE macro. This patch is also for the new x86_64 
target for mingw, because the word_mode is there still the SImode, 
reasoned by the fact, that a long is still 32-bit.

ChangeLog:

2007-03-30  Kai Tietz  <kai.tietz@onevision.com>

        * gcc/explow.ct: (emit_stack_probe): Replaced "word_mode" by 
STACK_SIZE_MODE.
        * gcc/config/i386/i386.h: Define STACK_SIZE_MODE as Pmode.

Regards,
 i.A. Kai Tietz



------------------------------------------------------------------------------------------
  OneVision Software Entwicklungs GmbH & Co. KG
  Dr.-Leo-Ritter-Straße 9 - 93049 Regensburg
  Tel: +49.(0)941.78004.0 - Fax: +49.(0)941.78004.489 - www.OneVision.com
  Commerzbank Regensburg - BLZ 750 400 62 - Konto 6011050
  Handelsregister: HRA 6744, Amtsgericht Regensburg
  Komplementärin: OneVision Software Entwicklungs Verwaltungs GmbH
  Dr.-Leo-Ritter-Straße 9 – 93049 Regensburg
  Handelsregister: HRB 8932, Amtsgericht Regensburg - Geschäftsführer: 
Ulrike Döhler, Manuela Kluger
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: x.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070330/546e1003/attachment.txt>


More information about the Gcc-patches mailing list