This is the mail archive of the gcc-bugs@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]

[Bug c++/19044] Alternate asm name for atan ignored when calling __builtin_atan


------- Additional Comments From austern at apple dot com  2004-12-18 01:17 -------
The code in the C front end that handles this is in finish_decl, in c-decl.c:
  if (TREE_CODE (decl) == FUNCTION_DECL && asmspec)
    {
      if (DECL_BUILT_IN_CLASS (decl) == BUILT_IN_NORMAL)
	{
	  tree builtin = built_in_decls [DECL_FUNCTION_CODE (decl)];
	  set_user_assembler_name (builtin, asmspec);
	   if (DECL_FUNCTION_CODE (decl) == BUILT_IN_MEMCPY)
	     init_block_move_fn (asmspec);
	   else if (DECL_FUNCTION_CODE (decl) == BUILT_IN_MEMSET)
	     init_block_clear_fn (asmspec);
	 }
      set_user_assembler_name (decl, asmspec);
    }

-- 


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


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