From patchwork Mon May 2 16:58:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 93686 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 AFAC3B6F41 for ; Tue, 3 May 2011 02:59:22 +1000 (EST) Received: (qmail 6000 invoked by alias); 2 May 2011 16:59:18 -0000 Received: (qmail 5971 invoked by uid 22791); 2 May 2011 16:59:17 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 02 May 2011 16:58:56 +0000 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id DCC1A1C0065D for ; Mon, 2 May 2011 18:58:54 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id AF9BC1C00086 for ; Mon, 2 May 2011 18:58:54 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id TKP6Zc7JXtaN for ; Mon, 2 May 2011 18:58:54 +0200 (CEST) Received: from igel.home (ppp-88-217-125-75.dynamic.mnet-online.de [88.217.125.75]) by mail.mnet-online.de (Postfix) with ESMTP for ; Mon, 2 May 2011 18:58:54 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id ECB12CA29C; Mon, 2 May 2011 18:58:53 +0200 (CEST) From: Andreas Schwab To: gcc-patches@gcc.gnu.org Subject: m68k: support -fstack-usage X-Yow: The entire CHINESE WOMEN'S VOLLEYBALL TEAM all share ONE personality -- and have since BIRTH!! Date: Mon, 02 May 2011 18:58:53 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 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 Checked into trunk. Andreas. 2011-05-02 Andreas Schwab PR target/47955 * config/m68k/m68k.c (m68k_expand_prologue): Set current_function_static_stack_size. Index: gcc/config/m68k/m68k.c =================================================================== --- gcc/config/m68k/m68k.c (revision 173259) +++ gcc/config/m68k/m68k.c (working copy) @@ -981,6 +981,10 @@ m68k_expand_prologue (void) m68k_compute_frame_layout (); + if (flag_stack_usage) + current_function_static_stack_size + = current_frame.size + current_frame.offset; + /* If the stack limit is a symbol, we can check it here, before actually allocating the space. */ if (crtl->limit_stack