From patchwork Wed Sep 12 19:27:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 183423 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 71CA52C0089 for ; Thu, 13 Sep 2012 05:28:13 +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=1348082894; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Received:Date:Message-ID:Subject:From:To: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=hg2C0u/ S0Bp598MinV3WeM/guCU=; b=Ck9AGpAvS/DtxI7CVVIqFWDJb1Buvqmm6FYBQ/r epCV/LrvnszC8JKPNfiwHhYwl//oNaqclAB74u14y39qvnPnphyqqF6LMUPDI1SC TtjJVe/kvOHC0cnkbffCcg4FqSJ5PZdxqy9xnS2TzTBwoZEjDvSQhh3J2S/vhybB LBFE= 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:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=CRuEqNAdGe6T7L6knlj41OmZe6iQZwahzT59PmRJq08+Awf+v0i55DfTSDZCQ/ k/XyO7jE6tyB6DGpCEHr/yuaaDO70S8cemU/SStfWmwllopveSyms3pnOgHcNARC P1NCJoGeZmcE3yQc9f1nBxZTkVjbFtZE9nFPq3ZY4zqaY=; Received: (qmail 11188 invoked by alias); 12 Sep 2012 19:28:06 -0000 Received: (qmail 11177 invoked by uid 22791); 12 Sep 2012 19:28:05 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, TW_ZJ X-Spam-Check-By: sourceware.org Received: from mail-pz0-f47.google.com (HELO mail-pz0-f47.google.com) (209.85.210.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 12 Sep 2012 19:27:52 +0000 Received: by daks35 with SMTP id s35so1176164dak.20 for ; Wed, 12 Sep 2012 12:27:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.228.1 with SMTP id se1mr178774pbc.110.1347478071488; Wed, 12 Sep 2012 12:27:51 -0700 (PDT) Received: by 10.66.20.232 with HTTP; Wed, 12 Sep 2012 12:27:51 -0700 (PDT) Date: Wed, 12 Sep 2012 21:27:51 +0200 Message-ID: Subject: [PATCH, i386]: Change x86_prefetch_sse to unsigned char 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! This will match "fake" bool type that is used throughout gcc sources. We can't use bool there, since the header is used in libgcc which doesn't include system.h 2012-09-12 Uros Bizjak * config/i386/i386.c (x86_prefetch_sse): Change to unsigned char. * config/i386/i386.h (x86_prefetch_sse): Ditto. Tested on x86_64-pc-linux-gnu {,-m32} and committed to mainline SVN. Uros. Index: config/i386/i386.c =================================================================== --- config/i386/i386.c (revision 191226) +++ config/i386/i386.c (working copy) @@ -2517,8 +2517,8 @@ /* Which instruction set architecture to use. */ enum processor_type ix86_arch; -/* true if sse prefetch instruction is not NOOP. */ -int x86_prefetch_sse; +/* True if processor has SSE prefetch instruction. */ +unsigned char x86_prefetch_sse; /* -mstackrealign option */ static const char ix86_force_align_arg_pointer_string[] Index: config/i386/i386.h =================================================================== --- config/i386/i386.h (revision 191224) +++ config/i386/i386.h (working copy) @@ -458,8 +458,7 @@ #define TARGET_FISTTP (TARGET_SSE3 && TARGET_80387) -extern int x86_prefetch_sse; - +extern unsigned char x86_prefetch_sse; #define TARGET_PREFETCH_SSE x86_prefetch_sse #define ASSEMBLER_DIALECT (ix86_asm_dialect)