Re: subreg against register allocation?

2010-06-14 Thread Joern Rennecke
Quoting Ian Lance Taylor : Hmmm, you could be right. I wrote and tested some examples when working on lower-subreg, but I never committed them. The current define_splits in i386.md which can do parallel sets only run if reload_completed is true, when simplify_gen_subreg will return different h

Re: subreg against register allocation?

2010-06-14 Thread Jeff Law
On 06/14/10 11:58, Ian Lance Taylor wrote: "Amker.Cheng" writes: Wondering whether possible to handle multi-word mode with more accuracy, in either subreg or IRA pass? Yes, it is possible. What you need to do is to write a split which turns the mult:DI insn into an insn which sets

Re: subreg against register allocation?

2010-06-14 Thread Amker.Cheng
Thanks for explanation. here are three more questions 1 , If I am talking the right thing, there are two insns like "*mulsi3_1" and "*smulsi3_highpart_insn", which set two parts of DImode pseudo regs of DImode mult. Since both parts pf result are used in the original example,

Re: [RFC] Cleaning up the pass manager

2010-06-14 Thread Joern Rennecke
Quoting Diego Novillo : - Fields properties_required, properties_provided and properties_destroyed should Mean Something other than asserting whether they exist. - Whatever doesn't exist before a pass, needs to be computed. - Pass scheduling can be done by simply declaring a pass and presenting

[RFC] Cleaning up the pass manager

2010-06-14 Thread Diego Novillo
I have been thinking about doing some cleanups to the pass manager. The goal would be to have the pass manager be the central driver of every action done by the compiler. In particular, the front ends should make use of it and the callgraph manager, instead of the twisted interactions we have now.

Re: subreg against register allocation?

2010-06-14 Thread Mark Mitchell
Ian Lance Taylor wrote: >>> Well, as you know, subregs have two meanings which look similar but >>> are in fact entirely different. It's valid to set subregs of the same >>> pseudo in parallel if the subregs represent different hard registers. >> Are you aware of any examples of this in the comp

Re: subreg against register allocation?

2010-06-14 Thread Ian Lance Taylor
Bernd Schmidt writes: > On 06/15/2010 12:06 AM, Ian Lance Taylor wrote: > >> Well, as you know, subregs have two meanings which look similar but >> are in fact entirely different. It's valid to set subregs of the same >> pseudo in parallel if the subregs represent different hard registers. >> It

Re: subreg against register allocation?

2010-06-14 Thread Bernd Schmidt
On 06/15/2010 12:06 AM, Ian Lance Taylor wrote: > Well, as you know, subregs have two meanings which look similar but > are in fact entirely different. It's valid to set subregs of the same > pseudo in parallel if the subregs represent different hard registers. > It's not valid if the subregs rep

Re: subreg against register allocation?

2010-06-14 Thread Ian Lance Taylor
Bernd Schmidt writes: > On 06/14/2010 07:58 PM, Ian Lance Taylor wrote: >> "Amker.Cheng" writes: >> >>> Wondering whether possible to handle multi-word mode with more accuracy, >>> in either subreg or IRA pass? >> >> Yes, it is possible. What you need to do is to write a split which >> turns

Re: Patch pinging

2010-06-14 Thread Quentin Neill
On Mon, Jun 14, 2010 at 11:05 AM, Manuel López-Ibáñez wrote: > On 10 June 2010 22:05, Quentin Neill wrote: >> I have a python script which crawls, caches, and parses the gcc-cvs >> (and binutils-cvs) email archive pages.  I wrote it to help another >> script that correlates patch revisions in a b

Re: subreg against register allocation?

2010-06-14 Thread Bernd Schmidt
On 06/14/2010 07:58 PM, Ian Lance Taylor wrote: > "Amker.Cheng" writes: > >> Wondering whether possible to handle multi-word mode with more accuracy, >> in either subreg or IRA pass? > > Yes, it is possible. What you need to do is to write a split which > turns the mult:DI insn into an insn whi

Re: GCC 4.3.4 is casting my QImode vars to SImode for libcall

2010-06-14 Thread Joseph S. Myers
On Mon, 14 Jun 2010, Paulo J. Matos wrote: > Hello, > > In gcc4.3.4, for my architecture: 16 BITS_PER_UNIT, 1 UNIT_PER_WORD, > with INT_TYPE_SIZE = 16 and FLOAT_TYPE_SIZE = 32, then an unsigned int > is QImode and a float is HFmode. To attempt such a port, being an expert in GCC internals is a g

Re: GCC 4.3.4 is casting my QImode vars to SImode for libcall

