[v1,1/7] Remove redirection of _IO_vfprintf

Message ID 20181206180824.1761-2-gabriel@inconstante.eti.br
State Committed
Delegated to: Joseph Myers
Headers

Commit Message

Gabriel F. T. Gomes Dec. 6, 2018, 6:08 p.m. UTC
  Since the commit

commit 698fb75b9ff5ae454a1344b5f9fafa0ca367c555
Author: Zack Weinberg <zackw@panix.com>
Date:   Wed Mar 7 14:32:01 2018 -0500

    Add __v*printf_internal with flags arguments

_IO_vfprintf is gone.  This did not trigger any test case failures on
powerpc and powerpc64le, because there were no tests that covered it.
However, new test cases for nldbl versions of argp.h functions exposed
the problem.

Tested for powerpc64 and powerpc64le.

	* libio/libio.h: Remove redirection for _IO_vfprintf.
---
 libio/libio.h | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Joseph Myers Dec. 6, 2018, 8:34 p.m. UTC | #1
On Thu, 6 Dec 2018, Gabriel F. T. Gomes wrote:

> Since the commit
> 
> commit 698fb75b9ff5ae454a1344b5f9fafa0ca367c555
> Author: Zack Weinberg <zackw@panix.com>
> Date:   Wed Mar 7 14:32:01 2018 -0500
> 
>     Add __v*printf_internal with flags arguments
> 
> _IO_vfprintf is gone.  This did not trigger any test case failures on

I see that libio/iolibio.h has a call to _IO_vfprintf in a definition of 
_IO_vprintf as a macro.  I suppose that's just left over from a previous 
patch?  Other than that, yes, _IO_vfprintf seems gone apart from the 
aliases for ABI compatibility, so this patch is OK.
  
Zack Weinberg Dec. 6, 2018, 8:43 p.m. UTC | #2
On Thu, Dec 6, 2018 at 3:34 PM Joseph Myers <joseph@codesourcery.com> wrote:
> On Thu, 6 Dec 2018, Gabriel F. T. Gomes wrote:
> >
> > _IO_vfprintf is gone.  This did not trigger any test case failures on
>
> I see that libio/iolibio.h has a call to _IO_vfprintf in a definition of
> _IO_vprintf as a macro.  I suppose that's just left over from a previous
> patch?

When I did the patches to stop installing libio.h, I noticed there
were a whole bunch of stale definitions and prototypes in iolibio.h,
but I decided it wasn't worth cleaning them up in that patch series,
since iolibio.h has never (AFAICT) been installed.  "Minimize the use
of _IO_ interfaces throughout glibc" would be a good patch series for
someone [who has more time than I do right now ;-)] to tackle, and
maybe we would discover that iolibio.h was completely redundant at the
end of it.

zw
  
Gabriel F. T. Gomes Dec. 11, 2018, 5:18 p.m. UTC | #3
On Thu, 06 Dec 2018, Joseph Myers wrote:

>I see that libio/iolibio.h has a call to _IO_vfprintf in a definition of 
>_IO_vprintf as a macro.  I suppose that's just left over from a previous 
>patch?  Other than that, yes, _IO_vfprintf seems gone apart from the 
>aliases for ABI compatibility, so this patch is OK.

Thanks, now committed.
  

Patch

diff --git a/libio/libio.h b/libio/libio.h
index 3a93807efc..e19d860dc6 100644
--- a/libio/libio.h
+++ b/libio/libio.h
@@ -300,7 +300,6 @@  extern void _IO_free_wbackup_area (FILE *) __THROW;
 
 #ifdef __LDBL_COMPAT
 __LDBL_REDIR_DECL (_IO_vfscanf)
-__LDBL_REDIR_DECL (_IO_vfprintf)
 #endif
 
 libc_hidden_proto (__overflow)