Re: the interface for cloning function

2011-06-16 Thread Richard Henderson
On 06/15/2011 10:20 AM, Feng LI wrote: > Hi, > > Is there an interface provided in GCC to clone the current function? > I searched in the source code but failed, just in case I'm going wrong. Try cgraph_copy_node_for_versioning. It's not 100% generic atm; you may find that you have to make some

[gimplefe] Merged trunk -> gimple-front-end rev 175051

2011-06-16 Thread Diego Novillo
Tested on x86_64. Diego.

Re: the interface for cloning function

2011-06-16 Thread Martin Jambor
Hi, On Wed, Jun 15, 2011 at 07:20:47PM +0200, Feng LI wrote: > Hi, > > Is there an interface provided in GCC to clone the current function? > I searched in the source code but failed, just in case I'm going wrong. > There are at least two. If you want to clone from within an ordinary intra-pro

gcc-4.5-20110616 is now available

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

Re: Generate annotations for a binary translator

2011-06-16 Thread 陳韋任
> But where do you want that information to be at runtime? > > The hard part is not getting the information at compile time. The > information is readily available after register allocation. Heck, you > can see right in the dump files; e.g., use -da when you compile and look > at the pro_and_epi

Generate annotations for a binary translator - loop boundry

2011-06-16 Thread 陳韋任
Hi, all I am studying on what kind of information a compiler can pass to a binary translator (QEMU, for example) so that the binary translator can do much aggressive optimization. Previous discussion [1] gave an example on what I want to do. And in the end of the discussion, it showed that GCC i

Re: X32 project status update

2011-06-16 Thread H.J. Lu
Hi, This is the x32 project status update: https://sites.google.com/site/x32abi/ With the latest x32 kernel, glibc, gcc and gdb, everything works, including core dump and vDSO. I'd like to see x32 kernel system call numbers be finalized so that people don't have to recompile everything if the f