This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: Fix rtl-optimization/44752


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

Ok, but ...

> +  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");

... I'd prefer { } around this large multi-line statement.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]