olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1505492-winline.patch

00db10
commit ed159672eb3cd650a32b7e5cb4d5ec1fe0e63802
00db10
Author: Florian Weimer <fweimer@redhat.com>
00db10
Date:   Fri Apr 24 11:10:24 2015 +0200
00db10
00db10
    Do not build with -Winline
00db10
    
00db10
    -Winline causes architecture- and optimization-dependent build failures
00db10
    due to -Werror.  -Winline warns about inlining decisions based on
00db10
    branch hints, in effect preventing the use of inline functions in
00db10
    header files (because they might be called on unlikely branches, leading
00db10
    to a decision not to inline).
00db10
    
00db10
    The option was apparently added to the glibc build at a time when GCC
00db10
    did not support the always_inline attribute.  With current GCC versions,
00db10
    inlining failure for functions declared always_inline will receive a
00db10
    warning under -Wattributes, which is enabled by default, so -Winline
00db10
    appears unnecessary.
00db10
00db10
diff --git a/Makeconfig b/Makeconfig
00db10
index 6f61e4835c0a7770..b1bf7f24b6154e3d 100644
00db10
--- a/Makeconfig
00db10
+++ b/Makeconfig
00db10
@@ -639,9 +639,9 @@ endif
00db10
 
00db10
 # Extra flags to pass to GCC.
00db10
 ifeq ($(all-warnings),yes)
00db10
-+gccwarn := -Wall -Wwrite-strings -Winline -Wcast-qual -Wbad-function-cast -Wmissing-noreturn -Wmissing-prototypes -Wmissing-declarations -Wcomment -Wcomments -Wtrigraphs -Wsign-compare -Wfloat-equal -Wmultichar
00db10
++gccwarn := -Wall -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wmissing-noreturn -Wmissing-prototypes -Wmissing-declarations -Wcomment -Wcomments -Wtrigraphs -Wsign-compare -Wfloat-equal -Wmultichar
00db10
 else
00db10
-+gccwarn := -Wall -Wwrite-strings -Winline
00db10
++gccwarn := -Wall -Wwrite-strings
00db10
 endif
00db10
 +gccwarn += -Wundef
00db10
 ifeq ($(enable-werror),yes)