From nobody Mon Feb 2 17:27:52 2026 X-Original-To: dev-commits-src-main@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 4f4YV21PTMz6Qlm8; Mon, 02 Feb 2026 17:27:54 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4f4YV20jJBz3cvq; Mon, 02 Feb 2026 17:27:54 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770053274; 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: in-reply-to:in-reply-to:references:references; bh=YMAWTDqJ2xavGOHyNs+au+VY2paDo/bUrppZpynv0Ig=; b=lFxc8FObq+wd6bX5/U+N3aYP5kj+ETw6tlH/2aBo5xrecr/vE71UoiIjhu+HigTZjK1Ari Lu56hiwCUE0gXUhB7jzzJ5nsDhiqSqjkwfFeWWlLoDBPV64ytO/8OCiC5wkExs6AniOFMI 25tDoOJNF/ApbDlOUG/E3nnZkSdManWYkfgYByr/EqUhkc7PShNpbBWgV8AlFfQUlVs3Qy MGg3jcFqTiP1po4YZAXcnmD6vfZkGlK3HhIauHcNIw90vTOnOvVzNZUWvYxMHg5MWaKFek 5IHbS687P4YYLUfeK9tqlITcUsblZtQ87pbRIneQs3zHmSGs/Oz7pXBcFzDCTw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770053274; a=rsa-sha256; cv=none; b=Ab/++axDeNcFBhtoyv6ZS9TKfaoJLNftwETN8E9iLzsjVwE0XjO3n6mjgB8PAFnWU08RIA mj++XDzrpSVm9en6J4YTpP0hpCONVWpQlPLn80beqpmYrGPiL3YimTOYVu5EqgM8wTI9+E 1NL16hjKsdyiB7w3DxRn+KxcTMDDXbu5jXGB6fl9zbqlEc0VWvT/k7MXjg+uDl9Afxtj9s gxE+nijwbtSlA2Y+CaJBL4sJArcfFoem04Cxe2VbTkfmZnFe1F0MMkg1o7TXuednHk2Myf +w9eB8XhKVpoRlfcOhJklO4ZchIUkwiGp2n5LjwzFKWwp6AZDilpiaIbffTnXw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770053274; 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: in-reply-to:in-reply-to:references:references; bh=YMAWTDqJ2xavGOHyNs+au+VY2paDo/bUrppZpynv0Ig=; b=bAXHN8jQXykDhYkRtZ7/EXLrl3Rs5PHoLkfTN4eGp7ygBVcd1E92jIA6C3eqBPliaQilza r7mjx9wzQV9jj0MOKhwcu8wqb+Yz5moh7BhmUioVUgNO4oLBrg+/fR2P/wo0Oy4xegYCEC yAxgUI0WvfJV1t4tj6H66QPKVZyrXfeDe64Qfoqqin29+yEsPZDjNfiKCVB1GbP1m8zkJp MXCR8x5M9DVdnxoHOB+7HvN1KiKKWqANYdrxfHC5xGkVsOhU3Vnb0S/MGJBRQk/hA8wktA JPyXkK313ngxkDO4MvcE3Yuqr3SxZ1ytqnN8mt6DG7xsma++G0YHcZH32AI61A== Received: from [IPV6:2601:5c0:4202:5670:dc0:8ca1:dc00:634e] (unknown [IPv6:2601:5c0:4202:5670:dc0:8ca1:dc00:634e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 4f4YV16KZVzjs3; Mon, 02 Feb 2026 17:27:53 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <37283782-ce52-48ec-9d20-6e43606f2919@FreeBSD.org> Date: Mon, 2 Feb 2026 12:27:52 -0500 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: git: f7144a9c4a11 - main - sdt: Use the "cc" operand modifier for the address of probes for GCC 15+ Content-Language: en-US From: John Baldwin To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org References: <6980dcc2.2191a.ebc239a@gitrepo.freebsd.org> In-Reply-To: <6980dcc2.2191a.ebc239a@gitrepo.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/2/26 12:20, John Baldwin wrote: > The branch main has been updated by jhb: > > URL: https://cgit.FreeBSD.org/src/commit/?id=f7144a9c4a11214a71a3091ce1b232a8243b83ea > > commit f7144a9c4a11214a71a3091ce1b232a8243b83ea > Author: John Baldwin > AuthorDate: 2026-02-02 17:19:51 +0000 > Commit: John Baldwin > CommitDate: 2026-02-02 17:19:51 +0000 > > sdt: Use the "cc" operand modifier for the address of probes for GCC 15+ > > This is required for GCC on RISC-V. The GCC 15 docs claim that "cc" is > similar to "c" except that it "tries harder". > > NB: I have not yet found a way to make the DTrace probes compile on > RISC-V with older versions of GCC. > > Reviewed by: markj > Differential Revision: https://reviews.freebsd.org/D54964 Once I land an update to the freebsd-gccXX ports to support %#b with printf(9) (in review at https://reviews.freebsd.org/D55016 if any ports person wants to review), RISC-V kernels and worlds can be built with GCC 15. GCC 14 and earlier can't compile SDT probes. :( Also, Someone(tm) should document # support for %b in printf(9). It would also be really great if we could document %r and %y in printf(9) as well. %y prints signed hex values, so printf("%y", -1) is output as "-0x1". %r uses a custom radix defined in a global 'radix' variable (I think this is really only for DDB), and if "+" is passed it assumes the argument is signed rather than unsigned. (This last part is a bit of a hack really. Probably we should use separate letters for signed vs unsigned. Or maybe stop using %r.) -- John Baldwin