backends: ppc use define instead of const for size of dwarf_regs array.
authorMark Wielaard <mark@klomp.org>
Sat, 20 Oct 2018 11:20:30 +0000 (13:20 +0200)
committerMark Wielaard <mark@klomp.org>
Sat, 20 Oct 2018 11:20:30 +0000 (13:20 +0200)
commit9a74c190a2b357c6318e6222ff08c5bcee2f9291
tree64129f243e73d53cef1274d07e33bd204a4ce7f1
parent72d023b35f3639864b61bd1c11aaadc4957e6286
backends: ppc use define instead of const for size of dwarf_regs array.

The size of the dwarf_regs is a constant, but when building without
optimizations the compiler doesn't see that and will warn that it
cannot proof the stack size is bounded. Use a define instead of a
const, so the compiler will use a constant expression everywhere.

Signed-off-by: Mark Wielaard <mark@klomp.org>
backends/ChangeLog
backends/ppc_initreg.c