Re: load large immediate

2009-02-26 Thread Joern Rennecke
Quoting daniel tian : 2009/2/26 Joern Rennecke : the address label "common_reg " used many times. I think it will load one time. But after optimized with '-Os' or '-O2', it still loads the label "common_reg " six times.. Previously, you could define LEGITIMIZE_ADDRESS and LEGITIMIZE_RELOAD_AD

Re: load large immediate

2009-02-26 Thread daniel tian
2009/2/26 Dave Korn : > daniel tian wrote: > >>     there is a 'movm' problem that puzzled me. In my target machine, >> to load a large immediate data, can only move into zero register "R0". >> but R0 is a generally register. I defined the the way in the >> following: >> >>     if the immediate dat

Re: load large immediate

2009-02-26 Thread daniel tian
2009/2/26 Joern Rennecke : >> the address label "common_reg " used many times. I think it will >> load one time. But after optimized with '-Os' or '-O2', it still loads >> the label "common_reg " six times.. > > Previously, you could define LEGITIMIZE_ADDRESS and > LEGITIMIZE_RELOAD_ADDRESS > to ge

Re: Split Stacks proposal

2009-02-26 Thread Andi Kleen
Ian Lance Taylor writes: > I've put a project proposal for split stacks on the wiki at > http://gcc.gnu.org/wiki/SplitStacks . The idea is to permit the stack > of a single thread to be split into discontiguous segments, thus > permitting many more threads to be active at one time without worryi

Re: mips64*-*-linux multi arch handling

2009-02-26 Thread Laurent GUERBY
On Thu, 2009-02-26 at 17:02 -0800, David Daney wrote: > Laurent GUERBY wrote: > > On Thu, 2009-02-26 at 21:04 +, Richard Sandiford wrote: > >> Laurent GUERBY writes: > >>> I was wondering why mips64*-*-linux does not have the same > >>> handling of multiarch as powerpc/sparc/x86 in gcc/config.

Re: mips64*-*-linux multi arch handling

2009-02-26 Thread David Daney
Laurent GUERBY wrote: On Thu, 2009-02-26 at 21:04 +, Richard Sandiford wrote: Laurent GUERBY writes: I was wondering why mips64*-*-linux does not have the same handling of multiarch as powerpc/sparc/x86 in gcc/config.gcc: 32 bits compiler binaries with 32/64 target choice via "-m", --with-

Re: mips64*-*-linux multi arch handling

2009-02-26 Thread Laurent GUERBY
On Thu, 2009-02-26 at 21:04 +, Richard Sandiford wrote: > Laurent GUERBY writes: > > I was wondering why mips64*-*-linux does not have the same > > handling of multiarch as powerpc/sparc/x86 in gcc/config.gcc: > > 32 bits compiler binaries with 32/64 target choice via "-m", --with-cpu > > and

Re: New no-undefined-overflow branch

2009-02-26 Thread Zdenek Dvorak
Hi, in general, I like this proposal a lot. However, > As a start there will be no-overflow variants of NEGATE_EXPR, > PLUS_EXPR, MINUS_EXPR, MULT_EXPR and POINTER_PLUS_EXPR. > > The sizetypes will simply be operated on in no-overflow variants > by default (by size_binop and friends). > > Nami

gcc-4.3-20090226 is now available

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

Re: Split Stacks proposal

2009-02-26 Thread Ian Lance Taylor
Joel Sherrill writes: > Ian Lance Taylor wrote: >> I've put a project proposal for split stacks on the wiki at >> http://gcc.gnu.org/wiki/SplitStacks . The idea is to permit the stack >> of a single thread to be split into discontiguous segments, thus >> permitting many more threads to be active

Re: Split Stacks proposal

2009-02-26 Thread Joel Sherrill
Ian Lance Taylor wrote: I've put a project proposal for split stacks on the wiki at http://gcc.gnu.org/wiki/SplitStacks . The idea is to permit the stack of a single thread to be split into discontiguous segments, thus permitting many more threads to be active at one time without worrying about

Split Stacks proposal

2009-02-26 Thread Ian Lance Taylor
I've put a project proposal for split stacks on the wiki at http://gcc.gnu.org/wiki/SplitStacks . The idea is to permit the stack of a single thread to be split into discontiguous segments, thus permitting many more threads to be active at one time without worrying about stack overflow or about wa

