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] x86 incorrect code generation when -mstackrealign option is specified


The number of register parameters should be 2 instead of 3 when a function realigns its stack pointer through %ecx.
"ix86_force_align_arg_pointer" is set when " -mstackrealign option" is specified.


The following patch has been tested on x86 MacOS with "make all", "-- enable-languages=c,c++,objc,obj-c++", and regression tested with a top-level "make check-gcc" with no regression.

ChangeLog:
2007-05-21  Hui-May Chang  <hm.chang@apple.com>
        * config/i386/i386.c (ix86_function_regparm): Added checking of
        ix86_force_align_arg_pointer to determine the number of
        register parameters.

* gcc.target/i386/stack-realign.c: New.

Attachment: radar-patch.stack-realign.txt
Description: Text document

OK for mainline?

Hui-May Chang




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