summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/gcc/gcc/0002-gcc-poison-system-directories.patch22
1 files changed, 18 insertions, 4 deletions
diff --git a/meta/recipes-devtools/gcc/gcc/0002-gcc-poison-system-directories.patch b/meta/recipes-devtools/gcc/gcc/0002-gcc-poison-system-directories.patch
index ca75d08f59..367c9e3821 100644
--- a/meta/recipes-devtools/gcc/gcc/0002-gcc-poison-system-directories.patch
+++ b/meta/recipes-devtools/gcc/gcc/0002-gcc-poison-system-directories.patch
@@ -14,6 +14,7 @@ wants this to be a failure, they can add "-Werror=poison-system-directories".
14Upstream-Status: Inappropriate [OE configuration] 14Upstream-Status: Inappropriate [OE configuration]
15Signed-off-by: Mark Hatle <mark.hatle@windriver.com> 15Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
16Signed-off-by: Khem Raj <raj.khem@gmail.com> 16Signed-off-by: Khem Raj <raj.khem@gmail.com>
17Signed-off-by: sunil dora <sunilkumar.dora@windriver.com>
17--- 18---
18 gcc/common.opt | 4 ++++ 19 gcc/common.opt | 4 ++++
19 gcc/config.in | 10 ++++++++++ 20 gcc/config.in | 10 ++++++++++
@@ -21,8 +22,8 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
21 gcc/configure.ac | 16 ++++++++++++++++ 22 gcc/configure.ac | 16 ++++++++++++++++
22 gcc/doc/invoke.texi | 9 +++++++++ 23 gcc/doc/invoke.texi | 9 +++++++++
23 gcc/gcc.cc | 9 +++++++-- 24 gcc/gcc.cc | 9 +++++++--
24 gcc/incpath.cc | 21 +++++++++++++++++++++ 25 gcc/incpath.cc | 25 +++++++++++++++++++++++++
25 7 files changed, 86 insertions(+), 2 deletions(-) 26 7 files changed, 90 insertions(+), 2 deletions(-)
26 27
27diff --git a/gcc/common.opt b/gcc/common.opt 28diff --git a/gcc/common.opt b/gcc/common.opt
28index ad348844775..df3992b420d 100644 29index ad348844775..df3992b420d 100644
@@ -186,7 +187,7 @@ index 728332b8153..343e4915097 100644
186 /* Pass -d* flags, possibly modifying -dumpdir, -dumpbase et al. 187 /* Pass -d* flags, possibly modifying -dumpdir, -dumpbase et al.
187 188
188diff --git a/gcc/incpath.cc b/gcc/incpath.cc 189diff --git a/gcc/incpath.cc b/gcc/incpath.cc
189index 64cdd2f4a1b..e572d98ab17 100644 190index 64cdd2f4a..89f42900d 100644
190--- a/gcc/incpath.cc 191--- a/gcc/incpath.cc
191+++ b/gcc/incpath.cc 192+++ b/gcc/incpath.cc
192@@ -26,6 +26,7 @@ 193@@ -26,6 +26,7 @@
@@ -197,7 +198,18 @@ index 64cdd2f4a1b..e572d98ab17 100644
197 198
198 /* Microsoft Windows does not natively support inodes. 199 /* Microsoft Windows does not natively support inodes.
199 VMS has non-numeric inodes. */ 200 VMS has non-numeric inodes. */
200@@ -399,6 +400,26 @@ merge_include_chains (const char *sysroot, cpp_reader *pfile, int verbose) 201@@ -273,6 +274,10 @@ remove_duplicates (cpp_reader *pfile, struct cpp_dir *head,
202 cur->name, xstrerror (errno));
203 reason = REASON_NOENT;
204 }
205+#ifdef ENABLE_POISON_SYSTEM_DIRECTORIES
206+ pcur = &cur->next;
207+ continue;
208+#endif
209 }
210 else if (!S_ISDIR (st.st_mode))
211 cpp_error_with_line (pfile, CPP_DL_WARNING, 0, 0,
212@@ -399,6 +404,26 @@ merge_include_chains (const char *sysroot, cpp_reader *pfile, int verbose)
201 } 213 }
202 fprintf (stderr, _("End of search list.\n")); 214 fprintf (stderr, _("End of search list.\n"));
203 } 215 }
@@ -224,3 +236,5 @@ index 64cdd2f4a1b..e572d98ab17 100644
224 } 236 }
225 237
226 /* Use given -I paths for #include "..." but not #include <...>, and 238 /* Use given -I paths for #include "..." but not #include <...>, and
239--
2402.34.1