From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) by sourceware.org (Postfix) with ESMTPS id 33D103858D28 for ; Tue, 29 Aug 2023 06:52:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 33D103858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-58e6c05f529so49566357b3.3 for ; Mon, 28 Aug 2023 23:52:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693291968; x=1693896768; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3KSheVIi+rzb80/aBiTW7CrCHwX1ubH+MreYmuHCNJY=; b=bRLMiGPhZOvAx0f9crrp3CyPxkNogkVZAf1asQwpNSk7n6Jc7eKmIbGGYa/mK/TunT SG1KdTXGhpzPuEjnKaTuO1FusePRTyBIA4UMkYhMf5ubUXMT9ltEoFSIJ4wNIwtcoZcT HmmI42IwdMRqCqg+XeCCuPNWQU+NA+/m79P5/a+ICg7YAejRmY9reocDUuMSY/kEVz9L EGDBwHQMfLSQbwNvwpkIwY2eSqscd6oZYywmteFjGA6F7hfckTBiki7TNZzPRIywXgDp JFmNEoFy3SDzHHHbNZXwYOlg7Ip8ksZY4cYQTWYnS1Ygce6jw0mCEx60Yr3h6CUMT0Y6 MtKQ== X-Gm-Message-State: AOJu0YzAnWsguUG4Nm2SqbUmV9peF1pKaIzIR5Z5zZbvMZKHYA5JWZH1 ONj0eM3bBqu5PUO9FTHjkgjQ96OStqD15Q== X-Google-Smtp-Source: AGHT+IESwaAi0+c3Epg+KcQYQWW62Ze5jprZZpMWxopNbmvK3MbFp/Ckt7JYt9I4fxO8hrPa73vGGA== X-Received: by 2002:a0d:d457:0:b0:577:d44:a1a5 with SMTP id w84-20020a0dd457000000b005770d44a1a5mr27884535ywd.14.1693291968520; Mon, 28 Aug 2023 23:52:48 -0700 (PDT) Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com. [209.85.219.170]) by smtp.gmail.com with ESMTPSA id t203-20020a8183d4000000b005794a9576f0sm2620483ywf.9.2023.08.28.23.52.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Aug 2023 23:52:48 -0700 (PDT) Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-d6b1025fc7aso3588788276.3 for ; Mon, 28 Aug 2023 23:52:47 -0700 (PDT) X-Received: by 2002:a25:32c5:0:b0:d5c:4d20:6245 with SMTP id y188-20020a2532c5000000b00d5c4d206245mr28028584yby.21.1693291967022; Mon, 28 Aug 2023 23:52:47 -0700 (PDT) MIME-Version: 1.0 References: <10cbcb8a65639f88e7eeb503fd02df172bc46a07.camel@physik.fu-berlin.de> <80a52487-3105-ed5b-a1eb-ec1a0689ef21@linux-m68k.org> <751c83150533b701d66ac24c8fe81863cf5eab98.camel@aura-online.co.uk> <67BE11AC-6C14-441B-BA9C-B405C3783886@arcor.de> In-Reply-To: <67BE11AC-6C14-441B-BA9C-B405C3783886@arcor.de> From: Geert Uytterhoeven Date: Tue, 29 Aug 2023 08:52:34 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Tuple and changes for m68k with -malign-int To: Richard Cc: debian-68k@lists.debian.org, James Le Cuirot , Finn Thain , John Paul Adrian Glaubitz , libc-help@sourceware.org, linux-m68k Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Richard, On Mon, Aug 28, 2023 at 10:17=E2=80=AFPM Richard wrote= : > On August 28, 2023 11:26:58 AM UTC, Richard wrote: > >On August 28, 2023 7:00:07 AM UTC, Geert Uytterhoeven wrote: > >>On Sun, Aug 27, 2023 at 11:36=E2=80=AFAM James Le Cuirot > >> wrote: > >>> On Sun, 2023-08-27 at 10:46 +1000, Finn Thain wrote: > >>Perhaps we need a new compiler warning: "hole in structure due to > >>non-natural alignment, please consider adding explicit padding"? > > > >Sounds reasonable but I am afraid in 99% of cases this would be complete= ly irrelevant and not break anything so the acceptance would be pretty low. > > On a second thought, that warning might get some acceptance if it is form= ulated slightly differently.. making it more clear that the way the struct = is arranged will waste memory in addition to creating potential portability= problems? It will not always waste memory, only if some members can be moved into holes. Anyway, not wasting memory is merely an optimization. Creating portability problems is a bug, Gr{oetje,eeting}s, Geert --=20 Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k= .org In personal conversations with technical people, I call myself a hacker. Bu= t when I'm talking to journalists I just say "programmer" or something like t= hat. -- Linus Torvalds