Correct way to access predecessors of a gimple statement?

2013-05-04 Thread Kartik Singhal
Hi I am trying to implement a GVN algorithm as a plugin for GCC 4.6. With help from GCC IRC channel, internals doc and reading the source, I was able to get a prototype working for the case of a single block. Now, I am trying to handle the case of confluence of multiple edges i.e. obtain redunda

gcc-4.7-20130504 is now available

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

Re: naked function attribute support for Mips

2013-05-04 Thread David Brown
On 03/05/13 16:03, Richard Sandiford wrote: David Brown writes: Personally, I've used "naked" when I want to write pure assembly code and don't want extra stack frames or "return" codes. I don't want to write stand-alone assembly files (I've written mountains of them in the past, and hope they

Re: BImode and STORE_VALUE_FLAG

2013-05-04 Thread Paulo J. Matos
Mikael, I haven't really tried m68k and I can't say I know anything about it but it will only be affected by this issue I am seeing if it generates instructions of the form: (set (reg:BI ...) (:BI (reg:SI ...) (const_int ...))) If you have something like this then as soon as you expand t

Re: BImode and STORE_VALUE_FLAG

2013-05-04 Thread Mikael Pettersson
On Fri, 3 May 2013 12:49:14 +, Paulo Matos wrote: > Hello, > > It seems to me there's a bug in > simplify_const_relational_operation:simplify-rtx.c. > If you set STORE_VALUE_FLAG to -1, if you get to > simplify_const_relational_operation > with code: NE, mode: BImode, op0: reg, op1: const_