From patchwork Mon Jul 30 15:50:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 174033 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 211862C0090 for ; Tue, 31 Jul 2012 01:51:22 +1000 (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=1344268283; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Date: From:To:Subject:Message-ID:Reply-To:MIME-Version:Content-Type: Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=kS7UGoWPgIRibbjJZxuW07lPCRw=; b=Tx/jXgZqqNC/2pT B+YvTRwBUJGhPlT3L0gCaVFruh8yme+7MhA5coNjOm/eW/QN3jKZFBKtgMkMpIqf 6uUzIRkfFimzWYfKH3WVslCh1pVwMc0NhqgQPKjRiSPYRuNPY3SJawgnO5ro/aFp eg7vlr6aTrvoOhfL3QTX+L55IK0Y= 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:Date:From:To:Subject:Message-ID:Reply-To:MIME-Version:Content-Type:Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=cFnt3PhNtCy4dZM20q9wlnGCeTDrbnw8kXGDpV0m58LkduBqNnVVku/dsUT1gM wqh384CHj9silbvqZ7vWlhVJHIV2LqujtKNy2UnjkAk6UFtAeHTRlJ5TybYzqftJ ZhKuVgA25/cvoSImx8r3ezIpvHLwEbiDLAzJ8xwTzH2KU=; Received: (qmail 18425 invoked by alias); 30 Jul 2012 15:51:12 -0000 Received: (qmail 18360 invoked by uid 22791); 30 Jul 2012 15:51:10 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL, BAYES_05, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from hiauly1.hia.nrc.ca (HELO hiauly1.hia.nrc.ca) (132.246.10.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 30 Jul 2012 15:50:49 +0000 Received: by hiauly1.hia.nrc.ca (Postfix, from userid 1000) id DE4F04E08; Mon, 30 Jul 2012 11:50:48 -0400 (EDT) Date: Mon, 30 Jul 2012 11:50:48 -0400 From: John David Anglin To: gcc-patches@gcc.gnu.org Subject: [committed] Fix handling of constant doubles in expand_mult Message-ID: <20120730155047.GA28611@hiauly1.hia.nrc.ca> Reply-To: John David Anglin MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) 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 Committed as obvious. Tested on hppa2.0w-hp-hpux11.11 and hppa-unknown-linux-gnu. Dave Index: expmed.c =================================================================== --- expmed.c (revision 189920) +++ expmed.c (working copy) @@ -3176,8 +3176,8 @@ if (INTEGRAL_MODE_P (mode)) { rtx fake_reg; - HOST_WIDE_INT coeff = 0; - bool is_neg = false; + HOST_WIDE_INT coeff; + bool is_neg; int mode_bitsize; if (op1 == CONST0_RTX (mode)) @@ -3230,6 +3230,8 @@ } goto skip_synth; } + else + goto skip_synth; } else goto skip_synth;