Re: Memory leaks in compiler

2008-01-16 Thread Nicholas Nethercote
On Wed, 16 Jan 2008, Tom Tromey wrote: Kaveh> A valgrind suppression only silences the error for valgrind. What if Kaveh> someone uses another memory checking tool? Better to fix it for real Kaveh> IMHO. Add suppressions for all of them. Any decent memory checker has to account for the reali

Re: Memory leaks in compiler

2008-01-16 Thread Ian Lance Taylor
"Kaveh R. GHAZI" <[EMAIL PROTECTED]> writes: > For what is to save developer time, which is way more valuable than cpu > time. If you are the only person running the compiler, then developer time is far more valuable than CPU time. But tens of thousands of people run the compiler, and they run i

Re: History of m68k ABI and `-malign-int'?

2008-01-16 Thread Andreas Schwab
Carlos O'Donell <[EMAIL PROTECTED]> writes: > Why is 16-bit int alignment the default for m68k in gcc? > > Which ABIs influenced this decision? The original ABI was defined by Sun PCC. Note that the SysV ABI actually uses natural alignment for all types, but that came only much later. You can f

Re: Memory leaks in compiler

2008-01-16 Thread Diego Novillo
On 1/16/08 4:16 PM, Andrew Haley wrote: Because it's not a bug? You're changing the code to silence a false negative, which this is what we here in England call "putting the cart before the horse." If we clean up all the memory regions on closedown we'll be wasting CPU time. And for what? I

History of m68k ABI and `-malign-int'?

