This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30819] php 5.2.1 / gcc 4.1.1 / solaris 2.9 / 64 bit
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Feb 2007 16:44:51 -0000
- Subject: [Bug c/30819] php 5.2.1 / gcc 4.1.1 / solaris 2.9 / 64 bit
- References: <bug-30819-14084@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from ebotcazou at gcc dot gnu dot org 2007-02-16 16:44 -------
> Do you mean it is some kind of "improvement" in GCC 4.x that makes the result
> binary to segfault in random places when compiled without -fstrict-aliasing ?
No, -fstrict-aliasing is not new, it's there since GCC 2.95 and the rules
haven't changed since then. But GCC 4 is much more aggressive than GCC 3
in some cases and this may uncover subtle aliasing violations in the code.
See the section in the manual about -fstrict-aliasing.
Or this could be a bug in the compiler. That's why it would be interesting
to try with the 4.1.2 release too.
In either case, someone familiar with the PHP code will have to determine
what goes wrong exactly. Only then will we be able to find a remedy.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30819