Code assistance with GCC

2010-04-21 Thread Tomohiro Matsuyama
Hi, all I have been working on implementing a tool-set of code assistance called GCCSense, which enables code-completion for C/C++ in editors or a terminal. http://cx4a.org/software/gccsense/ GCCSense depends on its own GCC which has special options for code assistance such like -code-comple

Re: Code assistance with GCC

2010-04-21 Thread Basile Starynkevitch
Tomohiro Matsuyama wrote: Hi, all I have been working on implementing a tool-set of code assistance called GCCSense, which enables code-completion for C/C++ in editors or a terminal. http://cx4a.org/software/gccsense/ GCCSense depends on its own GCC which has special options for code assist

Are non-DECL_COMDAT nodes in same_comdat_group lists OK?

2010-04-21 Thread Martin Jambor
Hi, when putting together a patch to fix PR 43812 I wanted to extend the call graph verifier to verify that 1) the same_comdat_group linked lists are indeed circular, 2) there are no one element lists, and 3) all nodes in such lists have the flag DECL_COMDAT (node->decl) set. However, the third

Re: Are non-DECL_COMDAT nodes in same_comdat_group lists OK?

2010-04-21 Thread Jakub Jelinek
On Wed, Apr 21, 2010 at 01:53:21PM +0200, Martin Jambor wrote: > when putting together a patch to fix PR 43812 I wanted to extend > the call graph verifier to verify that > > 1) the same_comdat_group linked lists are indeed circular, > 2) there are no one element lists, and > 3) all nodes in such

Re: Code assistance with GCC

2010-04-21 Thread Daniel Jacobowitz
On Wed, Apr 21, 2010 at 01:12:37PM +0200, Basile Starynkevitch wrote: > However, I am not sure to understand why Tomohiro needs to hack the > GCC parser itself. I was thinking that he might instead write a > plugin which works at the Generic/TREE (or even perhaps Gimple) > level. That doesn't mak

Re: Code assistance with GCC

2010-04-21 Thread Manuel López-Ibáñez
On 21 April 2010 12:32, Tomohiro Matsuyama wrote: > Hi, all > > I have been working on implementing a tool-set of code assistance called > GCCSense, which enables code-completion for C/C++ in editors or a terminal. > > http://cx4a.org/software/gccsense/ > > GCCSense depends on its own GCC which ha

Re: Combine or peephole?

2010-04-21 Thread Ian Lance Taylor
Frank Isamov writes: > 1. Is it possible to add a machine dependent reorg pass at backend > level without changing the standard infrastructure? If so, can you > please point me such example? If no, may the new plugin architecture > help here? See TARGET_MACHINE_DEPENDENT_REORG. > 2. A peep

Re: Combine or peephole?

2010-04-21 Thread Steven Bosscher
On Wed, Apr 21, 2010 at 4:42 PM, Ian Lance Taylor wrote: >>  2. A peephole for such case just repeats instruction definition >>  pattern. As all information already available for such peephole, >>  wouldn’t it be useful to implement the pass to be a part of the >>  standard infrastructure? > > See

Re: Combine or peephole?

2010-04-21 Thread Jeff Law
On 04/21/10 00:39, Frank Isamov wrote: On Mon, Apr 19, 2010 at 5:54 PM, Jeff Law wrote: combine requires a data dependency, so for this situation, combine isn't going to help. The easy solution is to create a peephole.You can also create a machine dependent reorg pass to detect more of

Re: Code assistance with GCC

2010-04-21 Thread Basile Starynkevitch
Daniel Jacobowitz wrote: On Wed, Apr 21, 2010 at 01:12:37PM +0200, Basile Starynkevitch wrote: However, I am not sure to understand why Tomohiro needs to hack the GCC parser itself. I was thinking that he might instead write a plugin which works at the Generic/TREE (or even perhaps Gimple) leve

Re: GCC 4.5.0 Released

2010-04-21 Thread Paolo Bonzini
On 04/19/2010 03:35 PM, Jack Howarth wrote: The annoucement should probably note that targets which lack objdump currently can't build plugins. I've had about as much luck getting the patch to fix this... http://gcc.gnu.org/ml/gcc-patches/2010-04/msg00610.html Sorry if I haven't reviewed a

