Bug 19630 - Program hangs when compiling the testcase with -m64 option.
Summary: Program hangs when compiling the testcase with -m64 option.
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-25 21:07 UTC by yanliu
Modified: 2005-07-23 22:49 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
testcase (355 bytes, text/plain)
2005-01-25 21:08 UTC, yanliu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yanliu 2005-01-25 21:07:25 UTC
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.
Comment 1 yanliu 2005-01-25 21:08:49 UTC
Created attachment 8068 [details]
testcase

Command to reproduce the problem:
g++ -m64 test.cpp
a.out
Comment 2 Andrew Pinski 2005-01-25 21:15:30 UTC
(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?
Comment 3 Stan Shebs 2005-01-25 22:47:46 UTC
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

Comment 4 Stan Shebs 2005-01-25 23:10:44 UTC
(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.
 
Comment 5 Andrew Pinski 2005-04-27 00:42:01 UTC
Closing as works for me.