]> gcc.gnu.org Git - gcc.git/commitdiff
re PR rtl-optimization/44752 (insn-automata.c: empty translation unit)
authorJoern Rennecke <joern.rennecke@embecosm.com>
Mon, 12 Jul 2010 17:16:38 +0000 (17:16 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Mon, 12 Jul 2010 17:16:38 +0000 (18:16 +0100)
PR rtl-optimization/44752
* genautomata.c (main): Don't emit an empty file even if there
is no automaton.

From-SVN: r162083

gcc/ChangeLog
gcc/genautomata.c

index 5c481866c15eeb7b77911e4b2cb72cc930bdae61..59a1121bea1ca101e9c1b63de7cf1bd6d945fa4d 100644 (file)
@@ -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
index da7ec65e40c0bd6dddea7a3577ed54946e9e6dd3..821ec9e0c2f77eae662692f250286fd1090f45ca 100644 (file)
@@ -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
This page took 0.097889 seconds and 5 git commands to generate.