2010-06-14 Thread Ian Lance Taylor
"Paulo J. Matos" writes: > In gcc4.3.4, for my architecture: 16 BITS_PER_UNIT, 1 UNIT_PER_WORD, > with INT_TYPE_SIZE = 16 and FLOAT_TYPE_SIZE = 32, then an unsigned int > is QImode and a float is HFmode. > > However with: > float uitof(unsigned int x) { return x; } > > I get a call to the functio

Re: subreg against register allocation?

2010-06-14 Thread Ian Lance Taylor
"Amker.Cheng" writes: > Wondering whether possible to handle multi-word mode with more accuracy, > in either subreg or IRA pass? Yes, it is possible. What you need to do is to write a split which turns the mult:DI insn into an insn which sets two separate subregs. The values for the two subregs

Re: Issue with LTO/-fwhole-program

2010-06-14 Thread Ian Lance Taylor
Richard Guenther writes: > Commons between shared libraries and a program can't work. Technically speaking, shared libraries never have common symbols. They can have defined symbols which are labelled as, in essence, "formerly common," and those can be made to work correctly under certain restr

GCC 4.3.4 is casting my QImode vars to SImode for libcall

2010-06-14 Thread Paulo J. Matos
Hello, In gcc4.3.4, for my architecture: 16 BITS_PER_UNIT, 1 UNIT_PER_WORD, with INT_TYPE_SIZE = 16 and FLOAT_TYPE_SIZE = 32, then an unsigned int is QImode and a float is HFmode. However with: float uitof(unsigned int x) { return x; } I get a call to the function __floatunsihf. Shouldn't this b

Re: Issue with LTO/-fwhole-program

2010-06-14 Thread Ian Lance Taylor
"Bingfeng Mei" writes: > Actually, gold plugin is used in the original example. However, resolution > produced by plugin is bypassed due to a bug-fix by Richard. Do you have any > comment on that: > http://gcc.gnu.org/ml/gcc-patches/2010-06/msg01116.html Sorry, I missed that. There is a bug in

Re: using GCC to compile games 4 game consoles

2010-06-14 Thread Andrew Pinski
On Mon, Jun 14, 2010 at 4:50 AM, wrote: > Hello GCC, > > I would like to inquire about an open source project of yours called GCC. > > I read that it's a cross platform complier for a number of programs. > > My question is does it work with open source game engines in complying > games for game c

Re: Patch pinging

2010-06-14 Thread NightStrike
On Mon, Jun 14, 2010 at 12:05 PM, Manuel López-Ibáñez wrote: > What we would need is some way to detect that patches have been > committed. Otherwise that list will grow uncontrollably very fast. Imagine that :)

Re: Patch pinging

