From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by sourceware.org (Postfix) with ESMTPS id A16AE3858C2B for ; Fri, 16 Jun 2023 05:39:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A16AE3858C2B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-6b2afc1ec49so326065a34.0 for ; Thu, 15 Jun 2023 22:39:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1686893980; x=1689485980; h=mime-version:user-agent:message-id:in-reply-to:date:errors-to :references:organization:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vzZirs78GIp35aDwbLd/jQC/gEV8hMEkNOVXHazRa3E=; b=R8B37eQVBb95wSv2O6KspsaxNhsDXkRiSeuu2mpoHKqmvwBcTbVDan4WxmsLqYS3QC T9gGQpsIvq1lniUkXF8fY/ZbrUTER3DXgjmv0We3pcIk8LKm7frwf7vAKd8ScgXHmTYR ZksT6se7LBhuxThLGvcAG/2mPCIRmZQyGjAkEToHpM0vtbVQRYGAuEb5ZXVadkwgBwOU UarX5YJgYUP314Gg5wqAu+c19kmt4bDkfnDDnnRAxrY7y1DlaKLmPxss9eo3L46ita1d xtn6A62+/uWXBcjnB/my4Bpu7x+89Yc+vhOdkTc8iUbFCag0eVc5b8ETXLQc//vuI57w qwzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686893980; x=1689485980; h=mime-version:user-agent:message-id:in-reply-to:date:errors-to :references:organization:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=vzZirs78GIp35aDwbLd/jQC/gEV8hMEkNOVXHazRa3E=; b=cGcD5phIOstt1XPlvvNKk3dB4B1ru3yg3D8D/ADsB1hxakWv++mPlzWeej8u5FsZ+S zz0iA6fIUPZeckY2tPn5b5F1br0SUJJgczKB+vdvcYZ6E819XFlk4v6M4koNtLu2ErSn hfeYrSim7mC74XUbyaxieFyjazcRJ0jxcmzilsOQT48Ux7yvHJ/iIkBj8DIVvK7fGudf P+H1qUemICH+ONw5sd7b8Wr1p9zEKWxBMr+A9NlcYO3e82Z6uMnIMOZWv33GqEL/iKMf KBiuiuet9Kr6qfTon+HK5w8t5kSC3hk5b7AW3tu5of0h5BfA95uw9RGaQHSpc81dwS4j q8NQ== X-Gm-Message-State: AC+VfDwB3T5VfWzIVMkAlWbyvB5JD3eKAoj2HBds5W0kRsShSitSlXgh LwDK8FIDuwZZizUpD54CqF/fvQ== X-Google-Smtp-Source: ACHHUZ4eiLyHzpsgi7jEDgTg1AfvH9jkYRmovQeHmrKhj46YiFB9au7gjLoLa1qSsW8ekslZhhfVFw== X-Received: by 2002:a9d:4b08:0:b0:6b2:f2a2:cfa4 with SMTP id q8-20020a9d4b08000000b006b2f2a2cfa4mr4031584otf.5.1686893979947; Thu, 15 Jun 2023 22:39:39 -0700 (PDT) Received: from free.home ([2804:7f1:2080:2b05:3128:ead8:cd43:416f]) by smtp.gmail.com with ESMTPSA id w16-20020a056830111000b006ab26c69534sm7477127otq.23.2023.06.15.22.39.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 22:39:39 -0700 (PDT) Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 35G5dUb3475127 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 16 Jun 2023 02:39:30 -0300 From: Alexandre Oliva To: Bernhard Reutner-Fischer Cc: fortran@gcc.gnu.org Subject: Re: [PATCH] Introduce hardbool attribute for C Organization: Free thinker, does not speak for AdaCore References: <20230403012803.29ccf00b@nbbrfq> <6890D6BA-73DC-4F91-9413-228492A7F09B@gmail.com> Errors-To: aoliva@lxoliva.fsfla.org Date: Fri, 16 Jun 2023 02:39:30 -0300 In-Reply-To: <6890D6BA-73DC-4F91-9413-228492A7F09B@gmail.com> (Bernhard Reutner-Fischer's message of "Thu, 06 Apr 2023 13:10:22 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.84 X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Apr 6, 2023, Bernhard Reutner-Fischer wrote: > 29 For C_BOOL, the internal representation of .TRUE._C_BOOL and > .FALSE._C_BOOL shall be the same as those of > 30 the C values (_Bool)1 and (_Bool)0 respectively. I'm not changing any of the standard types, FWIW. The proposed extension enables alternate boolean types to be introduced, with extra checking for hardening. > I personally like your proposed 0 and ~0, that's probably pretty robust. That is only a default. Certain applications may benefit from other values. 0xa5 and 0x5a seem to make a good combination too. -- Alexandre Oliva, happy hacker https://FSFLA.org/blogs/lxo/ Free Software Activist GNU Toolchain Engineer Disinformation flourishes because many people care deeply about injustice but very few check the facts. Ask me about