public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: William Schmidt <wschmidt@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/wschmidt/heads/builtins4)] rs6000: Use built-in fntype, not instance fntype, for type conversion Date: Fri, 18 Dec 2020 22:32:20 +0000 (GMT) [thread overview] Message-ID: <20201218223220.EBB74385480B@sourceware.org> (raw) https://gcc.gnu.org/g:a3dba458c201f27201b0e4e2c446c2320b33e0c6 commit a3dba458c201f27201b0e4e2c446c2320b33e0c6 Author: Bill Schmidt <wschmidt@linux.ibm.com> Date: Fri Dec 18 16:31:59 2020 -0600 rs6000: Use built-in fntype, not instance fntype, for type conversion 2020-12-18 Bill Schmidt <wschmidt@linux.ibm.com> * config/rs6000/rs6000-c.c (altivec_resolve_new_overloaded_builtin): Use built-in fntype. Diff: --- gcc/config/rs6000/rs6000-c.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gcc/config/rs6000/rs6000-c.c b/gcc/config/rs6000/rs6000-c.c index cf70d438c86..d05da4fceaa 100644 --- a/gcc/config/rs6000/rs6000-c.c +++ b/gcc/config/rs6000/rs6000-c.c @@ -2827,7 +2827,7 @@ altivec_resolve_new_overloaded_builtin (location_t loc, tree fndecl, instance = instance->next; gcc_assert (instance != NULL); - tree fntype = instance->fntype; + tree fntype = rs6000_builtin_info_x[instance->bifid].fntype; tree parmtype0 = TREE_VALUE (TYPE_ARG_TYPES (fntype)); tree parmtype1 = TREE_VALUE (TREE_CHAIN (parmtype0)); @@ -2881,7 +2881,7 @@ altivec_resolve_new_overloaded_builtin (location_t loc, tree fndecl, instance = instance->next; gcc_assert (instance != NULL); - tree fntype = instance->fntype; + tree fntype = rs6000_builtin_info_x[instance->bifid].fntype; tree parmtype0 = TREE_VALUE (TYPE_ARG_TYPES (fntype)); tree parmtype1 = TREE_VALUE (TREE_CHAIN (parmtype0)); @@ -2923,10 +2923,12 @@ altivec_resolve_new_overloaded_builtin (location_t loc, tree fndecl, if (rs6000_builtin_decl (instance->bifid, false) != error_mark_node && rs6000_new_builtin_is_supported_p (instance->bifid)) - return altivec_build_new_resolved_builtin (args, n, - instance->fntype, - instance->bifid, - fcode); + { + tree fntype = rs6000_builtin_info_x[instance->bifid].fntype; + return altivec_build_new_resolved_builtin (args, n, fntype, + instance->bifid, + fcode); + } else { unsupported_builtin = true;
next reply other threads:[~2020-12-18 22:32 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-12-18 22:32 William Schmidt [this message] 2021-02-07 18:16 William Schmidt
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=20201218223220.EBB74385480B@sourceware.org \ --to=wschmidt@gcc.gnu.org \ --cc=gcc-cvs@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).