This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
TARGET_RESOLVE_OVERLOADED_BUILTIN
- From: "Ivan Petrov" <ivan_p at seculab dot ru>
- To: <bonzini at gnu dot org>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 16 Dec 2005 02:02:27 +0500
- Subject: TARGET_RESOLVE_OVERLOADED_BUILTIN
Hi!
I now see you code about "TARGET_RESOLVE_OVERLOADED_BUILTIN", and not complete understand
You code declared only for "TREE_CODE(function) == FUNCTION_DECL"
What will if builtin function will declared as pointer. i.e next:
// "TREE_CODE(function) == VAR_DECL"
type (*builtin_xxx) = __builtin_xxx;
Also i have other question. What you think about add common hook for called funtion?
As sample, it can be OS kernel function called over interrupt.
/////////////////////////////////////////////////////
// ARM sample of sthis call
__attribute__((interrupt("SWI",NNNN)))
type foo( var );
/////////////////////////////////////////////////////
void bar()
{
foo( xxx );
}
asm code:
bar:
push { lr }
swi NNNN
pop {pc};
I ask about it, becouse, i already add it (interrupted) patch on my local PC.
And only rs6000 use you mechanism. Posible we can make common implementation plan,
so as to not make GCC core as trash.
--
Regards
Ivan Petrov