From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id hb3oITb9mmDqRwAAWB0awg (envelope-from ) for ; Tue, 11 May 2021 17:55:02 -0400 Received: by simark.ca (Postfix, from userid 112) id 7B7921F11C; Tue, 11 May 2021 17:55:02 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,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 EA7E31E813 for ; Tue, 11 May 2021 17:55:01 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5843638618BB; Tue, 11 May 2021 21:55:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5843638618BB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620770101; bh=wYmAVHCUdJoaYslm7zjtzhhYaY+LMIXRINPpM+WEv88=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=SIGAdE7mmZSM4j0EN6dmXEXemKXEXX+/KuD8DTBhPzH1tq7NSxN2PrKBnYyFZoGSA 20F2Vq48yf7TDCAcsuty2/A7l8CbPBREq81pN3zfHokjDmliheSNFVVI85wajlMURK BVVfe2ncaUIoFxgu8YEF2RzUlVdqL3iQVocGH9DA= Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 6654F38618BB for ; Tue, 11 May 2021 21:54:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6654F38618BB Received: from vapier (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CC9A0335C60; Tue, 11 May 2021 21:54:55 +0000 (UTC) Date: Tue, 11 May 2021 17:54:54 -0400 To: Luis Machado Subject: Re: [PATCH,v2] [sim] Fix build failure in d10v sim Message-ID: Mail-Followup-To: Luis Machado , gdb-patches@sourceware.org References: <20210510191423.3627307-1-luis.machado@linaro.org> <20210511130743.3672216-1-luis.machado@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210511130743.3672216-1-luis.machado@linaro.org> 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: Mike Frysinger via Gdb-patches Reply-To: Mike Frysinger Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" On 11 May 2021 10:07, Luis Machado wrote: > + /* Make sure we have the right structure for the following memset. */ > + _Static_assert ((uintptr_t) &State == (uintptr_t) &State.regs, > + "&State != &State.regs"); we require C11, so you can include assert.h & use static_assert(). -mike