strange x86 generation of 2.95 compare to 1.1.2

Lee Hetherington ilh@sls.lcs.mit.edu
Thu Jun 17 17:04:00 GMT 1999


Jeffrey A Law wrote:

>   In message < 37696598.900DFC1@sls.lcs.mit.edu >you write:
>   > The following code produces a lot of extra stack manipulations with
>   > gcc-2.95 (19990608) compared to egcs-1.1.2 and gcc-2.7.2.3:
> This is to ensure stacks are aligned on 16 byte boundaries so that we can
> ensure that double and mmx values are properly aligned in the stack.

I see.  It still has two more %esp manipulations than it needs (just look at
the non-call path).

> There is an option to turn off this behavior (I don't remember it offhand
> though).

I just found that it is -mpreferred-stack-boundary=2.  BTW, the info page
mistakenly calls it -mpreferred_stack_boundary (with _ instead of -).

--Lee Hetherington



More information about the Gcc mailing list