From patchwork Sat Jun 5 16:03:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 1488227 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fy4FS3z1lz9sRK for ; Sun, 6 Jun 2021 02:04:11 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AFB033938C19 for ; Sat, 5 Jun 2021 16:04:05 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from cmx-torrgo001.bell.net (mta-tor-002.bell.net [209.71.212.29]) by sourceware.org (Postfix) with ESMTP id E0644385DC30 for ; Sat, 5 Jun 2021 16:03:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E0644385DC30 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=bell.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bell.net X-RG-CM-BuS: 0 X-RG-CM-SC: 0 X-RG-CM: Clean X-RG-Rigid: 606EF3F40290A478 X-Originating-IP: [67.71.147.238] X-RG-Env-Sender: dave.anglin@bell.net X-CM-Envelope: MS4xfPxJuXioOsJMBUM9vLP1i8d77eWeWUB/zVAvztq4zB2+7Sw5Pnk+g/DBy6Scat14Gf1tnHd8czeiRJU2KgTsjtReDf5q2KMBt3z599ftkDn7P2QSzni1 gDciJ7RrR5DggnyDa2FKTCqn1Xzllet1AcBVoypWY9LheB2LOage/BFiI0LUyZZ+u7tSsB138scAUawQawvBJuiiVvMh0pvfnhTKCWrTJuXIqgjKYpb2MQ1T tapqUcztjF2bD3JyeJZFXw== X-CM-Analysis: v=2.4 cv=cdKxElPM c=1 sm=1 tr=0 ts=60bba069 a=/cPhanApxV8nRKTAyWrE3w==:117 a=/cPhanApxV8nRKTAyWrE3w==:17 a=IkcTkHD0fZMA:10 a=FBHGMhGWAAAA:8 a=8hDbYhjpMP7VkAHVdLUA:9 a=QEXdDO2ut3YA:10 a=9gvnlMMaQFpL9xblJ6ne:22 Received: from [192.168.2.49] (67.71.147.238) by cmx-torrgo001.bell.net (5.8.715) (authenticated as dave.anglin@bell.net) id 606EF3F40290A478; Sat, 5 Jun 2021 12:03:53 -0400 To: GCC Patches From: John David Anglin Subject: [committed] libiberty: Use libiberty snprintf and vsnprintf on hppa*-*-hpux* Message-ID: <3b27f993-2df0-360b-37f6-09e1bb05ef78@bell.net> Date: Sat, 5 Jun 2021 12:03:53 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 Content-Language: en-US X-Spam-Status: No, score=-8.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" A recent change to gcc/c-family/c-attribs.c uses a c99 feature not supported by most system versions of snprintf on hppa*-*-hpux*. This change fixes the build. Tested on hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11. Committed to trunk. libiberty/ChangeLog: PR target/100734 * configure.ac: Use libiberty snprintf and vsnprintf on hppa*-*-hpux*. * configure: Regenerate. diff --git a/libiberty/configure.ac b/libiberty/configure.ac index 3c03f24d368..a85ff25501a 100644 --- a/libiberty/configure.ac +++ b/libiberty/configure.ac @@ -611,6 +611,12 @@ if test -z "${setobjs}"; then ac_cv_func_getpagesize=yes ;; + hppa*-*-hpux*) + # Replace system snprintf and vsnprintf with libiberty implementations. + AC_LIBOBJ([snprintf]) + AC_LIBOBJ([vsnprintf]) + ;; + *-*-mingw32*) # Under mingw32, sys_nerr and sys_errlist exist, but they are # macros, so the test below won't find them.