From patchwork Sun Oct 10 12:23:32 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 67349 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 46EAFB6F07 for ; Sun, 10 Oct 2010 23:23:46 +1100 (EST) Received: (qmail 13746 invoked by alias); 10 Oct 2010 12:23:40 -0000 Received: (qmail 13735 invoked by uid 22791); 10 Oct 2010 12:23:39 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, TW_ZJ, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-qw0-f47.google.com (HELO mail-qw0-f47.google.com) (209.85.216.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 10 Oct 2010 12:23:34 +0000 Received: by qwd6 with SMTP id 6so1375617qwd.20 for ; Sun, 10 Oct 2010 05:23:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.204.169 with SMTP id fm41mr3994240qcb.259.1286713412450; Sun, 10 Oct 2010 05:23:32 -0700 (PDT) Received: by 10.229.84.4 with HTTP; Sun, 10 Oct 2010 05:23:32 -0700 (PDT) Date: Sun, 10 Oct 2010 14:23:32 +0200 Message-ID: Subject: [PATCH, alpha]: Fix recent bootstrap breakage From: Uros Bizjak To: gcc-patches@gcc.gnu.org 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 Hello! 2010-10-10 Uros Bizjak * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer to cum struct in the call to function_arg_advance. (alpha_function_arg_advance): Mark named as unused. Tested on alphaev68-pc-linux-gnu, committed to mainline. Uros. Index: alpha.c =================================================================== --- alpha.c (revision 165234) +++ alpha.c (working copy) @@ -5697,7 +5697,7 @@ alpha_function_arg (CUMULATIVE_ARGS *cum static void alpha_function_arg_advance (CUMULATIVE_ARGS *cum, enum machine_mode mode, - const_tree type, bool named) + const_tree type, bool named ATTRIBUTE_UNUSED) { bool onstack = targetm.calls.must_pass_in_stack (mode, type); int increment = onstack ? 6 : ALPHA_ARG_SIZE (mode, type, named); @@ -6138,7 +6138,7 @@ alpha_setup_incoming_varargs (CUMULATIVE CUMULATIVE_ARGS cum = *pcum; /* Skip the current argument. */ - targetm.calls.function_arg_advance (cum, mode, type, true); + targetm.calls.function_arg_advance (&cum, mode, type, true); #if TARGET_ABI_UNICOSMK /* On Unicos/Mk, the standard subroutine __T3E_MISMATCH stores all register