From patchwork Sat Jan 19 13:42:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony Green X-Patchwork-Id: 213861 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id A0BE82C0079 for ; Sun, 20 Jan 2013 00:42:43 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1359207764; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Date:Message-ID:Subject:From:To: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=Jl+a8KY u8c7OOjJJM9usexQZnuY=; b=F702ibeXmVTlz/Os6/nLYgeJJ+G0n2kCpsHtTcz +A2w4+hvtqi8LcFMtHoMw3/3t8FDjIHfwvR7OQ6wSpBHYa75jDwMijPNtQqgOBkD KqddEqG6gGevdMlILiR2M1fEflNqmRNo3GWyXhde9F2gsy7jHym2CVf0BJi5zKRU PYtI= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:X-Google-DKIM-Signature:MIME-Version:X-Received:Received:Date:Message-ID:Subject:From:To:Content-Type:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=u1tYZaS3h7z7O552c0176f1Bl0Z7J+Qps4NX+rxteB3I8lAwDzmoiDpQgfHf/K /LcGhrJK2m0F5EBChplSKo0zl/chHzDhGQEY6Nn5JxjKZvbzXPCYS9zwp+anEGce 1Mhc3GFQlBeN+OWpmw0rcQSHiuBQcrEpZOOzJg45yb+SI=; Received: (qmail 28997 invoked by alias); 19 Jan 2013 13:42:39 -0000 Received: (qmail 28989 invoked by uid 22791); 19 Jan 2013 13:42:37 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-oa0-f41.google.com (HELO mail-oa0-f41.google.com) (209.85.219.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 19 Jan 2013 13:42:31 +0000 Received: by mail-oa0-f41.google.com with SMTP id k14so4815167oag.0 for ; Sat, 19 Jan 2013 05:42:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:x-originating-ip:date:message-id:subject :from:to:content-type:x-gm-message-state; bh=flO9LbCn7nfVVd9XcPMLG5AiarOJq2RyBM6bgAcbZJk=; b=oaWzH1klu88wN4EoLOdyWbf227akkDis8FcLqT94aajxBFBwQwHQmc2zDMtdqLqd2E ZIekXCLK7rkVjvEox65PDz6+WCUZYwfmU8uRBgzyWfgyYBA1ZpkscdbrL8aLEobDt9k4 iadEHdp7T7OBCmOepyG2f2xwKgG8B41cII+pDhyU5jlS5cEsoCeDG1D0OC1chiwB/KJ3 RdHoij3Pa/nQ5QV0yWkHrMTKXu8DTyZFcznuDHqJBHgf8qwK9wwg+mQe6Ko8wQ88KEnW p6jdAPKWvQy+jYN5Z3/3Lxrbh8BwWfZPGDJ6ASGhSutA5HYha1thQOYOVT5ez8eJIzZ7 rZuw== MIME-Version: 1.0 X-Received: by 10.182.1.100 with SMTP id 4mr965311obl.16.1358602950443; Sat, 19 Jan 2013 05:42:30 -0800 (PST) Received: by 10.76.92.67 with HTTP; Sat, 19 Jan 2013 05:42:30 -0800 (PST) Date: Sat, 19 Jan 2013 08:42:30 -0500 Message-ID: Subject: [patch, moxie] Set current_function_static_stack_size From: Anthony Green To: gcc-patches@gcc.gnu.org X-Gm-Message-State: ALoCoQl18n8p6DyZquv6lkpTzQ0nYJjl0YGlwDDuDAUVuy6IsfIGv7imdC/dVoXsDamZsXYqTa72 X-IsSubscribed: yes 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 I'm committing this simple change. It fixes a number of test cases... 2013-01-19 Anthony Green * config/moxie/moxie.c (moxie_expand_prologue): Set current_function_static_stack_size. { Index: gcc/config/moxie/moxie.c =================================================================== --- gcc/config/moxie/moxie.c (revision 195310) +++ gcc/config/moxie/moxie.c (working copy) @@ -281,6 +281,9 @@ moxie_compute_frame (); + if (flag_stack_usage_info) + current_function_static_stack_size = cfun->machine->size_for_adjusting_sp; + /* Save callee-saved registers. */ for (regno = 0; regno < FIRST_PSEUDO_REGISTER; regno++)