From patchwork Wed Nov 7 22:33:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jozef Lawrynowicz X-Patchwork-Id: 994535 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-489295-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mittosystems.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="FbiZTIXI"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=mittosystems.com header.i=@mittosystems.com header.b="idDawIaE"; dkim-atps=neutral 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 42r1Qd3zlbz9sBZ for ; Thu, 8 Nov 2018 09:33:13 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :subject:to:message-id:date:mime-version:content-type; q=dns; s= default; b=GJbkJmeXA2188a8CW1zrcbLHrkdUjTLzkKEuzZTSReN08PvHB6Bav dknhJMYXxi5WQRhdrrbmpWD/DObrEUCRXY4UzEZdu4bfzkYl8Il822fGjOQXhQi5 vx1F6BfENihvI0ODJjWBfnglFILP9le7OJ51XDNCXbuRM12vElzrYY= 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:from :subject:to:message-id:date:mime-version:content-type; s= default; bh=PwiqtbswSouWH5mE8+fVzyGBq+A=; b=FbiZTIXIjrU3SG5w7EXo dpNRig/kkYzQEHIl1j4BKBbWZokZ1nk6P8bYGMVo5K7Y0bCuo53EOW7hi9YV6nVM CwL5ZIlI0FQT8YhqrwROkDoOWkQGmSxDo8Wz+bPOUGdKWrsaYFlSUL10Y2JjmZ3s xWN8Hpfd9HbdKlQdTHkZLB0= Received: (qmail 74923 invoked by alias); 7 Nov 2018 22:33:06 -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 74912 invoked by uid 89); 7 Nov 2018 22:33:06 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wr1-f50.google.com Received: from mail-wr1-f50.google.com (HELO mail-wr1-f50.google.com) (209.85.221.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 07 Nov 2018 22:33:04 +0000 Received: by mail-wr1-f50.google.com with SMTP id y3-v6so18819207wrh.10 for ; Wed, 07 Nov 2018 14:33:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mittosystems.com; s=google; h=from:subject:to:message-id:date:user-agent:mime-version :content-language; bh=stG/xX78A1GlbEtcWvRAqKp/iD9hZXQEG6aXYZqdfrg=; b=idDawIaE/DzDORJDMuEDFCc/FiuHNZBxqueqRyXRtfZjzqcN51uAibDzdsGqrsM7a5 5qKevoJHFFE7hTflsgmaL0mIq+BvbkxaxxEpDrCdyAOEdE4iwoRP6M762FeUiP3aoz0S AFrXF1Q58q4liMUnwfkpUh9ji+hOToSc6OnPutfw5H79EBXywMFkFApypO83gxJY0OUC O5fHaoSjfA2mjyF7A8edIWUsyV7fY3bPpAZhal7jGkFxDNsEXulti/kTpi3PBH6HCiLp e8eCyv1rVUF6FNjcJoJYcM9PLgnQUSJLY2fFy/oUkHaIuYrqLbVffKuIQb7VrXXfi/t0 G3vA== Received: from [192.168.1.145] ([88.98.203.54]) by smtp.gmail.com with ESMTPSA id p188-v6sm2274278wmp.31.2018.11.07.14.33.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Nov 2018 14:33:01 -0800 (PST) From: Jozef Lawrynowicz Subject: [committed] Fix type of "num" argument to memcpy in gcc.c-torture/compile/pr65595.c To: GCC Patches Message-ID: <65d87003-38cc-a923-1089-6aaa824bb7d9@mittosystems.com> Date: Wed, 7 Nov 2018 22:33:01 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 X-IsSubscribed: yes The test uses "unsigned long" as the "num" argument to memcpy, but it should be size_t, and these types are not equivalent on all targets. Committed to trunk. From 3ebbb8102bd9b984c6f1a1eaf0bca45fe4fd23e1 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Tue, 6 Nov 2018 12:49:00 +0000 Subject: [PATCH 04/12] [TESTSUITE] size_type memcpy 2018-11-07 Jozef Lawrynowicz gcc/testsuite/ChangeLog: * gcc.c-torture/compile/pr65595.c: Change type of "num" argument to memcpy from "unsigned long" to __SIZE_TYPE__. --- gcc/testsuite/gcc.c-torture/compile/pr65595.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.c-torture/compile/pr65595.c b/gcc/testsuite/gcc.c-torture/compile/pr65595.c index 0ab7161..b6a0aa4 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr65595.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr65595.c @@ -1,4 +1,4 @@ -extern void *memcpy(void *, const void *, unsigned long); +extern void *memcpy(void *, const void *, __SIZE_TYPE__); struct in6_addr { struct { int u6_addr32[4]; -- 2.7.4