From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id R6gXEK1R+F9RJwAA0tVLHw (envelope-from ) for ; Fri, 08 Jan 2021 12:35:57 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8AHGC61R+F89WwAA1q6Kng (envelope-from ) for ; Fri, 08 Jan 2021 12:35:57 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AAD8E9402AF for ; Fri, 8 Jan 2021 12:35:56 +0000 (UTC) Received: from localhost ([::1]:35916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxqzj-00034S-Hs for larch@yhetil.org; Fri, 08 Jan 2021 07:35:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxm0r-0005gT-8q; Fri, 08 Jan 2021 02:16:48 -0500 Received: from mout.gmx.net ([212.227.15.15]:47613) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxm0n-0008W9-4V; Fri, 08 Jan 2021 02:16:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1610090196; bh=wXbVTuwVv39N+hsjdZLbUdfxlCQaibWDBFgZ9Y+cPPc=; h=X-UI-Sender-Class:Date:From:To:CC:Subject:References:In-Reply-To; b=cjQgaecseciLdXzrm4iYjtA9C+FoJ/Ev0/gzauumnkRVWWX7RKGObhYNZa5zJFCTU xUbeCwVD+8YYbiCcdFhPIollbADiVuOvqBUePDKqjzE7sB4aQbQ1f5TuEATreMk+i+ QcWeTK829BdVJUXPCKRxCyYSgfWBHmJJou9z8vTM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [10.114.59.218] ([46.114.91.218]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N2E1M-1jxry93INi-013fyA; Fri, 08 Jan 2021 08:16:36 +0100 Message-ID: <5FF806CD.1000405@gmx.de> Date: Fri, 08 Jan 2021 08:16:29 +0100 From: grischka User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: tinycc-devel@nongnu.org Subject: Re: [Tinycc-devel] [bootstrappable] Re: wip-full-source-bootstrap: from a 357-byte `hex0' to 'hello' References: <87im8cvdpa.fsf@gnu.org> <36b3777d90af6fa2e1c1778ba183111e@codethink.co.uk> <87lfd5rpr8.fsf@gnu.org> <20210107211058.40e0813a@scratchpost.org> <20210107212324.36bfd236@scratchpost.org> <20210107235208.04835b95@scratchpost.org> In-Reply-To: <20210107235208.04835b95@scratchpost.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:przkcXLkFaM6LMv8+9m7Vq36N9KSXsszJCR2MU9HK0D5H3+t+wO MkvcQfbFFwQrJkVkiZfOjKI4ft1tSSNvpEwWxbmyKqt5NJFboYRemec5hoQRvCuVfR/5EUb r5GXh9xY33GxcyS2QYFMCPnSbvfXYjrs+irH/g9cPPnBpNo05g4fAGJ2qiqXtlsaC6D2v+4 8WkX7pQE6uAqUEBL3+Qmw== X-UI-Out-Filterresults: notjunk:1;V03:K0:JlNkvUovaho=:eCkR0P8K5ZrE0RdskBp+eI YlEImYRS15f8S92YjEJo63VvwF4BjZ1HGZ/nBVEL2uKzu6t+6Rsz6IrKhoDGGYZl7JKweaIzp 3+lxOrdmxU9N6NMz1XcpIOtt4Gj/O+89NlfGfR8jhK3MpUGcHJQzbJZZ1ULe3bEyKxucyyL44 sw26hQObyWaaK/J8dM2x0MnP6fz+3eqxj5FuR6H1fP6sKYlqonEMOxWyxr/u27/pXWSRxacS6 HwDGeVOnf48tqEAY9GF/7uhFo05UU5JKkgaTD2WH7l2vN+KUxAZAK+iUOvLOCaGDh8GyECoC8 K524Fh4Wr9vHokFyHW1QQ7nfY/Uvh9B8BKaq3b8XJBOoqc3AYOv2MFNxP3e1Qlyb+VxGfgF9Y urOnuuv5nTQtL99K89d56Y9yFaDAPW2fLYUsCpalZrtVBPWgUZw7ZQ+GZtEWCIGy1RZdBqxkY hJk4M1Plh9M1QcrGBJ9v6fNqh0wXsA/e+3XWQZHXV0tGIMMyShkr2bVvi3/2cTOU1nBFHgDu2 0ZvpvhHPUnIzW6cA4S7+kQbHNL2pzQdKdBw3G4npfPgGI6+mRQ/Wp9LGmCeqUDeBz4QOZSxQt Li0CVXCzk4Cwm5CK/1iCrNvhP/eRVe94RAx7lSTvQ2k8I2Ex/JW7QhXXguYsIX3MWnbGIyYbd 5GmqiHwxi9FgYSsGvniKy3AGn0phXcECQaGCcnbz7PqFXWYQf5PnuzZ2Q0YyUZgpYmG+FJtgU wVgYITYH7ZT5/xQyyapLhYwRMsYbMhgRh5VRiN9wVqbL46jZUN8QHSu1WK/IJxICGzbszZnYA 4gUQ+jc1cPWYa55qJlyp1r8fmw73NmPe+QK3SGsqDQUdLWenGTyI3Y3jfDEmLCLO7NQFP3ops Y7+CxXX7yHxppf8dv4FA== Received-SPF: pass client-ip=212.227.15.15; envelope-from=grishka@gmx.de; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 08 Jan 2021 07:35:00 -0500 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org, bootstrappable@freelists.org, Paul Sherwood Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.25 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmx.net header.s=badeba3b8450 header.b=cjQgaecs; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.de (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: AAD8E9402AF X-Spam-Score: -1.25 X-Migadu-Scanner: scn0.migadu.com X-TUID: rIfGbotN/G3v Danny Milosavljevic wrote: > int main() { > double f =3D 1.0; > return 0; > } ... > I get a bus error here: > > =E2=94=82 0x24698 vstr d0, [r0] = = =E2=94=82 ... > And indeed, (0x24b01e % 8) =3D=3D 6, not 0. ... > *(double *)ptr =3D vtop->c.d > > (the latter of which emits VFP instructions that expect double-aligned > pointers). It seems that in fact, on certain systems, initializing intentionally misaligned (packed) structure members could crash tcc already during compilation. But no such thing happens in this case. The 'ptr' in init_putv() comes from ptr =3D sec->data + c; and it seems that if tcc is doing the right thing then 'c' cannot be misaligned, and if malloc/realloc on that system is doing the right thing, then sec->data cannot be misaligned either. So...? =2D-- grischka