From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21583 invoked from network); 25 Jan 2022 07:48:23 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 25 Jan 2022 07:48:23 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob1.topicbox.com (Postfix) with ESMTP id A2ECB25B3C for ; Tue, 25 Jan 2022 02:48:22 -0500 (EST) (envelope-from bounce.mM55c6dc11d2315bac025e3124.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id A026CF2DCAB; Tue, 25 Jan 2022 02:48:22 -0500 (EST) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Om8xPXAZ header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=pavel.klinkovsky@gmail.com smtp.helo=mail-lf1-f53.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:list-help:list-id:list-post :list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1643096902; bh=fgqxZTwjk9k4OzPh JdwErbET6LSFlTEFqBa3J5QqPZw=; b=mFidmnCY5YG8IfBo9Yv8F+IIKuu9av4v G+zuprQkG21HulXTUFEpDenYbE1y5NdkbiM473Zt77S3QMwcQooDUt1ikG+A2JKb T5OFXCLS6hv8wrQxwpLhnusdzEFI4Y2r5pyJ7ncyjUaXeHTL/l2i907OPOaCWKry EN8xpdcbNXc= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1643096902; b=Qmp0j4m0whEauONRDMWMXihX7caW3hTB/WqpBQfixf1WbXV4w3 mFxuBlPWGC5aaaisfTSwe5Xs0TXYSc5qzClF+KCVySPOM9ImHAUSSKZG/CXXwCOl qC3bc64Q1vDDt6hFzRRse8DdUeIFF0EsqJDORGix2fn1ynQoX/S0x0AWk= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Om8xPXAZ header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=pavel.klinkovsky@gmail.com smtp.helo=mail-lf1-f53.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Om8xPXAZ header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.167.53 (mail-lf1-f53.google.com); spf=pass smtp.mailfrom=pavel.klinkovsky@gmail.com smtp.helo=mail-lf1-f53.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=GIpEnUVg; x-me-sender=none; x-ptr=pass smtp.helo=mail-lf1-f53.google.com policy.ptr=mail-lf1-f53.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h= mime-version:references:in-reply-to:from:date:message-id:subject :to:content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; bh=+/QJBHDWJrFPRU5MKJJutQBsX/Y1XnV3+tuh6rNF2dE=; b=OzC61Uy93Y0K v9jI2PsiemN+oGF1Osnyq+7Y3ZDmzEUueDRcYBgNfOY5SMBnQsV5X0NRqvC/z7Hw POYBzLJJLQ13RXPVpQCihIhazyEZDJ530hIAeGhrovLSgTmI3CKJhWxeBgRVvZmO iS9ZAdCjbiBXLY0lhcO1TLeDdBnEk8M= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 24C12F2D8AE for <9fans@9fans.net>; Tue, 25 Jan 2022 02:48:13 -0500 (EST) (envelope-from pavel.klinkovsky@gmail.com) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id C03F7C03566; Tue, 25 Jan 2022 02:48:13 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1643096892; b=bVjwwuUr4HVnSllvZGP7oAhSqY/cEe49nyc5QJibO9WXRbs8LX QvRnBR7QGQKHgGNYB02Zcoxs3q4G81ejTE6rFR+aODKz5Dl1OcOZxRjTYo8LUVuT E0jVyRmjjI8kZxuI6AnTmSmYOlJK6Kd1uLFMd29+jvYx34JC3lBbWQdu+x6yiMXu 5tP1XrqC1PNOweOF7ckzEZzJMynWFKerkhOJ1ydTFERWZXNLhzkpFpZaU8XUS/ZA 5nvaO/1tKAYrDsV1Ggmli5/XOt0QxsodREnFjhA5+cQpwVZ5rdJqWIYSfhpdGIF4 dpj/Qk+pduxjqrAZSG/z5mv+gb9zDEJziD2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=arcseal; t=1643096892; bh=bMcI3MNpAxWx0QMecmsLsTrPOnMDgeyZxRQgWJ7O5I4=; b=wmhGc4WdnvYU 7vmiIXk/AgNxSkettrOu9/D+fC/BUUZBm6YPk7NtMUDzWur8Ruwq+x8THjhVB3+r vZd7opDbtlbrEEw0CcKTQbUcgSUnnbcZFylpQb0+zxmMeMWKWy0KOFUw17XGgCrp D9TpDEN3jg9FrNl9KekTVlZo9SL4oDxzzOwUNe6h6sUGU5AQh98NIFt0+g7lmFOH t3HLqLftQNsAwgi8X3a21texl9dLMh9m6f+m52/Qj8ZPYzAcq02W2P1CrkT68cQR DXMQaIT7d5lcJmTkewnj9HxzEOG/0l9t5jvzKP4g8XjJLstL/SYowV1IJZ/MwI5C 5YJC2iR6PQ== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Om8xPXAZ header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.167.53 (mail-lf1-f53.google.com); spf=pass smtp.mailfrom=pavel.klinkovsky@gmail.com smtp.helo=mail-lf1-f53.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=GIpEnUVg; x-me-sender=none; x-ptr=pass smtp.helo=mail-lf1-f53.google.com policy.ptr=mail-lf1-f53.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvvddrvdejucdltddurdegudehrddttddmucetuf doteggodetrfdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgs shgtrhhisggvpdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenuc fjughrpeggfhgjhfffkffuvfgtsegrtderredttdejnecuhfhrohhmpefrrghvvghlpgfm lhhinhhkohhvshhkupcuoehprghvvghlrdhklhhinhhkohhvshhkhiesghhmrghilhdrtg homheqnecuggftrfgrthhtvghrnhepueeuuefhieekgfekveetffeggeeluddvueeitdeg leejfeekveegveektdfggfegnecukfhppedvtdelrdekhedrudeijedrheefnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddtledrkeehrdduieejrdeh fedphhgvlhhopehmrghilhdqlhhfuddqfhehfedrghhoohhglhgvrdgtohhmpdhmrghilh hfrhhomhepoehprghvvghlrdhklhhinhhkohhvshhkhiesghhmrghilhdrtghomheq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'pavel.klinkovsky@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="pavel.klinkovsky@gmail.com"; helo=mail-lf1-f53.google.com; client-ip=209.85.167.53 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Tue, 25 Jan 2022 02:48:12 -0500 (EST) (envelope-from pavel.klinkovsky@gmail.com) Received: by mail-lf1-f53.google.com with SMTP id n8so14655153lfq.4 for <9fans@9fans.net>; Mon, 24 Jan 2022 23:48:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=bMcI3MNpAxWx0QMecmsLsTrPOnMDgeyZxRQgWJ7O5I4=; b=GIpEnUVgCbsD4u23HKqGURNL3G7lOvQ9hpQHtM9KLytMWeUgueDo+5e37WTwsW82To SxeK8hjcg98Utv6/ljbK28C4USS/g2fwtkttuPMTFWNl/E5z/nrxPK4qez7EhpNCkeuT rtPgPtpgLgbY4HSYXuFNMfjsjYIHyNyljTCyiltKDdlR1nyVRLs3Y+KuLtt7KaYrcq8o Mbxg4IXHZpZ3PeedDJ6bWpN7LgQVngp3lkz0T/wvgLcbam5WMD6bhddXjSCgM4/ENkx9 a8G1i4mlyDn/e16NFoFUifwexCYvl/fN1i252Od9B+CZUirfotbkC8TovEsRKgMUhb1m W9GA== X-Gm-Message-State: AOAM532lTeacMUv4y4mrgEg3r36zi6JamJkCBxozcT8rb0DQ0IX2oCt5 gvNpquNjl8WRCO+0QBhM+RRN4TSwsKcDfcp27OhOCBbrdVg= X-Google-Smtp-Source: ABdhPJzxbD3elyAVtW6TD6V7PREM2EW8cMfu+hKTS1u6c3mlNXI4VuEgV02fn7dDMzgOQ89OQNI1Jn5NgvJ5agQA30w= X-Received: by 2002:a05:6512:114d:: with SMTP id m13mr15750402lfg.246.1643096890868; Mon, 24 Jan 2022 23:48:10 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?Pavel_Klinkovsk=C3=BD?= Date: Tue, 25 Jan 2022 08:48:00 +0100 Message-ID: Subject: Re: [9fans] Strange 'uintptr' behavior To: 9fans <9fans@9fans.net> Content-Type: multipart/alternative; boundary=000000000000830b8a05d6634eb9 Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 286c2428-7db3-11ec-aea0-b4ca950e10d1 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UYjVmZTBkYzQzNDQ3YWIyYy1NNTVjNmRjMTFkMjMxNWJhYzAyNWUz?= =?UTF-8?B?MTI0Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: 7bit List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M55c6dc11d2315bac025e3124:1:l1ETNDhVqoNaglEuinTHIiAjsV1ar2k6WbWI21f4NhM --000000000000830b8a05d6634eb9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sorry, I was not precise enough. I prepared arrays in the initiated data segment: This program cannot be compiled: #include #include uintptr frst[] =3D {nil, nil, nil, nil, nil}; uintptr scnd[] =3D {nil, nil, frst, &frst[1]}; void main(void) { exits(nil); } ...because of: cpu% 5c t.c t.c:5 initializer is not a constant: scnd This program can be compiled: #include #include void* frst[] =3D {nil, nil, nil, nil, nil}; void* scnd[] =3D {nil, nil, frst, &frst[1]}; void main(void) { exits(nil); } Pavel ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tb5fe0dc43447ab2c-M55c6d= c11d2315bac025e3124 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --000000000000830b8a05d6634eb9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Sorry, I was not precise enou= gh.
I prepared arrays in the initiated data segment:

This program cannot be compiled:
=
#include <u.h>
#include <libc.h>
uintptr frst[] =3D {nil, nil, nil, nil, nil};
uintptr scnd[] =3D {n= il, nil, frst, &frst[1]};

void main(void) {
exits(nil)= ;
}

...because of:

cpu% 5c t.c
t.c:5 initializer is not a constant: scnd


This program can be compiled:

#include <u.h>
#include <= libc.h>

void* frst[] =3D {nil, nil, nil, nil, nil};
void= * scnd[] =3D {nil, nil, frst, &frst[1]};

void main(void) { exits(nil);
}

Pavel

= --000000000000830b8a05d6634eb9--