[Bug c++/42649] Optimizer breaks boost shared_ptr

2010-01-07 Thread pinskia at gmail dot com
--- Comment #7 from pinskia at gmail dot com 2010-01-07 17:18 --- Subject: Re: Optimizer breaks boost shared_ptr Sent from my iPhone On Jan 7, 2010, at 8:56 AM, "rlogel at navtech dot aero" wrote: > > > --- Comment #5 from rlogel at navtech dot aero 2010-01-07 16:56 > -

Re: [Bug c++/42649] Optimizer breaks boost shared_ptr

2010-01-07 Thread Andrew Pinski
Sent from my iPhone On Jan 7, 2010, at 8:56 AM, "rlogel at navtech dot aero" > wrote: --- Comment #5 from rlogel at navtech dot aero 2010-01-07 16:56 --- I realize that 3.4.6 is very old, but we need to support RedHat Enterprise 4 builds which use gcc 3.4.6. Then report thi

[Bug c++/42649] Optimizer breaks boost shared_ptr

2010-01-07 Thread paolo dot carlini at oracle dot com
--- Comment #6 from paolo dot carlini at oracle dot com 2010-01-07 17:02 --- Yes, but it's totally unmaintained, I'm sorry, we don't get PRs for unmaintained branches, that's the policy. -- paolo dot carlini at oracle dot com changed: What|Removed

[Bug c++/42649] Optimizer breaks boost shared_ptr

2010-01-07 Thread rlogel at navtech dot aero
--- Comment #5 from rlogel at navtech dot aero 2010-01-07 16:56 --- I realize that 3.4.6 is very old, but we need to support RedHat Enterprise 4 builds which use gcc 3.4.6. We would rather not undertake upgrading to gcc 4.x because we have a large legacy code base, some of which uses wr

[Bug c++/42649] Optimizer breaks boost shared_ptr

2010-01-07 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2010-01-07 16:52 --- 3.4.6?!? Please, try current, maintained, releases, gcc4.3.x or, better, gcc4.4.x, and in case open an appropriate PR. Thanks. -- paolo dot carlini at oracle dot com changed: What|Removed

[Bug c++/42649] Optimizer breaks boost shared_ptr

2010-01-07 Thread rlogel at navtech dot aero
--- Comment #2 from rlogel at navtech dot aero 2010-01-07 16:49 --- # Vaild Excutable g++ -v -save-temps -o shared_ptr_test.exc shared_ptr_test.cpp # Invalid Excutable g++ -v -save-temps -O2 -o shared_ptr_test.exc shared_ptr_test.cpp GCC output: $ g++ -v -save-temps -O2 -o shared

[Bug c++/42649] Optimizer breaks boost shared_ptr

2010-01-07 Thread rlogel at navtech dot aero
--- Comment #1 from rlogel at navtech dot aero 2010-01-07 16:46 --- Created an attachment (id=19500) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19500&action=view) Shared Pointer Test Program This test program shows that the shared_ptr reference counter isn't being incremented d