Re: Please block henry2000 from the wiki

2009-02-26 Thread Daniel Berlin
If you want to help admin the wiki, I am more than happy to make you a super user. That goes for Steven, etc. On Thu, Feb 26, 2009 at 12:31 PM, Manuel López-Ibáñez wrote: > 2009/2/25 Gerald Pfeifer : >> On Tue, 24 Feb 2009, Steven Bosscher wrote: >>> Can someone *please* ban this nutcase from t

Re: mips64*-*-linux multi arch handling

2009-02-26 Thread Richard Sandiford
Laurent GUERBY writes: > I was wondering why mips64*-*-linux does not have the same > handling of multiarch as powerpc/sparc/x86 in gcc/config.gcc: > 32 bits compiler binaries with 32/64 target choice via "-m", --with-cpu > and --enable-targets support for configure. Is there any specific reason >

Re: GCC at Google Summer of Code'2009

2009-02-26 Thread Manuel López-Ibáñez
2009/2/26 Grigori Fursin : > Hi Manuel, > I have been talking to a few mentors and students (not GCC related) > who got their proposals accepted in the last year's Google Summer of Code > and they basically told me that the mentors listed many different proposals > so that students could have a ch

RE: GCC at Google Summer of Code'2009

2009-02-26 Thread Grigori Fursin
Hi Manuel, Sure and thanks for the info - I know that students have to submit proposals, but maybe I misunderstood the concept: I have been talking to a few mentors and students (not GCC related) who got their proposals accepted in the last year's Google Summer of Code and they basically told m

Re: Please block henry2000 from the wiki

2009-02-26 Thread Manuel López-Ibáñez
2009/2/25 Gerald Pfeifer : > On Tue, 24 Feb 2009, Steven Bosscher wrote: >> Can someone *please* ban this nutcase from the wiki? >> There is almost weekly spam added to the wiki from this account. >> Thanks, > > Let me forward this to the overseers team... > A solution for only this particular cas

Re: GCC at Google Summer of Code'2009

2009-02-26 Thread Manuel López-Ibáñez
Hi Grigori, About the wiki page http://gcc.gnu.org/wiki/SummerOfCode Perhaps the table format for specific project ideas is clearer than the bullet list format. However, we should not have two formats. If the table is preferred, I suggest that other people that have added ideas in a bullet list

Re: GCC at Google Summer of Code'2009

2009-02-26 Thread Sebastian Pop
Hi Grigori, On Thu, Feb 26, 2009 at 04:57, Grigori Fursin wrote: > Hello All, > > I just saw an announcement that a new Google Summer of Code'2009 > (http://code.google.com/soc) will be accepting project proposals > in a week or so. My colleagues and I would like to submit a few proposals > so wa

Re: query automaton

2009-02-26 Thread Vladimir Makarov
Alex Turjan wrote: Hello, Some time ago I asked a question regarding the possibility to schedule an operation on alternative functional units (FUs) AND depending on the chosen FUs to generate a dedicated assembly mnemonic. To give a simple example suppose I have a move operation that can be is

Re: __builtin_return_address for ARM

2009-02-26 Thread Andrew Haley
Paul Brook wrote: As I understand it, the ARM kernel can now do something similar. So, the only use for a __builtin_return_address(N) that used the frame pointer chain would be if the code were compiled with nonstandard options. >>> Correct. >> Well, but wouldn't it still be

Re: __builtin_return_address for ARM

2009-02-26 Thread Paul Brook
> >> As I understand it, the ARM kernel can now do something similar. So, > >> the only use for a __builtin_return_address(N) that used the frame > >> pointer chain would be if the code were compiled with nonstandard > >> options. > > > > Correct. > > Well, but wouldn't it still be nice if __bui

Re: New no-undefined-overflow branch

2009-02-26 Thread Dave Korn
Richard Guenther wrote: > As a start there will be no-overflow variants of NEGATE_EXPR, > PLUS_EXPR, MINUS_EXPR, MULT_EXPR and POINTER_PLUS_EXPR. > Naming suggestions welcome, at the moment I consider NEGATEV_EXPR > (thus appending V to the first part). Wow, an actual /invitation/ to bikeshed!

