From patchwork Fri Jul 13 08:12:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 943326 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-481470-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="s+59qyfe"; 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 41RltW6KG7z9s0n for ; Fri, 13 Jul 2018 18:13:22 +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 :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=t02GHWhS+w9wTJtx 9azcwvWHoECKyTvaQWC0rb6CTMzag8FRQ3I4IRkhiBrjBW1dp/ohAoNEkFZNA94o hxg5owGrqZkjajH2u99A+RXXZPMKjclP3rVHS3xjaBKZ+U6kiFl/Jq9mSAmWCQaQ i89heRBW/Z6Af/JKhT56CWbLsKU= 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 :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=eX2c3ImrN23RqwoAJXKrxv HxzMA=; b=s+59qyfeGD1oqpDKnWM2IYrCow0q0zAqfdI+fKMz+4MCCm7Zu0voZf 3KO6LvhAAenImlwjoBB4qfKdAeIkhJUUXcmUy6cZTE+gQx96i1JOZDSTLkt76Ho2 KKae8dczU19OXyfaE4+BlhzvJ/6MIYMZ1rfzpMuhPR8YgpF/EvRek= Received: (qmail 106303 invoked by alias); 13 Jul 2018 08:13:14 -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 106255 invoked by uid 89); 13 Jul 2018 08:13:06 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=sparc.c, sk:sparc_f, UD:sparc.c, sparcc X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 13 Jul 2018 08:13:05 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 9390A81F6E for ; Fri, 13 Jul 2018 10:13:02 +0200 (CEST) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aMbL45S65h0P for ; Fri, 13 Jul 2018 10:13:02 +0200 (CEST) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 1C73981345 for ; Fri, 13 Jul 2018 10:13:01 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [SPARC] Minor tweak Date: Fri, 13 Jul 2018 10:12:59 +0200 Message-ID: <1562559.9GLoIr3230@polaris> MIME-Version: 1.0 Tested on SPARC/Solaris, applied on the mainline. 2018-07-13 Eric Botcazou * config/sparc/sparc-protos.h (sparc_compute_frame_size): Delete. * config/sparc/sparc.c (sparc_compute_frame_size): Make static. Index: config/sparc/sparc-protos.h =================================================================== --- config/sparc/sparc-protos.h (revision 262551) +++ config/sparc/sparc-protos.h (working copy) @@ -31,7 +31,6 @@ extern unsigned long sparc_type_code (tr #endif /* TREE_CODE */ extern void order_regs_for_local_alloc (void); -extern HOST_WIDE_INT sparc_compute_frame_size (HOST_WIDE_INT, int); extern int sparc_initial_elimination_offset (int); extern void sparc_expand_prologue (void); extern void sparc_flat_expand_prologue (void); Index: config/sparc/sparc.c =================================================================== --- config/sparc/sparc.c (revision 262551) +++ config/sparc/sparc.c (working copy) @@ -5459,7 +5459,7 @@ save_local_or_in_reg_p (unsigned int reg /* Compute the frame size required by the function. This function is called during the reload pass and also by sparc_expand_prologue. */ -HOST_WIDE_INT +static HOST_WIDE_INT sparc_compute_frame_size (HOST_WIDE_INT size, int leaf_function) { HOST_WIDE_INT frame_size, apparent_frame_size;