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]

Patch: Simplification for i386 STACK_SIZE_MODE definition


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

Attachment: x.txt
Description: Text document


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