This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.22-442-g8e2f7c6


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  8e2f7c68111ba8fae795ee08b6822e21ab8cfa38 (commit)
      from  85231522bb178ebe0957529de20b7f3dda81168c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=8e2f7c68111ba8fae795ee08b6822e21ab8cfa38

commit 8e2f7c68111ba8fae795ee08b6822e21ab8cfa38
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Oct 21 15:14:13 2015 +0000

    Use -Wold-style-definition.
    
    This patch makes glibc build with -Wold-style-definition to avoid
    old-style function definitions creeping back in by accident.
    
    Tested for x86_64 and x86 (testsuite, and that installed shared
    libraries are unchanged by the patch).  Also tested build for arm,
    mips64 and powerpc32.  Hopefully there aren't any remaining
    system-specific files with old-style definitions whose formatting
    evaded my searches, but if there are, they will be easy to fix.
    
    	* Makeconfig (+gccwarn-c): Add -Wold-style-definition.
    	* Makefile ($(objpfx)c++-types-check.out): Filter out
    	$(+gccwarn-c) instead of -Wstrict-prototypes.

diff --git a/ChangeLog b/ChangeLog
index d08674e..b05d6d0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
 
+	* Makeconfig (+gccwarn-c): Add -Wold-style-definition.
+	* Makefile ($(objpfx)c++-types-check.out): Filter out
+	$(+gccwarn-c) instead of -Wstrict-prototypes.
+
 	* io/fts.c (fts_open): Convert to prototype-style function
 	definition.
 	* malloc/mcheck.c (mcheck): Likewise.
diff --git a/Makeconfig b/Makeconfig
index 1dc522c..f3668c6 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -752,7 +752,7 @@ endif
 ifeq ($(enable-werror),yes)
 +gccwarn += -Werror
 endif
-+gccwarn-c = -Wstrict-prototypes
++gccwarn-c = -Wstrict-prototypes -Wold-style-definition
 
 # We do not depend on the address of constants in different files to be
 # actually different, so allow the compiler to merge them all.
diff --git a/Makefile b/Makefile
index a2abfb9..b2dd771 100644
--- a/Makefile
+++ b/Makefile
@@ -256,7 +256,7 @@ ifneq ($(CXX),no)
 vpath c++-types.data $(+sysdep_dirs)
 
 $(objpfx)c++-types-check.out: c++-types.data scripts/check-c++-types.sh
-	scripts/check-c++-types.sh $< $(CXX) $(filter-out -std=gnu99 -Wstrict-prototypes,$(CFLAGS)) $(CPPFLAGS) > $@; \
+	scripts/check-c++-types.sh $< $(CXX) $(filter-out -std=gnu99 $(+gccwarn-c),$(CFLAGS)) $(CPPFLAGS) > $@; \
 	$(evaluate-test)
 endif
 

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog  |    4 ++++
 Makeconfig |    2 +-
 Makefile   |    2 +-
 3 files changed, 6 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]