This is based on the toolchain GCC, and aims to share as much of its Makefile and patches with that definition. The package requires two additional patches: (1) 003-dont-choke-when-building-32bit-on-64bit.patch, which fixes the `error: size of array 'test_real_width' is negative` error that occurs when building a 32-bit GCC on a 64-bit host. (Search the Internet for examples of this error appearing.) (2) 980-add-nostdinc++.patch, which backports a fix from 11.3.0 (11.2.0 only). Signed-off-by: W. Michael Petullo <mike@flyn.org>
22 lines
690 B
Diff
22 lines
690 B
Diff
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
|
|
@@ -9347,8 +9347,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
|