Re: GCC 4.5.0 Released

2010-04-21 Thread Joe Buck
On Tue, Apr 20, 2010 at 01:22:32AM -0700, Manuel López-Ibáñez wrote: > Is there any one against advertising GCC to the fullest extent? The > problem, as always, is who will do this job. But I don't think nobody > will be against if you create a GCC blog/tweeter/youtube channel and > start writing n

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Vladimir Makarov
Duncan Sands wrote: Hi Steven, I think Jack wasn't suggesting that dragonegg should be changed to not be a plugin any more. I think he was suggesting that it should live in the gcc repository rather than the LLVM repository. So, no offense, but the suggestion here is to make this subversiv

Re: GCC 4.5.0 Released

2010-04-21 Thread Mark Mitchell
Joe Buck wrote: > If someone wants to volunteer to write an article about all the delicious > goodness of 4.5.0, that would be cool, and lwn.net and others would > be interested in publishing such a thing. But the RMs have enough work > to do as is, so it shouldn't be up to Mark to produce a beau

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Robert Dewar
Vladimir Makarov wrote: Duncan Sands wrote: Hi Steven, I think Jack wasn't suggesting that dragonegg should be changed to not be a plugin any more. I think he was suggesting that it should live in the gcc repository rather than the LLVM repository. So, no offense, but the suggestion here i

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Steven Bosscher
On Wed, Apr 21, 2010 at 6:53 PM, Vladimir Makarov wrote: > One interesting thing is that dragonegg is a really fast compiler.  It > is 2.3 times faster than gcc. Yes, well, this is one thing "the crowd out there" complains about all the time. It just appears to be almost impossible for GCC (the p

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Steven Bosscher
On Wed, Apr 21, 2010 at 6:56 PM, Robert Dewar wrote: > Actually for my taste, you have to get a MUCH bigger factor in compile > time before you can call yourself a fast compiler (Realia COBOL by > comparison compiles millions of lines a minute of code on current > PC's, using just one core). Heh,

Re: GCC 4.5.0 Released

2010-04-21 Thread Jack Howarth
On Wed, Apr 21, 2010 at 05:52:03PM +0200, Paolo Bonzini wrote: > On 04/19/2010 03:35 PM, Jack Howarth wrote: >> The annoucement should probably note that targets which lack >> objdump currently can't build plugins. I've had about as much >> luck getting the patch to fix this... >> >> http://gcc

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Vladimir Makarov
Steven Bosscher wrote: On Wed, Apr 21, 2010 at 6:53 PM, Vladimir Makarov wrote: One interesting thing is that dragonegg is a really fast compiler. It is 2.3 times faster than gcc. Yes, well, this is one thing "the crowd out there" complains about all the time. It just appears to be a

Re: GCC 4.5.0 Released

2010-04-21 Thread Paolo Bonzini
Well your review does pretty much amount to "because darwin lacks objdump like linux, the patch is rejected...". Please reread. Paolo

Re: GCC 4.5.0 Released

2010-04-21 Thread Manuel López-Ibáñez
On 21 April 2010 18:49, Joe Buck wrote: > On Tue, Apr 20, 2010 at 01:22:32AM -0700, Manuel López-Ibáñez wrote: >> Is there any one against advertising GCC to the fullest extent? The >> problem, as always, is who will do this job. But I don't think nobody >> will be against if you create a GCC blog

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Vladimir Makarov
Robert Dewar wrote: Vladimir Makarov wrote: Duncan Sands wrote: Hi Steven, I think Jack wasn't suggesting that dragonegg should be changed to not be a plugin any more. I think he was suggesting that it should live in the gcc repository rather than the LLVM repository. So, no offense, but

Re: GCC 4.5.0 Released

2010-04-21 Thread Manuel López-Ibáñez
On 21 April 2010 19:14, Manuel López-Ibáñez wrote: >> >> If someone wants to volunteer to write an article about all the delicious >> goodness of 4.5.0, that would be cool, and lwn.net and others would >> be interested in publishing such a thing.  But the RMs have enough work >> to do as is, so it

Re: GCC 4.5.0 Released

2010-04-21 Thread Steven Bosscher
On Wed, Apr 21, 2010 at 7:09 PM, Jack Howarth wrote: > On Wed, Apr 21, 2010 at 05:52:03PM +0200, Paolo Bonzini wrote: >> On 04/19/2010 03:35 PM, Jack Howarth wrote: >>>     The annoucement should probably note that targets which lack >>> objdump currently can't build plugins. I've had about as muc

Re: Code assistance with GCC

2010-04-21 Thread Chris Lattner
On Apr 21, 2010, at 3:32 AM, Tomohiro Matsuyama wrote: > Hi, all > > I have been working on implementing a tool-set of code assistance called > GCCSense, which enables code-completion for C/C++ in editors or a terminal. > > http://cx4a.org/software/gccsense/ This approach seems highly, uh, "i

Re: GCC 4.5.0 Released

2010-04-21 Thread Jack Howarth
On Wed, Apr 21, 2010 at 07:22:47PM +0200, Steven Bosscher wrote: > On Wed, Apr 21, 2010 at 7:09 PM, Jack Howarth > wrote: > > On Wed, Apr 21, 2010 at 05:52:03PM +0200, Paolo Bonzini wrote: > >> On 04/19/2010 03:35 PM, Jack Howarth wrote: > >>>     The annoucement should probably note that targets

Re: GCC 4.5.0 Released

2010-04-21 Thread Jack Howarth
On Wed, Apr 21, 2010 at 07:10:21PM +0200, Paolo Bonzini wrote: >> Well your review does pretty much amount to "because darwin lacks >> objdump like linux, the patch is rejected...". > > Please reread. Paolo, You say... > The patch is not okay, it is if you use "nm -g" on Darwin only. However

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Chris Lattner
On Apr 21, 2010, at 9:53 AM, Vladimir Makarov wrote: > Only SPECIn2000 for x86_64 has been compiled fully successfully by > dragonegg. There were a few compiler crashes including some in LLVM > itself for SPECFP2000 and for SPECINT2000 for x86. > > So here is SPECInt2000 for x86_64 comparison:

Re: Code assistance with GCC

2010-04-21 Thread Andrew Haley
On 04/21/2010 06:35 PM, Chris Lattner wrote: > > On Apr 21, 2010, at 3:32 AM, Tomohiro Matsuyama wrote: > >> Hi, all >> >> I have been working on implementing a tool-set of code assistance >> called GCCSense, which enables code-completion for C/C++ in editors >> or a terminal. >> >> http://cx4a.o

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Manuel López-Ibáñez
On 21 April 2010 19:11, Vladimir Makarov wrote: > I don't think we should be too much worried about it.  GCC looks good in > comparison with other industrial compiler with compile time point (and code > size too) of view (e.g. SunStudio compiler is about 2 times slower and > generates worse code o

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Paolo Bonzini
On 04/21/2010 07:04 PM, Steven Bosscher wrote: On Wed, Apr 21, 2010 at 6:56 PM, Robert Dewar wrote: Actually for my taste, you have to get a MUCH bigger factor in compile time before you can call yourself a fast compiler (Realia COBOL by comparison compiles millions of lines a minute of code on

Re: Combine or peephole?

2010-04-21 Thread Frank Isamov
Hi Ian, On Wed, Apr 21, 2010 at 5:42 PM, Ian Lance Taylor wrote: > Frank Isamov writes: > >>  2. A peephole for such case just repeats instruction definition >>  pattern. As all information already available for such peephole, >>  wouldn’t it be useful to implement the pass to be a part of the >

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Duncan Sands
Hi Vladimir, thank you for doing this benchmarking. Only SPECIn2000 for x86_64 has been compiled fully successfully by dragonegg. There were a few compiler crashes including some in LLVM itself for SPECFP2000 and for SPECINT2000 for x86. Sorry about that. Can you please send me preprocessed c

Re: GCC 4.5.0 Released

2010-04-21 Thread Steven Bosscher
On Wed, Apr 21, 2010 at 7:49 PM, Jack Howarth wrote: >> > Well your review does pretty much amount to "because darwin lacks >> > objdump like linux, the patch is rejected...". >> >> Stop that argument. You're fighting windmills. I was referring to your repeated "gcc-is-linux-centric" accusation.

Re: GCC 4.5.0 Released

2010-04-21 Thread Jack Howarth
On Wed, Apr 21, 2010 at 07:48:36PM +0200, Paolo Bonzini wrote: > On 04/21/2010 07:42 PM, Jack Howarth wrote: >> However in the past when I submitted patches for areas outside >> of the darwin specific source files, they were rejected*if* they >> made the code too darwin-centric. > > Well, in this

Re: GCC 4.5.0 Released

2010-04-21 Thread Jack Howarth
On Wed, Apr 21, 2010 at 07:22:47PM +0200, Steven Bosscher wrote: > On Wed, Apr 21, 2010 at 7:09 PM, Jack Howarth > wrote: > > On Wed, Apr 21, 2010 at 05:52:03PM +0200, Paolo Bonzini wrote: > >> On 04/19/2010 03:35 PM, Jack Howarth wrote: > >>>     The annoucement should probably note that targets

Re: GCC 4.5.0 Released

2010-04-21 Thread Paolo Bonzini
On 04/21/2010 07:42 PM, Jack Howarth wrote: However in the past when I submitted patches for areas outside of the darwin specific source files, they were rejected*if* they made the code too darwin-centric. Well, in this case I gave you a suggestion, so it was implicit that I'd have approved t

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Robert Dewar
Steven Bosscher wrote: On Wed, Apr 21, 2010 at 6:56 PM, Robert Dewar wrote: Actually for my taste, you have to get a MUCH bigger factor in compile time before you can call yourself a fast compiler (Realia COBOL by comparison compiles millions of lines a minute of code on current PC's, using jus

Re: GCC 4.5.0 Released

2010-04-21 Thread Paolo Bonzini
On 04/21/2010 07:51 PM, Jack Howarth wrote: I'm not sure if "nm -g" would work under Linux, since $ nm -g /usr/lib64/libsqlite3.so nm: /usr/lib64/libsqlite3.so: no symbols $ objdump -T /usr/lib64/libsqlite3.so|head -5 /usr/lib64/libsqlite3.so: file format elf64-x86-64 DYNAMIC SYMBOL TABLE

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Vladimir Makarov
Chris Lattner wrote: On Apr 21, 2010, at 9:53 AM, Vladimir Makarov wrote: Only SPECIn2000 for x86_64 has been compiled fully successfully by dragonegg. There were a few compiler crashes including some in LLVM itself for SPECFP2000 and for SPECINT2000 for x86. So here is SPECInt2000 for x86

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Vladimir Makarov
Duncan Sands wrote: Hi Vladimir, thank you for doing this benchmarking. Only SPECIn2000 for x86_64 has been compiled fully successfully by dragonegg. There were a few compiler crashes including some in LLVM itself for SPECFP2000 and for SPECINT2000 for x86. Sorry about that. Can you please se

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Robert Dewar
I am agree with this for moderately optimizing compilers. But for highly optimizing compilers it might be no true. Intel generates much better and bigger code than gcc. Although it might be mostly because of code versioning (including one for different subtargets). I don't think this is

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Chris Lattner
On Apr 21, 2010, at 11:11 AM, Vladimir Makarov wrote: >> >> This is definitely interesting, but you're also comparing apples and oranges >> here (for both compile time and performance). Can you get numbers showing >> GCC -O3 and dragonegg with LTO to get a better comparison? >> >> > Dragone

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Robert Dewar
Paolo Bonzini wrote: On 04/21/2010 07:04 PM, Steven Bosscher wrote: On Wed, Apr 21, 2010 at 6:56 PM, Robert Dewar wrote: Actually for my taste, you have to get a MUCH bigger factor in compile time before you can call yourself a fast compiler (Realia COBOL by comparison compiles millions of lin

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Robert Dewar
Manuel López-Ibáñez wrote: On 21 April 2010 19:11, Vladimir Makarov wrote: I don't think we should be too much worried about it. GCC looks good in comparison with other industrial compiler with compile time point (and code size too) of view (e.g. SunStudio compiler is about 2 times slower and

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Basile Starynkevitch
Steven Bosscher wrote: On Wed, Apr 21, 2010 at 6:56 PM, Robert Dewar wrote: Actually for my taste, you have to get a MUCH bigger factor in compile time before you can call yourself a fast compiler (Realia COBOL by comparison compiles millions of lines a minute of code on current PC's, using jus

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Robert Dewar
From the early days, WATFOR was an impressively fast compiler, and then there is always Borland Pascal. I once gave a talk at the SIGPLAN compiler conference whose theme was the great successes we were having in managing to dramatically slow down compilers :-)

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Vladimir Makarov
Chris Lattner wrote: On Apr 21, 2010, at 11:11 AM, Vladimir Makarov wrote: This is definitely interesting, but you're also comparing apples and oranges here (for both compile time and performance). Can you get numbers showing GCC -O3 and dragonegg with LTO to get a better comparison?

gcc-4.5.0 prerequisites alternate libelf

2010-04-21 Thread Donald Parsons
Hi, I just compiled gcc-4.5.0 and accidentally found that elfutils-libelf-0.145 (in at least Fedora 12) will work in place of libelf version 0.8.12 (or later) that is required per http://gcc.gnu.org/install/prerequisites.html I suggest adding sentences something like this to the prerequisites p

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Eric Botcazou
> We (here we = the commercial company AdaCore) would be worried if > ANY of our customers were worried, but they are not, they see a > continuous effective improvement in compile speed using the latest > available hardware, and it's not a factor for them. The Ada compiler is a little special here

ICE: -flto and -g

2010-04-21 Thread Adrian von Bidder
Heyho! I strongly suspect that mixing -flto and -g might not be a well supported option right now ... Still I also suspect an ICE is not supposed to happen. (I was trying to recompile Debian's KDE packages with -flto; the packaging by default uses -g - O2) gcc Debian package 4.5.0-2 on amd64

Re: default_weaktoshared timeouts

2010-04-21 Thread Jonathan Wakely
On 3 April 2010 00:16, Jack Howarth wrote: > > Jonathan, >    The test program when compiled as i386 randomly hangs under both the > 32-bit and 64-bit > kernels on Darwin 10.3.0. I've emailed Mike Stump an Instruments trace file > sampling the > hung binary. Unfortunately, I don't know how to con

Re: Combine or peephole?

2010-04-21 Thread Jeff Law
On 04/21/10 11:57, Frank Isamov wrote: Instructions which manipulate with data in parallel and have no data dependency automatically require peephole2 definition or/and machine dependent reorg pass. (Please see an example at the bottom of this email). Peephole2 pattern, in this case, just repeat

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Duncan Sands
Hi Vladimir, Dragonegg does not work with -flto. It generates assembler code on which gas complaints (a lot of non-assembler code like target data-layout which are not in comments). actually it does work with -flto, in an awkward way. When you use -flto it spits out LLVM IR. You need to use

Re: ICE: -flto and -g

2010-04-21 Thread Duncan Sands
$ /usr/bin/g++-4.5 -O0 -g -flto -o kfinddialog.o -c kfinddialog.ii ../../kdeui/findreplace/kfinddialog.cpp: In member function ‘RegExpAction’: ../../kdeui/findreplace/kfinddialog.cpp:445:9: internal compiler error: tree check: expected class ‘type’, have ‘declaration’ (function_decl) in gen_type_d

Re: ICE: -flto and -g

2010-04-21 Thread Richard Guenther
On Wed, Apr 21, 2010 at 9:03 PM, Adrian von Bidder wrote: > Heyho! > > I strongly suspect that mixing -flto and -g might not be a well supported > option right now ... > > Still I also suspect an ICE is not supposed to happen.  (I was trying to > recompile Debian's KDE packages with -flto; the pac

Re: Code assistance with GCC

2010-04-21 Thread Manuel López-Ibáñez
On 21 April 2010 19:49, Andrew Haley wrote: > On 04/21/2010 06:35 PM, Chris Lattner wrote: >> >> On Apr 21, 2010, at 3:32 AM, Tomohiro Matsuyama wrote: >> >>> Hi, all >>> >>> I have been working on implementing a tool-set of code assistance >>> called GCCSense, which enables code-completion for C/

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Vladimir Makarov
Robert Dewar wrote: I am agree with this for moderately optimizing compilers. But for highly optimizing compilers it might be no true. Intel generates much better and bigger code than gcc. Although it might be mostly because of code versioning (including one for different subtargets). I

Proje hazırlama, Yönetim ve İzleme Teknikleri Semineri

2010-04-21 Thread PGlobal Küresel Danışmanlık ve Eğitim Hizmetleri Ltd.

Re: default_weaktoshared timeouts

2010-04-21 Thread Jack Howarth
On Wed, Apr 21, 2010 at 08:07:48PM +0100, Jonathan Wakely wrote: > On 3 April 2010 00:16, Jack Howarth wrote: > > > > Jonathan, > >    The test program when compiled as i386 randomly hangs under both the > > 32-bit and 64-bit > > kernels on Darwin 10.3.0. I've emailed Mike Stump an Instruments tra

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Toon Moene
Robert Dewar wrote: Actually for my taste, you have to get a MUCH bigger factor in compile time before you can call yourself a fast compiler (Realia COBOL by comparison compiles millions of lines a minute of code on current PC's, using just one core). Obviously, apart from comparing a sufficie

Re: default_weaktoshared timeouts

2010-04-21 Thread Jonathan Wakely
On 21 April 2010 21:54, Jack Howarth wrote: > On Wed, Apr 21, 2010 at 08:07:48PM +0100, Jonathan Wakely wrote: >> On 3 April 2010 00:16, Jack Howarth wrote: >> > >> > Jonathan, >> >    The test program when compiled as i386 randomly hangs under both the >> > 32-bit and 64-bit >> > kernels on Darwi

Re: GCC 4.5.0 Released

2010-04-21 Thread Andreas Schwab
Paolo Bonzini writes: > I'm not sure if "nm -g" would work under Linux, since > > $ nm -g /usr/lib64/libsqlite3.so > nm: /usr/lib64/libsqlite3.so: no symbols > > $ objdump -T /usr/lib64/libsqlite3.so|head -5 The equivalent of "objdump -T" is "nm -D". Andreas. -- Andreas Schwab, sch...@linux-m

Re: GCC 4.5.0 Released

2010-04-21 Thread Paolo Bonzini
On Thu, Apr 22, 2010 at 00:35, Andreas Schwab wrote: > Paolo Bonzini writes: > >> I'm not sure if "nm -g" would work under Linux, since >> >> $ nm -g /usr/lib64/libsqlite3.so >> nm: /usr/lib64/libsqlite3.so: no symbols >> >> $ objdump -T /usr/lib64/libsqlite3.so|head -5 > > The equivalent of "obj

Re: GCC 4.5.0 Released

2010-04-21 Thread Eric Christopher
On Wed, Apr 21, 2010 at 3:44 PM, Paolo Bonzini wrote: > On Thu, Apr 22, 2010 at 00:35, Andreas Schwab wrote: >> Paolo Bonzini writes: >> >>> I'm not sure if "nm -g" would work under Linux, since >>> >>> $ nm -g /usr/lib64/libsqlite3.so >>> nm: /usr/lib64/libsqlite3.so: no symbols >>> >>> $ objdu

Re: GCC 4.5.0 Released

2010-04-21 Thread Jack Howarth
On Thu, Apr 22, 2010 at 12:44:42AM +0200, Paolo Bonzini wrote: > On Thu, Apr 22, 2010 at 00:35, Andreas Schwab wrote: > > Paolo Bonzini writes: > > > >> I'm not sure if "nm -g" would work under Linux, since > >> > >> $ nm -g /usr/lib64/libsqlite3.so > >> nm: /usr/lib64/libsqlite3.so: no symbols >

Re: GCC 4.5.0 Released

2010-04-21 Thread Paolo Bonzini
> Paolo, >   We don't have -D in our nm. How about the following change to > configure.ac? Ok. See? ;-) As a followup, if you have access to a Linux machine you can try removing the objdump requirement altogether. (Thanks Eric too). Paolo

Re: Code assistance with GCC

2010-04-21 Thread Chris Lattner
On Apr 21, 2010, at 1:51 PM, Manuel López-Ibáñez wrote: http://cx4a.org/software/gccsense/ >>> >>> This approach seems highly, uh, "inspired" from the exact same >>> functionality in Clang. Any reason not to contribute to that >>> effort? >> >> Surely trying to persuade people to contribute

Re: GCC 4.5.0 Released

2010-04-21 Thread Jack Howarth
howarth/gcc/gcc/testsuite/gcc.dg/plugin/plugin.exp ... === gcc Summary for unix/-m64 === # of expected passes16 === gcc Summary === # of expected passes32 /home/howarth/work/gcc/xgcc version 4.5.1 20100421 (prerelease) (GCC) make[1]: Leaving directory `/home/howarth/work/gcc' Jack

PR43839 almost fixed

2010-04-21 Thread Jack Howarth
cxxflags -shared-libgcc -lgcj -liconv +lappend cxxflags "-shared-libgcc -lgcj $libiconv" } if { [istarget "*-*-solaris*"] } { However the compilation of PR16923.c now fails with... Executing on host: /sw/src/fink.build/gcc46-4.5.999-20100421/darwin_objdir/gcc/xgcc -

g++ 4.5.0, end-user disappointment and interrogations

2010-04-21 Thread tbp
Hello, having finally built myself a 4.5.0 (linux x86-64), i've quickly tried it on some of my code and it soon became apparent some things weren't for the better. Here's my febrile attempt to sum up what surprised me $ cat huh.cc #include #if __GNUC__ * 100 + __GNUC_MINOR__ < 405 #define

Re: g++ 4.5.0, end-user disappointment and interrogations

2010-04-21 Thread Paolo Carlini
On 21/04/10 19.30, tbp wrote: Hello, having finally built myself a 4.5.0 (linux x86-64), i've quickly tried it on some of my code and it soon became apparent some things weren't for the better. In any case, keep in mind that constexpr are not available yet, maybe the parser can already reco

Re: g++ 4.5.0, end-user disappointment and interrogations

2010-04-21 Thread Xinliang David Li
The dead store problem seems to be a regression in SRA. In 4.4, the struct with array is properly expanded in to scalars allowing copy prop and dead code elimination -- in 4.5, this does not happen. You should file a bug . David On Wed, Apr 21, 2010 at 7:30 PM, tbp wrote: > Hello, > > having fin

Re: GCC 4.5.0 Released

2010-04-21 Thread Paolo Bonzini
>   This revised patch builds plugin support fine on x86_64-apple-darwin10 and > x86_64 Fedora 10... Ok for trunk and 4.5 branch after a few days. Paolo

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Robert Dewar
Vladimir Makarov wrote: Although it is not right argument to what you mean. But example about vectorization would be right. ICC vectorizes many more loops than gcc does. Vectorized loops is much bigger in size than their non-vectorized variants. So faster code does not mean smaller code in

Re: Some benchmark comparison of gcc4.5 and dragonegg (was dragonegg in FSF gcc?)

2010-04-21 Thread Robert Dewar
Toon Moene wrote: Robert Dewar wrote: Actually for my taste, you have to get a MUCH bigger factor in compile time before you can call yourself a fast compiler (Realia COBOL by comparison compiles millions of lines a minute of code on current PC's, using just one core). Obviously, apart from c

Re: g++ 4.5.0, end-user disappointment and interrogations

2010-04-21 Thread tbp
On Thu, Apr 22, 2010 at 6:36 AM, Paolo Carlini wrote: > In any case, keep in mind that constexpr are not available yet, maybe the > parser can already recognize some uses but the semantics is not done yet. Ah, so it was nothing but smokes & mirrors. Thanks for the clarification.

Re: g++ 4.5.0, end-user disappointment and interrogations

2010-04-21 Thread tbp
On Thu, Apr 22, 2010 at 7:23 AM, Xinliang David Li wrote: > The dead store problem seems to be a regression in SRA. Thanks for looking into it. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43846

Re: gcc-4.5.0 prerequisites alternate libelf

2010-04-21 Thread Ryan Hill
On Wed, 21 Apr 2010 14:40:51 -0400 Donald Parsons wrote: > The package elfutils-libelf-0.145 (or later) also > supplies the libelf prerequisite. Version 0.142 does > not work. (versions 0.143, 0.144 unknown) anything >=0.143 will work. -- fonts,