From patchwork Tue Mar 12 17:03:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 31826 Received: (qmail 20696 invoked by alias); 12 Mar 2019 17:03:34 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 20635 invoked by uid 89); 12 Mar 2019 17:03:33 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=H*MI:sk:2019031 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Mar 2019 17:03:32 +0000 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4A8F3C0ADE19 for ; Tue, 12 Mar 2019 17:03:31 +0000 (UTC) Received: from localhost.localdomain (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id CBF561001E63 for ; Tue, 12 Mar 2019 17:03:30 +0000 (UTC) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [pushed 2/2] Fix test-cp-name-parser build, parser_fprintf undefined Date: Tue, 12 Mar 2019 17:03:27 +0000 Message-Id: <20190312170327.14109-3-palves@redhat.com> In-Reply-To: <20190312170327.14109-1-palves@redhat.com> References: <20190312170327.14109-1-palves@redhat.com> $ 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. --- gdb/ChangeLog | 4 ++++ gdb/yy-remap.h | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 44aa9a3b94..2ca2493c0e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +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. diff --git a/gdb/yy-remap.h b/gdb/yy-remap.h index 579b7d2aee..cdd0aae8c6 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 */