patch to handle i386 stack alignment using the stack pointer

John Wehle john@feith.com
Wed Mar 31 18:59:00 GMT 1999


> In message <199901270648.BAA16929@jwlab.FEITH.COM>you write:
> > This patch causes gcc to align the i386 stack when necessary.  It works
> > by using reload to eliminate the frame pointer from local variables in
> > favor of the stack pointer and by aligning the stack pointer in the
> > prologue.

> I'd like to try this patch, but I get a variety of conflicts when I apply it
> to the current sources.  Any chance you could update and resubmit diffs
> against the current tree?

Yep, I'll update the patch.  A separate (but related) issue is:

Wed Feb  3 13:06:06 EST 1999  John Wehle  (john@feith.com)

        * reload1.c (set_label_offsets): Don't disable the elimination
        when the offsets don't agree at a CODE_LABEL if it's the last
        basic block, the register isn't mentioned, and there are no jumps
        to previous blocks.

which addresses the situation where the stack alignment (performed by reload)
fails due to the EXIT_IGNORE_STACK optimization.  I mention it merely for
completeness ...  I have not yet had a chance to take a closer look at the
issues you raised.

-- John
-------------------------------------------------------------------------
|   Feith Systems  |   Voice: 1-215-646-8000  |  Email: john@feith.com  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |
-------------------------------------------------------------------------




More information about the Gcc-patches mailing list