diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-02-23 09:26:20 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-02-23 12:13:41 +0100 |
commit | 317fdce4fdabc0d496a8df2d6d40ab76c2b8c7d5 (patch) | |
tree | 0771db0bdb04b9a978e7c000a5143a33c465871a /patches/gcc-4.1.2/generic/no-host-includes.diff | |
parent | 7ad1343ce54f7d16132cd6e6c4c81c4df145000c (diff) | |
download | OSELAS.Toolchain-317fdce4fdabc0d496a8df2d6d40ab76c2b8c7d5.tar.gz OSELAS.Toolchain-317fdce4fdabc0d496a8df2d6d40ab76c2b8c7d5.tar.xz |
[patches] remove obsolete patches
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches/gcc-4.1.2/generic/no-host-includes.diff')
-rw-r--r-- | patches/gcc-4.1.2/generic/no-host-includes.diff | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/patches/gcc-4.1.2/generic/no-host-includes.diff b/patches/gcc-4.1.2/generic/no-host-includes.diff deleted file mode 100644 index 31ce0c1..0000000 --- a/patches/gcc-4.1.2/generic/no-host-includes.diff +++ /dev/null @@ -1,56 +0,0 @@ -# -# Submitted-By: Marc Kleine-Budde, 2006-11-03 -# -# Error: -# -# No error :) -# With this patch gcc bails out if you include a host include path into the searchlist (-I) -# -# Description: -# -# inspired by: -# http://www.openembedded.org/repo/org.openembedded.dev/packages/gcc/gcc-4.1.1/zecke-no-host-includes.patch -# ---- -# gcc/c-incpath.c | 28 ++++++++++++++++++++++++++++ -# 1 file changed, 28 insertions(+) -# -Index: gcc-4.1.2/gcc/c-incpath.c -=================================================================== ---- gcc-4.1.2.orig/gcc/c-incpath.c -+++ gcc-4.1.2/gcc/c-incpath.c -@@ -350,6 +350,34 @@ add_path (char *path, int chain, int cxx - p->construct = 0; - p->user_supplied_p = user_supplied_p; - -+#ifdef CROSS_COMPILE -+ /* A common error when cross compiling is including -+ host headers. This code below will try to fail fast -+ for cross compiling. Currently we consider /usr/include, -+ /opt/include and /sw/include as harmful. */ -+ { -+ unsigned int i; -+ const char *bad_path[] = { -+ "/usr/include", -+ "/usr/local/include", -+ "/sw/include", -+ "/opt/include", -+ }; -+ -+ for (i = 0; i < sizeof(bad_path)/sizeof(bad_path[0]); i++) { -+ if( strstr(p->name, bad_path[i]) == p->name ) { -+ fprintf(stderr,_("\n" -+ "CROSS COMPILE Badness: %s in INCLUDEPATH: %s\n" -+ "\n"), -+ -+ bad_path[i], p->name); -+ -+ exit (FATAL_EXIT_CODE); -+ } -+ } -+ } -+#endif -+ - add_cpp_dir_path (p, chain); - } - |