This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: -fno-align-functions still adds padding on i386 on gcc3.1
- From: John Baldwin <jhb at FreeBSD dot org>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 16 May 2002 23:27:47 -0400 (EDT)
- Subject: Re: -fno-align-functions still adds padding on i386 on gcc3.1
On 17-May-2002 Richard Henderson wrote:
> On Thu, May 16, 2002 at 11:06:48PM -0400, John Baldwin wrote:
>> Thanks. Someone else discovered that the additional function padding
>> wasn't actually making up that much of a difference but that using
>> -fno-guess-branch-probability cut down on the generated code size
>> considerably. Perhaps -Os should not enable this optimization?
>
> Hum. Better would be to modify -freorder-blocks so that
> it had a mode in which it tried to minimize the number
> (and size) of branches.
>
> For those cases in which the number of branches is identical,
> we should still honor the branch probability.
That sounds fine to me, you know much more about this than I. :)
--
John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!" - http://www.FreeBSD.org/