public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Kwok Yeung <kcy@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/omp/gcc-12] openmp: BUILT_IN_GOMP_ENABLE_PINNED_MODE Date: Wed, 29 Jun 2022 14:46:00 +0000 (GMT) [thread overview] Message-ID: <20220629144600.E85D13851A8C@sourceware.org> (raw) https://gcc.gnu.org/g:0a63a142294e43addbb832fc247da362dd2561ea commit 0a63a142294e43addbb832fc247da362dd2561ea Author: Andrew Stubbs <ams@codesourcery.com> Date: Wed Mar 30 23:19:08 2022 +0100 openmp: BUILT_IN_GOMP_ENABLE_PINNED_MODE Rework the GOMP_enable_pinned_mode call so that it works on powerpc where the old way gave a local call. gcc/ChangeLog: * omp-builtins.def (BUILT_IN_GOMP_ENABLE_PINNED_MODE): New. * omp-low.cc (omp_enable_pinned_mode): Use BUILT_IN_GOMP_ENABLE_PINNED_MODE. Diff: --- gcc/ChangeLog.omp | 6 ++++++ gcc/omp-builtins.def | 3 +++ gcc/omp-low.cc | 4 +--- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog.omp b/gcc/ChangeLog.omp index 34c1a09b215..d32ba90b99d 100644 --- a/gcc/ChangeLog.omp +++ b/gcc/ChangeLog.omp @@ -1,3 +1,9 @@ +2022-03-30 Andrew Stubbs <ams@codesourcery.com> + + * omp-builtins.def (BUILT_IN_GOMP_ENABLE_PINNED_MODE): New. + * omp-low.cc (omp_enable_pinned_mode): Use + BUILT_IN_GOMP_ENABLE_PINNED_MODE. + 2022-03-11 Andrew Stubbs <ams@codesourcery.com> Backport of the patch posted at diff --git a/gcc/omp-builtins.def b/gcc/omp-builtins.def index ce57a93c9d4..1ff9546b4d5 100644 --- a/gcc/omp-builtins.def +++ b/gcc/omp-builtins.def @@ -470,3 +470,6 @@ DEF_GOMP_BUILTIN (BUILT_IN_GOMP_ERROR, "GOMP_error", DEF_GOMP_BUILTIN (BUILT_IN_GOMP_EVALUATE_TARGET_DEVICE, "GOMP_evaluate_target_device", BT_FN_BOOL_INT_CONST_PTR_CONST_PTR_CONST_PTR, ATTR_NOTHROW_LEAF_LIST) +DEF_GOMP_BUILTIN (BUILT_IN_GOMP_ENABLE_PINNED_MODE, + "GOMP_enable_pinned_mode", + BT_FN_VOID, ATTR_NOTHROW_LIST) diff --git a/gcc/omp-low.cc b/gcc/omp-low.cc index 0962a6c84eb..850174185cc 100644 --- a/gcc/omp-low.cc +++ b/gcc/omp-low.cc @@ -15688,9 +15688,7 @@ omp_enable_pinned_mode () push_struct_function (decl); init_tree_ssa (cfun); - tree callname = get_identifier ("GOMP_enable_pinned_mode"); - tree calldecl = build_decl (UNKNOWN_LOCATION, FUNCTION_DECL, callname, - voidfntype); + tree calldecl = builtin_decl_explicit (BUILT_IN_GOMP_ENABLE_PINNED_MODE); gcall *call = gimple_build_call (calldecl, 0); gimple_seq seq = NULL;
reply other threads:[~2022-06-29 14:46 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20220629144600.E85D13851A8C@sourceware.org \ --to=kcy@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).