# GCC 4.4.0

- Thread: https://externals.io/message/43762
- Original archive: https://news-web.php.net/php.internals/43762
- Started by Sebastian Bergmann on 2009-04-24T08:29:59+00:00
- Messages: 10
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #43762 — Sebastian Bergmann — 2009-04-24T08:29:59+00:00

URL: https://externals.io/message/43762#43762

I experimented a bit with GCC 4.4.0 recently and found out that when
 compiled with it and -O2, PHP_5_3 segfaults. -O0 and -O1 are fine.

 PHP_5_2 and GCC 4.4.0 is fine at -O2.

-- 
Sebastian Bergmann                    Co-Founder and Principal Consultant
http://sebastian-bergmann.de/                           http://thePHP.cc/

---

## #43763 — Scott MacVicar — 2009-04-24T08:37:54+00:00

URL: https://externals.io/message/43762#43763 · In reply to: #43762

Sebastian Bergmann wrote:
>  I experimented a bit with GCC 4.4.0 recently and found out that when
>  compiled with it and -O2, PHP_5_3 segfaults. -O0 and -O1 are fine.
> 
>  PHP_5_2 and GCC 4.4.0 is fine at -O2.
> 

64-bit machine?

There is a known issue with 4.3.0 on 64-bit amd.

Scott

---

## #43764 — Sebastian Bergmann — 2009-04-24T08:41:52+00:00

URL: https://externals.io/message/43762#43764 · In reply to: #43763

Scott MacVicar schrieb:
> 64-bit machine?

 Nope:

   sb@ubuntu ~ % uname -a
   Linux ubuntu 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC
   2009 i686 GNU/Linux

   sb@ubuntu ~ % /usr/local/gcc/bin/gcc -v
   Using built-in specs.
   Target: i686-pc-linux-gnu
   Configured with: ../configure --prefix=/usr/local/gcc
                                 --enable-languages=c,c++
   Thread model: posix
   gcc version 4.4.0 (GCC)

-- 
Sebastian Bergmann                    Co-Founder and Principal Consultant
http://sebastian-bergmann.de/                           http://thePHP.cc/

---

## #43765 — Pierre Joye — 2009-04-24T08:43:05+00:00

URL: https://externals.io/message/43762#43765 · In reply to: #43763

any bug #?


> Sebastian Bergmann wrote:
> > […]
>
> 64-bit machine?
>
> There is a known issue with 4.3.0 on 64-bit amd.
>
> Scott
>
> --
> 
> 
>
>



-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org

---

## #43766 — Scott MacVicar — 2009-04-24T09:02:28+00:00

URL: https://externals.io/message/43762#43766 · In reply to: #43764

Sebastian Bergmann wrote:
> Scott MacVicar schrieb:
> > […]
> 
>  Nope:
> 
>    sb@ubuntu ~ % uname -a
>    Linux ubuntu 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC
>    2009 i686 GNU/Linux
> 
>    sb@ubuntu ~ % /usr/local/gcc/bin/gcc -v
>    Using built-in specs.
>    Target: i686-pc-linux-gnu
>    Configured with: ../configure --prefix=/usr/local/gcc
>                                  --enable-languages=c,c++
>    Thread model: posix
>    gcc version 4.4.0 (GCC)
> 

Can you set your cflags to -fno-strict-aliasing and try again. This
resolved the issue with the previous report.

It was bug #47730

Scott

---

## #43767 — Sebastian Bergmann — 2009-04-24T09:10:28+00:00

URL: https://externals.io/message/43762#43767 · In reply to: #43766

Scott MacVicar schrieb:
> Can you set your cflags to -fno-strict-aliasing and try again. This
> resolved the issue with the previous report.

 Adding -fno-strict-aliasing to CFLAGS works around the issue, yes.

-- 
Sebastian Bergmann                    Co-Founder and Principal Consultant
http://sebastian-bergmann.de/                           http://thePHP.cc/

---

## #43769 — Nuno Lopes — 2009-04-25T11:09:15+00:00

URL: https://externals.io/message/43762#43769 · In reply to: #43767

> Scott MacVicar schrieb:
> > […]
>
> Adding -fno-strict-aliasing to CFLAGS works around the issue, yes.

Wow, this is terrible news, as -fno-strict-aliasing usually degrades 
performance by a considerable amount.
Do you where it's crashing so that I can take a look?

Nuno

---

## #43770 — Sebastian Bergmann — 2009-04-25T11:17:43+00:00

URL: https://externals.io/message/43762#43770 · In reply to: #43769

Nuno Lopes schrieb:
> Do you where it's crashing so that I can take a look?

 http://pastebin.com/m78a01116

-- 
Sebastian Bergmann                    Co-Founder and Principal Consultant
http://sebastian-bergmann.de/                           http://thePHP.cc/

---

## #43772 — Nuno Lopes — 2009-04-25T17:43:42+00:00

URL: https://externals.io/message/43762#43772 · In reply to: #43770

> Nuno Lopes schrieb:
> > […]
>
> http://pastebin.com/m78a01116

This particular problem should be fixed now. Let me know if PHP still 
crashes for you.
Nuno

---

## #43775 — Sebastian Bergmann — 2009-04-26T07:22:04+00:00

URL: https://externals.io/message/43762#43775 · In reply to: #43772

Nuno Lopes schrieb:
> This particular problem should be fixed now. Let me know if PHP still
> crashes for you.

 It is fixed, thanks!

-- 
Sebastian Bergmann                    Co-Founder and Principal Consultant
http://sebastian-bergmann.de/                           http://thePHP.cc/
