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: [PATCH 4.5]: Fix PR39146 unneccesary stack realign


Update testcase. OK for 4.5?

Thanks - Joey

-----Original Message-----
From: H.J. Lu [mailto:hjl.tools@gmail.com] 
Sent: Monday, March 02, 2009 11:17 PM
To: Ye, Joey
Cc: GCC Patches
Subject: Re: [PATCH 4.5]: Fix PR39146 unneccesary stack realign

Hi Joey,

It is too late for 4.4.  We are submitting it for gcc 4.5.

On Sun, Mar 1, 2009 at 11:42 PM, Ye, Joey <joey.ye@intel.com> wrote:
> Refer to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39146
>
> gcc/ChangeLog:
> 2009-03-01 ?Joey Ye ?<joey.ye@intel.com>
>
> ? ? ? ?PR middle-end/39146
> ? ? ? ?* cfgexpand.c (get_decl_align_unit): Update
> ? ? ? ?max_used_stack_slot_alignment with align instead of
> ? ? ? ?stack_alignment_needed.
>
> ? ? ? ?* function.c (assign_stack_local_1): Update
> ? ? ? ?max_used_stack_slot_alignment with alignment_in_bits instead
> ? ? ? ?of stack_alignment_needed.
> ? ? ? ?(locate_and_pad_parm): Don't update max_used_stack_slot_alignment
> ? ? ? ?here.
>
> Modified:
> ? ?branches/stack/gcc/cfgexpand.c
> ? ?branches/stack/gcc/function.c
>
> testsuites/ChangeLog:
> 2009-03-01 ?H.J. Lu ?<hongjiu.lu@intel.com>
>
> ? ? * gcc.target/i386/avx-m256-align.c: New testcase.

Please move it to gcc.target/i386/stackalign and remove

/* { dg-require-effective-target lp64 } */

You can use

/* { dg-final { scan-assembler-not "and\[lq\]?\[\\t \]*\\$-32,\[\\t
\]*%\[re\]?sp" } } */



-- 
H.J.

Attachment: gcc-pr39146-2.patch
Description: gcc-pr39146-2.patch


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