2008-01-16 Thread Carlos O'Donell
Andreas, Jeff, The documentation for `-malign-int' on m68k hints that 16-bit int alignment was the prominent alignment chosen by m68k ABI's of the era. Why is 16-bit int alignment the default for m68k in gcc? Which ABIs influenced this decision? Should Coldfire targets default to 16 or 32-bit

gcc-4.2-20080116 is now available

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

Re: Memory leaks in compiler

2008-01-16 Thread Kaveh R. GHAZI
On Wed, 16 Jan 2008, Andrew Haley wrote: > Kaveh R. Ghazi writes: > > A valgrind suppression only silences the error for valgrind. What if > > someone uses another memory checking tool? Better to fix it for real IMHO. > > Because it's not a bug? You're changing the code to silence a false > n

Re: Memory leaks in compiler

2008-01-16 Thread Kaveh R. Ghazi
From: "Tom Tromey" <[EMAIL PROTECTED]> "Kaveh" == Kaveh R Ghazi <[EMAIL PROTECTED]> writes: Kaveh> A valgrind suppression only silences the error for valgrind. What if Kaveh> someone uses another memory checking tool? Better to fix it for real Kaveh> IMHO. Add suppressions for all of the

Re: Memory leaks in compiler

2008-01-16 Thread Tom Tromey
> "Kaveh" == Kaveh R Ghazi <[EMAIL PROTECTED]> writes: Kaveh> A valgrind suppression only silences the error for valgrind. What if Kaveh> someone uses another memory checking tool? Better to fix it for real Kaveh> IMHO. Add suppressions for all of them. Any decent memory checker has to acc

Re: Memory leaks in compiler

2008-01-16 Thread Andrew Haley
Kaveh R. Ghazi writes: > From: "Tom Tromey" <[EMAIL PROTECTED]> > > >> "Kaveh" == Kaveh R GHAZI <[EMAIL PROTECTED]> writes: > > > > Kaveh> + mpfr_free_cache (); > > > > Why not just add a valgrind suppression for this? > > There's little point in freeing things just before exit. > >

Re: Memory leaks in compiler

2008-01-16 Thread Kaveh R. Ghazi
From: "Tom Tromey" <[EMAIL PROTECTED]> "Kaveh" == Kaveh R GHAZI <[EMAIL PROTECTED]> writes: Kaveh> + mpfr_free_cache (); Why not just add a valgrind suppression for this? There's little point in freeing things just before exit. Tom A valgrind suppression only silences the error for valgrin

Re: [RFC] Introduce middle-end expressions on arrays

2008-01-16 Thread Richard Guenther
On Wed, 16 Jan 2008, Dorit Nuzman wrote: > > > > From the last GCC Summit we learned about (Fortran) Frontend Based > > Optimizations from Toon and it was suggested to tackle one issue by > > promoting arrays to a first-class middle-end type. Discussion with > > Sebastian also reveals that this m

Re: Memory leaks in compiler

2008-01-16 Thread Tom Tromey
> "Kaveh" == Kaveh R GHAZI <[EMAIL PROTECTED]> writes: Kaveh> + mpfr_free_cache (); Why not just add a valgrind suppression for this? There's little point in freeing things just before exit. Tom

Re: powercp-linux cross GCC 4.2 vs GCC 4.0.0: -Os code size regression?

2008-01-16 Thread Andrew Haley
Sergei Poselenov writes: > Hello Andrew, > > > Now, I sympathize that in your particular case you have a code size > > regression. This happens: when we do optimization in gcc, some code > > bases will lose out. All that we can promise is that we try not to > > make it worse for most users

Re: powercp-linux cross GCC 4.2 vs GCC 4.0.0: -Os code size regression?

2008-01-16 Thread Sergei Poselenov
Hello Andrew, Now, I sympathize that in your particular case you have a code size regression. This happens: when we do optimization in gcc, some code bases will lose out. All that we can promise is that we try not to make it worse for most users. What we can do is compare your code that has g

Re: powercp-linux cross GCC 4.2 vs GCC 4.0.0: -Os code size regression?

2008-01-16 Thread Andrew Haley
Sergei Poselenov writes: > Hello, > > I've just noted an error in my calculations: not 40%, but 10% > regression (used gdb to do the calculations and forgot to convert > inputs to float). Sorry. > > But the problem still persists for me - I'm building an embedded > firmware (U-Boot) and i

Re: [RFC] Introduce middle-end expressions on arrays

2008-01-16 Thread Dorit Nuzman
> > From the last GCC Summit we learned about (Fortran) Frontend Based > Optimizations from Toon and it was suggested to tackle one issue by > promoting arrays to a first-class middle-end type. Discussion with > Sebastian also reveals that this makes sense to ease the analysis > of the into-GRAPHI

Re: powercp-linux cross GCC 4.2 vs GCC 4.0.0: -Os code size regression?

2008-01-16 Thread Sergei Poselenov
Hello, I've just noted an error in my calculations: not 40%, but 10% regression (used gdb to do the calculations and forgot to convert inputs to float). Sorry. But the problem still persists for me - I'm building an embedded firmware (U-Boot) and it doesn't fit into the reserved space anymore.

Re: Memory leaks in compiler

2008-01-16 Thread Victor Kaplansky
> When a loop is vectorized, some statements are removed from the basic > blocks, but the vectorizer information attached to these BBs is never > freed. This is because the attached information is freed by walking > the statements of the basic blocks: see tree-vectorizer.c:1750, but > the transfor

Re: powercp-linux cross GCC 4.2 vs GCC 4.0.0: -Os code size regression?

2008-01-16 Thread Andrew Haley
Sergei Poselenov writes: > > No, all results are for the GCC project. "Mainline" here means the > current development version of GCC. For it, the sum of the test code > size is 3503061, vs. 3542052 for the gcc_4_0_0 branch. But again, > this performance is achieved by the significant regressi

Re: powercp-linux cross GCC 4.2 vs GCC 4.0.0: -Os code size regression?

2008-01-16 Thread Andrew Haley
Sergei Poselenov writes: > Hello all, > > I'm using the ppc-linux gcc-4.2.2 compiler and noted the code > size have increased significantly (about 40%!), comparing with > old 4.0.0 when using the -Os option. Same code, same compile- > and configuration-time options. Binutils are differ > (2

Re: powercp-linux cross GCC 4.2 vs GCC 4.0.0: -Os code size regression?

2008-01-16 Thread Duncan Sands
> LLVM? From what I know llvm-gcc is an alternative for gcc. Are any > parts of LLVM used in current GCC? None of what I know. Sorry, I confused my mailing lists and thought you had asked on the LLVM mailing list. This explains why I didn't understand your questions :) Sorry about the noise, Du

Re: powercp-linux cross GCC 4.2 vs GCC 4.0.0: -Os code size regression?

2008-01-16 Thread Sergei Poselenov
Hi Duncan, Duncan Sands wrote: Hi, I'm using the ppc-linux gcc-4.2.2 compiler and noted the code size have increased significantly (about 40%!), comparing with old 4.0.0 when using the -Os option. Same code, same compile- and configuration-time options. Binutils are differ (2.16.1 vs 2.17.50),

Re: powercp-linux cross GCC 4.2 vs GCC 4.0.0: -Os code size regression?

2008-01-16 Thread Duncan Sands
Hi, > I'm using the ppc-linux gcc-4.2.2 compiler and noted the code > size have increased significantly (about 40%!), comparing with > old 4.0.0 when using the -Os option. Same code, same compile- > and configuration-time options. Binutils are differ > (2.16.1 vs 2.17.50), though. what LLVM versi

powercp-linux cross GCC 4.2 vs GCC 4.0.0: -Os code size regression?

2008-01-16 Thread Sergei Poselenov
Hello all, I'm using the ppc-linux gcc-4.2.2 compiler and noted the code size have increased significantly (about 40%!), comparing with old 4.0.0 when using the -Os option. Same code, same compile- and configuration-time options. Binutils are differ (2.16.1 vs 2.17.50), though. I've looked at th