public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jay dot krell at cornell dot edu" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/44037] builtin ffs vs. renamed ffs (vms-crtl.h)‏ Date: Sat, 22 May 2010 12:16:00 -0000 [thread overview] Message-ID: <20100522121625.26612.qmail@sourceware.org> (raw) In-Reply-To: <bug-44037-16543@http.gcc.gnu.org/bugzilla/> ------- Comment #2 from jay dot krell at cornell dot edu 2010-05-22 12:16 ------- Thanks, good pointer. I found what you mean based on your recommendation. I tried many things like it then. Nothing worked. I don't know why. Notice that there is __builtin_foo and foo. Darwin appears to only rename __builtin_foo. I need to rename foo. I didn't figure out what the "implicit" builtins are, but I don't think figuring that out would help me. This is a little bit lame but worked: jbook2:gcc jay$ diff -u /src/orig/gcc-4.5.0/gcc/c-common.c c-common.c --- /src/orig/gcc-4.5.0/gcc/c-common.c 2010-04-02 12:54:46.000000000 -0700 +++ c-common.c 2010-05-22 04:59:55.000000000 -0700 @@ -5181,6 +5181,7 @@ { tree decl; const char *libname; + const char *libname2; if (fntype == error_mark_node) return; @@ -5190,11 +5191,16 @@ strlen ("__builtin_"))); libname = name + strlen ("__builtin_"); + libname2 = libname; + if (TARGET_ABI_OPEN_VMS && strcmp(libname, "ffs") == 0) + libname = "decc$ffs"; + decl = add_builtin_function (name, fntype, fncode, fnclass, (fallback_p ? libname : NULL), fnattrs); if (both_p && !flag_no_builtin && !builtin_function_disabled_p (libname) + && !builtin_function_disabled_p (libname2) && !(nonansi_p && flag_no_nonansi_builtin)) add_builtin_function (libname, libtype, fncode, fnclass, NULL, fnattrs); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44037
next prev parent reply other threads:[~2010-05-22 12:16 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-05-08 6:22 [Bug c/44037] New: " jay dot krell at cornell dot edu 2010-05-10 22:53 ` [Bug c/44037] " jay dot krell at cornell dot edu 2010-05-22 12:16 ` jay dot krell at cornell dot edu [this message] 2010-05-26 4:56 ` [Bug target/44037] " jay dot krell at cornell dot edu
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100522121625.26612.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).