2010-06-14 Thread Manuel López-Ibáñez
On 10 June 2010 22:05, Quentin Neill wrote: > On Tue, Jun 8, 2010 at 6:30 AM, Jonathan Wakely wrote: >> On 7 June 2010 22:43, Ian Lance Taylor wrote: >>> >>> The patch tracker (http://gcc.gnu.org/wiki/GCC_Patch_Tracking) is not >>> currently operating. >>> >>> Would anybody like to volunteer to g

Re: Broken trunk (160732)

2010-06-14 Thread Joern Rennecke
Quoting Bingfeng Mei : Hi, I just updated from last week's version to 160732. It seems broken due to the latest changes in c-family directory. --enable-build-with-cxx --disable-werror --disable-bootstrap That's PR 44512.

Re: Scheduling x86 dispatch windows

2010-06-14 Thread Jakub Jelinek
On Mon, Jun 14, 2010 at 03:14:37PM +0200, Michael Matz wrote: > Doing the change in GNU as has the advantage that all insn lengths are > available without any work, i.e. it will handle e.g. inline asm; and that > relaxation also is implemented just fine (it exists already in order to > decide wh

Re: Scheduling x86 dispatch windows

2010-06-14 Thread Michael Matz
Hi, On Sun, 13 Jun 2010, H.J. Lu wrote: > > We shouldn't turn GNU x86 assembler into an optimizing assembler. Next > > people may ask assembler to remove redundant instructions, ... Well, but currently nobody is asking for such thing, right? > > Right now, when something goes wrong, people don

Broken trunk (160732)

2010-06-14 Thread Bingfeng Mei
Hi, I just updated from last week's version to 160732. It seems broken due to the latest changes in c-family directory. ./../trunk/gcc/c-family/c-cppbuiltin.c: In function 'void builtin_define_with_hex_fp_value(const char*, tree_node*, int, const char*, const char*, const char*)': ../../trunk/gc

using GCC to compile games 4 game consoles

2010-06-14 Thread tajiya1
Hello GCC, I would like to inquire about an open source project of yours called GCC. I read that it's a cross platform complier for a number of programs. My question is does it work with open source game engines in complying games for game console platforms (such as Xbox 360, Playstation3, Wii,

using GCC to compile games 4 game consoles

2010-06-14 Thread tajiya1
Hello GCC, I would like to inquire about an open source project of yours called GCC. I read that it's a cross platform complier for a number of programs. My question is does it work with open source game engines in complying games for game console platforms (such as Xbox 360, Playstation3, Wii,

Re: [inliner] g++ -O[123] generates undefined symbol

2010-06-14 Thread Дмитрий Дьяченко
Done. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44535 Thanks. Dmitry 2010/6/14 Ian Lance Taylor : > Дмитрий Дьяченко writes: > >> Trunk g++/x86/160655 with -O0 compile test w/o errors, but with >> -O[123] generates undefined symbol > >> Need i file a PR? > > It certainly looks like a bug.  Ple

Re: Issue with LTO/-fwhole-program

2010-06-14 Thread Richard Guenther
On Mon, Jun 14, 2010 at 11:27 AM, David Brown wrote: > On 14/06/2010 11:22, Dave Korn wrote: >> >> On 14/06/2010 05:43, Ian Lance Taylor wrote: >>> >>> David Brown  writes: >>> After doing a bit more reading and thinking, it seems to me that -fwhole-program will be used in most cases whe

Re: Issue with LTO/-fwhole-program

2010-06-14 Thread Richard Guenther
On Mon, Jun 14, 2010 at 9:26 AM, David Brown wrote: > On 14/06/2010 06:43, Ian Lance Taylor wrote: >> >> David Brown  writes: >> >>> After doing a bit more reading and thinking, it seems to me that >>> -fwhole-program will be used in most cases where LTO is used.  You use >>> -flto when compiling

subreg against register allocation?

2010-06-14 Thread Amker.Cheng
Hi : I am studying IRA right now (GCC4.4.1,mips32 target), for following piece of code: long long func(int a, int b) { long long r = (long long)a * (long long)b; return r; } the asm generated on mips is like: mult$5,$4 mfhi$5 mflo$2 j

Re: how to get instruction codes in gcc passes?

2010-06-14 Thread Ilya K
On Mon, Jun 14, 2010 at 12:25 AM, Basile Starynkevitch wrote: > > Why do you want to optimize the generated assembly code? AFAIK, all > optimization passes in GCC work on some intermediate representation > which is not the assembly code, and many of them work on Gimple. > ... > ... GCC emit textua

Re: Issue with LTO/-fwhole-program

2010-06-14 Thread David Brown
On 14/06/2010 11:22, Dave Korn wrote: On 14/06/2010 05:43, Ian Lance Taylor wrote: David Brown writes: After doing a bit more reading and thinking, it seems to me that -fwhole-program will be used in most cases where LTO is used. You use -flto when compiling each source file, then link them

RE: Issue with LTO/-fwhole-program

2010-06-14 Thread Bingfeng Mei
> -Original Message- > From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On Behalf Of > Ian Lance Taylor > Sent: 14 June 2010 05:43 > To: David Brown > Cc: gcc@gcc.gnu.org > Subject: Re: Issue with LTO/-fwhole-program > > David Brown writes: > > > After doing a bit more readin

Re: how to get instruction codes in gcc passes?

2010-06-14 Thread Ilya K
On 13/06/2010 20:57, Ian Lance Taylor wrote: > Take a look at http://code.google.com/p/mao/ . > Ian Thanks, Ian! This project looks very interesting. I will try to play with it. On Mon, Jun 14, 2010 at 2:28 AM, Dave Korn wrote: >  Or in binutils, LD's relaxation infrastructure might be usable

Re: Issue with LTO/-fwhole-program

2010-06-14 Thread Dave Korn
On 14/06/2010 05:43, Ian Lance Taylor wrote: > David Brown writes: > >> After doing a bit more reading and thinking, it seems to me that >> -fwhole-program will be used in most cases where LTO is used. You use >> -flto when compiling each source file, then link them with gcc with >> -flto and -f

Balla Ingatlaniroda - önkiszolgáló ügyfélszolgálat

2010-06-14 Thread Balla Ingatlan
Üdvözlöm! Ez egy hozzájárulás kérő levél, melynek elfogadásával Ön hozzáférést kap a Balla Ingatlaniroda önkiszolgáló ügyfélszolgálati rendszeréhez. Az így elérhető szolgáltatásokról részleteket a ballaingatlan.hu oldalon tudhat meg. Regisztráció itt: http://ballaingatlan.hu/onkiszolgalo-ugyfe

Re: Issue with LTO/-fwhole-program

2010-06-14 Thread David Brown
On 14/06/2010 06:43, Ian Lance Taylor wrote: David Brown writes: After doing a bit more reading and thinking, it seems to me that -fwhole-program will be used in most cases where LTO is used. You use -flto when compiling each source file, then link them with gcc with -flto and -fwhole-program