[testsuite,i386] Compile gcc.target/i386/indirect-thunk-extern-7.c with -fjump-tables

Message ID yddmum2y8sm.fsf@CeBiTec.Uni-Bielefeld.DE
State New
Headers show
Series
  • [testsuite,i386] Compile gcc.target/i386/indirect-thunk-extern-7.c with -fjump-tables
Related show

Commit Message

Rainer Orth March 10, 2019, 4:48 p.m.
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

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


2019-03-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* gcc.target/i386/indirect-thunk-extern-7.c: Add -fjump-tables to
	dg-options.

Patch

# 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);