Re: Question about gcc-lib and building on SPARC

2006-04-13 Thread Niklaus
On 4/13/06, Mark Cuss <[EMAIL PROTECTED]> wrote: > Hello - this is definitely a newbie question, so bear with me... > > We've been using gcc under Solaris on SPARC hardware for some time now. The > guy who was here before me set up the previous version (gcc-3.3.3) and now > I'm trying to get gcc-3

RE: Question about gcc-lib and building on SPARC

2006-04-13 Thread Dave Korn
On 12 April 2006 22:18, Mark Cuss wrote: > The > guy who was here before me set up the previous version (gcc-3.3.3) > gcc 3.3.3 was compiled with the following configure flags: > configure --with-gnu-as --with-as=/cdl/apps/bin/sun/as --with-gnu-ld > --with-ld=/cdl/apps/bin/sun/ld --enable-lan

Simplification of combine patterns with subreg and zero_extract

2006-04-13 Thread Rask Ingemann Lambertsen
Combine is trying to find this instruction (when compiling _popcountsi2 from libgcc2.c for my i8086 experiment): (set (subreg:QI (reg:HI 30) 0) (mem/s/u:QI (plus:HI (subreg:HI (zero_extract:SI (subreg:HI (reg/v:SI 22 [ x ]) 0) (const_int 8 [0x8]) (const

Re: Simplification of combine patterns with subreg and zero_extract

2006-04-13 Thread Paolo Bonzini
Also, is there a function for simplifying a zero_extract? What combine is doing is to expand compound operations such as zero_extract, simplifying them, and try to make new compound operations. Therefore you should first try to understand what's causing combine to miss the simplification.

Re: Problem in function in-lining

2006-04-13 Thread Martin Hicks
On Thu, Apr 13, 2006 at 01:34:10PM +0800, Ching-Hua Chang wrote: > We had ported gcc-3.4.2 to our own RISC, and meet a strange > case in optimization level 3 (-O3). > > The compiler produce wrong assembly code in O3 and > correct result if we add -fno-inline flag. > > It seems that there some pr

Re:question about treelang modification and debug

2006-04-13 Thread Eric Fisher
Seems the question has been solved, here is the changes of treelang/parse.y, just for fun :-) $ diff treelang/parse.y treelang/parse_new.y -u --- treelang/parse.y2004-01-08 15:50:46.0 +0800 +++ treelang/parse_new.y2006-04-13 18:00:34.390625000 +0800 @@ -48,6 +48,7 @@ #include

Reload problem

2006-04-13 Thread Ching-Hua Chang
Hi, I had wrote doloop_end instruction to support hwloop. When try to compile linux kernel, I meet a reload problem, the error message as follow. What kinds of instuction pattern should I add to support the reload that compiler need ? Thanks, Aladdin the constrant 'q' mean the n

Toolchain relocation

2006-04-13 Thread Dave Murphy
Hi, I've been having some odd problems with relocation of 4.x toolchains - i.e. when a toolchain is configured, built and installed with one prefix but later moved to another location. The binaries appear to be checking something in the old location before reading from the new path. The prob

Re: Toolchain relocation

2006-04-13 Thread Daniel Jacobowitz
On Thu, Apr 13, 2006 at 03:49:43PM +0100, Dave Murphy wrote: > Hi, > > I've been having some odd problems with relocation of 4.x toolchains - > i.e. when a toolchain is configured, built and installed with one prefix > but later moved to another location. The binaries appear to be checking > so

A question about tree-ssa-structalias.h.

2006-04-13 Thread Kazu Hirata
Hi Daniel and Diego, I see that tree-ssa-structalias.h contains varray_type num_references; around line 58 as a member of alias_info, but it doesn't seem to be used anywhere. Is this going to be used in near future? VARRAY is going away pretty soon, so we have to do something -- either remov

Re: Toolchain relocation

2006-04-13 Thread Dave Murphy
Daniel Jacobowitz wrote: On Thu, Apr 13, 2006 at 03:49:43PM +0100, Dave Murphy wrote: Hi, I've been having some odd problems with relocation of 4.x toolchains - i.e. when a toolchain is configured, built and installed with one prefix but later moved to another location. The binaries appear

Re: A question about tree-ssa-structalias.h.

2006-04-13 Thread Diego Novillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kazu Hirata wrote: > either remove the line or convert it to VEC somehow. > Remove it. It's now done with NUM_REFERENCES which just uses common.aux. Dan probably forgot to remove it when he converted it. -BEGIN PGP SIGNATURE- Version: GnuPG

Re: Toolchain relocation

2006-04-13 Thread Niklaus
On 4/13/06, Dave Murphy <[EMAIL PROTECTED]> wrote: > Daniel Jacobowitz wrote: > > On Thu, Apr 13, 2006 at 03:49:43PM +0100, Dave Murphy wrote: > > > >> Hi, > >> > >> I've been having some odd problems with relocation of 4.x toolchains - > >> i.e. when a toolchain is configured, built and installed

Re: Question about gcc-lib and building on SPARC

2006-04-13 Thread Mark Cuss
On 12 April 2006 22:18, Mark Cuss wrote: The guy who was here before me set up the previous version (gcc-3.3.3) gcc 3.3.3 was compiled with the following configure flags: configure --with-gnu-as --with-as=/cdl/apps/bin/sun/as --with-gnu-ld --with-ld=/cdl/apps/bin/sun/ld --enable-lang

Re: Reload problem

2006-04-13 Thread Ramana Radhakrishnan
Right : A way to work around this would be to hold to not match this instruction until reload has been completed and have a define_split to convert this to a cmp , bne when its a memory operand matching . Look at rs6000.md or mt.md for a sample implementation. What I am saying is the following.

Re: Reload problem

2006-04-13 Thread Ramana Radhakrishnan
On Thu, 2006-04-13 at 22:37 +0530, Ramana Radhakrishnan wrote: > Right : A way to work around this would be to hold to not match this > instruction until reload has been completed and have a define_split to > convert this to a cmp , bne when its a memory operand matching . Look at > rs6000.md or m

Re: v850, dwarf2, too many fp-sp compensations?

2006-04-13 Thread Richard Henderson
On Tue, Apr 04, 2006 at 04:41:25PM -0400, DJ Delorie wrote: > The v850 is a dwarf-debug target, but not a dwarf-unwind target. In > dwarf2out.c we first calculate the "fp to fb offset" in > compute_frame_pointer_to_fb_displacement. The frame pointer is not > needed, so note that we include the fp

Oddity with REG_DEP_TRUE and subregs of multiword registers?

2006-04-13 Thread Rask Ingemann Lambertsen
Consider the file xordi.c: signed long long int xordi (signed long long int a, signed long long int b) { return (a ^ b); } Compile like this (GCC version 4.1.0 20060304 (Red Hat 4.1.0-3)): /usr/bin/gcc -march=pentium2 -O3 -fomit-frame-pointer \ /mnt/sysfs/rask/cvssrc/xordi.c -S -

Re: v850, dwarf2, too many fp-sp compensations?

2006-04-13 Thread DJ Delorie
> Both are supposed to happen. I can't really debug this without a > test case. This works on ia64, which is a non-dwarf-unwind target, > so that in-and-of itself isn't the problem. This is from the gdb.base testsuite: int factorial (int value) { if (value > 1) { /* set breakpoint 7 here */

RE: Problem in function in-lining

2006-04-13 Thread Dave Korn
On 13 April 2006 13:37, Martin Hicks wrote: > On Thu, Apr 13, 2006 at 01:34:10PM +0800, Ching-Hua Chang wrote: >> We had ported gcc-3.4.2 to our own RISC, and meet a strange >> case in optimization level 3 (-O3). >> >> The compiler produce wrong assembly code in O3 and >> correct result if we add

RE: Oddity with REG_DEP_TRUE and subregs of multiword registers?

2006-04-13 Thread Dave Korn
On 13 April 2006 18:52, Rask Ingemann Lambertsen wrote: > Consider the file xordi.c: > > signed long long int xordi (signed long long int a, signed long long int b) > { > return (a ^ b); > } > (insn 6 10 7 0 (set (reg/v:DI 59 [ a ]) > (mem/c/i:DI (reg/f:SI 16 argp) [2 a+0 S8 A32]))

Re: Problem in function in-lining

2006-04-13 Thread Martin Hicks
On Thu, Apr 13, 2006 at 07:32:39PM +0100, Dave Korn wrote: > On 13 April 2006 13:37, Martin Hicks wrote: > > > On Thu, Apr 13, 2006 at 01:34:10PM +0800, Ching-Hua Chang wrote: > >> We had ported gcc-3.4.2 to our own RISC, and meet a strange > >> case in optimization level 3 (-O3). > >> > >> The

Re: Problem in function in-lining

2006-04-13 Thread Mike Stump
On Apr 12, 2006, at 10:34 PM, Ching-Hua Chang wrote: We had ported gcc-3.4.2 to our own RISC, and meet a strange case in optimization level 3 (-O3). We don't have the resources to help with very old versions of gcc on this list. I'd recommend upgrading to gcc-4.2. If it then works, you ca

Re: Oddity with REG_DEP_TRUE and subregs of multiword registers?

2006-04-13 Thread Ian Lance Taylor
Rask Ingemann Lambertsen <[EMAIL PROTECTED]> writes: > (insn 12 14 13 0 (parallel [ > (set (subreg:SI (reg:DI 61) 0) > (xor:SI (subreg:SI (reg/v:DI 59 [ a ]) 0) > (subreg:SI (reg/v:DI 60 [ b ]) 0))) > (clobber (reg:CC 17 flags)) >

gcc-4.0-20060413 is now available

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

Re: v850, dwarf2, too many fp-sp compensations?

2006-04-13 Thread Richard Henderson
The problem appears to be that you've got *partial* debug_frame information, but it's wrong. I'm not 100% clear on what's the First Cause on the wrongness. I will say that I suspect that we probably want to just say that any target that doesn't provide DWARF2_UNWIND_INFO or TARGET_UNWIND_INFO wi

Re: question about treelang modification and debug

2006-04-13 Thread James A. Morrison
"Eric Fisher" <[EMAIL PROTECTED]> writes: > Seems the question has been solved, here is the changes of > treelang/parse.y, just for fun :-) > > $ diff treelang/parse.y treelang/parse_new.y -u > --- treelang/parse.y2004-01-08 15:50:46.0 +0800 > +++ treelang/parse_new.y2006-04-13

Re: Toolchain relocation

2006-04-13 Thread Ranjit Mathew
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave Murphy wrote: > > I've been having some odd problems with relocation of 4.x toolchains - > i.e. when a toolchain is configured, built and installed with one prefix > but later moved to another location. The binaries appear to be checking > som