This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: native gdb.sum gdb.base/interrupt.exp
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: native gdb.sum gdb.base/interrupt.exp
- From: Andreas Jaeger <aj at suse dot de>
- Date: Mon, 06 Aug 2001 10:13:54 +0200
- Cc: Jan Hubicka <jh at suse dot cz>, gcc-patches at gcc dot gnu dot org
- References: <20010803094648.A7461@redhat.com><20010803195655.A1456@atrey.karlin.mff.cuni.cz><20010804095938.C18198@redhat.com>
Richard Henderson <rth@redhat.com> writes:
> On Fri, Aug 03, 2001 at 07:56:55PM +0200, Jan Hubicka wrote:
> > > What if we attack the unaligned stack problem in main
>> > by making main appear use alloca to align the frame?
>> This sounds like good idea, modulo the pesimization of
>> code in main. I am not sure how important it is except
>> for trivial benchmarks.
>
> I'm currently testing the following patch. I've reverted the
> ix86_output_main_function_alignment_hack patch in advance in
> hopes of getting a clean run out of the regression tester.
>
> At -O0, we get
>
> andl $-16, %esp
> movl $0, %eax
> subl %eax, %esp
>
> which is slightly silly, but not overmuch. With any optimization
> things clean up as you'd hope.
Richard,
Was the test sucessfull? I didn't notice your commit and Honza's
change really was an improvement for the SPECfp tests.
Cheers,
Andreas
>
> r~
>
>
> * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
> * function.c (expand_main_function): Implement it.
> * doc/tm.texi: Document it.
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
PGP signature