Re: Using MPC Library with GCC

2009-05-13 Thread Kaveh R. GHAZI
On Tue, 5 May 2009, Mark Mitchell wrote: > I personally think relying on MPC is a reasonable choice, given the fact > that (as you say) the language specifications do in some cases require > support for these kinds of manipulations of complex numbers at compile-time. > > In the past, however, othe

Re: New GCC releases comparison and comparison of GCC4.4 and LLVM2.5 on SPEC2000

2009-05-13 Thread Andi Kleen
"Joseph S. Myers" writes: > On Tue, 12 May 2009, Chris Lattner wrote: > >> 1. I have a hard time understanding the code size numbers. Does 10% mean >> that >> GCC is generating 10% bigger or 10% smaller code than llvm? > > I have a different comment on the code size numbers: could we have > co

Re: New GCC releases comparison and comparison of GCC4.4 and LLVM2.5 on SPEC2000

2009-05-13 Thread Jakub Jelinek
On Wed, May 13, 2009 at 09:33:20AM +0200, Andi Kleen wrote: > "Joseph S. Myers" writes: > > > On Tue, 12 May 2009, Chris Lattner wrote: > > > >> 1. I have a hard time understanding the code size numbers. Does 10% mean > >> that > >> GCC is generating 10% bigger or 10% smaller code than llvm? >

Re: Using MPC Library with GCC

2009-05-13 Thread FX
Thanks Kaveh for taking care of this. The Fortran front-end will really benefit from the use of MPC. Regarding your options, #1 seems the most reasonable to me; I'm forwarding to the Fortran list to hear to opinion of Fortran maintainers. FX

internal compiler error: in reload_combine_note_use, at postreload.c:1093

2009-05-13 Thread daniel tian
I have ported gcc4.0.2 to 32bit RISC chip. But internal compiler error happened: in reload_combine_note_use, at postreload.c:1093 . I tracked the code with insight. error occurred in "CASE REG", when the register number is larger than FIRST_PSEUDO_REGISTER. Does this mean the reload register allo

Re: New GCC releases comparison and comparison of GCC4.4 and LLVM2.5 on SPEC2000

2009-05-13 Thread Paolo Bonzini
Andi Kleen wrote: > "Joseph S. Myers" writes: > >> On Tue, 12 May 2009, Chris Lattner wrote: >> >>> 1. I have a hard time understanding the code size numbers. Does 10% mean >>> that >>> GCC is generating 10% bigger or 10% smaller code than llvm? >> I have a different comment on the code size nu

Re: Using MPC Library with GCC

2009-05-13 Thread Dave Korn
Kaveh R. GHAZI wrote: > 1. Consider MPC as an optional library now, install all the code and make > it hard-required only when all the complex math functions are made > available in a future released version of the library or sometime in > stage3, whichever is first. > I prefer optio

Re: internal compiler error: in reload_combine_note_use, at postreload.c:1093

2009-05-13 Thread Dave Korn
daniel tian wrote: > I have ported gcc4.0.2 to 32bit RISC chip. But internal compiler > error happened: in reload_combine_note_use, at postreload.c:1093 . I > tracked the code with insight. error occurred in "CASE REG", when the > register number is larger than FIRST_PSEUDO_REGISTER. Does this me

Re: New GCC releases comparison and comparison of GCC4.4 and LLVM2.5 on SPEC2000

2009-05-13 Thread Andi Kleen
> From looking http://vmakarov.fedorapeople.org/spec/I2Size32.png it does > not look that bad at all. For SpecFP it is different, but code size is The code size seems to be much worse than LLVM at least, unless I misread the graphs. Also my comment was in regard of the suggestion to try -Os --

Re: New GCC releases comparison and comparison of GCC4.4 and LLVM2.5 on SPEC2000

2009-05-13 Thread Duncan Sands
Hi, > Sorry, I missed to mention that I used an additional option -mpc64 for > 32-bit GCC4.4. It is not possible to generate SPECFP2000 expected > results by GCC4.4 without this option. LLVM does not support this > option. And this option can significantly improve the performance. So > 32-

Re: New GCC releases comparison and comparison of GCC4.4 and LLVM2.5 on SPEC2000

2009-05-13 Thread Steven Bosscher
On Wed, May 13, 2009 at 1:41 PM, Andi Kleen wrote: >> Rather, we should seriously understand what caused the compilation time >> jump in 4.2, and whether those are still a problem. We made a good job >> in 4.0 and 4.3 offsetting the slowdowns from infrastructure changes with >> speedups from othe

Re: New GCC releases comparison and comparison of GCC4.4 and LLVM2.5 on SPEC2000

