From nobody Wed Mar 22 16:24:36 2023 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 4PhYhh6518z411n1; Wed, 22 Mar 2023 16:24:36 +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 4PhYhh40dDz3MlW; Wed, 22 Mar 2023 16:24:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679502276; 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=1IBHJFdFPhCWihrwO2Bii+cEMyNouWmdSH2D3pPA2pE=; b=pHuOshjjOvsM2MVStYJKlYGtEqFtpLq7/0hBXECKTFjrhnIMBz9hvjy9S8Fr8DptRD64Fy nS+3XdbX98k0N+mebNx0/ciK1znxy7JK/yEhKc4tG/u2qEP5CAtaJRNKPui7Oo5/GeXsbI llLIKIxgLddRwIV8p8nBU41+WUJbJBJAsQU2gAZ9LIZ/Yuq3aWRqJPj7PhkimsWEvzILUI MTfB1ix0drDPepXwfYqyeg7hLVYct1RiBWCwiXAQ6AXVoPXGt3SNqV3tWOKg57RxFwQZbG YVF9g6D/N115jX/hMHUKSRDWhNvOhwLsLG0wbWuIvbD/1+uO7/iVViO0KfYKUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679502276; 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=1IBHJFdFPhCWihrwO2Bii+cEMyNouWmdSH2D3pPA2pE=; b=no3bQv5P12tAo8/lDdlTLSADSp97vDWvK5YjSvhgyV+kIx7aQDDhatIP5rNa5K2K1jqg1i a2S8GNULD3nj0vIfBNrq1NtqrQpYGqmuEAAyfgMQANqfidrsDOxF7ifnX7hxshp/AO+1sM Q+6wfGBAMqG5SYUsfHDMG8IwdZiZxSGfCs5GqFVzdMkaEG+W2mztrP4TX4PgEfJJGVRkPS GZMYI3fuOKFECLTl7lEdAAkT7tAdTkS/i20rMeN8Er6bUWZC8nnGOh4jA9UYSaP67MH/90 80JVrvlLyXn1mano1kYh8dkcqwWYiBmq9/DHUyMwDeSUiVpK73Ms9ZR1JcHWlw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679502276; a=rsa-sha256; cv=none; b=hh49Dup+KJZftv8xB3r5840Lfi/QlxmX8HwcqAQS/sEORNXkgKbwqBknn6yZlGWV2EXrpr CgpgetCqflvIvUwXiG0SJAftq6WKJz4p2hjDxCOevYCP9F2mbcU9x8e3k+nQShyOOoNkiE NLAqAUNjem3MTmTG/MNudUyGnaE8q9dUE9yNluzn6wKVRyVqVVZdti2dB6fHpGWbLnOz1A 6QPZaWHV8GOY3EM671TG3EzjEN/VSW2lcsDw67tSUxicWbeRZYvSjVy3iU5Ju9zJAJdSd/ 0sj+9p4+QzeAkhtDlhKNexU7kNZXakAJqAvwmQE1SlAE+aR8KiAXSUPFkxfJvQ== 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 4PhYhh336Cz11W3; Wed, 22 Mar 2023 16:24:36 +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 32MGOajs007667; Wed, 22 Mar 2023 16:24:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32MGOa5c007666; Wed, 22 Mar 2023 16:24:36 GMT (envelope-from git) Date: Wed, 22 Mar 2023 16:24:36 GMT Message-Id: <202303221624.32MGOa5c007666@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: de761318a4a0 - main - riscv: Fix sig_atomic_t limit definitions 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: de761318a4a0a030035657ff72ddc93bdd2e0bb0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=de761318a4a0a030035657ff72ddc93bdd2e0bb0 commit de761318a4a0a030035657ff72ddc93bdd2e0bb0 Author: Brooks Davis AuthorDate: 2023-03-22 16:23:22 +0000 Commit: Brooks Davis CommitDate: 2023-03-22 16:23:22 +0000 riscv: Fix sig_atomic_t limit definitions sig_atomic_t is defined as a long and thus is 64-bit on arm64. For some reason its limit was incorrectly specified as a 32-bit number. This had the unfortunate side effect of causing gnulib to override most of the definitions in stdint.h. On CheriBSD this breaks all software that uses gnulib in annoying and hard to debug ways. Technically updating the limits might be an ABI change, but these defines are largely unused (the only use in tree is in the libc++ test suite where it's use an assertion that will fail due to this bug). Further, since the underlying type remains the same, we're just increasing the range of values a paranoid program might use. Reviewed by: emaste Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D39194 --- sys/riscv/include/_stdint.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/riscv/include/_stdint.h b/sys/riscv/include/_stdint.h index 32e5b6fd081e..d73a9c088b59 100644 --- a/sys/riscv/include/_stdint.h +++ b/sys/riscv/include/_stdint.h @@ -143,8 +143,8 @@ #define PTRDIFF_MAX INT64_MAX /* Limits of sig_atomic_t. */ -#define SIG_ATOMIC_MIN INT32_MIN -#define SIG_ATOMIC_MAX INT32_MAX +#define SIG_ATOMIC_MIN INT64_MIN +#define SIG_ATOMIC_MAX INT64_MAX /* Limit of size_t. */ #define SIZE_MAX UINT64_MAX