Re: Failure in bootstrapping gfortran-4.4.0-20080425 on Cygwin

2008-04-28 Thread Kai Tietz
"H.J. Lu" <[EMAIL PROTECTED]> wrote on 27.04.2008 21:31:14: > Is this related to > > http://gcc.gnu.org/ml/gcc-patches/2008-04/msg01951.html > > > H.J. > On Sun, Apr 27, 2008 at 11:47 AM, FX <[EMAIL PROTECTED]> wrote: > > > > > Cygwin native built gfortran 4.4 was already broken, even when it

Re: IRA for GCC 4.4

2008-04-28 Thread J.C. Pizarro
On 2008/4/28 Ben Elliston <[EMAIL PROTECTED]> wrote: > On Sun, 2008-04-27 at 21:45 +0200, J.C. Pizarro wrote: > > > Don't be stupid! > > Could you be a bit more civil, please? It's fairly unusual for people > on this list to talk to each other in this way. > > Thanks, > Ben Excuse me, i'm no

[switch conv] Bootsrap error because of the (CERT) pointer wraparound warning

2008-04-28 Thread Martin Jambor
Hi, I've been rebootstrapping my switch conversion patch (which is still waiting for review) to make sure it still works. Unfortunately, it did not. The error given was the following and I believe this is the warning introduced by Ian as a response to the infamous CERT advisory. (Furthermo

Redundant malloc in structure optimization? (testsuite/gcc.dg/struct/wo_prof_global_var.c)

2008-04-28 Thread Bingfeng Mei
Hello, I am looking at a testsuite failure (wo_prof_global_var.c) in my porting. Somehow, I found GCC 4.3.0 seems to generate unnecessary malloc during structure optimization. In the code, the structure is split into two individual fields (D.2240 and D.2242) and they are allocated separately. But

Code representations

2008-04-28 Thread James Courtier-Dutton
I am trying to look at assembler code, and representing it as C code. For ia32, x86 platforms, assembler like the following ADD eax,ebx; JO integer_overflow_detected; How would I represent this in C? Kind Regards James

Re: Code representations

2008-04-28 Thread Kai Tietz
[EMAIL PROTECTED] wrote on 28.04.2008 13:11:39: > I am trying to look at assembler code, and representing it as C code. > > For ia32, x86 platforms, > assembler like the following > > ADD eax,ebx; > JO integer_overflow_detected; > > How would I represent this in C? > > Kind Regards > > James

Metrication tool

2008-04-28 Thread Roel Meeuws
Dear Reader, A few years ago I had already posted a question about implementing a metrication tool in GCC, i.e. a tool that can measure several metrics from the source code. Examples could be, the number of variables, number of multiplications, number of loops, number of functions, etc. At that ti

Re: IRA for GCC 4.4

2008-04-28 Thread Daniel Jacobowitz
On Mon, Apr 28, 2008 at 09:07:51AM +0200, J.C. Pizarro wrote: > Excuse me, i'm not the unique and first person that says you stupid, > GCC did it too. GCC is not posting on the mailing list. Please be polite to other contributors; that includes not insulting their intelligence. -- Daniel Jacobo

Re: Code representations

2008-04-28 Thread James Courtier-Dutton
2008/4/28 Kai Tietz <[EMAIL PROTECTED]>: > [EMAIL PROTECTED] wrote on 28.04.2008 13:11:39: > > > > > I am trying to look at assembler code, and representing it as C code. > > > > For ia32, x86 platforms, > > assembler like the following > > > > ADD eax,ebx; > > JO integer_overflow_detected;

Re: Code representations

2008-04-28 Thread Kai Tietz
"James Courtier-Dutton" <[EMAIL PROTECTED]> wrote on 28.04.2008 15:28:56: > 2008/4/28 Kai Tietz <[EMAIL PROTECTED]>: > > [EMAIL PROTECTED] wrote on 28.04.2008 13:11:39: > > > > > > > > > I am trying to look at assembler code, and representing it as C code. > > > > > > For ia32, x86 platforms,

Re: dg-skip-if on powerpc when multiple cpu cflags specified

2008-04-28 Thread Joel Sherrill
Mark Mitchell wrote: Janis Johnson wrote: This will involve editing every test that using dg-options to add a -mcpu/-march flag. Would it make sense to let dg-options check for the conflict as it adds an option? Yes, it would meaning adding the new option to hundreds of tests, but t

Re: Metrication tool

