This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]