Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-30 Thread Maik Beckmann
Am Freitag 27 Juni 2008 09:18:17 schrieb Maik Beckmann: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36648 Bug has been fixed. Best, -- Maik

Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-27 Thread Fredrik Eriksson
Ahh, nevermind :P I missed that you wrote you're on arch64, i'm still on 32bits :P Best Regards Fredrik Eriksson Maik Beckmann wrote: Am Donnerstag 26 Juni 2008 10:13:13 schrieb Maik Beckmann: Hi, Can someone confirm that this http://codepad.org/I313t7BN compiled with g++ -O3 test.cpp

Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-27 Thread Maik Beckmann
Am Freitag 27 Juni 2008 08:48:17 schrieb Maik Beckmann: > Am Donnerstag 26 Juni 2008 10:13:13 schrieb Maik Beckmann: > > Hi, > > > > Can someone confirm that this > > http://codepad.org/I313t7BN > > compiled with > > g++ -O3 test.cpp -o test > > gives a segfault when trying to run it via > >

Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-27 Thread Fredrik Eriksson
It compiles and runs fine with my g++ 4.3.0 I don't get any segfaults anyway. ~> g++ -O3 test.c -o test ~> ./test ~> g++ -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++,treelang --enable

Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-26 Thread Maik Beckmann
Am Donnerstag 26 Juni 2008 10:13:13 schrieb Maik Beckmann: > Hi, > > Can someone confirm that this > http://codepad.org/I313t7BN > compiled with > g++ -O3 test.cpp -o test > gives a segfault when trying to run it via > ./test > ?? > > I mailed to the gcc-help list regarding this issue: > ht

Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-26 Thread A. Klitzing
> Yepp, but both have to work. Of course... but it should help to find the bug in -O3. ;-) André signature.asc Description: PGP signature

Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-26 Thread RedShift
Maik Beckmann wrote: Hi, Can someone confirm that this http://codepad.org/I313t7BN compiled with g++ -O3 test.cpp -o test gives a segfault when trying to run it via ./test ?? I mailed to the gcc-help list regarding this issue: http://thread.gmane.org/gmane.comp.gcc.help/24804 Thanks,

Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-26 Thread Maik Beckmann
Am Donnerstag 26 Juni 2008 11:59:12 schrieb A. Klitzing: > I have the same segfault here (amd64, gcc 4.3.1) > > If you swap their positions, it will work with -O3, too. > > struct Foo { > Vector array_of_vectors[4]; > int dummy; > }; > > > André Yepp, but both have to work.

Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-26 Thread A. Klitzing
I have the same segfault here (amd64, gcc 4.3.1) If you swap their positions, it will work with -O3, too. struct Foo { Vector array_of_vectors[4]; int dummy; }; André Am Thu, 26 Jun 2008 10:13:13 +0200 schrieb Maik Beckmann <[EMAIL PROTECTED]>: > Hi, > > Can someone confirm that this >

Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-26 Thread Dincer Celik
Worked seamlessly on Arch32. # gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++,treelang --enable-threads=posix --mandir=/usr/share/man --enable-__cxa_atexit --disable-multilib --lib

Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-26 Thread Johannes Held
> Can someone confirm that this > http://codepad.org/I313t7BN > compiled with > g++ -O3 test.cpp -o test > gives a segfault when trying to run it via > ./test same here: 11:14:33 [~/idownload] cat test.cpp struct Vector { Vector() : x(0), y(0), z(0) { } float x,y,z; }; struct Foo {

Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-26 Thread Hannes Rist
Maik Beckmann <[EMAIL PROTECTED]> writes: > Hi, > > Can someone confirm that this > http://codepad.org/I313t7BN > compiled with > g++ -O3 test.cpp -o test > gives a segfault when trying to run it via > ./test > ?? > > I mailed to the gcc-help list regarding this issue: > http://thread.gman

Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-26 Thread Angus Gibson
On 26/06/2008, at 6:13 PM, Maik Beckmann wrote: Hi, Can someone confirm that this http://codepad.org/I313t7BN compiled with g++ -O3 test.cpp -o test gives a segfault when trying to run it via ./test Using gcc 4.3.1 on arch32, I don't get a segfault.

[arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-26 Thread Maik Beckmann
Hi, Can someone confirm that this http://codepad.org/I313t7BN compiled with g++ -O3 test.cpp -o test gives a segfault when trying to run it via ./test ?? I mailed to the gcc-help list regarding this issue: http://thread.gmane.org/gmane.comp.gcc.help/24804 Thanks, -- Maik PS: I'm on arc