]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386: testsuite: Adapt fentryname3.c for r14-811 change [PR70150]
authorXi Ruoyao <xry111@xry111.site>
Mon, 6 May 2024 03:39:14 +0000 (11:39 +0800)
committerXi Ruoyao <xry111@xry111.site>
Sat, 10 Aug 2024 16:18:26 +0000 (00:18 +0800)
After r14-811 "call *nop@GOTPCREL(%rip)" is only generated with
-mno-direct-extern-access even if --enable-default-pie.  So the r13-1614
change to this file is not valid anymore.

gcc/testsuite/ChangeLog:

PR testsuite/70150
* gcc.target/i386/fentryname3.c (dg-final): Revert r13-1614
change.

gcc/testsuite/gcc.target/i386/fentryname3.c

index c14a4ebb0cf576087093ee1f11ade2ab6560e573..bd7c997c178f0be5655877c48cfb0bbb7ecc97e0 100644 (file)
@@ -3,8 +3,7 @@
 /* { dg-require-profiling "-pg" } */
 /* { dg-options "-pg -mfentry"  } */
 /* { dg-final { scan-assembler "section.*__entry_loc" } } */
-/* { dg-final { scan-assembler "0x0f, 0x1f, 0x44, 0x00, 0x00" { target nonpic } } } */
-/* { dg-final { scan-assembler "call\t\\*nop@GOTPCREL" { target { ! nonpic } } } } */
+/* { dg-final { scan-assembler "0x0f, 0x1f, 0x44, 0x00, 0x00" } } */
 /* { dg-final { scan-assembler-not "__fentry__" } } */
 
 __attribute__((fentry_name("nop"), fentry_section("__entry_loc")))