http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55890



--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> 2013-01-07 
12:07:14 UTC ---

Created attachment 29096

  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29096

alternative patch



This verifies call arguments in gimple_call_builtin_p and adds a new overload

suitable for replacing



  if ((fndecl = gimple_call_fndecl (stmt))

      && DECL_BUILT_IN_CLASS (fndecl) == BUILT_IN_NORMAL)

   switch (DECL_FUNCTION_CODE (fndecl))

     ...



with



  if (gimple_call_builtin_p (stmt, BUILT_IN_NORMAL))

   switch (DECL_FUNCTION_CODE (gimple_call_fndecl (stmt)))

     ...

Reply via email to