Patch: Simplification for i386 STACK_SIZE_MODE definition

Kai Tietz
Fri Mar 30 12:20:00 GMT 2007


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 
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.


2007-03-30  Kai Tietz  <>

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

 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 -
  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: <>

More information about the Gcc-patches mailing list