Re: Why not contribute? (to GCC)

2010-05-04 Thread Theodore Papadopoulo
On 04/24/2010 09:35 PM, Thomas Neumann wrote: What reasons keep you from contributing to GCC? I tried this a while ago, but ultimately gave up because I could not get my patches in. Some were applied, but many never made it. Admittedly they were perhaps not of general interested, there wer

Re: peephole optimizations

2010-05-04 Thread roy rosen
Hi, 2010/5/3, Ian Lance Taylor : > roy rosen writes: > > > 1. Is that true that if I try to match in the pattern two insns and in > > my code between these insns there is another insn which does not have > > any dependency connection to the other two, Is that true that the > > peephole would not

Re: peephole optimizations

2010-05-04 Thread Ian Lance Taylor
roy rosen writes: > 2010/5/3, Ian Lance Taylor : >> roy rosen writes: >> >> > 1. Is that true that if I try to match in the pattern two insns and in >> > my code between these insns there is another insn which does not have >> > any dependency connection to the other two, Is that true that the >

Re: -pthread

2010-05-04 Thread Ian Lance Taylor
Magnus Fromreide writes: > I recently ended up in a discussion about the -pthread flag at work and > when looking at the documentation I noticed that it is defined onlt for > SPARC and RS/6000/PowerPC. > > Additionally -fopenmp and -ftree-parallelize-loops say they are only > supported on targets

Re: -pthread

2010-05-04 Thread Eric Botcazou
> I agree that this really ought to be documented. There is an old PR about this: http://gcc.gnu.org/PR16519 -- Eric Botcazou

Re: -pthread

2010-05-04 Thread Alexey Salmin
> On GNU/Linux, you need to use -pthread or -D_REENTRANT at compilation > time, and you need to use -pthread or -lpthread at link time. ? gcc mailing list certainly worth reading for users. I always thought that -lpthread at link time is enough. Alexey

Re: -pthread

2010-05-04 Thread Joseph S. Myers
On Tue, 4 May 2010, Ian Lance Taylor wrote: > On GNU/Linux, you need to use -pthread or -D_REENTRANT at compilation > time, and you need to use -pthread or -lpthread at link time. _REENTRANT does essentially nothing (enables getlogin_r when the rest of POSIX.1:1996 is disabled). See what I said

RE: branch probabilities on multiway branches

2010-05-04 Thread Rahul Kharche
Hi Edmar, I have been testing your patch on our port of GCC4.4.1. The patch works well, although I stumbled on an issue. Many of our interesting cases have large case values, so profiling the default range of values 0 - 255, or even as large as 0 - 2047 is insufficient. Profiling for a larger ran

Re: Question about Machine Description

2010-05-04 Thread yazdanbakhsh
Hi, I want to change instruction blez to ble. ble compare two registers and jump to the target address if the condition is true. thanks in advance, Ian Lance Taylor-3 wrote: > > yazdanbakhsh writes: > >> Please assume I'm working with the MIPS. There is a little difference >> between the MIP

Re: Question about Machine Description

2010-05-04 Thread Ian Lance Taylor
yazdanbakhsh writes: > I want to change instruction blez to ble. ble compare two registers and jump > to the target address if the condition is true. Read the internals manual to understand how operand predicates and constraints work. See the hundreds of existing examples. Ask if you have spec

Re: peephole optimizations

2010-05-04 Thread Jeff Law
On 05/04/10 01:18, roy rosen wrote: Hi, 2010/5/3, Ian Lance Taylor: roy rosen writes: 1. Is that true that if I try to match in the pattern two insns and in my code between these insns there is another insn which does not have any dependency connection to the other two, Is that tru

Re: Question about Machine Description

2010-05-04 Thread yazdanbakhsh
I have read all the documents, and changed some lines but nothing happened :( Ian Lance Taylor-3 wrote: > > yazdanbakhsh writes: > >> I want to change instruction blez to ble. ble compare two registers and >> jump >> to the target address if the condition is true. > > Read the internals manua

Re: Question about Machine Description

2010-05-04 Thread Ian Lance Taylor
yazdanbakhsh writes: > I have read all the documents, and changed some lines but nothing happened :( That is good, but to get help you really need to ask specific questions. Show us an insn pattern, tell us what you are trying to do, tell us what you did, tell us what happened. Ian > Ian Lanc

Re: GCC-4.5.0 comparison with previous releases and LLVM-2.7 on SPEC2000 for x86/x86_64

2010-05-04 Thread Jan Hubicka
> On Sun, May 2, 2010 at 6:45 AM, Jan Hubicka wrote: > That depends. The following cases exist in vortex: > > 1) the value is runtime constant -- it is read from input file but > never changed -- e.g.: QueBug. Nothing can be done by the compiler in > this case; > > 2) Global variable written onl

Tree Browser

2010-05-04 Thread Wolfgang kaifler
Hi, I've tried to use the treebrowser described at http://gcc.gnu.org/projects/tree-ssa/tree-browser.html I configuired gcc-4.5.0 with ... --enable-checking --enable-tree-browse --enable-tree-checking ... Compilation was OK, a gcc/tree-browser.o exists. Now i'm able to launch gdb and step throu

Re: Why not contribute? (to GCC)

2010-05-04 Thread Manuel López-Ibáñez
On 4 May 2010 09:12, Theodore Papadopoulo wrote: > > - Code complexity: Doing even the simplest stuff in gcc requires quite some > time to a newcomer. Do you have any suggestion how this could be enhanced? We know that better documentation may help, but at some moment one has to get the hands dir

gcc-4.4-20100504 is now available

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