2008-04-28 Thread Diego Novillo
On 4/28/08 7:46 AM, Roel Meeuws wrote: So here is what I would like to know: what kind of metrics could I measure at e.g. GIMPLE level, and what steps do I need to take to implement a pass for GIMPLE to measure the needed values? You can measure anything that is language-independent (though yo

RE: IRA for GCC 4.4

2008-04-28 Thread Dave Korn
J.C. Pizarro wrote on : > On 2008/4/28 Ben Elliston wrote: >> On Sun, 2008-04-27 at 21:45 +0200, J.C. Pizarro wrote: >> >> > Don't be stupid! >> >> Could you be a bit more civil, please? It's fairly unusual for people >> on this list to talk to each other in this way. >> >> Thanks, >> Ben

Re: IRA for GCC 4.4

2008-04-28 Thread J.C. Pizarro
On 2008/4/28 Dave Korn <[EMAIL PROTECTED]> wrote: > J.C. Pizarro wrote on : > > > > On 2008/4/28 Ben Elliston wrote: > >> On Sun, 2008-04-27 at 21:45 +0200, J.C. Pizarro wrote: > >> > >> > Don't be stupid! > >> > >> Could you be a bit more civil, please? It's fairly unusual for people > >

Re: dg-skip-if on powerpc when multiple cpu cflags specified

2008-04-28 Thread Mark Mitchell
Joel Sherrill wrote: 1. Make these tests say something about what capability they require, with a dg-require directive, and then write autoconf-style tests run by the testsuite to determine whether the current compiler has that capability. For example, add a "dg-require-hard-float" directive, a

GCC performance with CP2K

2008-04-28 Thread VandeVondele Joost
I've just tested gcc/gfortran with CP2K, which some of you might know from PR29975 and other messages to the list, and observed some very pleasing evolution in the runtime of the code. In each case the set of compilation options is '-O2 -ffast-math -funroll-loops -ftree-vectorize -march=native

Re: IRA for GCC 4.4

2008-04-28 Thread J.C. Pizarro
On 2008/4/27 J.C. Pizarro <[EMAIL PROTECTED]> wrote: > On Fri 25 Apr 2008 22:22:55 -0500, Peter Bergner <[EMAIL PROTECTED]> wrote: > > The difference between a compressed upper triangular bit matrix from a > standard > > upper triangular bit matrix like the one above, is we eliminate space from

Re: dg-skip-if on powerpc when multiple cpu cflags specified

2008-04-28 Thread Janis Johnson
On Mon, 2008-04-28 at 07:47 -0700, Mark Mitchell wrote: > Joel Sherrill wrote: > > >> 1. Make these tests say something about what capability they require, > >> with a dg-require directive, and then write autoconf-style tests run by > >> the testsuite to determine whether the current compiler has

[RFC] Modeling the behavior of function calls

2008-04-28 Thread Diego Novillo
[ Apologies if this comes out twice. I posted this message last week, but I think it was rejected because of a .pdf attachment. ] We have been bouncing ideas for a new mechanism to describe the behavior of function calls so that optimizers can be more aggressive at call sites. Currently, GCC

Re: [RFC] Modeling the behavior of function calls

2008-04-28 Thread Daniel Berlin
On Mon, Apr 28, 2008 at 3:04 PM, Diego Novillo <[EMAIL PROTECTED]> wrote: > [ Apologies if this comes out twice. I posted this message last week, >but I think it was rejected because of a .pdf attachment. ] > > We have been bouncing ideas for a new mechanism to describe the behavior > of fun

Are x86 builtin load functions "const"?

2008-04-28 Thread H.J. Lu
Hi, I noticed that x86 builtin load functions aren't defined with def_builtin_const. Is this an oversight or intentional? Thanks. H.J.

Re: Are x86 builtin load functions "const"?

2008-04-28 Thread Andrew Pinski
On Mon, Apr 28, 2008 at 12:47 PM, H.J. Lu <[EMAIL PROTECTED]> wrote: > I noticed that x86 builtin load functions aren't defined > with def_builtin_const. Is this an oversight or intentional? I don't see why they can't be defined as const, the only time I can think of is when you have -fnon-call-

Re: [RFC] Modeling the behavior of function calls

2008-04-28 Thread David Daney
Diego Novillo wrote: [ Apologies if this comes out twice. I posted this message last week, but I think it was rejected because of a .pdf attachment. ] We have been bouncing ideas for a new mechanism to describe the behavior of function calls so that optimizers can be more aggressive at call

Re: IRA for GCC 4.4

2008-04-28 Thread Vladimir Makarov
Peter Bergner wrote: On Thu, 2008-04-24 at 20:23 -0400, Vladimir Makarov wrote: Hi, Peter. The last time I looked at the conflict builder (ra-conflict.c), I did not see the compressed matrix. Is it in the trunk? What should I look at? Yes, the compressed bit matrix was committed as

Re: Are x86 builtin load functions "const"?

2008-04-28 Thread H.J. Lu
I am combining most x86 SIMD builtins into bdesc_sse_args. I only define store builtins with def_builtin. The rest will be defined with def_builtin_const., including load builtins. I want to make sure that it is OK to do so. Thanks. H.J. On Mon, Apr 28, 2008 at 12:50 PM, Andrew Pinski <[EMAIL PRO

Re: IRA for GCC 4.4

2008-04-28 Thread Peter Bergner
On Mon, 2008-04-28 at 16:01 -0400, Vladimir Makarov wrote: > Thanks, Peter. That was clever and email is very enlightening. I have > analogous idea for more compact conflict matrix representation. IRA > builds allocno live ranges first (they are ranges of program points > where the allocno li

Re: [RFC] Modeling the behavior of function calls

2008-04-28 Thread Chris Lattner
On Apr 28, 2008, at 12:04 PM, Diego Novillo wrote: [ Apologies if this comes out twice. I posted this message last week, but I think it was rejected because of a .pdf attachment. ] We have been bouncing ideas for a new mechanism to describe the behavior of function calls so that optimize

mapping liveness to variables

2008-04-28 Thread Gregory B. Prokopski
Hi guys, I am trying to get as close mapping from liveness information ( in bb->il.rtl->global_live_at_start ) to global and local variables as possible. Mapping to stack slots would be a good first step. What data structures should I look at use? What would be the best way to do it? Any sugges

Re: IRA for GCC 4.4

2008-04-28 Thread Vladimir Makarov
Peter Bergner wrote: On Mon, 2008-04-28 at 16:01 -0400, Vladimir Makarov wrote: Thanks, Peter. That was clever and email is very enlightening. I have analogous idea for more compact conflict matrix representation. IRA builds allocno live ranges first (they are ranges of program points wh

gcc-4.1-20080428 is now available

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

Re: Are x86 builtin load functions "const"?

2008-04-28 Thread H.J. Lu
Load builtins can't be const since they may return different values on the same pointer value. H.J. On Mon, Apr 28, 2008 at 1:19 PM, H.J. Lu <[EMAIL PROTECTED]> wrote: > I am combining most x86 SIMD builtins into bdesc_sse_args. > I only define store builtins with def_builtin. The rest will be >

Re: Are x86 builtin load functions "const"?

2008-04-28 Thread Andrew Pinski
On Mon, Apr 28, 2008 at 5:16 PM, H.J. Lu <[EMAIL PROTECTED]> wrote: > Load builtins can't be const since they may return different values on > the same pointer value. They should be pure though. -- Pinski

Re: [switch conv] Bootsrap error because of the (CERT) pointer wraparound warning

2008-04-28 Thread Ian Lance Taylor
Martin Jambor <[EMAIL PROTECTED]> writes: > I've been rebootstrapping my switch conversion patch (which is still > waiting for review) to make sure it still works. Unfortunately, it > did not. The error given was the following and I believe this is the > warning introduced by Ian as a resp

Re: IRA for GCC 4.4

2008-04-28 Thread Peter Bergner
On Mon, 2008-04-28 at 18:07 -0400, Vladimir Makarov wrote: > I am currently working on bit matrix compression. It is not implemented > yet. I hope it will be ready in a week. Ahh, ok. Well, hopefully the code I wrote on the trunk is useful for IRA. If you have questions about it, let me know,

Re: IRA for GCC 4.4

2008-04-28 Thread Kenneth Zadeck
Vladimir Makarov wrote: Peter Bergner wrote: On Mon, 2008-04-28 at 16:01 -0400, Vladimir Makarov wrote: Thanks, Peter. That was clever and email is very enlightening. I have analogous idea for more compact conflict matrix representation. IRA builds allocno live ranges first (they are ran

Fwd: gcc cross compiler problem

2008-04-28 Thread NoFirst NoLast
-- Forwarded message -- From: NoFirst NoLast <[EMAIL PROTECTED]> Date: Mon, Apr 28, 2008 at 6:46 PM Subject: gcc cross compiler problem To: gcc@gcc.gnu.org Hello gcc, I am running into a problem when I am trying to compile GCC to run on a i686-pc-linux-gnu (host) but to build sou

Re: [RFC] Modeling the behavior of function calls

2008-04-28 Thread Tobias Burnus
Diego Novillo wrote: We have been bouncing ideas for a new mechanism to describe the behavior of function calls so that optimizers can be more aggressive at call sites. Currently, GCC supports the notion of pure/impure, const/non-const, but that is not enough for various cases. Fortran support