This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Help with target hook TARGET_INIT_LIBFUNCS
- From: Rohit Arul Raj <rohitarulraj at gmail dot com>
- To: gcc <gcc at gcc dot gnu dot org>
- Date: Tue, 27 Nov 2012 20:28:03 +0530
- Subject: Help with target hook TARGET_INIT_LIBFUNCS
Hello All,
I need some clarification regarding the target hook "TARGET_INIT_LIBFUNCS".
I wanted to replace all the instances of 'memcpy' with '__memcpy'. For
that, i have used the above mentioned target hook with the code as
shown below:
memcpy_libfunc = init_one_libfunc ("__memcpy");
I can see while debugging that function table is getting updated, but
i cannot see this change in the assembly file.
(gdb) p debug_rtx((&default_target_libfuncs)->x_libfunc_table[1])
(symbol_ref:SI ("memcpy") [flags 0x41])
$1 = void
(gdb) n
(gdb) p debug_rtx((&default_target_libfuncs)->x_libfunc_table[1])
(symbol_ref:SI ("__memcpy") [flags 0x41])
Am i missing any other details or is this not the right way to do this?
Regards,
Rohit