The GCC compiler that I am using has the following information: Reading specs from /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/specs Configured with: /private/var/tmp/gcc/gcc-4031.obj~3/src/configure --disable- checking --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj- c++ --program-transform-name=/^[cg][^+.-]*$/s/$/-4.0/ --with-gxx-include- dir=/include/gcc/darwin/4.0/c++ --build=powerpc-apple-darwin8 --host=powerpc- apple-darwin8 --target=powerpc-apple-darwin8 Thread model: posix gcc version 4.0.0 20041026 (Apple Computer, Inc. build 4031) Compiled the testcase with -m64 option, the program hangs forever. Without the - m64 option, the problem goes away and gives the correct return code: 10.
Created attachment 8068 [details] testcase Command to reproduce the problem: g++ -m64 test.cpp a.out
(In reply to comment #0) > The GCC compiler that I am using has the following information: Can you report this to Apple since that is looks like either a dyld problem or a linker problem because the assembly produced by -m32 and -m64 were about the same in that the only changes were needed for 64bit? Also there is no way outside of Apple right now to reproduce this unless you have a tiger machine on a G5. Stan could you look into this?
Subject: Re: Program hangs when compiling the testcase with -m64 option. pinskia at gcc dot gnu dot org wrote: >------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-25 21:15 ------- >(In reply to comment #0) > > >>The GCC compiler that I am using has the following information: >> >> >Can you report this to Apple since that is looks like either a dyld problem or a linker problem because >the assembly produced by -m32 and -m64 were about the same in that the only changes were needed >for 64bit? > >Also there is no way outside of Apple right now to reproduce this unless you have a tiger machine on a >G5. > >Stan could you look into this? > > > OK. Stan
(In reply to comment #0) > The GCC compiler that I am using has the following information: > Reading specs from /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/specs > Configured with: /private/var/tmp/gcc/gcc-4031.obj~3/src/configure --disable- > checking --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj- > c++ --program-transform-name=/^[cg][^+.-]*$/s/$/-4.0/ --with-gxx-include- > dir=/include/gcc/darwin/4.0/c++ --build=powerpc-apple-darwin8 --host=powerpc- > apple-darwin8 --target=powerpc-apple-darwin8 > Thread model: posix > gcc version 4.0.0 20041026 (Apple Computer, Inc. build 4031) > > Compiled the testcase with -m64 option, the program hangs forever. Without the - > m64 option, the problem goes away and gives the correct return code: 10. Seems to work in latest Tiger.
Closing as works for me.