public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] allocate_once: Apply asm redirection before first use Date: Fri, 28 Oct 2022 17:39:02 +0000 (GMT) [thread overview] Message-ID: <20221028173902.E2040382EA2C@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=de79b7f7a525e6084379a98710a1b82b2c3367eb commit de79b7f7a525e6084379a98710a1b82b2c3367eb Author: Adhemerval Zanella <adhemerval.zanella@linaro.org> Date: Tue Oct 25 10:42:16 2022 -0300 allocate_once: Apply asm redirection before first use Compilers may not be able to apply asm redirections to functions after these functions are used for the first time, e.g. clang 13. Diff: --- include/allocate_once.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/allocate_once.h b/include/allocate_once.h index a487d641d5..d8cc08824c 100644 --- a/include/allocate_once.h +++ b/include/allocate_once.h @@ -27,6 +27,9 @@ void *__libc_allocate_once_slow (void **__place, void (*__deallocate) (void *__closure, void *__ptr), void *__closure); +#ifndef _ISOMAC +libc_hidden_proto (__libc_allocate_once_slow) +#endif /* Return an a pointer to an allocated and initialized data structure. If this function returns a non-NULL value, the caller can assume @@ -88,8 +91,4 @@ allocate_once (void **__place, void *(*__allocate) (void *__closure), __closure); } -#ifndef _ISOMAC -libc_hidden_proto (__libc_allocate_once_slow) -#endif - #endif /* _ALLOCATE_ONCE_H */
reply other threads:[~2022-10-28 17:39 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=20221028173902.E2040382EA2C@sourceware.org \ --to=azanella@sourceware.org \ --cc=glibc-cvs@sourceware.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).