2009-05-13 Thread Dave Korn
Steven Bosscher wrote: > On Wed, May 13, 2009 at 1:41 PM, Andi Kleen wrote: >>> Rather, we should seriously understand what caused the compilation time >>> jump in 4.2, and whether those are still a problem. We made a good job >>> in 4.0 and 4.3 offsetting the slowdowns from infrastructure change

Re: New GCC releases comparison and comparison of GCC4.4 and LLVM2.5 on SPEC2000

2009-05-13 Thread Richard Guenther
On Wed, May 13, 2009 at 1:51 PM, Duncan Sands wrote: > Hi, > >> Sorry, I missed to mention that I used an additional option -mpc64 for >> 32-bit GCC4.4.  It is not possible to generate SPECFP2000 expected >> results  by GCC4.4 without this option. LLVM does not support this >> option.  And this op

Re: New GCC releases comparison and comparison of GCC4.4 and LLVM2.5 on SPEC2000

2009-05-13 Thread Joseph S. Myers
On Wed, 13 May 2009, Richard Guenther wrote: > -mpc64 sets the x87 floating point control register to not use the 80bit > extended precision. This causes some x87 floating point operations > to operate faster and there are no issues with the extra roundings you > get when storing an 80bit precisi

Re: New GCC releases comparison and comparison of GCC4.4 and LLVM2.5 on SPEC2000

2009-05-13 Thread Duncan Sands
Hi Richard, > -mpc64 sets the x87 floating point control register to not use the 80bit > extended precision. This causes some x87 floating point operations > to operate faster and there are no issues with the extra roundings you > get when storing an 80bit precision register to a 64bit memory loc

Re: [JAVA,libtool] Big libjava is biiiig.

2009-05-13 Thread Dave Korn
Andrew Haley wrote: > Did you try my list of things to lift out? I don't think there will be any > interdependencies; the only problem might be that the reduction is not enough. Hi Andrew, I've had a quick hack at it now, and it's not doing what I'd hoped, so possibly I've misunderstood w

Re: New GCC releases comparison and comparison of GCC4.4 and LLVM2.5 on SPEC2000

2009-05-13 Thread Paolo Bonzini
Andi Kleen wrote: >> From looking http://vmakarov.fedorapeople.org/spec/I2Size32.png it does >> not look that bad at all. For SpecFP it is different, but code size is > > The code size seems to be much worse than LLVM at least, unless > I misread the graphs. Not really, see http://vmakarov.fedo

C++0x feature release plan

2009-05-13 Thread Piotr Wyderski
Could you please make a rough guess and specify when a preliminary implementation of these C++0x features can be expected to appear GCC4.5? - concepts - constructor inheritance - constructor delegation Is there a document which describes what are you working on now? I'm just curious :-) Best reg

Re: Using MPC Library with GCC

2009-05-13 Thread Mark Mitchell
Kaveh R. GHAZI wrote: > 1. Consider MPC as an optional library now, install all the code and make > it hard-required only when all the complex math functions are made > available in a future released version of the library or sometime in > stage3, whichever is first. I think this is

Re: New GCC releases comparison and comparison of GCC4.4 and LLVM2.5 on SPEC2000

2009-05-13 Thread Vladimir Makarov
Paolo Bonzini wrote: Rather, we should seriously understand what caused the compilation time jump in 4.2, and whether those are still a problem. We made a good job in 4.0 and 4.3 offsetting the slowdowns from infrastructure changes with speedups from other changes; and 4.4 while slower than 4.3

Re: [JAVA,libtool] Big libjava is biiiig.

2009-05-13 Thread Dave Korn
Dave Korn wrote: > So we have to > use dlltool first to generate import libs ahead of final-link time (without > attmepting to build a complete DLL): > > dlltool a1.o a2.o a3.o -D cygexample-a.dll -e libexample-a.dll.a > dlltool b1.o b2.o b3.o -D cygexample-b.dll -e libexample-b.dll.a > dlltool c1

Re: New GCC releases comparison and comparison of GCC4.4 and LLVM2.5 on SPEC2000

2009-05-13 Thread Jan Hubicka
> Paolo Bonzini wrote: > > > >Rather, we should seriously understand what caused the compilation time > >jump in 4.2, and whether those are still a problem. We made a good job > >in 4.0 and 4.3 offsetting the slowdowns from infrastructure changes with > >speedups from other changes; and 4.4 while

Re: New GCC releases comparison and comparison of GCC4.4 and LLVM2.5 on SPEC2000

