From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id MRdmMJBSm2BZTgAAWB0awg (envelope-from ) for ; Tue, 11 May 2021 23:59:12 -0400 Received: by simark.ca (Postfix, from userid 112) id 4A5BD1F11C; Tue, 11 May 2021 23:59:12 -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 57D921E813 for ; Tue, 11 May 2021 23:59:11 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8B87A3858034; Wed, 12 May 2021 03:59:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8B87A3858034 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620791950; bh=dD3iCk+CX35wG1P0ZMR9Pkzq3+S7DYex3aNxYO3wQ0Q=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=f+yoHhZJZcz/smN5/JIowYfgcxqHlZW8eP76G6kQ3ELM9vzPdt8A2+s7Q4n6aNpZO wtXTbQTfV4m91gL5FzR2abEBAt7vL5Ufr51/KfKu5pDuh79mclxa52A+utY4rQpVIs MzqG5AzuNwka5DBUOj8ZRSaJgC9ZZX2ApRA+7QiE= Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by sourceware.org (Postfix) with ESMTPS id 8513B3858034 for ; Wed, 12 May 2021 03:59:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8513B3858034 Received: by mail-qk1-x729.google.com with SMTP id f29so8776229qka.0 for ; Tue, 11 May 2021 20:59:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dD3iCk+CX35wG1P0ZMR9Pkzq3+S7DYex3aNxYO3wQ0Q=; b=fVtvuqa3eHKUExHnStwWiG3Xr5ngqbJa4cBAfmNOXctTg0ghcGIs0lwVHqe5H95zXM Ql2sbgzejiyh0CQTTN0+grG1HPKYLabuYgoO7lUCcYrJhitUJgIc/H1n31+0P/nS4cGq gBZ42vbC6yqgyniAIXmANqCxMupPH7F4vrzC8CsOnno0Cc2OfAeaYmQqczCxBvvvyMGv zLPXKAnfrFkocLXEcYjOCJMhXK0iwNYWVWgcYRHg6sEAaWjKngBSGNlXX3j0uV5RBWG5 49/X7SELJ1IdrRmDI+cyX3ehYB74fZBQGRxx2ZXgeCA3sHe4PA2gqGvgsdolkXo5TBH0 nnJQ== X-Gm-Message-State: AOAM533Sd3/MXKVD8WjQ5p9W21o8jRMIuCX9rxrptj1gkGyYQ0XVus6Y IQbKtAL/KJbLXSqO/54Nd6vInW5MowQ8Hw== X-Google-Smtp-Source: ABdhPJwYVqPQEoQpV5t1Z4RV1ndVBUO15Z8Q1x86FHpHHqfsRRJg5UGpPJC0bT52t1bIfdO9R59bCQ== X-Received: by 2002:a37:4284:: with SMTP id p126mr12672217qka.501.1620791947083; Tue, 11 May 2021 20:59:07 -0700 (PDT) Received: from ?IPv6:2804:7f0:4841:40ad:7c06:7676:ea96:dc3? ([2804:7f0:4841:40ad:7c06:7676:ea96:dc3]) by smtp.gmail.com with ESMTPSA id v65sm16450987qkc.125.2021.05.11.20.59.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 May 2021 20:59:06 -0700 (PDT) Subject: Re: [PATCH,v2] [sim] Fix build failure in d10v sim To: gdb-patches@sourceware.org References: <20210510191423.3627307-1-luis.machado@linaro.org> <20210511130743.3672216-1-luis.machado@linaro.org> Message-ID: Date: Wed, 12 May 2021 00:59:04 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed 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: Luis Machado via Gdb-patches Reply-To: Luis Machado Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" On 5/11/21 6:54 PM, Mike Frysinger wrote: > 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 > Pushed with that change. Thanks!