This is the mail archive of the
mailing list for the GCC project.
Re: changing "configure" to default to "gcc -g -O2 -fwrapv ..."
- From: Ian Lance Taylor <iant at google dot com>
- To: bkorb at gnu dot org
- Cc: Daniel Berlin <dberlin at dberlin dot org>, gcc at gcc dot gnu dot org
- Date: 01 Jan 2007 16:37:36 -0800
- Subject: Re: changing "configure" to default to "gcc -g -O2 -fwrapv ..."
- References: <200612300047.kBU0lFwk014817@localhost.localdomain> <email@example.com> <firstname.lastname@example.org> <email@example.com> <firstname.lastname@example.org> <email@example.com> <firstname.lastname@example.org> <email@example.com> <firstname.lastname@example.org> <459895A3.email@example.com> <firstname.lastname@example.org> <email@example.com>
Bruce Korb <firstname.lastname@example.org> writes:
> WRT strict aliasing, I've never seen any data that indicated that the
> language change was compelling. Consequently, as best I can tell it
> was a marginal optimization improvement. So, I doubt its value.
> Still, it should have had compiler warnings in advance.
I've seen programs that doubled in speed when strict aliasing was
You won't see this effect on an x86, since all current x86
implementations are out-of-order processors. You can think of an
out-of-order processor as doing on-the-fly perfectly accurate alias
For in-order processors with complex scheduling requirements, strict
aliasing can make a dramatic difference in execution time, because it
give the compiler considerable freedom to reorder loads and stores.