2009-05-13 Thread Michael Meissner
On Wed, May 13, 2009 at 05:42:03PM +0200, Jan Hubicka wrote: > > Paolo Bonzini wrote: > > > > > >Rather, we should seriously understand what caused the compilation time > > >jump in 4.2, and whether those are still a problem. We made a good job > > >in 4.0 and 4.3 offsetting the slowdowns from inf

Re: [JAVA,libtool] Big libjava is biiiig.

2009-05-13 Thread Andrew Haley
Dave Korn wrote: > Andrew Haley wrote: > >> Did you try my list of things to lift out? I don't think there will be any >> interdependencies; the only problem might be that the reduction is not >> enough. > > Hi Andrew, > > I've had a quick hack at it now, and it's not doing what I'd hope

Re: [JAVA,libtool] Big libjava is biiiig.

2009-05-13 Thread Dave Korn
Andrew Haley wrote: > Dave Korn wrote: >> Andrew Haley wrote: >> >>> Did you try my list of things to lift out? I don't think there will be any >>> interdependencies; the only problem might be that the reduction is not >>> enough. >> Hi Andrew, >> >> I've had a quick hack at it now, and it'

Re: New GCC releases comparison and comparison of GCC4.4 and LLVM2.5 on SPEC2000

2009-05-13 Thread Evan Cheng
On May 13, 2009, at 4:51 AM, Duncan Sands wrote: Hi, Sorry, I missed to mention that I used an additional option -mpc64 for 32-bit GCC4.4. It is not possible to generate SPECFP2000 expected results by GCC4.4 without this option. LLVM does not support this option. And this option can sign

Re: Extending constraints using register subclasses

2009-05-13 Thread Georg-Johann Lay
Jamie Prescott schrieb: Thank you Andrew, I wasn't aware of that. Will be going that way. Just out of curiosity, was there something flawed in the way I took before? Meaning, could have been done that way, but my code was wrong somewhere? - Jamie - Original Message From: Andrew Pins

Re: Extending constraints using register subclasses

2009-05-13 Thread Jamie Prescott
> >> On Mon, May 11, 2009 at 4:45 PM, Jamie Prescott wrote: > >> > >>> Hi! > >>> I wanted to add finer (one per) register subclasses, so that I can more > finely > >> control > >>> the register placement inside the inline assembly. > >> > >> You don't need that. > >> You can just use asm("reg

Re: Extending constraints using register subclasses

2009-05-13 Thread Georg-Johann Lay
Jamie Prescott schrieb: On Mon, May 11, 2009 at 4:45 PM, Jamie Prescott wrote: Hi! I wanted to add finer (one per) register subclasses, so that I can more finely control the register placement inside the inline assembly. You don't need that. You can just use asm("registername") on v

Re: Code optimization only in loops

2009-05-13 Thread Jean Christophe Beyler
Ok, for the i386 port, I use uint32_t instead of uint64_t because otherwise the assembly code generated is a bit complicated (I'm on a 32 bit machine). The tree dump from final_cleanup are the same for the goo function: goo (i) { : return data[i + 13] + data[i]; } However, the first RTL dump

Re: Code generation problem with optimizations enabled

2009-05-13 Thread Jim Wilson
Jamie Prescott wrote: Thank you Paolo, I'll take a look at it. Is there a reason why the fcmp insn was dropped with such implementation? The code that optimizes away redundant cc0 compares is in final.c, in final_scan_insn(). It is about line 2310 in my tree, near the comment "Check for redu

Re: Code generation problem with optimizations enabled

2009-05-13 Thread Jamie Prescott
- Original Message > From: Jim Wilson > To: Jamie Prescott > Cc: Paolo Bonzini ; gcc@gcc.gnu.org > Sent: Wednesday, May 13, 2009 6:15:07 PM > Subject: Re: Code generation problem with optimizations enabled > > Jamie Prescott wrote: > > Thank you Paolo, I'll take a look at it. > > Is th

Re: Extending constraints using register subclasses

2009-05-13 Thread Jim Wilson
Jamie Prescott wrote: enum reg_class { NO_REGS = 0, GENERAL_REGS, X_REGS, R0_REG, R1_REG, R2_REG, R3_REG, The only obvious thing I notice is that you have the largest classes first. The docs say to put the smaller classes first. The compiler always assumes th

Re: internal compiler error: in reload_combine_note_use, at postreload.c:1093

2009-05-13 Thread daniel tian
Thank you for your advice. Yes. I checked the MD file and relative machine.h/.c, there are some places which call the ''force_reg' unconditionally. I modified the it in "movm" insn pattern, the error still exists. And I also check the mips/arm, they also call 'force_reg' unconditional in some plac