Commit 466e6e8d by Nathan Sidwell Committed by Nathan Sidwell

gcc.c (execute): Emit friendlier message if inferior is killed by an external cause.

	* gcc.c (execute): Emit friendlier message if inferior is killed
	by an external cause.

From-SVN: r251104
parent 204b99cd
2017-08-15 Nathan Sidwell <nathan@acm.org>
* gcc.c (execute): Emit friendlier message if inferior is killed
by an external cause.
2017-08-15 Richard Biener <rguenther@suse.de>
PR tree-optimization/81790
......
......@@ -3151,10 +3151,28 @@ execute (void)
}
else
#endif
switch (WTERMSIG (status))
{
case SIGINT:
case SIGQUIT:
case SIGKILL:
case SIGTERM:
/* The user (or environment) did something to the
inferior. Making this an ICE confuses the user
into thinking there's a compiler bug. Much more
likely is the user or OOM killer nuked it. */
fatal_error (input_location,
"%s signal terminated program %s",
strsignal (WTERMSIG (status)),
commands[i].prog);
break;
default:
/* The inferior failed to catch the signal. */
internal_error_no_backtrace ("%s (program %s)",
strsignal (WTERMSIG (status)),
commands[i].prog);
}
}
else if (WIFEXITED (status)
&& WEXITSTATUS (status) >= MIN_FATAL_STATUS)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment