This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, Makefile.in] refine selftest recipes to restore mingw bootstrap


On 11/24/2017 11:18 AM, Olivier Hainque wrote:
> Hello,
> 
> Bootstrap for mingw target configurations is failing today, with complaints
> about an inexistant /dev/null.
> 
> The failing commands are issued by the selftest recipes in gcc/Makefile, using:
> 
>     SELFTEST_FLAGS = -nostdinc /dev/null -S -o /dev/null \
>             -fself-test=$(srcdir)/testsuite/selftests
> 
> The attached patch is a proposal to fix this by resorting to "nul" instead of
> "/dev/null" when the build machine name indicates a mingw setup.
> 
> It fixes the gcc-7 bootstrap in our Windows setup (i686-pc-mingw32), and passes
> bootstrap and regression tests on x86_64-linux.
> 
> OK to commit ?
> 
> Thanks much in advance,
> 
> With Kind Regards,
> 
> Olivier
> 
> 2017-11-24  Olivier Hainque  <hainque@adacore.com>
> 
> 	* Makefile.in (SELFTEST_FLAGS): Use nul instead of /dev/null
> 	on mingw build hosts.
Would it make more sense to set the output file to HOST_BIT_BUCKET when
-fselftest is active?

Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]