[Bug ada/33857] Cannot bootstrap Ada with host gnatmake-4.2

charles dot w dot lambert at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Feb 27 18:21:00 GMT 2008



------- Comment #5 from charles dot w dot lambert at gmail dot com  2008-02-27 18:20 -------
I also forgot to add that changing to
...
#elif (defined (__vxworks) && defined (__RTP__)) \
   || defined (__APPLE__)
  setenv (name, value, 1);

#else
...
would involve changing
...
  putenv (expression);
#if (defined (__FreeBSD__) && (__FreeBSD__ < 7)) \
   || defined (__APPLE__) || defined (__MINGW32__) \
   ||(defined (__vxworks) && ! defined (__RTP__))
  /* On some systems like FreeBSD 6.x and earlier, MacOS X and Windows,
     putenv is making a copy of the expression string so we can free
     it after the call to putenv */
  free (expression);
#endif
...
to
...
  putenv (expression);
#if (defined (__FreeBSD__) && (__FreeBSD__ < 7)) \
   defined (__MINGW32__) \
   ||(defined (__vxworks) && ! defined (__RTP__))
  /* On some systems like FreeBSD 6.x and earlier, and Windows,
     putenv is making a copy of the expression string so we can free
     it after the call to putenv */
  free (expression);
#endif
...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33857



More information about the Gcc-bugs mailing list