Re: [bug] undefined symbols with -Woverloaded-virtual and -fprofile-arcs -ftest-coverage

2007-06-08 Thread Lothar Werzinger
Joe Buck wrote: > On Wed, Jun 06, 2007 at 11:13:16AM -0700, Lothar Werzinger wrote: >> when I build a coverage build of my software I get some undefined symbols >> like global constructors keyed to src_utility_Tree.cpp_90B986A5_564B8955 >> >> I did some investigatio

[bug] undefined symbols with -Woverloaded-virtual and -fprofile-arcs -ftest-coverage

2007-06-06 Thread Lothar Werzinger
Hi, when I build a coverage build of my software I get some undefined symbols like global constructors keyed to src_utility_Tree.cpp_90B986A5_564B8955 I did some investigation and as you can see in the below test it only occurs if I specify -Woverloaded-virtual. What is strange, too is that if I

Re: gcc-current: badly worded warning?

2007-05-30 Thread Lothar Werzinger
Andreas Schwab wrote: > 1 && 0 is still 0. > > Andreas. Oops my bad. Didn't think (long enough) before posting ;-) Lothar

Re: gcc-current: badly worded warning?

2007-05-30 Thread Lothar Werzinger
Eyal Lebedinsky wrote: > I see two kinds of warnings: > warning: logical '||' with non-zero constant will always evaluate as true > warning: logical '&&' with non-zero constant will always evaluate as true > > The first statement is true, the second false. It can say (if the case is > such) warni

Re: simple pthread consumes memory

2006-09-22 Thread Lothar Werzinger
balazs wrote: > Hi - I start a simple pthread and the program consumes about 10 Mbytes of > virtual memory. If I start 10 threads, it consumes 100 Mbytes. That's off topic, but the answer is that the default stack size for a thread on your machine seems to be 10M. If you know you don't need such

Re: Merging identical functions in GCC

2006-09-20 Thread Lothar Werzinger
Did anybody do some metrics how big the savings would be? I think we should loom at the metrics before jumping to conclusions about implementing such a feature.

ICE with GCC 4.1

2006-03-10 Thread Lothar Werzinger
I have strange ICEs (that come and go as I rearrange the source - like the sequence of include statements). They appear also to affect different files on different machines we compile on. This one here seems to go away if I remove -fprofile-arcs -ftest-coverage from the commandline. It would be gr