From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 5WM+E2wzhWFcHgAAWB0awg (envelope-from ) for ; Fri, 05 Nov 2021 09:36:44 -0400 Received: by simark.ca (Postfix, from userid 112) id 3ABD91EDF0; Fri, 5 Nov 2021 09:36:44 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (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 simark.ca (Postfix) with ESMTPS id 8AE351E940 for ; Fri, 5 Nov 2021 09:36:43 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F1E95385800B for ; Fri, 5 Nov 2021 13:36:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F1E95385800B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1636119403; bh=0kKNv9qYTl1eA5HoTE0BDD/HV1eWkEipJXhmpRIwg3o=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=koqrlZx/c042JTS+zkMR9eeFxODaSY2G5nwjIYKthkg7NPwv0piCGAJizJgxtJM1j 1w6M8/p2tslkqe3/Ame/0MjcXCr4ebhWtDb876Y/BkEEJG/Mh+xBBeMnE+RVLV1odF J12x3py85ObQTygHf6WCykly+e7d8ZKLcmzPAdEM= Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 1C8133858434 for ; Fri, 5 Nov 2021 13:35:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1C8133858434 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 5154F1FD37; Fri, 5 Nov 2021 13:35:21 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 3146F13A2C; Fri, 5 Nov 2021 13:35:21 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id rO0WChkzhWHMagAAMHmgww (envelope-from ); Fri, 05 Nov 2021 13:35:21 +0000 Subject: Re: [PATCH] [gdb/testsuite] Fix gdb.arch/i386-avx.exp with clang To: Pedro Alves , Andrew Burgess References: <20211104135559.5875-1-tdevries@suse.de> <20211105093300.GG918204@redhat.com> <20211105115404.GA1816063@redhat.com> <8074d4d8-fe21-bccf-3fb6-f4be2ea67f7b@palves.net> <1f6ed2db-5d31-9338-226e-3e1a5a7c225b@suse.de> Message-ID: <4a98d0ce-b473-7a44-f399-3a604a5b2516@suse.de> Date: Fri, 5 Nov 2021 14:35:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Tom de Vries via Gdb-patches Reply-To: Tom de Vries Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 11/5/21 2:20 PM, Pedro Alves wrote: > On 2021-11-05 13:15, Tom de Vries wrote: >> On 11/5/21 1:55 PM, Pedro Alves wrote: >>> On 2021-11-05 12:23, Tom de Vries via Gdb-patches wrote: >>> >>>>> No, but in gdb/testsuite/lib/attribute.h we do setup a compatibility >>>>> macro for 'noclone', so there's definitely precedent for using >>>>> attributes that might not be supported everywhere. >>>>> >>>> >>>> Right, I'm aware of this, but that's a typical case where we have no >>>> portable alternative. >>> >>> We actually do -- _Alignas is standard C11. This fixes the test as well: >>> >>> _Alignas(32) v8sf_t data[] = >>> >> >> I was referring to the noclone, but ok, I was not aware of the _Alignas, >> good to know, thanks. >> >> Anyway, in the latest version this is not relevant anymore, since the >> precise alignment implementation has an extra benefit, as explained in >> the post. >> > > OOC, is that benefit important here? > So, this is the post I mentioned ( https://sourceware.org/pipermail/gdb-patches/2021-November/183183.html ). Well, the benefit is that it prevents accidental overalignment, which is the reason that this problem escaped detection and/or fixing for so long. Without that, I could do a thinko and specify too small an alignment and have the test passing accidentally, only to fail in a different setup. Thanks, - Tom