sim: sh: clean up gencode
authorMike Frysinger <vapier@gentoo.org>
Sat, 28 Mar 2015 18:09:11 +0000 (14:09 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Mar 2015 21:45:30 +0000 (17:45 -0400)
commited4d32c28adc5f00ee9bc0e4ac785eeff5e1dc74
treee1c9528e7a707c4953bbe311ca33e4c26de9390f
parent6d89786cb31dcf9b1a4e5b6c7b88c15102e9381a
sim: sh: clean up gencode

The build line was missing the normal BUILD_xxx flags.  Once we added
that, we get warnings that weren't shown before.  As we fix those, we
notice that the -d option segfaults because it tries to write readonly
memory.  Fix that too as part of the const/prototype clean up.
sim/sh/ChangeLog
sim/sh/Makefile.in
sim/sh/gencode.c