This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/22141] [4.0/4.1 Regression] Missing optimization when storing structures
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2005 03:59:03 -0000
- Subject: [Bug middle-end/22141] [4.0/4.1 Regression] Missing optimization when storing structures
- References: <bug-22141-9973@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2005-10-31 03:59 -------
(In reply to comment #2)
> Leaving as P2.
> Do we know what's different?
Yes in 4.0 and above there is no CONSTRUCTOR so we don't see the full
CONSTRUCTOR in expand so it could expand to just one integer store.
>The structure type is byte-aligned. How did 2.95 justify using a 4-byte store?
There is no strict alignment requirements for either PPC or x86 which is why
GCC did it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22141