From patchwork Mon Sep 13 20:35:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 64649 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 2790CB6F0D for ; Tue, 14 Sep 2010 06:35:50 +1000 (EST) Received: (qmail 28935 invoked by alias); 13 Sep 2010 20:35:47 -0000 Received: (qmail 28871 invoked by uid 22791); 13 Sep 2010 20:35:47 -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 X-Spam-Check-By: sourceware.org Received: from mail-vw0-f47.google.com (HELO mail-vw0-f47.google.com) (209.85.212.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 13 Sep 2010 20:35:42 +0000 Received: by vws9 with SMTP id 9so5256136vws.20 for ; Mon, 13 Sep 2010 13:35:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.128.200 with SMTP id l8mr2753277vcs.33.1284410139970; Mon, 13 Sep 2010 13:35:39 -0700 (PDT) Received: by 10.220.78.193 with HTTP; Mon, 13 Sep 2010 13:35:39 -0700 (PDT) Date: Mon, 13 Sep 2010 13:35:39 -0700 Message-ID: Subject: PATCH: Fix bootstrap on x86 From: "H.J. Lu" To: Andrew Pinski Cc: Uros Bizjak , gcc-patches@gcc.gnu.org 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 On Mon, Sep 13, 2010 at 1:15 PM, Andrew Pinski wrote: > On Mon, Sep 13, 2010 at 12:29 PM, H.J. Lu wrote: >> >> This is the patch I checked in. >> >> Thanks. >> >> -- >> H.J. >> --- >> gcc/ >> >> 2010-09-13  H.J. Lu   >> >>        * config/i386/i386-protos.h (ix86_units_per_simd_word): New. >> >>        * config/i386/i386.c (initial_ix86_tune_features): Add >>        X86_TUNE_VECTORIZE_DOUBLE. >>        (ix86_units_per_simd_word): New. >> >>        * config/i386/i386.h (ix86_tune_indices): Likewise. >>        (TARGET_VECTORIZE_DOUBLE): New. >>        (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word. > > > This causes a bootstrap failure on i686-linux-gnu: > /home/regress/tbox/svn-gcc/gcc/tree-vect-stmts.c: In function > 'get_vectype_for_scalar_type': > /home/regress/tbox/svn-gcc/gcc/tree-vect-stmts.c:4678:3: error: > implicit declaration of function 'ix86_units_per_simd_word' > [-Werror=implicit-function-declaration] > /home/regress/tbox/svn-gcc/gcc/tree-vect-stmts.c:4678:29: error: > comparison between signed and unsigned integer expressions > [-Werror=sign-compare] > cc1: all warnings being treated as errors > > This patch fixes it. OK for trunk with a ChangeLog entry? Thanks. diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index 6d15bda..be5dec0 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -26,6 +26,7 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "ggc.h" #include "tree.h" +#include "tm_p.h" #include "target.h" #include "basic-block.h" #include "tree-pretty-print.h"