From patchwork Tue Sep 14 22:42:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 64762 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 5DA451007D9 for ; Wed, 15 Sep 2010 08:42:42 +1000 (EST) Received: (qmail 21921 invoked by alias); 14 Sep 2010 22:42:40 -0000 Received: (qmail 21912 invoked by uid 22791); 14 Sep 2010 22:42:39 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL, BAYES_00, NO_DNS_FOR_FROM, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga02.intel.com (HELO mga02.intel.com) (134.134.136.20) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 14 Sep 2010 22:42:18 +0000 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 14 Sep 2010 15:42:15 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.135]) by orsmga001.jf.intel.com with ESMTP; 14 Sep 2010 15:42:15 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id E2B9D207F1; Tue, 14 Sep 2010 15:42:14 -0700 (PDT) Date: Tue, 14 Sep 2010 15:42:14 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Subject: PATCH: Fix bootstrap for powerpc Message-ID: <20100914224214.GA31295@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) 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 missed TARGET_VECTORIZE_UNITS_PER_SIMD_WORD for powerpc. I checked in this patch as an obvious fix. H.J. Index: ChangeLog =================================================================== --- ChangeLog (revision 164288) +++ ChangeLog (working copy) @@ -1,5 +1,10 @@ 2010-09-14 H.J. Lu + PR bootstrap/45672 + * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New. + +2010-09-14 H.J. Lu + * config/i386/i386.c (ix86_lea_for_add_ok): Return false if result isn't used in memory address. Index: config/rs6000/rs6000.c =================================================================== --- config/rs6000/rs6000.c (revision 164288) +++ config/rs6000/rs6000.c (working copy) @@ -1085,6 +1085,7 @@ static bool rs6000_builtin_support_vecto int, bool); static int rs6000_builtin_vectorization_cost (enum vect_cost_for_stmt, tree, int); +static int rs6000_units_per_simd_word (enum machine_mode); static void def_builtin (int, const char *, tree, int); static bool rs6000_vector_alignment_reachable (const_tree, bool); @@ -1485,6 +1486,9 @@ static const struct attribute_spec rs600 #undef TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST #define TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST \ rs6000_builtin_vectorization_cost +#undef TARGET_VECTORIZE_UNITS_PER_SIMD_WORD +#define TARGET_VECTORIZE_UNITS_PER_SIMD_WORD \ + rs6000_units_per_simd_word #undef TARGET_INIT_BUILTINS #define TARGET_INIT_BUILTINS rs6000_init_builtins