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]

Re: PATCH c++/19044


On Sat, Dec 18, 2004 at 10:32:17AM -0800, Matt Austern wrote:
> !         if (TREE_CODE (decl) == FUNCTION_DECL
> !             && DECL_BUILT_IN_CLASS (decl) == BUILT_IN_NORMAL)
> !           {
> !             tree builtin = built_in_decls [DECL_FUNCTION_CODE (decl)];
> !             set_user_assembler_name (builtin, asmspec);
> !           }
> !         set_user_assembler_name (decl, asmspec);

Actually, Matt, you've missed a bit from the C front end --

           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);

You might do well to just move this entire block to a new function
in c-common.c.


r~


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