From patchwork Sun Mar 10 16:48:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 1054030 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-497636-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="ovNQJTzZ"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44HRz326Mhz9sBp for ; Mon, 11 Mar 2019 03:49:14 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; q=dns; s=default; b=pWJTQRRDWSiv9d2tt7MYzERQIXhHB1JmsOPwRBAIibprgwBhjq 6oNhB9L0t4hBSHDacQE8gBOb3R6KlOhUIW17KsfaxfrB3rfTyoS3QrrX17f41UcZ jmWv10jdmeE2cn2mm+G9xAnwdIc9lFb37K5ohr93Eaje6mD5fy2OmlIwU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; s= default; bh=TnSG16ipLORjelfF6Nj2tUIqpXY=; b=ovNQJTzZePqAzd0Du+Rg AIXIp0+UKM/xtng7djy2AQUqlQWnYaoKaOYeR1e7s6a2dlaZT2R2BbcXZADCmpQQ xaQ20FA6+kGhHjdGQKGq/lCFBXV9MnniTowdyh3QmPtbQsOd8O3m1ZnNQGY9bkxA IapiItmA70HIFxoBFya3ra0= Received: (qmail 91713 invoked by alias); 10 Mar 2019 16:49:06 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 91698 invoked by uid 89); 10 Mar 2019 16:49:05 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-12.4 required=5.0 tests=AWL, BAYES_05, GIT_PATCH_0, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=sk:i386pc, sk:i386-pc, Center, UD:L X-HELO: smtp.CeBiTec.Uni-Bielefeld.DE Received: from smtp.CeBiTec.Uni-Bielefeld.DE (HELO smtp.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 10 Mar 2019 16:49:03 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 69DD3CA3; Sun, 10 Mar 2019 17:49:01 +0100 (CET) Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id NllbzwBDq6-S; Sun, 10 Mar 2019 17:48:59 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p4FDDBCC7.dip0.t-ipconnect.de [79.221.188.199]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 07F94C98; Sun, 10 Mar 2019 17:48:58 +0100 (CET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Martin =?utf-8?b?TGnFoWth?= Subject: [testsuite, i386] Compile gcc.target/i386/indirect-thunk-extern-7.c with -fjump-tables Date: Sun, 10 Mar 2019 17:48:57 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes gcc.target/i386/indirect-thunk-extern-7.c currently FAILs on every x86 target: +FAIL: gcc.target/i386/indirect-thunk-extern-7.c scan-assembler jmp[ \\t]*__x86_indirect_thunk(_nt|)_(r|e)ax on 32 and 64-bit i386-pc-solaris2.11, on x86_64-pc-linux-gnu also +FAIL: gcc.target/i386/indirect-thunk-extern-7.c scan-assembler mov(?:l|q)[ \\t]*.L[0-9]+\\\\(,% It needs -fjump-tables, just like indirect-thunk-7.c and indirect-thunk-inline-7.c, like so. Tested on i386-pc-solaris2.11 and x86_64-pc-linux-gnu, installed on mainline. Rainer # HG changeset patch # Parent c72e3e3359e351877a747a297aa96e221e490ac9 Compile gcc.target/i386/indirect-thunk-extern-7.c with -fjump-tables diff --git a/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-7.c b/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-7.c --- a/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-7.c +++ b/gcc/testsuite/gcc.target/i386/indirect-thunk-extern-7.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -mno-indirect-branch-register -mfunction-return=keep -mindirect-branch=thunk-extern -fno-pic" } */ +/* { dg-options "-O2 -mno-indirect-branch-register -mfunction-return=keep -mindirect-branch=thunk-extern -fno-pic -fjump-tables" } */ void func0 (void); void func1 (void);