Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/gcc/4.8.1/gentoo: 17_all_libitm-Werror.patch 18_all_libatomic-Werror.patch README.history
Date: Mon, 01 Jul 2013 05:55:09
Message-Id: 20130701055505.3E6122171C@flycatcher.gentoo.org
1 dirtyepic 13/07/01 05:55:05
2
3 Modified: README.history
4 Added: 17_all_libitm-Werror.patch
5 18_all_libatomic-Werror.patch
6 Log:
7 Add --enable-werror for bug #475350.
8
9 Revision Changes Path
10 1.2 src/patchsets/gcc/4.8.1/gentoo/README.history
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.8.1/gentoo/README.history?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.8.1/gentoo/README.history?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.8.1/gentoo/README.history?r1=1.1&r2=1.2
15
16 Index: README.history
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.8.1/gentoo/README.history,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- README.history 4 Jun 2013 05:21:15 -0000 1.1
23 +++ README.history 1 Jul 2013 05:55:05 -0000 1.2
24 @@ -1,3 +1,7 @@
25 +1.1 (pending)
26 + + 17_all_libitm-Werror.patch
27 + + 18_all_libatomic-Werror.patch
28 +
29 1.0 03 Jun 2013
30 + 10_all_default-fortify-source.patch
31 + 11_all_default-warn-format-security.patch
32
33
34
35 1.1 src/patchsets/gcc/4.8.1/gentoo/17_all_libitm-Werror.patch
36
37 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.8.1/gentoo/17_all_libitm-Werror.patch?rev=1.1&view=markup
38 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.8.1/gentoo/17_all_libitm-Werror.patch?rev=1.1&content-type=text/plain
39
40 Index: 17_all_libitm-Werror.patch
41 ===================================================================
42 Add --enable-werror.
43
44 https://bugs.gentoo.org/475350
45
46
47 2013-06-30 Ryan Hill <dirtyepic@g.o>
48
49 * configure.ac: Add --enable-werror.
50 (XCFLAGS): Use it.
51 * configure: Regenerate.
52
53 --- a/libitm/configure
54 +++ b/libitm/configure
55 @@ -775,6 +775,7 @@ enable_maintainer_mode
56 enable_linux_futex
57 enable_tls
58 enable_symvers
59 +enable_werror
60 '
61 ac_precious_vars='build_alias
62 host_alias
63 @@ -1423,6 +1424,7 @@ Optional Features:
64 --enable-tls Use thread-local storage [default=yes]
65 --enable-symvers=STYLE enables symbol versioning of the shared library
66 [default=yes]
67 + --enable-werror turns on -Werror [default=yes]
68
69 Optional Packages:
70 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
71 @@ -17491,9 +17493,18 @@ $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
72 fi
73 rm -f confcache
74
75 -# Add -Wall -Werror if we are using GCC.
76 +# Check whether --enable-werror was given.
77 +if test "${enable_werror+set}" = set; then :
78 + enableval=$enable_werror;
79 +fi
80 +
81 +# Add -Wall if we are using GCC.
82 if test "x$GCC" = "xyes"; then
83 - XCFLAGS="$XCFLAGS -Wall -Werror"
84 + XCFLAGS="$XCFLAGS -Wall"
85 + # Add -Werror if requested.
86 + if test "x$enable_werror" != "xno"; then
87 + XCFLAGS="$XCFLAGS -Werror"
88 + fi
89 fi
90
91 XCFLAGS="$XCFLAGS $XPCFLAGS"
92 --- a/libitm/configure.ac
93 +++ b/libitm/configure.ac
94 @@ -252,9 +252,15 @@ GCC_CHECK_ELF_STYLE_WEAKREF
95 CFLAGS="$save_CFLAGS"
96 AC_CACHE_SAVE
97
98 -# Add -Wall -Werror if we are using GCC.
99 +AC_ARG_ENABLE(werror, [AS_HELP_STRING([--enable-werror],
100 + [turns on -Werror @<:@default=yes@:>@])])
101 +# Add -Wall if we are using GCC.
102 if test "x$GCC" = "xyes"; then
103 - XCFLAGS="$XCFLAGS -Wall -Werror"
104 + XCFLAGS="$XCFLAGS -Wall"
105 + # Add -Werror if requested.
106 + if test "x$enable_werror" != "xno"; then
107 + XCFLAGS="$XCFLAGS -Werror"
108 + fi
109 fi
110
111 XCFLAGS="$XCFLAGS $XPCFLAGS"
112
113
114
115 1.1 src/patchsets/gcc/4.8.1/gentoo/18_all_libatomic-Werror.patch
116
117 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.8.1/gentoo/18_all_libatomic-Werror.patch?rev=1.1&view=markup
118 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.8.1/gentoo/18_all_libatomic-Werror.patch?rev=1.1&content-type=text/plain
119
120 Index: 18_all_libatomic-Werror.patch
121 ===================================================================
122 Add --enable-werror.
123
124 https://bugs.gentoo.org/475350
125
126
127 2013-06-30 Ryan Hill <dirtyepic@g.o>
128
129 * configure.ac: Add --enable-werror.
130 (XCFLAGS): Use it.
131 * configure: Regenerate.
132
133 --- a/libatomic/configure
134 +++ b/libatomic/configure
135 @@ -761,6 +761,7 @@ with_gnu_ld
136 enable_libtool_lock
137 enable_maintainer_mode
138 enable_symvers
139 +enable_werror
140 '
141 ac_precious_vars='build_alias
142 host_alias
143 @@ -1406,6 +1407,7 @@ Optional Features:
144 (and sometimes confusing) to the casual installer
145 --enable-symvers=STYLE enables symbol versioning of the shared library
146 [default=yes]
147 + --enable-werror turns on -Werror [default=yes]
148
149 Optional Packages:
150 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
151 @@ -15071,9 +15073,18 @@ $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
152 fi
153 rm -f confcache
154
155 -# Add -Wall -Werror if we are using GCC.
156 +# Check whether --enable-werror was given.
157 +if test "${enable_werror+set}" = set; then :
158 + enableval=$enable_werror;
159 +fi
160 +
161 +# Add -Wall if we are using GCC.
162 if test "x$GCC" = "xyes"; then
163 - XCFLAGS="$XCFLAGS -Wall -Werror"
164 + XCFLAGS="$XCFLAGS -Wall"
165 + # Add -Werror if requested.
166 + if test "x$enable_werror" != "xno"; then
167 + XCFLAGS="$XCFLAGS -Werror"
168 + fi
169 fi
170
171 XCFLAGS="$XCFLAGS $XPCFLAGS"
172 --- a/libatomic/configure.ac
173 +++ b/libatomic/configure.ac
174 @@ -226,9 +226,15 @@ LIBAT_ENABLE_SYMVERS
175 CFLAGS="$save_CFLAGS"
176 AC_CACHE_SAVE
177
178 -# Add -Wall -Werror if we are using GCC.
179 +AC_ARG_ENABLE(werror, [AS_HELP_STRING([--enable-werror],
180 + [turns on -Werror @<:@default=yes@:>@])])
181 +# Add -Wall if we are using GCC.
182 if test "x$GCC" = "xyes"; then
183 - XCFLAGS="$XCFLAGS -Wall -Werror"
184 + XCFLAGS="$XCFLAGS -Wall"
185 + # Add -Werror if requested.
186 + if test "x$enable_werror" != "xno"; then
187 + XCFLAGS="$XCFLAGS -Werror"
188 + fi
189 fi
190
191 XCFLAGS="$XCFLAGS $XPCFLAGS"