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]

Re: native gdb.sum gdb.base/interrupt.exp


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


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