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 i386 4.4/trunk]: Fix sse restore for x86_64 in case of !sp_valid


> Sorry, here is the right one for 4.4
> 
> Cheers,
> Kai
> 
> -- 
> |  (\_/) This is Bunny. Copy and paste
> | (='.'=) Bunny into your signature to help
> | (")_(") him gain world domination

> Index: gcc/gcc/config/i386/i386.c
> ===================================================================
> --- gcc.orig/gcc/config/i386/i386.c	2009-08-29 16:01:20.000000000 +0200
> +++ gcc/gcc/config/i386/i386.c	2009-08-29 16:03:59.572680900 +0200
> @@ -8630,7 +8630,8 @@
>            ix86_emit_restore_sse_regs_using_mov (stack_pointer_rtx,
>  					        frame.to_allocate, style == 2);
>  	  pro_epilogue_adjust_stack (stack_pointer_rtx, stack_pointer_rtx,
> -				     GEN_INT (frame.nsseregs * 16), style);
> +				     GEN_INT (frame.nsseregs * 16 +
> +				       frame.padding0), style);

Ah, this is OK (with changelog+testcase and bootstrap/regtest ;)

Honza
>  	}
>        else if (frame.to_allocate || frame.nsseregs)
>  	{


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