From patchwork Thu Jul 26 19:53:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pat Haugen X-Patchwork-Id: 949867 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-482484-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="y4HT+GE3"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41c2pG6qwNz9ryt for ; Fri, 27 Jul 2018 05:53:25 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :subject:to:cc:date:mime-version:content-type :content-transfer-encoding:message-id; q=dns; s=default; b=Enrq0 ajtV+piEJWHG+WOxav6GYuZqe74WQ3sXd9eEI3SFBbTOYh+G+2kTTd01ZBLjWqVF s4Sb27Qa/2z46fX3VGYv/s1bvKTHYaT9Rr3RZ/+CNbQEAD34pgrWRkPyNtC4ReVw oGhmGyYtKYgSiosMcJI3AE0cC13WzIZb+dHYkk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :subject:to:cc:date:mime-version:content-type :content-transfer-encoding:message-id; s=default; bh=oRbibvwTtHo 59hw6eKQHoARy0Nc=; b=y4HT+GE3djdJ68AKiFRNPJoGcbL31zsESYJSZTWio0k YcBKsVTMm5s8ELvXDqoPXTjq6bamPpkSVUiWHmlhNtjhDV+llS5pC7uK6EKhJ/L7 8SokqtgYiJ5nUZdLFcltxtPVzab6xych4gWKU2yzKm2sRvEkDkOc77pWIhWQLd0c = Received: (qmail 24508 invoked by alias); 26 Jul 2018 19:53:18 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 24482 invoked by uid 89); 26 Jul 2018 19:53:17 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=262974, D*us.ibm.com X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 26 Jul 2018 19:53:16 +0000 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6QJmuUe132446 for ; Thu, 26 Jul 2018 15:53:15 -0400 Received: from e33.co.us.ibm.com (e33.co.us.ibm.com [32.97.110.151]) by mx0a-001b2d01.pphosted.com with ESMTP id 2kfjw8cpt1-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 26 Jul 2018 15:53:14 -0400 Received: from localhost by e33.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 26 Jul 2018 13:53:14 -0600 Received: from b03cxnp08028.gho.boulder.ibm.com (9.17.130.20) by e33.co.us.ibm.com (192.168.1.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 26 Jul 2018 13:53:11 -0600 Received: from b03ledav006.gho.boulder.ibm.com (b03ledav006.gho.boulder.ibm.com [9.17.130.237]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w6QJrA2O61603908 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 26 Jul 2018 12:53:10 -0700 Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4FD63C605F; Thu, 26 Jul 2018 13:53:10 -0600 (MDT) Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 14A71C605D; Thu, 26 Jul 2018 13:53:09 -0600 (MDT) Received: from pmac.rchland.ibm.com (unknown [9.10.86.116]) by b03ledav006.gho.boulder.ibm.com (Postfix) with ESMTPS; Thu, 26 Jul 2018 13:53:09 -0600 (MDT) From: Pat Haugen Subject: [PATCH rs6000] Fix PR86612 To: GCC Patches Cc: Segher Boessenkool , David Edelsohn Date: Thu, 26 Jul 2018 14:53:09 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 x-cbid: 18072619-0036-0000-0000-00000A154B69 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009433; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000266; SDB=6.01066530; UDB=6.00547957; IPR=6.00844393; MB=3.00022340; MTD=3.00000008; XFM=3.00000015; UTC=2018-07-26 19:53:12 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18072619-0037-0000-0000-0000483DD752 Message-Id: <150b5e7a-aaa9-36a4-be4e-bb777f000630@linux.ibm.com> X-IsSubscribed: yes Probably an obvious patch but... The testcase fails because it looks like recent glibc headers (2.27 at least) no longer contain a declaration for __strdup, which results in warning messages being generated and failure for excess errors. Fixed by calling the standard name. Verified the testcase now passes, ok for trunk? -Pat testsuite/ChangeLog: 2018-07-26 Pat Haugen PR target/86612 * gcc.target/powerpc/pr58673-2.c: Call strdup. Index: testsuite/gcc.target/powerpc/pr58673-2.c =================================================================== --- testsuite/gcc.target/powerpc/pr58673-2.c (revision 262974) +++ testsuite/gcc.target/powerpc/pr58673-2.c (working copy) @@ -140,7 +140,7 @@ pr_ff (t_coupl_rec * tcr, real time, t_i malloc (__len); __retval;} - )): __strdup (eoNames[i]))); + )): strdup (eoNames[i]))); raleg[j++] = (__extension__ (__builtin_constant_p (buf) @@ -165,7 +165,7 @@ pr_ff (t_coupl_rec * tcr, real time, t_i malloc (__len); __retval;} - )): __strdup (buf))); + )): strdup (buf))); } } if (tcr->nLJ)