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] elf: Remove inline _dl_dprintf
Date: Wed, 23 Mar 2022 13:44:09 +0000 (GMT) [thread overview]
Message-ID: <20220323134409.C695F3858405@sourceware.org> (raw)
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f60e45ba10f0ca2794318de95720cdbdb6ff20d0
commit f60e45ba10f0ca2794318de95720cdbdb6ff20d0
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Mar 7 10:43:41 2022 -0300
elf: Remove inline _dl_dprintf
It is not used on rtld and ldsodef interfaces are meant to be used
solely on loader. It also removes the only usage of gcc extension
__builtin_va_arg_pack.
Diff:
---
sysdeps/generic/ldsodefs.h | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index 9878e7e87e..44750461a9 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -816,20 +816,9 @@ extern void _dl_debug_printf_c (const char *fmt, ...)
/* Write a message on the specified descriptor FD. The parameters are
interpreted as for a `printf' call. */
-#if IS_IN (rtld) || !defined (SHARED)
extern void _dl_dprintf (int fd, const char *fmt, ...)
__attribute__ ((__format__ (__printf__, 2, 3)))
attribute_hidden;
-#else
-__attribute__ ((always_inline, __format__ (__printf__, 2, 3)))
-static inline void
-_dl_dprintf (int fd, const char *fmt, ...)
-{
- /* Use local declaration to avoid includign <stdio.h>. */
- extern int __dprintf(int fd, const char *format, ...) attribute_hidden;
- __dprintf (fd, fmt, __builtin_va_arg_pack ());
-}
-#endif
/* Write LENGTH bytes at BUFFER to FD, like write. Returns the number
of bytes written on success, or a negative error constant on
reply other threads:[~2022-03-23 13:44 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=20220323134409.C695F3858405@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: link
Be 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).