From patchwork Fri Aug 21 17:58:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 509617 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C254D1402C8 for ; Sat, 22 Aug 2015 03:58:51 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=w9L9Krri; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=dvBIej39GG3fDVQBbSyCOGlFPhrdWoiDiZwZzRa/Jv+T2aH87e BhbXavwJBROY4olVJ4MzJsXHR09u47OGyuR062by1E5e1dDK4kF9yYdy7Y4hI50s 6nNNUI4O54D886lErfSmDJXTYEq1/S1rtW5miWPXM6jeSFMcv6urbJ9Yg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=lxm2J9h+9j02V0lLUlGBbwQSuWw=; b=w9L9KrriMUsXG9VILzCu BjXobNTlMIVoAJvXN7m+y8A7PaFxz/2JW3xEWJYyRc+jqSxXBAfOJl6TJIhhQ1Fg GeEKEgC7hupg1IV6E4V+rtpQmBZJVO0Z2FOdMCbWXdT0KZfkb2DjxN3IKt+z5G6m KNNz2ioMkl7O6/nJLUfyZig= Received: (qmail 118625 invoked by alias); 21 Aug 2015 17:58:42 -0000 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 Received: (qmail 118602 invoked by uid 89); 21 Aug 2015 17:58:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qg0-f49.google.com Received: from mail-qg0-f49.google.com (HELO mail-qg0-f49.google.com) (209.85.192.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 21 Aug 2015 17:58:39 +0000 Received: by qgeb6 with SMTP id b6so51429996qge.3 for ; Fri, 21 Aug 2015 10:58:37 -0700 (PDT) X-Received: by 10.140.232.20 with SMTP id d20mr20893074qhc.72.1440179917334; Fri, 21 Aug 2015 10:58:37 -0700 (PDT) Received: from ?IPv6:2601:181:c000:c497:a2a8:cdff:fe3e:b48? ([2601:181:c000:c497:a2a8:cdff:fe3e:b48]) by smtp.googlemail.com with ESMTPSA id y141sm862226qky.19.2015.08.21.10.58.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Aug 2015 10:58:36 -0700 (PDT) To: GCC Patches From: Nathan Sidwell Subject: [gomp4] GOMP_DIM_MASK tweak Message-ID: <55D766CC.7010404@acm.org> Date: Fri, 21 Aug 2015 13:58:36 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 I've installed this to make GOMP_DIM_MASK return an unsigned type -- I tripped over some signed/unsigned compare warnings. nathan 2015-08-21 Nathan Sidwell * gomp-constants.h (GOMP_DIM_MASK): Generate unsigned. Index: gomp-constants.h =================================================================== --- gomp-constants.h (revision 227079) +++ gomp-constants.h (working copy) @@ -126,7 +126,7 @@ enum gomp_map_kind #define GOMP_DIM_WORKER 1 #define GOMP_DIM_VECTOR 2 #define GOMP_DIM_MAX 3 -#define GOMP_DIM_MASK(X) (1 << (X)) +#define GOMP_DIM_MASK(X) (1u << (X)) /* Varadic launch arguments. */ #define GOMP_LAUNCH_END 0 /* End of args, no dev or op */