From 2447ab8593cace422936ef8ecbe67d32fe0f83ca Mon Sep 17 00:00:00 2001 From: Tamar Christina Date: Mon, 7 Nov 2016 09:17:55 +0000 Subject: [PATCH] Fix the Windows native x86-64 build. PR driver/78196 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null. From-SVN: r241895 --- gcc/ChangeLog | 5 +++++ gcc/Makefile.in | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dc326b7bb50..30432459621 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-11-07 Tamar Christina + + PR driver/78196 + * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null. + 2016-11-07 Martin Liska * tree-profile.c (gimple_gen_time_profiler): Set proper type diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 622d038f6fb..7ecd1e4e726 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1879,7 +1879,10 @@ rest.cross: specs # Specify a dummy input file to placate the driver. # Specify -nostdinc to work around missing WIND_BASE environment variable # required for *-wrs-vxworks-* targets. -SELFTEST_FLAGS = -nostdinc -x c /dev/null -S -fself-test +# Specify -o /dev/null so the output of -S is discarded. More importantly +# It does not try to create a file with the name "null.s" on POSIX and +# "nul.s" on Windows. Because on Windows "nul" is a reserved file name. +SELFTEST_FLAGS = -nostdinc -x c /dev/null -S -fself-test -o /dev/null # Run the selftests during the build once we have a driver and a cc1, # so that self-test failures are caught as early as possible. -- 2.30.2