From 5190f1f98d7c14c0a0bf4f003da0f3a38b31ad14 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 9 Jan 2018 09:02:01 +0100 Subject: [PATCH] re PR preprocessor/83722 (the ICE dumper doesn't comment-out some error messages) PR preprocessor/83722 * gcc.c (try_generate_repro): Pass &temp_stderr_files[RETRY_ICE_ATTEMPTS - 1] rather than &temp_stdout_files[RETRY_ICE_ATTEMPTS - 1] as last argument to do_report_bug. From-SVN: r256367 --- gcc/ChangeLog | 8 ++++++++ gcc/gcc.c | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d8e84c57aac..7a7736fee19 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2018-01-09 Jakub Jelinek + + PR preprocessor/83722 + * gcc.c (try_generate_repro): Pass + &temp_stderr_files[RETRY_ICE_ATTEMPTS - 1] rather than + &temp_stdout_files[RETRY_ICE_ATTEMPTS - 1] as last argument to + do_report_bug. + 2018-01-08 Monk Chiang Kito Cheng diff --git a/gcc/gcc.c b/gcc/gcc.c index 26930fa7d39..f55883a9659 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -7035,8 +7035,8 @@ try_generate_repro (const char **argv) /* In final attempt we append compiler options and preprocesssed code to last generated .out file with configuration and backtrace. */ - char **output = &temp_stdout_files[RETRY_ICE_ATTEMPTS - 1]; - do_report_bug (new_argv, nargs, stderr_commented, output); + char **err = &temp_stderr_files[RETRY_ICE_ATTEMPTS - 1]; + do_report_bug (new_argv, nargs, stderr_commented, err); } out: -- 2.30.2