SHARE
TWEET

Untitled

a guest Apr 8th, 2012 35 Never
  1. jow@wws-7 $ cat toolchain/gcc/patches/4.6-linaro/920-specs_nonfatal_getenv.patch
  2. --- a/gcc/gcc.c
  3. +++ b/gcc/gcc.c
  4. @@ -7772,7 +7772,10 @@ getenv_spec_function (int argc, const ch
  5.  
  6.    value = getenv (argv[0]);
  7.    if (!value)
  8. -    fatal_error ("environment variable %qs not defined", argv[0]);
  9. +    {
  10. +      warning (0, "environment variable %qs not defined", argv[0]);
  11. +      value = "";
  12. +    }
  13.  
  14.    /* We have to escape every character of the environment variable so
  15.       they are not interpreted as active spec characters.  A
RAW Paste Data
Top