This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 8th, 2012  |  syntax: Diff  |  size: 0.53 KB  |  views: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data