From patchwork Sat Nov 21 14:07:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 547163 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 4878D1402B4 for ; Sun, 22 Nov 2015 01:07:53 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=Elbt0ug/; 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=B9epp4y8Nxq0lwLq7OTk59KMiE/OsGg6u2ilpyAYDvj8ENRnwi M5V10mXJtq1bCO1y477PmabK4F46XTkHXiGxm1pz9oYS8yrHjxojwFULuI6Q8ORv XIgqIhnqYXS1RoUE/6K32nQoVmeLvqCKkBYdZ7BzoF7LWuXQkmrrbBVtA= 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=W4Mt8vZZ4aIqPElpRkFW+fktAuQ=; b=Elbt0ug/QGazQIZ8IACn tO7VRBiJ+J3UXdZ6+6MT2Y/wv+epnImfd3DYCal/S+S5wq2DcgHF+X7c1OeIHufz vjpsP2Ni1BEFPznJvsXo8gweESAN7C68JsiQHwcr3RilLcvto3cLm6Rg8J8dV4xb sUGVX8cQtWmBuM+CkGlJJME= Received: (qmail 10632 invoked by alias); 21 Nov 2015 14:07:46 -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 10617 invoked by uid 89); 21 Nov 2015 14:07:46 -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-vk0-f48.google.com Received: from mail-vk0-f48.google.com (HELO mail-vk0-f48.google.com) (209.85.213.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sat, 21 Nov 2015 14:07:45 +0000 Received: by vkbs1 with SMTP id s1so13939188vkb.1 for ; Sat, 21 Nov 2015 06:07:42 -0800 (PST) X-Received: by 10.31.178.84 with SMTP id b81mr6167051vkf.121.1448114862884; Sat, 21 Nov 2015 06:07:42 -0800 (PST) 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 i128sm3490251vke.28.2015.11.21.06.07.42 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 21 Nov 2015 06:07:42 -0800 (PST) To: GCC Patches From: Nathan Sidwell Subject: Fix atomic test Message-ID: <56507AAD.9040708@acm.org> Date: Sat, 21 Nov 2015 09:07:41 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 I've committed this to fix gcc.dg/atomic-generic.c. It was calling memcmp without a declaration in scope, and passing a plain int as the 3rd argument instead of directly using sizeof or casting to size_t. This blew up PTX with a type mismatch. nathan 2015-11-21 Nathan Sidwell * gcc.dg/atomic-generic.c: Include . Index: testsuite/gcc.dg/atomic-generic.c =================================================================== --- testsuite/gcc.dg/atomic-generic.c (revision 230704) +++ testsuite/gcc.dg/atomic-generic.c (working copy) @@ -10,6 +10,7 @@ #include #include +#include extern void abort();