From 0505d8724fb62f09ecc70518f3ad90a1071d49bb Mon Sep 17 00:00:00 2001 From: Erick Ochoa Date: Mon, 9 Mar 2020 11:58:09 +0100 Subject: Fixes tests --- gcc/testsuite/gcc.dg/ipa/ipa-ea-05-global-escapes-0.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'gcc/testsuite/gcc.dg/ipa/ipa-ea-05-global-escapes-0.c') diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-ea-05-global-escapes-0.c b/gcc/testsuite/gcc.dg/ipa/ipa-ea-05-global-escapes-0.c index 98f43df25e8..cc1c46fc0eb 100644 --- a/gcc/testsuite/gcc.dg/ipa/ipa-ea-05-global-escapes-0.c +++ b/gcc/testsuite/gcc.dg/ipa/ipa-ea-05-global-escapes-0.c @@ -1,12 +1,14 @@ /* { dg-do link } */ -/* { dg-options "-flto -fipa-hello-world -fdump-ipa-hello-world" } */ +/* { dg-options "-flto -fipa-hello-world -fdump-ipa-hello-world" } */ +/* { dg-require-effective-target lto } */ + #include struct astruct_s { _Bool a; _Bool b; _Bool c;}; __attribute__((externally_visible)) struct astruct_s astruct; // This should escape -struct astruct_b { _Bool a; _Bool b; _Bool c;}; -struct astruct_b bstruct; // This should not escape +struct bstruct_s { _Bool a; _Bool b; _Bool c;}; +struct bstruct_s bstruct; // This should not escape int main() { @@ -15,7 +17,7 @@ int main() } -/* { dg-final { scan-ipa-dump "collected,astruct_s" "hello-world" } } */ -/* { dg-final { scan-ipa-dump "variable bstruct is escaping false" "hello-world" } } */ -/* { dg-final { scan-ipa-dump "collected,bstruct_s" "hello-world" } } */ -/* { dg-final { scan-ipa-dump "variable astruct is escaping true" "hello-world" } } */ +/* { dg-final { scan-wpa-ipa-dump "collected,astruct_s" "hello-world" } } */ +/* { dg-final { scan-wpa-ipa-dump "variable bstruct is escaping false" "hello-world" } } */ +/* { dg-final { scan-wpa-ipa-dump "collected,bstruct_s" "hello-world" } } */ +/* { dg-final { scan-wpa-ipa-dump "variable astruct is escaping true" "hello-world" } } */ -- cgit v1.2.3