Re: Are BOOT_CFLAGS, CFLAGS_FOR_TARGET, and CXXFLAGS_FOR_TARGET necessary and sufficient?

2008-12-17 Thread Ian Lance Taylor
"Gordon Magnusson" writes: > I read http://gcc.gnu.org/install/build.html but wasn't completely > enlightened. > > If I'm building C and C++ (i.e. configuring with > --enable-languages=c,c++) and I want to build gcc, g++, and libstdc++ > with -O3 instead of the default (which I believe is -g -O2

Are BOOT_CFLAGS, CFLAGS_FOR_TARGET, and CXXFLAGS_FOR_TARGET necessary and sufficient?

2008-12-17 Thread Gordon Magnusson
I read http://gcc.gnu.org/install/build.html but wasn't completely enlightened. If I'm building C and C++ (i.e. configuring with --enable-languages=c,c++) and I want to build gcc, g++, and libstdc++ with -O3 instead of the default (which I believe is -g -O2), is this correct: make "BOOT_CFLAGS=-O

gcc-4.2-20081217 is now available

2008-12-17 Thread gccadmin
Snapshot gcc-4.2-20081217 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.2-20081217/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.2 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches

Re: How can I determine a register is referred through MEM at split2 stage?

2008-12-17 Thread H.J. Lu
On Wed, Dec 17, 2008 at 7:14 AM, Ian Lance Taylor wrote: > "Guo, Xuepeng" writes: > >> Thanks for your comments. It's not exactly the entire basic >> block. It should be from the current RTL to the end of the current >> basic block. As you know GCC will optimize "addl %ebx, %eax" to >> "leal (%eb

Re: gcc-4.3.2 generated "vmhraddshs" instruction when I compiled with -mcpu=8540

2008-12-17 Thread Nathan Froyd
On Wed, Dec 17, 2008 at 01:33:38PM +0700, Ha Luong wrote: > Thanks for your guide. When I debugged the exe file or make it ran on > 8548 board, the vmhaddshs makes the exe file hang out. Could I compile > the source for 8540 (e500v1 instructions) only? Sure. But evstdd{,x} are e500v1 instructions

Re: How can I determine a register is referred through MEM at split2 stage?

2008-12-17 Thread Ian Lance Taylor
"Guo, Xuepeng" writes: > Thanks for your comments. It's not exactly the entire basic > block. It should be from the current RTL to the end of the current > basic block. As you know GCC will optimize "addl %ebx, %eax" to > "leal (%ebx, %eax), %eax" to avoid the flag register dependency > through a

Re: trunk bootstrap failure?

2008-12-17 Thread VandeVondele Joost
Would be great if such a thing could be detected at configure time (i.e. like missing mpfr.h headers are already detected), with some kind of a gentle error message. It wouldn't be detected until the target libs are built, since that's the first time any 32-bit headers are needed. Patches welco

Re: trunk bootstrap failure?

2008-12-17 Thread Andrew Haley
VandeVondele Joost wrote: >>> thats is on a standard linux (x86_64) box running opensuse 11.0, and a >>> clean checkout. Is this a known problem? >> >> You haven't installed the 32-bit glibc devel package. > > Many thanks, that fixed it. > > Would be great if such a thing could be detected at con

Re: trunk bootstrap failure?

2008-12-17 Thread VandeVondele Joost
thats is on a standard linux (x86_64) box running opensuse 11.0, and a clean checkout. Is this a known problem? You haven't installed the 32-bit glibc devel package. Many thanks, that fixed it. Would be great if such a thing could be detected at configure time (i.e. like missing mpfr.h head

Re: trunk bootstrap failure?

2008-12-17 Thread Andrew Haley
VandeVondele Joost wrote: > Current trunk fails for me with > > thats is on a standard linux (x86_64) box running opensuse 11.0, and a > clean checkout. Is this a known problem? You haven't installed the 32-bit glibc devel package. Andrew.

about emit_move_insn in define_expand

2008-12-17 Thread tian xiaonan
Hello, Dr. Uday Khedker: I just found that emit_move_insn function can't be used in define_expand pattern in the spim gcc4.0.2 platform. It will cause the Segmentation Fault. Something like recursion happened. I changed the define_expand "movsi" from: (define_expand "movsi" [(set

trunk bootstrap failure?

2008-12-17 Thread VandeVondele Joost
Current trunk fails for me with /data04/vondele/gcc_trunk/obj/./gcc/xgcc -B/data04/vondele/gcc_trunk/obj/./gcc/ -B/data04/vondele/gcc_trunk/build/x86_64-unknown-linux-gnu/bin/ -B/data04/vondele/gcc_trunk/build/x86_64-unknown-linux-gnu/lib/ -isystem /data04/vondele/gcc_trunk/build/x86_64-unkno