Edit report at https://bugs.php.net/bug.php?id=46311&edit=1
ID: 46311 Comment by: ni...@php.net Reported by: anton at samba dot org Summary: Pointer aliasing issue results in miscompile on gcc4.4 Status: Closed Type: Bug Package: Compile Failure Operating System: RHEL5.2 / PowerPC64 PHP Version: 5.2.9 Assigned To: dmitry Block user comment: N Private report: N New Comment: Fixed in 5.5 and master. Previous Comments: ------------------------------------------------------------------------ [2013-08-22 09:06:22] ni...@php.net Automatic comment on behalf of nikic Revision: http://git.php.net/?p=php-src.git;a=commit;h=fc16b923135bf1670f6791d3998aeb19edde1ca5 Log: Fix bug #46311: Pointer aliasing issue results in miscompile on gcc4.4 ------------------------------------------------------------------------ [2013-08-22 07:34:33] olemar...@php.net Does it matter exactly where the bug is? It breaks compilation on arm and sparc as far as I can tell, and the patch is really simple. The problem is not caused by aggressive optimisations at least. I would not bother upstream with it if it was. ------------------------------------------------------------------------ [2013-03-19 19:24:12] dmi...@php.net This is not a PHP problem. The C code is absolutely legal and wrong compilation caused by a bug in GCC or too aggressive optimization options that make wrong assumptions. ------------------------------------------------------------------------ [2013-03-19 18:51:42] olemar...@php.net The Gentoo patchset has been running with this for years now. Any reason why this has not been resolved yet? ------------------------------------------------------------------------ [2010-07-25 02:17:06] mabi at gentoo dot org There are Gentoo downstream bugs related to this issue: https://bugs.gentoo.org/show_bug.cgi?id=295682 https://bugs.gentoo.org/show_bug.cgi?id=329753 I'd love to see this fixed upstream, but will ship a custom patch to get this more testing shortly. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=46311 -- Edit this bug report at https://bugs.php.net/bug.php?id=46311&edit=1