Re: load large immediate

2009-02-26 Thread Dave Korn
daniel tian wrote: > there is a 'movm' problem that puzzled me. In my target machine, > to load a large immediate data, can only move into zero register "R0". > but R0 is a generally register. I defined the the way in the > following: > > if the immediate data (op1) is larger than 1024 >

Re: Minimum required GNAT version for bootstrap of GNAT on gcc trunk

2009-02-26 Thread Luke A. Guest
I managed to build it with my own compiled version of GCC-4.3 under Ubuntu. The stock 4.1 compilers failed on a -f flag IIRC, can't remember what it was exactly though. Luke.

Re: New no-undefined-overflow branch

2009-02-26 Thread Richard Guenther
On Thu, 26 Feb 2009, Joseph S. Myers wrote: > On Thu, 26 Feb 2009, Richard Guenther wrote: > > > As a start there will be no-overflow variants of NEGATE_EXPR, > > PLUS_EXPR, MINUS_EXPR, MULT_EXPR and POINTER_PLUS_EXPR. > > So you would have both wrapping and no-overflow versions of these codes

Re: New no-undefined-overflow branch

2009-02-26 Thread Joseph S. Myers
On Thu, 26 Feb 2009, Richard Guenther wrote: > As a start there will be no-overflow variants of NEGATE_EXPR, > PLUS_EXPR, MINUS_EXPR, MULT_EXPR and POINTER_PLUS_EXPR. So you would have both wrapping and no-overflow versions of these codes (with it of course always being valid for a transformatio

mips64*-*-linux multi arch handling

2009-02-26 Thread Laurent GUERBY
Hi, I was wondering why mips64*-*-linux does not have the same handling of multiarch as powerpc/sparc/x86 in gcc/config.gcc: 32 bits compiler binaries with 32/64 target choice via "-m", --with-cpu and --enable-targets support for configure. Is there any specific reason for this? If reason is "jus

Re: New no-undefined-overflow branch

2009-02-26 Thread Richard Guenther
On Thu, 26 Feb 2009, Manuel López-Ibáñez wrote: > 2009/2/26 Richard Guenther : > > > >  There shall be no construct in the GIMPLE IL that invokes > >  undefined behavior. > > What about uninitialized variables? That's unrelated and something I do not care about. Richard.

Re: load large immediate

2009-02-26 Thread Joern Rennecke
the address label "common_reg " used many times. I think it will load one time. But after optimized with '-Os' or '-O2', it still loads the label "common_reg " six times.. Previously, you could define LEGITIMIZE_ADDRESS and LEGITIMIZE_RELOAD_ADDRESS to get reasonable code. However, that no long

RE: Constant folding and Constant propagation

2009-02-26 Thread Rahul Kharche
Hi Jean, > Do you have a link to that patch? So that I can see if it applies for me ? See patch below. I put in some comments to try and explain what I have attempted to do. The hash SET generation, to track potential candidates in replacing a register USE, needed some tweaking. This function wa

Re: New no-undefined-overflow branch

2009-02-26 Thread Manuel López-Ibáñez
2009/2/26 Richard Guenther : > >  There shall be no construct in the GIMPLE IL that invokes >  undefined behavior. What about uninitialized variables? Cheers, Manuel.

New no-undefined-overflow branch

2009-02-26 Thread Richard Guenther
There have been numerous issues in the past with respect to the undefinedness of signed overflow in our IL, with the non-semantics of sizetype and friends and with the pessimization of using unsigned arithmetic vs. signed arithmetic in loop optimizations. The goal of the no-undefined-overflow bra

load large immediate

2009-02-26 Thread daniel tian
hello, there is a 'movm' problem that puzzled me. In my target machine, to load a large immediate data, can only move into zero register "R0". but R0 is a generally register. I defined the the way in the following: if the immediate data (op1) is larger than 1024 then do {

Re: Is a Better Warning for this Stupid Mistake?

2009-02-26 Thread Robert Dewar
Joel Sherrill wrote: Hi, I made a stupid typo and accidentally included an unprotected file from itself. The error message generated by gcc surprised me and I wondered if there was a better alternative. Seems like a perfectly fine message to me, what do you suggest in its place (remember that