Re: Plugin that parse tree

2011-01-25 Thread Daniel Marjamäki
2011/1/24 Ian Lance Taylor : > Daniel Marjamäki writes: > >> 2011/1/24 Ian Lance Taylor : >> >>> The problem with warnings for this kind of code in C/C++ is that it >>> often arises in macro expansions. >> >> I see... so it won't be included in gcc. :-( > > Actually, I think it could be included i

Re: Plugin that parse tree

2011-01-25 Thread Kevin André
On Mon, Jan 24, 2011 at 16:49, Ian Lance Taylor wrote: > Daniel Marjamäki writes: > >> Do you have any opinion about adding a warning for: >> >> int f(char c) >> { >>     return 10 * (c == 13) ? 1 : 2; >> } >> As far as I see the multiplication doesn't exist in the gimple format >> (looking at a

Successful bootstrap build of gcc-4.1.2 on i686-pc-linux-gnu SuSE 9 kernel 2.6.5-7.139 for C++

2011-01-25 Thread Headland, Jonathan
$ ./config.guess i686-pc-linux-gnu $ cat /etc/issue Welcome to SUSE LINUX Enterprise Server 9 (i586) - Kernel \r (\l). $ cat /etc/SuSE-release SUSE LINUX Enterprise Server 9 (i586) VERSION = 9 $ uname -sr Linux 2.6.5-7.139-default $ rpm -q glibc glibc-2.3.3-98.38 $ /opt/gcc4.1.2/bin/gcc -v U

Re: Plugin that parse tree

2011-01-25 Thread Ian Lance Taylor
Kevin André writes: > Is that ever going to be fixed? If a front end mangles its AST > representation, then it cannot be used for static analysis. > > Even if the constant folding in the front end is necessary for > checking semantics, you could still keep the original source in the > AST and sim

[google] Merged trunk r169172 into google/integration

2011-01-25 Thread Diego Novillo
I've just merged trunk into google/integration. Since this was the first merge, I created: - gcc/ChangeLog.google for all branch ChangeLogs. - Added google/integration and google/main to svn.html. - Modified DATESTAMP and BASE-VER to reference the last merge point. --version should show: $

Devirtualization in gcc

2011-01-25 Thread Black Bit
Could someone tell me if the work described in this paper http://www.linuxsymposium.org/archives/GCC/Reprints-2006/namolaru-reprint.pdf was completed and is part of gcc?Thanks

Building Relocatable GCC

2011-01-25 Thread Kyle Girard
I'm trying compile a version of gcc-4.5 on linux x86 for linux x86 which is relocatable but I'm having difficulty. Does anyone have an example of how to build such a relocatable gcc? I've been building binutils, and gcc-4.5 over and over with many different options. After reading the docs I

Re: Building Relocatable GCC

2011-01-25 Thread Jonathan Wakely
On 25 January 2011 22:19, Kyle Girard wrote: > > I'm trying compile a version of gcc-4.5 on linux x86 for linux x86 which > is relocatable but I'm having difficulty. > > Does anyone have an example of how to build such a relocatable gcc? > > I've been building binutils, and gcc-4.5 over and over >

gcc-4.4-20110125 is now available

2011-01-25 Thread gccadmin
Snapshot gcc-4.4-20110125 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.4-20110125/ 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

Re: Devirtualization in gcc

2011-01-25 Thread Ian Lance Taylor
Black Bit writes: > Could someone tell me if the work described in this paper > http://www.linuxsymposium.org/archives/GCC/Reprints-2006/namolaru-reprint.pdf was > completed and is part of gcc?Thanks To the best of my knowledge the work has not yet beco