diff --git a/gcc/testsuite/gcc.dg/ipa/pr122458.c b/gcc/testsuite/gcc.dg/ipa/pr122458.c index 85f26f15175..afe283b1972 100644 --- a/gcc/testsuite/gcc.dg/ipa/pr122458.c +++ b/gcc/testsuite/gcc.dg/ipa/pr122458.c @@ -1,6 +1,6 @@ /* PR ipa/122458 */ /* { dg-do link } */ -/* { dg-options "-O2" } */ +/* { dg-options "-O2 -no-pie" } */ /* { dg-xfail-if ".dc.a is a gas extension" { ! gas } } */ static int foo (void) { return 0; }; diff --git a/gcc/testsuite/gcc.dg/lto/toplevel-extended-asm-1_0.c b/gcc/testsuite/gcc.dg/lto/toplevel-extended-asm-1_0.c index c1d2fc56b9c..ddceaf6b503 100644 --- a/gcc/testsuite/gcc.dg/lto/toplevel-extended-asm-1_0.c +++ b/gcc/testsuite/gcc.dg/lto/toplevel-extended-asm-1_0.c @@ -1,5 +1,5 @@ /* { dg-lto-do link } */ -/* { dg-lto-options {{-O2 -flto -flto-partition=1to1} } } */ +/* { dg-lto-options {{-O2 -flto -flto-partition=1to1 -no-pie} } } */ void asm_fn(); void asm_fn_used(); diff --git a/gcc/testsuite/gcc.dg/lto/toplevel-simple-asm-1_0.c b/gcc/testsuite/gcc.dg/lto/toplevel-simple-asm-1_0.c index 9d653d4c7a3..7ceb380c525 100644 --- a/gcc/testsuite/gcc.dg/lto/toplevel-simple-asm-1_0.c +++ b/gcc/testsuite/gcc.dg/lto/toplevel-simple-asm-1_0.c @@ -1,5 +1,5 @@ /* { dg-lto-do link } */ -/* { dg-lto-options { {-O2 -flto -flto-toplevel-asm-heuristics -flto-partition=1to1} {-O2 -flto -flto-toplevel-asm-heuristics -flto-partition=max} {-O2 -flto -flto-toplevel-asm-heuristics -flto-partition=cache}} } */ +/* { dg-lto-options { {-O2 -flto -flto-toplevel-asm-heuristics -flto-partition=1to1 -no-pie} {-O2 -flto -flto-toplevel-asm-heuristics -flto-partition=max -no-pie} {-O2 -flto -flto-toplevel-asm-heuristics -flto-partition=cache -no-pie}} } */ void asm_fn(); void asm_fn_used();