Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/gcc/4.8.0/gentoo: 67_all_gcc-poison-system-directories.patch README.history
Date: Tue, 24 Dec 2013 12:02:09
Message-Id: 20131224120203.A53512004E@flycatcher.gentoo.org
1 vapier 13/12/24 12:02:03
2
3 Modified: 67_all_gcc-poison-system-directories.patch
4 README.history
5 Log:
6 sync poison patch with latest in OE
7
8 Revision Changes Path
9 1.3 src/patchsets/gcc/4.8.0/gentoo/67_all_gcc-poison-system-directories.patch
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.8.0/gentoo/67_all_gcc-poison-system-directories.patch?rev=1.3&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.8.0/gentoo/67_all_gcc-poison-system-directories.patch?rev=1.3&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.8.0/gentoo/67_all_gcc-poison-system-directories.patch?r1=1.2&r2=1.3
14
15 Index: 67_all_gcc-poison-system-directories.patch
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.8.0/gentoo/67_all_gcc-poison-system-directories.patch,v
18 retrieving revision 1.2
19 retrieving revision 1.3
20 diff -u -r1.2 -r1.3
21 --- 67_all_gcc-poison-system-directories.patch 5 Apr 2013 17:51:26 -0000 1.2
22 +++ 67_all_gcc-poison-system-directories.patch 24 Dec 2013 12:02:03 -0000 1.3
23 @@ -1,35 +1,26 @@
24 grabbed from openembedded
25
26 -Upstream-Status: Inappropriate [distribution: codesourcery]
27 -
28 - gcc/
29 - 2008-07-02 Joseph Myers <joseph@××××××××××××.com>
30 - * c-incpath.c: Include toplev.h.
31 - (merge_include_chains): Use warning instead of cpp_error for
32 - system directory poisoning diagnostic.
33 - * Makefile.in (c-incpath.o): Depend on toplev.h.
34 - * gcc.c (LINK_COMMAND_SPEC): Pass
35 - --error-poison-system-directories if
36 - -Werror=poison-system-directories.
37 -
38 - 2007-06-13 Joseph Myers <joseph@××××××××××××.com>
39 - * common.opt (--Wno-poison-system-directories): New.
40 - * doc/invoke.texi (-Wno-poison-system-directories): Document.
41 - * c-incpath.c: Include flags.h.
42 - (merge_include_chains): Check flag_poison_system_directories.
43 - * gcc.c (LINK_COMMAND_SPEC): Pass --no-poison-system-directories
44 - to linker if -Wno-poison-system-directories.
45 - * Makefile.in (c-incpath.o): Depend on $(FLAGS_H).
46 +From 160397ef3c3331099af028f1b8d3e085b07d88ad Mon Sep 17 00:00:00 2001
47 +From: Khem Raj <raj.khem@×××××.com>
48 +Date: Fri, 29 Mar 2013 08:59:00 +0400
49 +Subject: [PATCH 16/35] gcc: poison-system-directories
50
51 - 2007-03-20 Daniel Jacobowitz <dan@××××××××××××.com>
52 - Joseph Myers <joseph@××××××××××××.com>
53 - * configure.ac (--enable-poison-system-directories): New option.
54 - * configure, config.in: Regenerate.
55 - * c-incpath.c (merge_include_chains): If
56 - ENABLE_POISON_SYSTEM_DIRECTORIES defined, warn for use of
57 - /usr/include, /usr/local/include or /usr/X11R6/include.
58 +Signed-off-by: Khem Raj <raj.khem@×××××.com>
59
60 +Upstream-Status: Inappropriate [distribution: codesourcery]
61 +---
62 + gcc/Makefile.in | 2 +-
63 + gcc/common.opt | 4 ++++
64 + gcc/config.in | 6 ++++++
65 + gcc/configure | 20 ++++++++++++++++++--
66 + gcc/configure.ac | 10 ++++++++++
67 + gcc/doc/invoke.texi | 9 +++++++++
68 + gcc/gcc.c | 2 ++
69 + gcc/incpath.c | 19 +++++++++++++++++++
70 + 8 files changed, 69 insertions(+), 3 deletions(-)
71
72 +diff --git a/gcc/Makefile.in b/gcc/Makefile.in
73 +index 54ea04f..90a2bba 100644
74 --- a/gcc/Makefile.in
75 +++ b/gcc/Makefile.in
76 @@ -2018,7 +2018,7 @@ attribs.o : attribs.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
77 @@ -41,6 +32,8 @@
78
79 CFLAGS-prefix.o += -DPREFIX=\"$(prefix)\" -DBASEVER=$(BASEVER_s)
80 prefix.o: prefix.c $(CONFIG_H) $(SYSTEM_H) coretypes.h prefix.h \
81 +diff --git a/gcc/common.opt b/gcc/common.opt
82 +index bdbd3b6..ab86b00 100644
83 --- a/gcc/common.opt
84 +++ b/gcc/common.opt
85 @@ -595,6 +595,10 @@ Wpedantic
86 @@ -54,6 +47,8 @@
87 Wshadow
88 Common Var(warn_shadow) Warning
89 Warn when one local variable shadows another
90 +diff --git a/gcc/config.in b/gcc/config.in
91 +index d80fb9f..0524af7 100644
92 --- a/gcc/config.in
93 +++ b/gcc/config.in
94 @@ -138,6 +138,12 @@
95 @@ -69,6 +64,8 @@
96 /* Define if you want all operations on RTL (the basic data structure of the
97 optimizer and back end) to be checked for dynamic type safety at runtime.
98 This is quite expensive. */
99 +diff --git a/gcc/configure b/gcc/configure
100 +index 135bbf5..b65d21d 100755
101 --- a/gcc/configure
102 +++ b/gcc/configure
103 @@ -917,6 +917,7 @@ with_gc
104 @@ -108,6 +105,8 @@
105 # Substitute configuration variables
106
107
108 +diff --git a/gcc/configure.ac b/gcc/configure.ac
109 +index 6363a21..e226b85 100644
110 --- a/gcc/configure.ac
111 +++ b/gcc/configure.ac
112 @@ -5063,6 +5063,16 @@ AC_ARG_ENABLE(version-specific-runtime-libs,
113 @@ -127,6 +126,8 @@
114 # Substitute configuration variables
115 AC_SUBST(subdirs)
116 AC_SUBST(srcdir)
117 +diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
118 +index 9273d7d..a022622 100644
119 --- a/gcc/doc/invoke.texi
120 +++ b/gcc/doc/invoke.texi
121 @@ -258,6 +258,7 @@ Objective-C and Objective-C++ Dialects}.
122 @@ -137,9 +138,9 @@
123 -Wredundant-decls -Wno-return-local-addr @gol
124 -Wreturn-type -Wsequence-point -Wshadow @gol
125 -Wsign-compare -Wsign-conversion -Wsizeof-pointer-memaccess @gol
126 -@@ -4023,6 +4024,14 @@ should check to see whether the two values have ranges that overlap; and
127 - this is done with the relational operators, so equality comparisons are
128 - probably mistaken.
129 +@@ -4007,6 +4008,14 @@ headers---for that, @option{-Wunknown-pragmas} must also be used.
130 + for most targets, it is made up of code and thus requires the stack
131 + to be made executable in order for the program to work properly.
132
133 +@item -Wno-poison-system-directories
134 +@opindex Wno-poison-system-directories
135 @@ -149,9 +150,11 @@
136 +directories contain the correct headers and libraries for the target
137 +system rather than the host.
138 +
139 - @item -Wtraditional @r{(C and Objective-C only)}
140 - @opindex Wtraditional
141 - @opindex Wno-traditional
142 + @item -Wfloat-equal
143 + @opindex Wfloat-equal
144 + @opindex Wno-float-equal
145 +diff --git a/gcc/gcc.c b/gcc/gcc.c
146 +index 86077f8..efdb625 100644
147 --- a/gcc/gcc.c
148 +++ b/gcc/gcc.c
149 @@ -740,6 +740,8 @@ proper position among the other output files. */
150 @@ -163,20 +166,23 @@
151 %{static:} %{L*} %(mfwrap) %(link_libgcc) " SANITIZER_EARLY_SPEC " %o\
152 %{fopenmp|ftree-parallelize-loops=*:%:include(libgomp.spec)%(link_gomp)}\
153 %{fgnu-tm:%:include(libitm.spec)%(link_itm)}\
154 +diff --git a/gcc/incpath.c b/gcc/incpath.c
155 +index 018da98..cd41c78 100644
156 --- a/gcc/incpath.c
157 +++ b/gcc/incpath.c
158 @@ -28,6 +28,7 @@
159 #include "intl.h"
160 #include "incpath.h"
161 #include "cppdefault.h"
162 -+#include "diagnostic.h"
163 ++#include "diagnostic-core.h"
164
165 /* Microsoft Windows does not natively support inodes.
166 VMS has non-numeric inodes. */
167 -@@ -382,6 +382,25 @@ merge_include_chains (const char *sysroot, cpp_reader *pfile, int verbose)
168 +@@ -382,6 +382,26 @@ merge_include_chains (const char *sysroot, cpp_reader *pfile, int verbose)
169 }
170 fprintf (stderr, _("End of search list.\n"));
171 }
172 ++
173 +#ifdef ENABLE_POISON_SYSTEM_DIRECTORIES
174 + if (flag_poison_system_directories)
175 + {
176
177
178
179 1.9 src/patchsets/gcc/4.8.0/gentoo/README.history
180
181 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.8.0/gentoo/README.history?rev=1.9&view=markup
182 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.8.0/gentoo/README.history?rev=1.9&content-type=text/plain
183 diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.8.0/gentoo/README.history?r1=1.8&r2=1.9
184
185 Index: README.history
186 ===================================================================
187 RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.8.0/gentoo/README.history,v
188 retrieving revision 1.8
189 retrieving revision 1.9
190 diff -u -r1.8 -r1.9
191 --- README.history 15 May 2013 00:28:07 -0000 1.8
192 +++ README.history 24 Dec 2013 12:02:03 -0000 1.9
193 @@ -1,3 +1,6 @@
194 +1.4 [pending]
195 + U 67_all_gcc-poison-system-directories.patch
196 +
197 1.3 06 May 2013
198 + 95_all_4.8.1_mxop-wrong-code.patch
199 + 96_all_4.8.1_msabi-memcopy-clobber.patch