diff options
author | Joern Rennecke <joern.rennecke@embecosm.com> | 2010-07-12 17:16:38 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2010-07-12 18:16:38 +0100 |
commit | ea19b1ec7b2ba8000ce8cb40c0903b1d7ad52dac (patch) | |
tree | ac7e15a993d22e1e844178afcd934084e6ee7303 | |
parent | e2b4f10338578f4fb49e7b47ced0c4178017b17c (diff) | |
download | gcc-ea19b1ec7b2ba8000ce8cb40c0903b1d7ad52dac.zip gcc-ea19b1ec7b2ba8000ce8cb40c0903b1d7ad52dac.tar.gz gcc-ea19b1ec7b2ba8000ce8cb40c0903b1d7ad52dac.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/genautomata.c | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5c48186..59a1121 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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> * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to diff --git a/gcc/genautomata.c b/gcc/genautomata.c index da7ec65..821ec9e 100644 --- a/gcc/genautomata.c +++ b/gcc/genautomata.c @@ -9568,6 +9568,16 @@ main (int argc, char **argv) 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); return (ferror (stdout) != 0 || have_error |