Commit ea19b1ec by Joern Rennecke Committed by Joern Rennecke

re PR rtl-optimization/44752 (insn-automata.c: empty translation unit)

	PR rtl-optimization/44752
	* genautomata.c (main): Don't emit an empty file even if there
	is no automaton.

From-SVN: r162083
parent e2b4f103
2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
PR rtl-optimization/44752
* genautomata.c (main): Don't emit an empty file even if there
is no automaton.
2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/i386/i386.c (ix86_sol10_return_in_memory): Rename to * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
......
...@@ -9568,6 +9568,16 @@ main (int argc, char **argv) ...@@ -9568,6 +9568,16 @@ main (int argc, char **argv)
write_automata (); write_automata ();
} }
} }
else
{
puts ("/* Generated automatically by the program `genautomata'\n"
" from the machine description file `md'. */\n\n"
"/* There is no automaton, but ISO C forbids empty\n"
" translation units, so include a header file with some\n"
" declarations, and the its pre-requisite header file. */\n"
"#include \"config.h\"\n"
"#include \"system.h\"\n");
}
fflush (stdout); fflush (stdout);
return (ferror (stdout) != 0 || have_error return (ferror (stdout) != 0 || have_error
......
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