From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id D7ADD384AB57 for ; Tue, 23 Apr 2024 19:03:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D7ADD384AB57 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D7ADD384AB57 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713899032; cv=none; b=w+L+RfaLtGJ7+ZBjt+LXrtWOoDMr43EFWDS66aRoDoNeAJXJA3WJoEi8jQSomQVuqVJgB5wWTQNKu71KvAo6ttU20zp8oxKimTyrsNKcQpNCwaHYsE67HNf6sW7fECTzl75ayMe4z2FqrSP4fEyz51F5oswKgMo5vNCQn+56nQI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713899032; c=relaxed/simple; bh=ujzKQLCX/y5ngsCkNOIg465A083i0UahgnkjSmHqPtE=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=kAeOStpgL9pTBsqt+SlXMxZodrtkjhkxLr9BQ/JTv22RdgpwStNz0KRzMqkOn9I+EGxeKAEi0lPegp0UQcOMshPAMb0Z8U7m1JV8HI6weodwe+alDnANVGiNJvUBVJJTup0M6Y9OISu1GJX1gnmyy/Rhu4NethFE8kfrj05WyZc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713899028; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YClyOXfgdlar8o82IdRd4QHzl02h/eICXgy0AF00Mko=; b=T5W+l7vwDPwipKg9Q1fFYHXvprVoW6fe8rturhw+PoOvSGbYADVr3zYjQUS6ENLU/jSl34 S1C2Qc39jnERH57ZGzP1afRbUGTY4Y2YbVWXQJA7nQi+rNQvTEIeWf55/E8BoFKyFHc5ZI lnMg6+7bzZPblqCwsoWEnumAg1PPlBk= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-351-16shJ9anOz2FUI2C85neSw-1; Tue, 23 Apr 2024 15:03:47 -0400 X-MC-Unique: 16shJ9anOz2FUI2C85neSw-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-343c6a990dbso76146f8f.1 for ; Tue, 23 Apr 2024 12:03:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713899025; x=1714503825; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YClyOXfgdlar8o82IdRd4QHzl02h/eICXgy0AF00Mko=; b=XrKaPCKKgowOzBPPbOtSMijv7reesIhhO8XLykfci+l3iotwRX9U393DxPA373gP8S aGOrEAFh3Z7kXPqmfbpGlS+NpMSS/JxBdDumb2BaxlZ1ayHvW0ohhissG+rnv7CL7nis OBaySfxqlGtbz+fSuPJs1iQ4BJvOgLOKkOUOCFh6dty4qeuMG4phrDIs1k010kNFfEz6 5KtOCNDaSb+yS0YDltK7LRi4pnDdjsrNJMo7QSawSVbyGZ+cyy579ydTvawDhoxrHky9 27jcDRgeYFrCPnUi6lx/0Y/LWh9aRyRhThiJyfYX45wnMUfiomC4ekoBm6AVLSwtFpiG GdAg== X-Forwarded-Encrypted: i=1; AJvYcCUy05XXraW4cvXUzbNXCiMVRK8cumu0/Fka5CI0SBPSZxXwwMpYjlonOdb/0eGNbZp/XfHnp4WMQjrZySvyfz64NxVLesXS8Q== X-Gm-Message-State: AOJu0Yxo+xhvHBRRvSOc/Ey+Axhqu//oRvrgQWOStG8tZlVTqtc2tU0e Isz2SmoP3hlBn3pzn/Dh0Whs2Rk5oQreWeQU9wjp57WqekpH+Fs6MpdoQc/iLodQRjveLUTsRXj kto6YRj3eT5rGPS/k8SqsVWoAW2JKB1Z7EqXi/HUkum9Ae308dY04wuVVKfRAldM= X-Received: by 2002:a5d:5917:0:b0:346:f091:fb75 with SMTP id v23-20020a5d5917000000b00346f091fb75mr188871wrd.33.1713899025651; Tue, 23 Apr 2024 12:03:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHqnKUFX3EkBwren8HPylvXxkJoldadj84PhIGuAzLx107JjuD+g+Bez0/HgriC+aybK0QDGQ== X-Received: by 2002:a5d:5917:0:b0:346:f091:fb75 with SMTP id v23-20020a5d5917000000b00346f091fb75mr188861wrd.33.1713899025288; Tue, 23 Apr 2024 12:03:45 -0700 (PDT) Received: from digraph.polyomino.org.uk (digraph.polyomino.org.uk. [2001:8b0:bf73:93f7::51bb:e332]) by smtp.gmail.com with ESMTPSA id d5-20020a5d6445000000b0034659d971a6sm15214130wrw.26.2024.04.23.12.03.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 12:03:45 -0700 (PDT) Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.95) (envelope-from ) id 1rzLQ0-001woZ-Pu; Tue, 23 Apr 2024 19:03:04 +0000 Date: Tue, 23 Apr 2024 19:03:04 +0000 (UTC) From: Joseph Myers To: Qing Zhao cc: Richard Biener , "uecker@tugraz.at" , Siddhesh Poyarekar , Kees Cook , "gcc-patches@gcc.gnu.org" Subject: Re: [RFC][PATCH v1 1/4] Documentation change In-Reply-To: <56FC97AB-430E-4F39-ABBA-10D749F7AAD3@oracle.com> Message-ID: References: <20240419184317.2138890-1-qing.zhao@oracle.com> <20240419184317.2138890-2-qing.zhao@oracle.com> <74e0a96c-fa13-7fae-85e1-6e9efb28f4e@redhat.com> <56FC97AB-430E-4F39-ABBA-10D749F7AAD3@oracle.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP 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 Tue, 23 Apr 2024, Qing Zhao wrote: > However, I am not very confident on the wording of the doc, is the > current wording good enough for this? Or do you have any suggestion on > how to make it better? I'm not convinced the statement about size (in relation to a structure with the member omitted) is useful for unions the way it is for structures. The structure with the member omitted is a relevant concept for thinking about a structure with a flexible array member (the flexible array member essentially goes after that structure); it's much less relevant for thinking about a union with a flexible array member. (The statement that the size is zero when all members are flexible array members still seems a useful one to make.) -- Joseph S. Myers josmyers@redhat.com