From: Roland McGrath Date: Mon, 21 Jan 2008 23:42:53 +0000 (+0000) Subject: 2008-01-21 Roland McGrath X-Git-Tag: elfutils-0.132~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c0d3c265f06daa943df2c990daab1ce059749d4b;p=thirdparty%2Felfutils.git 2008-01-21 Roland McGrath * i386_parse.y: Add sanity check for NMNES macro value. * Makefile.am (i386_parse.o): Fix target in dependency rule. --- diff --git a/libcpu/ChangeLog b/libcpu/ChangeLog index fff065b00..e4dd3a751 100644 --- a/libcpu/ChangeLog +++ b/libcpu/ChangeLog @@ -1,3 +1,8 @@ +2008-01-21 Roland McGrath + + * i386_parse.y: Add sanity check for NMNES macro value. + * Makefile.am (i386_parse.o): Fix target in dependency rule. + 2008-01-21 Ulrich Drepper * Makefile.am (EXTRA_DIST): Remove defs/x86_64. diff --git a/libcpu/Makefile.am b/libcpu/Makefile.am index d3d4bb55a..e48b37f48 100644 --- a/libcpu/Makefile.am +++ b/libcpu/Makefile.am @@ -69,7 +69,7 @@ i386_lex_no_Werror = yes libeu = ../lib/libeu.a i386_lex_CFLAGS = -Wno-unused-label -Wno-unused-function -Wno-sign-compare -i386_gendis.o: i386_parse.c i386.mnemonics +i386_parse.o: i386_parse.c i386.mnemonics i386_parse_CFLAGS = -DNMNES=$$(wc -l < i386.mnemonics) i386_lex.o: i386_parse.c i386_gendis_LDADD = $(libeu) -lm $(libmudflap) diff --git a/libcpu/i386_parse.y b/libcpu/i386_parse.y index 9b2ab33e2..ceeb12ad0 100644 --- a/libcpu/i386_parse.y +++ b/libcpu/i386_parse.y @@ -1090,6 +1090,10 @@ print_op_fct (const void *nodep, VISIT value, } +#if NMNES < 2 +# error "bogus NMNES value" +#endif + static void instrtable_out (void) {