Re: changing "configure" to default to "gcc -g -O2 -fwrapv ..."

2006-12-28 Thread Paul Eggert
> In that case, we should make the Autoconf change optional. > I'll propose a further patch along those lines. OK, here's that proposed patch to Autoconf. Also, this patch attempts to discuss the matter better in the documentation. The documentation was by far the hardest part of the patch to wr

gcc-4.0-20061228 is now available

2006-12-28 Thread gccadmin
Snapshot gcc-4.0-20061228 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.0-20061228/ 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: Compiler loop optimizations

2006-12-28 Thread Daniel Berlin
On 12/28/06, Christian Sturz <[EMAIL PROTECTED]> wrote: Hi, I was curious if there are any gcc compiler optimizations that can improve this code: void foo10( ) { for ( int i = 0; i < 10; ++i ) { [...] if( i == 15 ) { [BLOCK1] } } } void foo100( ) { for ( int i = 0; i < 100; ++i

Compiler loop optimizations

2006-12-28 Thread Christian Sturz
Hi, I was curious if there are any gcc compiler optimizations that can improve this code: void foo10( ) { for ( int i = 0; i < 10; ++i ) { [...] if( i == 15 ) { [BLOCK1] } } } void foo100( ) { for ( int i = 0; i < 100; ++i ) { [...] if( i == 15 ) { [BLOCK2] } } } in

Re: does zlib really need to build multilib?

2006-12-28 Thread Tom Tromey
> "Jack" == Jack Howarth <[EMAIL PROTECTED]> writes: Jack> I noticed that in gcc trunk and gcc 4.2 branch Jack> that multilib builds of zlib occur. Does gcc Jack> actually use the multlib zlib? The multilib zlib is used by libgcj. The host zlib is used by gcj. AFAIK these are the only uses.

Re: does zlib really need to build multilib?

2006-12-28 Thread Ian Lance Taylor
Jack Howarth <[EMAIL PROTECTED]> writes: >I noticed that in gcc trunk and gcc 4.2 branch > that multilib builds of zlib occur. Does gcc > actually use the multlib zlib? For instance on > x86_64 linux does the 32-bit zlib get used or on > Darwin does the 64-bit zlib get used? We are > consideri

Re: Gprof and shared libraries

2006-12-28 Thread Daniel Jacobowitz
On Thu, Dec 28, 2006 at 09:28:30AM -0800, Ian Lance Taylor wrote: > I don't know the answer to your question. It may be that you need to > run "gprof /path/to/lirary.so gmon.out". I'm not sure. Gprof has roughly no support for shared libraries. Only addresses between _stext and _etext are recor

Re: Gprof and shared libraries

2006-12-28 Thread Ian Lance Taylor
"Christian Sturz" <[EMAIL PROTECTED]> writes: > I've a larger project that consists of several shared libraries. > The compilation is done by autoconf and automake. One of the libraries > seems to be slow so I would like to profile it. My idea was to use gprof > (I'm using gcc 3.4.6). First, I mod

Re: RFC: SMS problem with emit_copy_of_insn_after copying REG_NOTEs

2006-12-28 Thread Vladimir Yanovsky
Hi, I've rebuilt again everything from scratch with the changes to emit_copy_of_insn_after as Jan suggested (see patch below) and the ICE caused by quadratic accumulation of the counter of scratch registers is gone! Thanks, Vladimir Index: emit-rtl.c

does zlib really need to build multilib?

2006-12-28 Thread Jack Howarth
I noticed that in gcc trunk and gcc 4.2 branch that multilib builds of zlib occur. Does gcc actually use the multlib zlib? For instance on x86_64 linux does the 32-bit zlib get used or on Darwin does the 64-bit zlib get used? We are considering using the --with-system-zlib option when building g

Gprof and shared libraries

2006-12-28 Thread Christian Sturz
Hi, I've a larger project that consists of several shared libraries. The compilation is done by autoconf and automake. One of the libraries seems to be slow so I would like to profile it. My idea was to use gprof (I'm using gcc 3.4.6). First, I modified the Makefiles so that each library is built

Re: should fastjar be built?

2006-12-28 Thread Gerald Pfeifer
On Wed, 27 Dec 2006, Jack Howarth wrote: > I noticed that fastjar no longer appears to be built and installed on > darwin in gcc 4.2 branch or trunk. What is the status of this utility > for gcc? It was removed earlier this year: http://gcc.gnu.org/ml/java-patches/2006-q1/msg00381.html Geral