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 ESMTP id 6C6954BAE7E9 for ; Wed, 18 Mar 2026 01:44:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6C6954BAE7E9 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine 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 6C6954BAE7E9 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=1773798251; cv=none; b=LCXBArGZv9E4fsJJxd6UaKPzUxcToJzML2dgtqAsRY09kHUG/u8sA3FXmrUbYo3QaeKUULdw4NjRkwI/r5CfjnQFcMdCTEOgyBdYPoRhPw1lr5NjpSgfPywTdahDLnQMLg6oCn/PWeFDa8hhlKAilDXVXZV4wxL2vYkcLi8FhF4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1773798251; c=relaxed/simple; bh=xyn9reigRgZEBRJXBUG3xTVBQTrgWLp3boBpIs0w1Kw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=rsyxhJef28WX7XHWUDfFc+p4z/WZz1hvz469/BLTvB1LWy3/GovjCFZDIFzNTc3qT50mztf14oZ5V1IrMrQVZj+LFKs5zhCq+emOJGYvnVnEJ/0LJnNhlVSPejZXdfKqfqoxPNuxPIJAYFAbb8RHbkbztIHmTjm3loQbpu1GZCc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C6954BAE7E9 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=VK0pwu+c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1773798251; 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; bh=3F2GTEEiHKdinoJLB1tqPkIcwO814hLz44q9vBHY/BM=; b=VK0pwu+cbExwqdS3qeT8B08KJHpuommQOVZLQ3zv5V3huObSBn4FtQKfv/arJkvhtuli6s H0OVklaSjEULC+XdQIb8pt+3EAR3xQbb4bE0EDPf7Ing1i3OIHy5W+TKyQIhXOKoP8bhuY RpHcsbRWPlbFy7kaia4Zm7P/Ymasd5o= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-97-22d8Ij1qN2yv7TQ6CncQCQ-1; Tue, 17 Mar 2026 21:44:05 -0400 X-MC-Unique: 22d8Ij1qN2yv7TQ6CncQCQ-1 X-Mimecast-MFC-AGG-ID: 22d8Ij1qN2yv7TQ6CncQCQ_1773798244 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3A4FD18005BF; Wed, 18 Mar 2026 01:44:04 +0000 (UTC) Received: from greed.delorie.com (unknown [10.22.88.25]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D6ADE19560AB; Wed, 18 Mar 2026 01:44:03 +0000 (UTC) Received: from greed.delorie.com.redhat.com (localhost [127.0.0.1]) by greed.delorie.com (8.16.1/8.16.1) with ESMTP id 62I1i1nI1647091; Tue, 17 Mar 2026 21:44:02 -0400 From: DJ Delorie To: Paul Eggert Cc: libc-alpha@sourceware.org, eggert@cs.ucla.edu Subject: Re: [PATCH 1/2] doc: document max_align_t effect on ABI In-Reply-To: <20260315203255.123865-2-eggert@cs.ucla.edu> (message from Paul Eggert on Sun, 15 Mar 2026 13:32:40 -0700) Date: Tue, 17 Mar 2026 21:44:01 -0400 Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 1D_v2TZM8pRWDm248Rn1vTLczTuoz2J9m2swzNpsueE_1773798244 X-Mimecast-Originator: redhat.com Content-Type: text/plain 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_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_PASS,SPF_NONE,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org List-Id: Paul Eggert writes: > -@end deftp Elsewhere in the manual, it seems that the rule is that text defining the type goes inside the @deftp, and text describing how to use it goes outside it. Since @deftp text is indented (in pdf at least), we should be consistent here. See the first page or so of the Input/Output on Streams chapter. However, given the rest of the text in this section, I don't think it matters which way you choose. > +Code that uses @code{max_align_t} should take into account the > +variable alignment of the type. This is a slightly confusing wording, but only because we don't think of types being aligned, just the objects of that type being aligned, and "variable" could mean something different than "changing". A type imposes an alignment, it doesn't "have" one because a type doesn't occupy memory. Perhaps "should not rely on its alignment being constant for any given platform." ? > +For example, it is unwise for a public interface to rely on @code{max_align_t}, > +as the interface's ABI can change if a different compiler defines > +@code{max_align_t} differently. > + This part is fine. I don't feel strongly enough about any of the above to hold this back as-is though, if you don't feel like changing it. Reviewed-by: DJ Delorie