Ah the jobs of conditional compilation...
A recent change is breaking m68k bootstrap as it doesn't have any
UNSPECV_VALUES and as a result we end up with
if (cond)
;
[ With no else clauses. ]
Which triggers:
> /home/jlaw/test/gcc/gcc/print-rtl.cc: In function ‘void print_exp(pretty_printer*, const_rtx, int)’:
> /home/jlaw/test/gcc/gcc/print-rtl.cc:1622:11: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
Rather than using ";" we can use a "{}" pair with proper formatting as the
warning suggests.
Committing as obvious and hopefully restoring m68k bootstrap.
gcc/
* print-rtl.cc (print_exp): Avoid -Wempty-body warning.
auto unspec = XINT (x, 1);
#if !defined(GENERATOR_FILE)
if (unspec < 0)
- ;
+ {
+ }
#if NUM_UNSPECV_VALUES > 0
else if (GET_CODE (x) == UNSPEC_VOLATILE
&& unspec < NUM_UNSPECV_VALUES)