From: Pedro Alves Date: Tue, 12 Mar 2019 16:56:02 +0000 (+0000) Subject: Fix test-cp-name-parser build, parser_fprintf undefined X-Git-Tag: binutils-2_33~1878 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec148c577eaa29f26a943c13b0b66ca3877bb5aa;p=platform%2Fupstream%2Fbinutils.git Fix test-cp-name-parser build, parser_fprintf undefined $ make test-cp-name-parser ... test-cp-name-parser.o: In function `yy_symbol_print(_IO_FILE*, int, YYSTYPE const*, cpname_state*)': build/gdb/cp-name-parser.c.tmp:1335: undefined reference to `parser_fprintf(_IO_FILE*, char const*, ...)' build/gdb/cp-name-parser.c.tmp:1339: undefined reference to `parser_fprintf(_IO_FILE*, char const*, ...)' test-cp-name-parser.o: In function `yy_stack_print(short*, short*)': build/gdb/cp-name-parser.c.tmp:1350: undefined reference to `parser_fprintf(_IO_FILE*, char const*, ...)' build/gdb/cp-name-parser.c.tmp:1354: undefined reference to `parser_fprintf(_IO_FILE*, char const*, ...)' build/gdb/cp-name-parser.c.tmp:1356: undefined reference to `parser_fprintf(_IO_FILE*, char const*, ...)' build/gdb/cp-name-parser.c.tmp:1376: more undefined references to `parser_fprintf(_IO_FILE*, char const*, ...)' follow collect2: error: ld returned 1 exit status make: *** [Makefile:1833: test-cp-name-parser] Error 1 gdb/ChangeLog: 2019-03-12 Pedro Alves * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 44aa9a3..2ca2493 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2019-03-12 Pedro Alves + * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define. + +2019-03-12 Pedro Alves + * cp-name-parser.y (main): Remove unused 'len' variable. 2019-03-12 Tom Tromey diff --git a/gdb/yy-remap.h b/gdb/yy-remap.h index 579b7d2..cdd0aae 100644 --- a/gdb/yy-remap.h +++ b/gdb/yy-remap.h @@ -92,6 +92,8 @@ # define YYDEBUG 1 /* Default to yydebug support */ #endif -#define YYFPRINTF parser_fprintf +#ifndef TEST_CPNAMES +# define YYFPRINTF parser_fprintf +#endif #endif /* YY_REMAP_H */