diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2018-01-27 14:28:46 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2018-01-27 19:54:52 +0100 |
commit | 1a8523c83530fcfc2607723e803e347dd5c50ec4 (patch) | |
tree | 2197bbab6c8be659021e16422389d2b315f494cd /toolchain/gcc/patches/7.3.0/920-specs_nonfatal_getenv.patch | |
parent | 241e6dd3e92c4f215b8ac75379a4b5aeaeb92171 (diff) | |
download | mtk-20170518-1a8523c83530fcfc2607723e803e347dd5c50ec4.zip mtk-20170518-1a8523c83530fcfc2607723e803e347dd5c50ec4.tar.gz mtk-20170518-1a8523c83530fcfc2607723e803e347dd5c50ec4.tar.bz2 |
toolchain: gcc: update 7.x to 7.3.0
This version still generates broken code in our setup for MIPS.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'toolchain/gcc/patches/7.3.0/920-specs_nonfatal_getenv.patch')
-rw-r--r-- | toolchain/gcc/patches/7.3.0/920-specs_nonfatal_getenv.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/7.3.0/920-specs_nonfatal_getenv.patch b/toolchain/gcc/patches/7.3.0/920-specs_nonfatal_getenv.patch new file mode 100644 index 0000000..69b4062 --- /dev/null +++ b/toolchain/gcc/patches/7.3.0/920-specs_nonfatal_getenv.patch @@ -0,0 +1,22 @@ +Author: Jo-Philipp Wich <jow@openwrt.org> +Date: Sat Apr 21 03:02:39 2012 +0000 + + gcc: add patch to make the getenv() spec function nonfatal if requested environment variable is unset + + SVN-Revision: 31390 + +--- a/gcc/gcc.c ++++ b/gcc/gcc.c +@@ -9280,8 +9280,10 @@ getenv_spec_function (int argc, const ch + value = varname; + + if (!value) +- fatal_error (input_location, +- "environment variable %qs not defined", varname); ++ { ++ warning (input_location, "environment variable %qs not defined", varname); ++ value = ""; ++ } + + /* We have to escape every character of the environment variable so + they are not interpreted as active spec characters. A |