From patchwork Mon Sep 28 12:58:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 272590 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5EA89C2D0A8 for ; Mon, 28 Sep 2020 13:36:43 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B9C0C21D7F for ; Mon, 28 Sep 2020 13:36:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="BC75JjSZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B9C0C21D7F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:36362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMtKb-0001DZ-HV for qemu-devel@archiver.kernel.org; Mon, 28 Sep 2020 09:36:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMskL-0003VY-Qb for qemu-devel@nongnu.org; Mon, 28 Sep 2020 08:59:13 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:22951) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kMskK-0008QD-1e for qemu-devel@nongnu.org; Mon, 28 Sep 2020 08:59:13 -0400 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601297950; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bU29bJZTMasQeNNiJs3vBtDqyXAGJWgpUOEt6l9XHtE=; b=BC75JjSZ5lYHl9BVMcvNEjY7HRJHJYy7e80hK6W96AFsCh9rzMh6woSnK3Ly8DbufooicU ISK7xq8Zi8lIH4jIMm1Sls0oPf/cqLUp/s/j6le+ovmwijn6jEWmU572QFRICuVHLDoQqZ 36vDqVPB3+NU7/Uolv7IriMxlJGN0ik= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-137-yHvfQN3cNhK-1Wp9JsJlxw-1; Mon, 28 Sep 2020 08:59:09 -0400 X-MC-Unique: yHvfQN3cNhK-1Wp9JsJlxw-1 Received: by mail-wr1-f71.google.com with SMTP id o6so388378wrp.1 for ; Mon, 28 Sep 2020 05:59:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bU29bJZTMasQeNNiJs3vBtDqyXAGJWgpUOEt6l9XHtE=; b=m8JnF6VopScxiiGQYU1xYrIojupkP3PUujCDaRQkJpNK4+VtttjUZARRN0SLFuuYLI viM246eL2y1W0VeLvvPXXwuzrP7lXLjYqQH+KxQ679/IoyyEXFRJ52TUvddhsNJSi4ow kOYFPACkYgFWHLsQ343aMBOxU6V9f6JoVBmVcNx3FgqNbQXQo4anqplpNmfcxMkVAW0v RrKTqq/R7Q/YuIww3QAjtGSF0m/QzM9CqJlHtgwG49nR7aAIzKCnkdNFYyS2qMW/f96C E78Vc0vpD9ZSWc1e57yrFcsmAKEGmwdNvKXloXDArXojUQEPv5kCLKIAtWXNvoyFm2/X L4CQ== X-Gm-Message-State: AOAM532uycOxAxKrufxHqYygQ0LdRD+KWwbfjzn2XYHFmFVVuWvJhEvK NZV1lkpTWwUDVNZNXWK5ulOXOJspcU7TZa0uXMo7IKfehMRQvUTvJMt2ICiglZ/CTbOv0lEsxdw EAZv7tmE40w6XWHY= X-Received: by 2002:a05:6000:124d:: with SMTP id j13mr1702597wrx.182.1601297947712; Mon, 28 Sep 2020 05:59:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHP9xoNeu6jyrNE81jWruhebydXnrMPVCLnP0CexOt3GmUwsUBAtmmDtx1HP6Vjschk7wS7g== X-Received: by 2002:a05:6000:124d:: with SMTP id j13mr1702580wrx.182.1601297947495; Mon, 28 Sep 2020 05:59:07 -0700 (PDT) Received: from localhost.localdomain (74.red-83-53-161.dynamicip.rima-tde.net. [83.53.161.74]) by smtp.gmail.com with ESMTPSA id d19sm996387wmd.0.2020.09.28.05.59.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2020 05:59:06 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 1/3] qemu/compiler: Simplify as all compilers support attribute 'gnu_printf' Date: Mon, 28 Sep 2020 14:58:57 +0200 Message-Id: <20200928125859.734287-2-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200928125859.734287-1-philmd@redhat.com> References: <20200928125859.734287-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Received-SPF: pass client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/28 03:29:35 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.687, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson , Richard Henderson Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Since commit efc6c070aca ("configure: Add a test for the minimum compiler version") the minimum compiler version required for GCC is 4.8, which supports the gnu_printf attribute. We can safely remove the code introduced in commit 9c9e7d51bf0 ("Move macros GCC_ATTR and GCC_FMT_ATTR to common header file"). Signed-off-by: Philippe Mathieu-Daudé --- include/qemu/compiler.h | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h index c76281f3540..207e3bd4feb 100644 --- a/include/qemu/compiler.h +++ b/include/qemu/compiler.h @@ -104,17 +104,14 @@ sizeof(QEMU_BUILD_BUG_ON_STRUCT(x))) #if defined __GNUC__ -# if !QEMU_GNUC_PREREQ(4, 4) - /* gcc versions before 4.4.x don't support gnu_printf, so use printf. */ -# define GCC_FMT_ATTR(n, m) __attribute__((format(printf, n, m))) -# else - /* Use gnu_printf when supported (qemu uses standard format strings). */ -# define GCC_FMT_ATTR(n, m) __attribute__((format(gnu_printf, n, m))) -# if defined(_WIN32) - /* Map __printf__ to __gnu_printf__ because we want standard format strings - * even when MinGW or GLib include files use __printf__. */ -# define __printf__ __gnu_printf__ -# endif + /* Use gnu_printf when supported (qemu uses standard format strings). */ +# define GCC_FMT_ATTR(n, m) __attribute__((format(gnu_printf, n, m))) +# if defined(_WIN32) + /* + * Map __printf__ to __gnu_printf__ because we want standard format strings + * even when MinGW or GLib include files use __printf__. + */ +# define __printf__ __gnu_printf__ # endif #else #define GCC_FMT_ATTR(n, m) From patchwork Mon Sep 28 12:58:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 272599 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BC622C2D0A8 for ; Mon, 28 Sep 2020 13:12:02 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5BB662074A for ; Mon, 28 Sep 2020 13:12:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="e/RjjNIf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5BB662074A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:52334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMswj-0005tI-CW for qemu-devel@archiver.kernel.org; Mon, 28 Sep 2020 09:12:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMskV-0003c2-TP for qemu-devel@nongnu.org; Mon, 28 Sep 2020 08:59:24 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:32392) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kMskU-0008Qr-3i for qemu-devel@nongnu.org; Mon, 28 Sep 2020 08:59:23 -0400 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601297960; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v6PGjLSw3kSK6ARw73eSqwNVErLiz9tgI0uJe1vk+sQ=; b=e/RjjNIfj94AgcK3I2YY3zDtNvmNJ2JD/ZQ0lhpmpyFAzrGnEQl97mi/3vVJzFifXosQtc 25EAGeig3FRd+F7bwba7Dby257PS74M41YBwPwnNBVEGGCN3YvCb9VACBUNPEEIIuzPZm8 FmFtOBXaxI8K3Wprheddyprj7nV9chQ= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-110-BblTGt9xNMe2aEDzd5IUVQ-1; Mon, 28 Sep 2020 08:59:14 -0400 X-MC-Unique: BblTGt9xNMe2aEDzd5IUVQ-1 Received: by mail-wr1-f70.google.com with SMTP id a10so363441wrw.22 for ; Mon, 28 Sep 2020 05:59:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=v6PGjLSw3kSK6ARw73eSqwNVErLiz9tgI0uJe1vk+sQ=; b=g2fSIJBLpCKcz+AyzHSQ27Tuf6+dOj1R7oKxPy3F/F6y7rQA5lhWGfkCJ90VKAEthG suGdzUeaA/BP+1TuAwJzLYSQsezCGo6sm3X7A0Gn0g9jiZybtaPNz68YxuGEQ98C8Snt 8SOsRZKJKSrnHdz/WmfxKcetuKOjxB5r+G+B+Y4zAEK9cjn+cD4ThdbbVVAYU7aDJde5 dyINXMinUq47pA+5CB7loQeCUWtut6oar+jWlXzvM11Qp8FCH5BeDzYiCK6bkikwJlUV qgmT+1WPQbE4NJMlQRrxI7YBOOpaeu1bIUwkbocn5KBl/d7ZM6w4FTR0GkBo0HpyJGLC 0EVw== X-Gm-Message-State: AOAM5321P5vrmAVGMex89HwXtACUDN20q4EuLByYYPpA+Ihg0rwxroKZ CWSC1XCDUdHi9ZwH8e8ksMdZ/ONnX2PgtowgJFwbtB+rcJEO/vzyDcl6WpRC4usr66fcjjzuSuS fSIYaCN6jPlSumKU= X-Received: by 2002:adf:fd12:: with SMTP id e18mr1677850wrr.96.1601297953010; Mon, 28 Sep 2020 05:59:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy51qV0gl8YBMCmmGG7e3hY0ATWkyT+tJ+uJmjlEfM2JwyBMN36ZcpD7qVM0V/bebKJrKynpA== X-Received: by 2002:adf:fd12:: with SMTP id e18mr1677831wrr.96.1601297952846; Mon, 28 Sep 2020 05:59:12 -0700 (PDT) Received: from localhost.localdomain (74.red-83-53-161.dynamicip.rima-tde.net. [83.53.161.74]) by smtp.gmail.com with ESMTPSA id c16sm1502529wrx.31.2020.09.28.05.59.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2020 05:59:12 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 2/3] qemu/atomic: Drop special case for unsupported compiler Date: Mon, 28 Sep 2020 14:58:58 +0200 Message-Id: <20200928125859.734287-3-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200928125859.734287-1-philmd@redhat.com> References: <20200928125859.734287-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Received-SPF: pass client-ip=63.128.21.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/28 03:47:08 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.687, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson , Richard Henderson Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Since commit efc6c070aca ("configure: Add a test for the minimum compiler version") the minimum compiler version required for GCC is 4.8, which has the GCC BZ#36793 bug fixed. We can safely remove the special case introduced in commit a281ebc11a6 ("virtio: add missing mb() on notification"). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Marc-André Lureau --- include/qemu/atomic.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/include/qemu/atomic.h b/include/qemu/atomic.h index c1d211a3519..8f4b3a80fbd 100644 --- a/include/qemu/atomic.h +++ b/include/qemu/atomic.h @@ -241,23 +241,6 @@ #else /* __ATOMIC_RELAXED */ -/* - * We use GCC builtin if it's available, as that can use mfence on - * 32-bit as well, e.g. if built with -march=pentium-m. However, on - * i386 the spec is buggy, and the implementation followed it until - * 4.3 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36793). - */ -#if defined(__i386__) || defined(__x86_64__) -#if !QEMU_GNUC_PREREQ(4, 4) -#if defined __x86_64__ -#define smp_mb() ({ asm volatile("mfence" ::: "memory"); (void)0; }) -#else -#define smp_mb() ({ asm volatile("lock; addl $0,0(%%esp) " ::: "memory"); (void)0; }) -#endif -#endif -#endif - - #ifdef __alpha__ #define smp_read_barrier_depends() asm volatile("mb":::"memory") #endif From patchwork Mon Sep 28 12:58:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 272589 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1CA56C2D0A8 for ; Mon, 28 Sep 2020 13:39:46 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9D7B221D7F for ; Mon, 28 Sep 2020 13:39:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="AYgFVU8J" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9D7B221D7F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:44664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMtNY-0004ni-Ku for qemu-devel@archiver.kernel.org; Mon, 28 Sep 2020 09:39:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54864) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMskW-0003c5-3n for qemu-devel@nongnu.org; Mon, 28 Sep 2020 08:59:24 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:60972) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kMskU-0008Qv-C6 for qemu-devel@nongnu.org; Mon, 28 Sep 2020 08:59:23 -0400 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601297961; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lNLoWuf3VWBMLbz8iFaGpHLsud63gIf1tGgS+8bafOY=; b=AYgFVU8JRVl+5HPS1Dtlc9sB+d0XXxBX4Dt7ZLzQwUinQOaXKU6ZKtNM0U/I7e3fwayq2N XQ4p39nixTqQ1re6y3CG6hp1SwFc9Qd0kNa+ecU0GTdRyJi+vxmj8JAK4qM5aTKx0+bDY0 P/kegB7KDrM/7UnxShE7VNjwGsMb5lg= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-538-NqNJUSGEM5WjiqJ6gcZdQQ-1; Mon, 28 Sep 2020 08:59:19 -0400 X-MC-Unique: NqNJUSGEM5WjiqJ6gcZdQQ-1 Received: by mail-wm1-f70.google.com with SMTP id c204so321396wmd.5 for ; Mon, 28 Sep 2020 05:59:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lNLoWuf3VWBMLbz8iFaGpHLsud63gIf1tGgS+8bafOY=; b=LuEOCphDNLoYYtKNyZYxy3PJPab0blazhIMbYGSJogR8+3EfEraI/vlcNx2Z1jFRML lZ8pPGS9qfHnQPJ3Z7j7nIH+XPpusDECQWCEtJEtNmiQj+nMEXVkv9Ri2zLGOvZw/BQo C93zUeQ1MlJSqKg/gNuGzM7G9aO+TteGvA2PQITKytb2q2HcaDJRPbtQqJhNW+6Rra5p r4aMdvCyGDk335Ju+Ltip6BT6P7k7mNiazseSypP+FDJqmfGa0zhnrR1Q2rfPIjeCUrZ cnFbLneBQGqlsRbmSdNwJj7J1PIwNIrEn44Hfoi3KN3WYg4FxsrSBd6omLvIQJASkGKn 4DUg== X-Gm-Message-State: AOAM531CqDg3JZ5Jm7vzIJw6TyC261KrjZS9Wk7Q2Ui0jo1gkREuFI15 9N4IrjbsEVfyGMD6y1zHBnM21zCzUeECYsordFxnuB+RTbkHXnPOaJWNSw9TSvKW0y4b4yS21on 23yLjhfuXr3OQSEA= X-Received: by 2002:a5d:5602:: with SMTP id l2mr1710765wrv.410.1601297957999; Mon, 28 Sep 2020 05:59:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0Dv01edvAvpJmhJDT9ncCo9xT2GQjpsNpprD/jVFhfQiV2PfWTdwUtIcF6CUX0ulciThpQg== X-Received: by 2002:a5d:5602:: with SMTP id l2mr1710753wrv.410.1601297957839; Mon, 28 Sep 2020 05:59:17 -0700 (PDT) Received: from localhost.localdomain (74.red-83-53-161.dynamicip.rima-tde.net. [83.53.161.74]) by smtp.gmail.com with ESMTPSA id h204sm1227917wmf.35.2020.09.28.05.59.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2020 05:59:17 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 3/3] accel/tcg: Remove special case for GCC < 4.6 Date: Mon, 28 Sep 2020 14:58:59 +0200 Message-Id: <20200928125859.734287-4-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200928125859.734287-1-philmd@redhat.com> References: <20200928125859.734287-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Received-SPF: pass client-ip=63.128.21.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/28 03:47:08 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.687, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson , Richard Henderson Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Since commit efc6c070aca ("configure: Add a test for the minimum compiler version") the minimum compiler version required for GCC is 4.8. We can safely remove the special case for GCC 4.6 introduced in commit 0448f5f8b81 ("cpu-exec: Fix compiler warning (-Werror=clobbered)"). No change for Clang as we don't know. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell --- accel/tcg/cpu-exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c index e10b46283cc..bf149bb824e 100644 --- a/accel/tcg/cpu-exec.c +++ b/accel/tcg/cpu-exec.c @@ -703,7 +703,7 @@ int cpu_exec(CPUState *cpu) /* prepare setjmp context for exception handling */ if (sigsetjmp(cpu->jmp_env, 0) != 0) { -#if defined(__clang__) || !QEMU_GNUC_PREREQ(4, 6) +#if defined(__clang__) /* Some compilers wrongly smash all local variables after * siglongjmp. There were bug reports for gcc 4.5.0 and clang. * Reload essential local variables here for those compilers.