aboutsummaryrefslogtreecommitdiff
path: root/gcc/Makefile.in
diff options
context:
space:
mode:
authorTamar Christina <tamar.christina@arm.com>2016-11-07 09:17:55 +0000
committerTamar Christina <tnfchris@gcc.gnu.org>2016-11-07 09:17:55 +0000
commit2447ab8593cace422936ef8ecbe67d32fe0f83ca (patch)
tree3101bda9d60b27b3839b9981627fb77d4fecb7ae /gcc/Makefile.in
parent5bcb571cb2f5ee77f563d872d056a4565b8d2fc4 (diff)
downloadgcc-2447ab8593cace422936ef8ecbe67d32fe0f83ca.zip
gcc-2447ab8593cace422936ef8ecbe67d32fe0f83ca.tar.gz
gcc-2447ab8593cace422936ef8ecbe67d32fe0f83ca.tar.bz2
Fix the Windows native x86-64 build.
PR driver/78196 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null. From-SVN: r241895
Diffstat (limited to 'gcc/Makefile.in')
-rw-r--r--gcc/Makefile.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 622d038..7ecd1e4 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.