From patchwork Mon Mar 28 15:44:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tristan Gingold X-Patchwork-Id: 88623 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 EBF2CB6FB2 for ; Tue, 29 Mar 2011 02:44:52 +1100 (EST) Received: (qmail 1431 invoked by alias); 28 Mar 2011 15:44:48 -0000 Received: (qmail 1418 invoked by uid 22791); 28 Mar 2011 15:44:46 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Mar 2011 15:44:39 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 9A468CB01F7 for ; Mon, 28 Mar 2011 17:44:38 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CdKagaSc2iGy for ; Mon, 28 Mar 2011 17:44:35 +0200 (CEST) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id A134ECB0348 for ; Mon, 28 Mar 2011 17:44:35 +0200 (CEST) From: Tristan Gingold Subject: [committed/vms] fix ice for vms/ia64 Date: Mon, 28 Mar 2011 17:44:35 +0200 Message-Id: To: "gcc-patches@gcc.gnu.org Patches" Mime-Version: 1.0 (Apple Message framework v1082) 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 Hi, gcc crashes during cross-build of libiberty due to a bad handling of promote_function_mode. This patch fixes that. Committed on trunk. Tristan. 2011-03-28 Tristan Gingold * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion when for_return is 2. Index: gcc/config/ia64/ia64.c =================================================================== --- gcc/config/ia64/ia64.c (revision 171607) +++ gcc/config/ia64/ia64.c (working copy) @@ -11001,7 +11001,7 @@ For all other types passed in the general registers, unused bits are undefined." */ - if (!AGGREGATE_TYPE_P (type) + if (for_return != 2 && GET_MODE_CLASS (mode) == MODE_INT && GET_MODE_SIZE (mode) < UNITS_PER_WORD) {