1
- From d64825212f807435a4b2f8e068c0f65195c8e2e6 Mon Sep 17 00:00:00 2001
1
+ From dd1e75ff4ecda96957465b34681f245e818928bd Mon Sep 17 00:00:00 2001
2
2
From: Khem Raj <raj.khem@gmail.com>
3
3
Date: Fri, 29 Mar 2013 08:59:00 +0400
4
4
Subject: [PATCH] gcc: poison-system-directories
@@ -21,15 +21,15 @@ Upstream-Status: Pending
21
21
gcc/configure | 16 ++++++++++++++++
22
22
gcc/configure.ac | 10 ++++++++++
23
23
gcc/doc/invoke.texi | 9 +++++++++
24
- gcc/gcc.c | 2 ++
25
- gcc/incpath.c | 21 +++++++++++++++++++++
24
+ gcc/gcc.cc | 2 ++
25
+ gcc/incpath.cc | 21 +++++++++++++++++++++
26
26
7 files changed, 68 insertions(+)
27
27
28
28
diff --git a/gcc/common.opt b/gcc/common.opt
29
- index a75b44ee47e..d15105a73f3 100644
29
+ index 8a0dafc522d..0357868e22c 100644
30
30
--- a/gcc/common.opt
31
31
+++ b/gcc/common.opt
32
- @@ -683 ,6 +683 ,10 @@ Wreturn-local-addr
32
+ @@ -710 ,6 +710 ,10 @@ Wreturn-local-addr
33
33
Common Var(warn_return_local_addr) Init(1) Warning
34
34
Warn about returning a pointer/reference to a local or temporary variable.
35
35
@@ -41,10 +41,10 @@ index a75b44ee47e..d15105a73f3 100644
41
41
Common Var(warn_shadow) Warning
42
42
Warn when one variable shadows another. Same as -Wshadow=global.
43
43
diff --git a/gcc/config.in b/gcc/config.in
44
- index 2de5a463315..059c818c895 100644
44
+ index 64c27c9cfac..f0fbf123aa8 100644
45
45
--- a/gcc/config.in
46
46
+++ b/gcc/config.in
47
- @@ -218 ,6 +218 ,12 @@
47
+ @@ -230 ,6 +230 ,12 @@
48
48
#endif
49
49
50
50
@@ -58,18 +58,18 @@ index 2de5a463315..059c818c895 100644
58
58
optimizer and back end) to be checked for dynamic type safety at runtime.
59
59
This is quite expensive. */
60
60
diff --git a/gcc/configure b/gcc/configure
61
- index 708328e1670..4b977e313b5 100755
61
+ index 5ce0557719a..e9060112384 100755
62
62
--- a/gcc/configure
63
63
+++ b/gcc/configure
64
- @@ -1020 ,6 +1020 ,7 @@ enable_maintainer_mode
64
+ @@ -1023 ,6 +1023 ,7 @@ enable_maintainer_mode
65
65
enable_link_mutex
66
66
enable_link_serialization
67
67
enable_version_specific_runtime_libs
68
68
+ enable_poison_system_directories
69
69
enable_plugin
70
70
enable_host_shared
71
71
enable_libquadmath_support
72
- @@ -1782 ,6 +1783 ,8 @@ Optional Features:
72
+ @@ -1785 ,6 +1786 ,8 @@ Optional Features:
73
73
--enable-version-specific-runtime-libs
74
74
specify that runtime libraries should be installed
75
75
in a compiler-specific directory
@@ -78,7 +78,7 @@ index 708328e1670..4b977e313b5 100755
78
78
--enable-plugin enable plugin support
79
79
--enable-host-shared build host code as shared libraries
80
80
--disable-libquadmath-support
81
- @@ -31790 ,6 +31793 ,19 @@ if test "${enable_version_specific_runtime_libs+set}" = set; then :
81
+ @@ -31982 ,6 +31985 ,19 @@ if test "${enable_version_specific_runtime_libs+set}" = set; then :
82
82
fi
83
83
84
84
@@ -99,10 +99,10 @@ index 708328e1670..4b977e313b5 100755
99
99
100
100
101
101
diff --git a/gcc/configure.ac b/gcc/configure.ac
102
- index df1c9cc3200..5461bab88a9 100644
102
+ index 23bee7010a3..75a7048045c 100644
103
103
--- a/gcc/configure.ac
104
104
+++ b/gcc/configure.ac
105
- @@ -7311 ,6 +7311 ,16 @@ AC_ARG_ENABLE(version-specific-runtime-libs,
105
+ @@ -7421 ,6 +7421 ,16 @@ AC_ARG_ENABLE(version-specific-runtime-libs,
106
106
[specify that runtime libraries should be
107
107
installed in a compiler-specific directory])])
108
108
@@ -120,18 +120,18 @@ index df1c9cc3200..5461bab88a9 100644
120
120
AC_SUBST(subdirs)
121
121
AC_SUBST(srcdir)
122
122
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
123
- index cf536a15116..7d3f1ccddf3 100644
123
+ index 07b440190c3..b2de464798a 100644
124
124
--- a/gcc/doc/invoke.texi
125
125
+++ b/gcc/doc/invoke.texi
126
- @@ -369 ,6 +369 ,7 @@ Objective-C and Objective-C++ Dialects}.
126
+ @@ -379 ,6 +379 ,7 @@ Objective-C and Objective-C++ Dialects}.
127
127
-Wpacked -Wno-packed-bitfield-compat -Wpacked-not-aligned -Wpadded @gol
128
128
-Wparentheses -Wno-pedantic-ms-format @gol
129
129
-Wpointer-arith -Wno-pointer-compare -Wno-pointer-to-int-cast @gol
130
130
+ -Wno-poison-system-directories @gol
131
131
-Wno-pragmas -Wno-prio-ctor-dtor -Wredundant-decls @gol
132
132
-Wrestrict -Wno-return-local-addr -Wreturn-type @gol
133
133
-Wno-scalar-storage-order -Wsequence-point @gol
134
- @@ -7728 ,6 +7729 ,14 @@ made up of data only and thus requires no special treatment. But, for
134
+ @@ -8029 ,6 +8030 ,14 @@ made up of data only and thus requires no special treatment. But, for
135
135
most targets, it is made up of code and thus requires the stack to be
136
136
made executable in order for the program to work properly.
137
137
@@ -146,11 +146,11 @@ index cf536a15116..7d3f1ccddf3 100644
146
146
@item -Wfloat-equal
147
147
@opindex Wfloat-equal
148
148
@opindex Wno-float-equal
149
- diff --git a/gcc/gcc.c b/gcc/gcc.c
150
- index 8ba410c9e17..a83ba34ac4b 100644
151
- --- a/gcc/gcc.c
152
- +++ b/gcc/gcc.c
153
- @@ -1152 ,6 +1152 ,8 @@ proper position among the other output files. */
149
+ diff --git a/gcc/gcc.cc b/gcc/gcc.cc
150
+ index bb07cc244e3..47fb5802194 100644
151
+ --- a/gcc/gcc.cc
152
+ +++ b/gcc/gcc.cc
153
+ @@ -1159 ,6 +1159 ,8 @@ proper position among the other output files. */
154
154
"%{fuse-ld=*:-fuse-ld=%*} " LINK_COMPRESS_DEBUG_SPEC \
155
155
"%X %{o*} %{e*} %{N} %{n} %{r}\
156
156
%{s} %{t} %{u*} %{z} %{Z} %{!nostdlib:%{!r:%{!nostartfiles:%S}}} \
@@ -159,10 +159,10 @@ index 8ba410c9e17..a83ba34ac4b 100644
159
159
%{static|no-pie|static-pie:} %@{L*} %(mfwrap) %(link_libgcc) " \
160
160
VTABLE_VERIFICATION_SPEC " " SANITIZER_EARLY_SPEC " %o "" \
161
161
%{fopenacc|fopenmp|%:gt(%{ftree-parallelize-loops=*:%*} 1):\
162
- diff --git a/gcc/incpath.c b/gcc/incpath.c
163
- index 446d280321d..fbfc0ce03b8 100644
164
- --- a/gcc/incpath.c
165
- +++ b/gcc/incpath.c
162
+ diff --git a/gcc/incpath.cc b/gcc/incpath.cc
163
+ index bd2a97938eb..c80f100f476 100644
164
+ --- a/gcc/incpath.cc
165
+ +++ b/gcc/incpath.cc
166
166
@@ -26,6 +26,7 @@
167
167
#include "intl.h"
168
168
#include "incpath.h"
@@ -171,7 +171,7 @@ index 446d280321d..fbfc0ce03b8 100644
171
171
172
172
/* Microsoft Windows does not natively support inodes.
173
173
VMS has non-numeric inodes. */
174
- @@ -395 ,6 +396 ,26 @@ merge_include_chains (const char *sysroot, cpp_reader *pfile, int verbose)
174
+ @@ -399 ,6 +400 ,26 @@ merge_include_chains (const char *sysroot, cpp_reader *pfile, int verbose)
175
175
}
176
176
fprintf (stderr, _("End of search list.\n"));
177
177
}
@@ -198,6 +198,3 @@ index 446d280321d..fbfc0ce03b8 100644
198
198
}
199
199
200
200
/* Use given -I paths for #include "..." but not #include <...>, and
201
- - -
202
- 2.35.1
203
-
0 commit comments