long double on ppc-darwin

Andrew Pinski pinskia@physics.uc.edu
Sun Dec 18 13:22:00 GMT 2005


On Dec 18, 2005, at 1:13 AM, Geoff Keating wrote:
> Yes; to do this right, GCC's builtins need to know about the different 
> names.
>
> If you're interested in fixing this, I can tell you what to do...

I figured out how to fix it and will be posting a patch later this week.
but a function like:
static void
darwin_patch_builtin (int fncode)
{
   tree fn = built_in_decls[fncode];
   const char *newname;
   if (!fn)
     return;

   sym = DECL_ASSEMBLER_NAME (fn);
   newname = alloca (IDENTIFIER_LENGTH (sym)+9);
   strcpy (newname, IDENTIFIER_POINTER (sym));
   strcat (newname, "$LDBL128");
   sym = get_identifier (newname);
   SET_DECL_ASSEMBLER_NAME (fn, sym);

   fn = implicit_built_in_decls[fncode];
   if (fn)
     SET_DECL_ASSEMBLER_NAME (fn, sym);
}

Will do it.


And then go through all the builtins which need to be fixed.

-- pinski



More information about the Gcc mailing list