From nobody Fri Nov 7 00:44:59 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1544629518052762.927174968221; Wed, 12 Dec 2018 07:45:18 -0800 (PST) Received: from localhost ([::1]:45668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX6hI-0001nS-Jj for importer@patchew.org; Wed, 12 Dec 2018 10:45:16 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX6Mh-0000zp-8t for qemu-devel@nongnu.org; Wed, 12 Dec 2018 10:24:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gX6Mf-0000PQ-5v for qemu-devel@nongnu.org; Wed, 12 Dec 2018 10:23:59 -0500 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:39680) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gX6Me-0000Oa-RQ for qemu-devel@nongnu.org; Wed, 12 Dec 2018 10:23:57 -0500 Received: by mail-wr1-x42b.google.com with SMTP id t27so18088015wra.6 for ; Wed, 12 Dec 2018 07:23:56 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id u10sm15878859wrr.33.2018.12.12.07.23.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Dec 2018 07:23:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZpZtbMIXQeSgbr1hHQ6fPpSh6Rxi0yZVjHpkTvTLbvc=; b=F1tD0vss4IC8RazcxZKERWtaR9HqN0q9Hl6ScMdQIlXsbdtX2pBM17kL9YrM0NmWLO VZ6XSDgI5+gB8+wvPbIw3Lnc9O064XpWhz/c4hmL4AhrhEe0350AkiJR0e+YH1kk7qhn EaB8W7q4iYughyVgCbNdSZ2ElVkWzWFvOlwmHYQTOZCx/svx18L1LQZnvY9i9K37mUpx CjaoNxImXxzkPrDQwntEUPt0JabJinCJ//WoYqotmqxE3LuPGfecB0pTjPgWj+oKc0HM Js3DI73ZJ0wP/cL4GFbLEfTxBulnNcDLJM+rBknk50/COWDNNCkvWLxDeG2xtDKh4zIQ aS5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=ZpZtbMIXQeSgbr1hHQ6fPpSh6Rxi0yZVjHpkTvTLbvc=; b=oQfpydmd0tka6ldMPHFzlDKUS6Q85YUpXhL3FneLVm3Tnj3QthPLlW0DVwLZDRUT+w 2MGvDxZrgWvfhHLW0T69MYDynMAgOfEv+qXFt09UQ4SwEW+SBFuS0R85wrfwNZZ12C/F A8j/LtPTJNtdZYFDDTFVbfGDP2iWaGYcFOhn3Jr5slicn2M9HCaYaf2YEf94VUW+aAW4 58cPPcQiGSOY0vMzAxL6bi+F/FWj7Z2TsUAj5LY7xM+3OIg/KFoMLkdIT5DqyG/07LRl QHvWGLI7B4x4zIzxWdQ9i6/mAofklHinM0DXXKAu5XjJL8mBQiXvp1t+7vIiBsmXeEP1 h+mQ== X-Gm-Message-State: AA+aEWZ0OUU3bFImBwJZBOf4mOKOytbUuzB3DPt0JPniAw9IDOZIe/2N TnEf2zzstBcw25XhihtI6TSs9RWK X-Google-Smtp-Source: AFSGD/XhzMqQ7UppDw0DoLNEq18nPHVvfIEqSJhatzMk4FuUaWkmdbVVNvginf53im4Xj9QFfo9Psg== X-Received: by 2002:a5d:494a:: with SMTP id r10mr18335369wrs.272.1544628235498; Wed, 12 Dec 2018 07:23:55 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 12 Dec 2018 16:22:56 +0100 Message-Id: <1544628195-37728-36-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1544628195-37728-1-git-send-email-pbonzini@redhat.com> References: <1544628195-37728-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42b Subject: [Qemu-devel] [PULL 35/54] configure: Remove old -fno-gcse workaround for GCC 4.6.x and 4.7.[012] X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Thomas Huth Now that we require at least GCC 4.8, we don't need this als workaround for 4.6 and 4.7 anymore. Reviewed-by: Richard Henderson Signed-off-by: Thomas Huth Message-Id: <1543937577-28256-4-git-send-email-thuth@redhat.com> --- Makefile.target | 3 --- configure | 16 ---------------- 2 files changed, 19 deletions(-) diff --git a/Makefile.target b/Makefile.target index 4d56298..44ec4b6 100644 --- a/Makefile.target +++ b/Makefile.target @@ -158,9 +158,6 @@ GENERATED_FILES +=3D hmp-commands.h hmp-commands-info.h =20 endif # CONFIG_SOFTMMU =20 -# Workaround for http://gcc.gnu.org/PR55489, see configure. -%/translate.o: QEMU_CFLAGS +=3D $(TRANSLATE_OPT_CFLAGS) - dummy :=3D $(call unnest-vars,,obj-y) all-obj-y :=3D $(obj-y) =20 diff --git a/configure b/configure index 3e401b7..131eae5 100755 --- a/configure +++ b/configure @@ -1933,21 +1933,6 @@ else QEMU_CFLAGS=3D"$QEMU_CFLAGS -Wno-missing-braces" fi =20 -# Workaround for http://gcc.gnu.org/PR55489. Happens with -fPIE/-fPIC and -# large functions that use global variables. The bug is in all releases of -# GCC, but it became particularly acute in 4.6.x and 4.7.x. It is fixed in -# 4.7.3 and 4.8.0. We should be able to delete this at the end of 2013. -cat > $TMPC << EOF -#if __GNUC__ =3D=3D 4 && (__GNUC_MINOR__ =3D=3D 6 || (__GNUC_MINOR__ =3D= =3D 7 && __GNUC_PATCHLEVEL__ <=3D 2)) -int main(void) { return 0; } -#else -#error No bug in this compiler. -#endif -EOF -if compile_prog "-Werror -fno-gcse" "" ; then - TRANSLATE_OPT_CFLAGS=3D-fno-gcse -fi - if test "$static" =3D "yes" ; then if test "$modules" =3D "yes" ; then error_exit "static and modules are mutually incompatible" @@ -6980,7 +6965,6 @@ echo "LIBS_QGA+=3D$libs_qga" >> $config_host_mak echo "TASN1_LIBS=3D$tasn1_libs" >> $config_host_mak echo "TASN1_CFLAGS=3D$tasn1_cflags" >> $config_host_mak echo "POD2MAN=3D$POD2MAN" >> $config_host_mak -echo "TRANSLATE_OPT_CFLAGS=3D$TRANSLATE_OPT_CFLAGS" >> $config_host_mak if test "$gcov" =3D "yes" ; then echo "CONFIG_GCOV=3Dy" >> $config_host_mak echo "GCOV=3D$gcov_tool" >> $config_host_mak --=20 1.8.3.1