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
Tested on x86_64.
Diego.
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
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
> 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
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
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