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