From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103677 invoked by alias); 5 Jul 2019 18:28:44 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 103636 invoked by uid 89); 5 Jul 2019 18:28:44 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_COUK,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HX-Spam-Relays-External:ESMTPA X-HELO: smtp2.wavenetuk.net Received: from smtp.wavenetuk.net (HELO smtp2.wavenetuk.net) (195.26.37.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 05 Jul 2019 18:28:42 +0000 Received: from euterpe-sie.home (host81-138-1-83.in-addr.btopenworld.com [81.138.1.83]) by smtp2.wavenetuk.net (Postfix) with ESMTPA id D0FBD6002E3; Fri, 5 Jul 2019 19:28:38 +0100 (BST) From: Iain Sandoe Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: [Darwin, PPC, committed] Remove dead code. Message-Id: <75BF9D44-C66B-4B54-AEA2-9EDC27D634CD@sandoe.co.uk> Date: Fri, 05 Jul 2019 18:30:00 -0000 Cc: Segher Boessenkool To: GCC Patches X-SW-Source: 2019-07/txt/msg00476.txt.bz2 TARGET_LINK_STACK is unused on Darwin, and only relevant to a processor on which the port was never released. tested on powerpc-darwin9,=20 applied to mainline thanks Iain 2019-07-05 Iain Sandoe * config/rs6000/rs6000-logue.c: Remove unused code. diff --git a/gcc/config/rs6000/rs6000-logue.c b/gcc/config/rs6000/rs6000-lo= gue.c index 3fe6230..8454f96 100644 --- a/gcc/config/rs6000/rs6000-logue.c +++ b/gcc/config/rs6000/rs6000-logue.c @@ -5100,24 +5100,11 @@ macho_branch_islands (void) #endif /* DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO */ if (flag_pic) { - if (TARGET_LINK_STACK) - { - char name[32]; - get_ppc476_thunk_name (name); - strcat (tmp_buf, ":\n\tmflr r0\n\tbl "); - strcat (tmp_buf, name); - strcat (tmp_buf, "\n"); - strcat (tmp_buf, label); - strcat (tmp_buf, "_pic:\n\tmflr r11\n"); - } - else - { - strcat (tmp_buf, ":\n\tmflr r0\n\tbcl 20,31,"); - strcat (tmp_buf, label); - strcat (tmp_buf, "_pic\n"); - strcat (tmp_buf, label); - strcat (tmp_buf, "_pic:\n\tmflr r11\n"); - } + strcat (tmp_buf, ":\n\tmflr r0\n\tbcl 20,31,"); + strcat (tmp_buf, label); + strcat (tmp_buf, "_pic\n"); + strcat (tmp_buf, label); + strcat (tmp_buf, "_pic:\n\tmflr r11\n"); =20 strcat (tmp_buf, "\taddis r11,r11,ha16("); strcat (tmp_buf, name_buf);