From nobody Mon Nov 29 15:43:17 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id F3B5B18BCC2E; Mon, 29 Nov 2021 15:43:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J2qPh4NS0z4ncW; Mon, 29 Nov 2021 15:43:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 79CCF251BD; Mon, 29 Nov 2021 15:43:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1ATFhHqo066024; Mon, 29 Nov 2021 15:43:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ATFhH5N066023; Mon, 29 Nov 2021 15:43:17 GMT (envelope-from git) Date: Mon, 29 Nov 2021 15:43:17 GMT Message-Id: <202111291543.1ATFhH5N066023@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: a64a3b798825 - main - libc/tests/stdlib/dynthr_mod/dynthr_mod.c: mark dummy as used List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a64a3b798825bc176ae052fc3ead88566b60ba7d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638200602; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7z3xGd2X+ry3tx0vbCAVZmupeT+2mVDM6wJvbUjOe5U=; b=BMWEmaIb9ZpqN+0nD9QTb5cB7GBzxxyVJ5wXmLFjogQ4bpJ/EdVCh5tigrbKhyvbbU6WvI wRXj/m18SZVkGaaNOMLapu6h4x9sNyNfNdUWhgKUWdmx6cGj3oR0KD+Z3vL0M8EGlgsLmU eQs/5GWb67//NOiP3pP3hRDejxyaKY7LnPMU/dxB6sCvp6qzzkuxIwI/m4lEaOPOZRaEdT hLEIza3c41kY68FUgaESqQUrHW8RZqwkjupZJxpwjc5SNP3IKpqdqtPiP486aggWxU6Wz8 he+FmbNzZLCQWA2uuOfzJBAG4sjaodI2yHUxq4nxzYKIDfZoHqwRZThNEcoDOA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638200602; a=rsa-sha256; cv=none; b=PbFAAhlG7btFTthw8SmF2XwbZntgIPyylCre3efJztT/KD4Y6N1CnGyX+4elx5vErcU8G9 ZGHn/8nMFxvhWlVJfmcn8ooU9A95xftIb99dwDbUwamzSj/8QQ5AgLCgoeGfwvu7xTa3c5 HIsqzuI5hVXJ7WS0FPbkzPXFbrhR/2O2dbS4dYTsokyo1ilFP/dAV3T1AMlY50YHeWO/dI mGN7i5lQzjQXmpVLMh0kfoq3u1iUGyF3zsyO+4dsfwuFRLbMUqQ/haWO6vnRFqqmN9PnID u9VZFlNY+UQ2ZqO+MISvabaWoRfz2byW4Wh+UfryD09rN9+1bf8xFZF84WoZNg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=a64a3b798825bc176ae052fc3ead88566b60ba7d commit a64a3b798825bc176ae052fc3ead88566b60ba7d Author: Konstantin Belousov AuthorDate: 2021-11-28 03:25:28 +0000 Commit: Konstantin Belousov CommitDate: 2021-11-29 15:39:51 +0000 libc/tests/stdlib/dynthr_mod/dynthr_mod.c: mark dummy as used It receives the malloc() result, and we do not want the malloc() call to be optimized out, which is allowed for hosted compiler. Use dummy for actual write though. Sponsored by: The FreeBSD Foundation MFC after: 1 week --- lib/libc/tests/stdlib/dynthr_mod/dynthr_mod.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libc/tests/stdlib/dynthr_mod/dynthr_mod.c b/lib/libc/tests/stdlib/dynthr_mod/dynthr_mod.c index 4f5622f47a81..c19a1a54a8b6 100644 --- a/lib/libc/tests/stdlib/dynthr_mod/dynthr_mod.c +++ b/lib/libc/tests/stdlib/dynthr_mod/dynthr_mod.c @@ -51,6 +51,7 @@ mod_thread(void *ptr __unused) char *volatile dummy; dummy = malloc(500); + *dummy = 'a'; return (NULL); }