From patchwork Tue Jun 26 10:01:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 10488553 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8F355602D8 for ; Tue, 26 Jun 2018 10:01:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 87D5828868 for ; Tue, 26 Jun 2018 10:01:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C71B2886F; Tue, 26 Jun 2018 10:01:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 341D828868 for ; Tue, 26 Jun 2018 10:01:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933995AbeFZKBa (ORCPT ); Tue, 26 Jun 2018 06:01:30 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:39822 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933870AbeFZKB3 (ORCPT ); Tue, 26 Jun 2018 06:01:29 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9EACB40201BE; Tue, 26 Jun 2018 10:01:28 +0000 (UTC) Received: from thh440s.redhat.com (ovpn-204-33.brq.redhat.com [10.40.204.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id EE82B2166B5D; Tue, 26 Jun 2018 10:01:26 +0000 (UTC) From: Thomas Huth To: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= , Paolo Bonzini , kvm@vger.kernel.org Cc: David Hildenbrand , Laurent Vivier , kvm-ppc@vger.kernel.org Subject: [kvm-unit-tests PULL 3/4] Make the powerpc tests compilable with GCC 8 Date: Tue, 26 Jun 2018 12:01:18 +0200 Message-Id: <1530007279-26545-4-git-send-email-thuth@redhat.com> In-Reply-To: <1530007279-26545-1-git-send-email-thuth@redhat.com> References: <1530007279-26545-1-git-send-email-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Tue, 26 Jun 2018 10:01:28 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Tue, 26 Jun 2018 10:01:28 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'thuth@redhat.com' RCPT:'' Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The new GCC 8.1 is optimizing the code with vector instructions. However, we have not turned on the vector extension in our kvm-unit-test code, so the tests crash when they hit such an instruction. Compile the unit tests without vector extensions to avoid this problem. Reviewed-by: Laurent Vivier Signed-off-by: Thomas Huth --- powerpc/Makefile.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerpc/Makefile.common b/powerpc/Makefile.common index 63dc166..81c5074 100644 --- a/powerpc/Makefile.common +++ b/powerpc/Makefile.common @@ -19,7 +19,7 @@ all: directories $(TEST_DIR)/boot_rom.bin $(tests-all) CFLAGS += -std=gnu99 CFLAGS += -ffreestanding -CFLAGS += -O2 +CFLAGS += -O2 -msoft-float -mabi=no-altivec -mno-altivec CFLAGS += -I $(SRCDIR)/lib -I $(SRCDIR)/lib/libfdt -I lib CFLAGS += -Wa,-mregnames