RE: Porting 64-bit target on 32-bit host

2011-10-10 Thread Bingfeng Mei
Well, I just switched to 64-bit host and everything is fine. Bingfeng > -Original Message- > From: harder...@gmail.com [mailto:harder...@gmail.com] On Behalf Of > Huang Ping > Sent: 10 October 2011 16:55 > To: Bingfeng Mei > Cc: gcc@gcc.gnu.org > Subject: Re: Portin

Re: Porting 64-bit target on 32-bit host

2011-10-10 Thread Huang Ping
2011/10/10 Bingfeng Mei : > I believe that 64-bit target on 32-bit host is not supported by GCC. > You need a lot of hackings to do so. > > Check this thread. > http://gcc.gnu.org/ml/gcc-patches/2009-03/msg00908.html Then how did you solve your problem in this thread? do many hackings on 32-bit ho

Re: Porting 64-bit target on 32-bit host

2011-10-10 Thread Eric Botcazou
> I'm porting a 64-bit target gcc on a 32-bit i386 host. I have set > need_64bit_hwint to yes in config.gcc. But it fails when building > libgcc. You need to do the same in libcpp/configure.ac with recent versions. -- Eric Botcazou

RE: Porting 64-bit target on 32-bit host

2011-10-10 Thread Joseph S. Myers
On Mon, 10 Oct 2011, Bingfeng Mei wrote: > I believe that 64-bit target on 32-bit host is not supported by GCC. That's ancient information; it's worked fine for over a decade (using 64-bit HOST_WIDE_INT automatically for targets that need it). -- Joseph S. Myers jos...@codesourcery.com

RE: Porting 64-bit target on 32-bit host

2011-10-10 Thread Bingfeng Mei
Behalf Of > Huang Ping > Sent: 10 October 2011 11:29 > To: gcc@gcc.gnu.org > Subject: Porting 64-bit target on 32-bit host > > Hi, all > > I'm porting a 64-bit target gcc on a 32-bit i386 host. I have set > need_64bit_hwint to yes in config.gcc. But it fails when bu

Porting 64-bit target on 32-bit host

2011-10-10 Thread Huang Ping
Hi, all I'm porting a 64-bit target gcc on a 32-bit i386 host. I have set need_64bit_hwint to yes in config.gcc. But it fails when building libgcc. Then I did a simple test. test case like this: int test () {   return 0; } I use cc1 compile it with -fdump-tree-all. The 003t.orioginal dump file s