goto-gcc: run original compiler even when output is /dev/null

This commit is contained in:
Michael Tautschnig 2018-07-06 13:55:36 +00:00
parent 0d7a9437c6
commit ea9dc15f36
3 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,4 @@
void fails(void)
{
asm volatile ( ".if (0 == 0); .error \"asm error\";.endif" );
}

View File

@ -0,0 +1,8 @@
CORE
main.c
-o /dev/null
^EXIT=1$
^SIGNAL=0$
--
^warning: ignoring
^CONVERSION ERROR$

View File

@ -914,7 +914,7 @@ int gcc_modet::gcc_hybrid_binary(compilet &compiler)
if(output_files.empty() ||
(output_files.size()==1 &&
output_files.front()=="/dev/null"))
return EX_OK;
return run_gcc(compiler);
debug() << "Running " << native_tool_name
<< " to generate hybrid binary" << eom;