This is the mail archive of the gcc@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: long double on ppc-darwin



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


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