From 712fee7a92daddae3fbe1ed079e431eaab256c60 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Sun, 17 Mar 2019 17:59:03 +0000 Subject: [PATCH] re PR testsuite/89666 (FAIL: gcc.dg/ipa/ipa-icf-39.c scan-ipa-dump-times icf "Unified;" 2) PR testsuite/89666 * c-c++-common/builtin-has-attribute-3.c: Define SKIP_ALIAS on hppa*-*-hpux*. * gcc.dg/attr-copy.c: Require alias support. * gcc.dg/ipa/ipa-icf-39.c: Likewise. From-SVN: r269742 --- gcc/testsuite/ChangeLog | 8 ++++++++ gcc/testsuite/c-c++-common/builtin-has-attribute-3.c | 2 +- gcc/testsuite/gcc.dg/attr-copy.c | 1 + gcc/testsuite/gcc.dg/ipa/ipa-icf-39.c | 1 + 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 905791df7cb..7278ffe47eb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2019-03-17 John David Anglin + + PR testsuite/89666 + * c-c++-common/builtin-has-attribute-3.c: Define SKIP_ALIAS on + hppa*-*-hpux*. + * gcc.dg/attr-copy.c: Require alias support. + * gcc.dg/ipa/ipa-icf-39.c: Likewise. + 2019-03-16 Jakub Jelinek PR fortran/89724 diff --git a/gcc/testsuite/c-c++-common/builtin-has-attribute-3.c b/gcc/testsuite/c-c++-common/builtin-has-attribute-3.c index 5b2e5c7c762..2a59501b9f3 100644 --- a/gcc/testsuite/c-c++-common/builtin-has-attribute-3.c +++ b/gcc/testsuite/c-c++-common/builtin-has-attribute-3.c @@ -2,7 +2,7 @@ { dg-do compile } { dg-options "-Wall -ftrack-macro-expansion=0" } { dg-options "-Wall -Wno-narrowing -Wno-unused-local-typedefs -ftrack-macro-expansion=0" { target c++ } } - { dg-additional-options "-DSKIP_ALIAS" { target *-*-darwin* } } + { dg-additional-options "-DSKIP_ALIAS" { target *-*-darwin* hppa*-*-hpux* } } */ #define ATTR(...) __attribute__ ((__VA_ARGS__)) diff --git a/gcc/testsuite/gcc.dg/attr-copy.c b/gcc/testsuite/gcc.dg/attr-copy.c index 27cd7bc5be6..8bd537acf73 100644 --- a/gcc/testsuite/gcc.dg/attr-copy.c +++ b/gcc/testsuite/gcc.dg/attr-copy.c @@ -1,6 +1,7 @@ /* PR middle-end/81824 - Warn for missing attributes with function aliases Exercise error handling for attribute copy. { dg-do compile } + { dg-require-alias "" } { dg-options "-O2 -Wall" } */ #define ATTR(list) __attribute__ (list) diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-icf-39.c b/gcc/testsuite/gcc.dg/ipa/ipa-icf-39.c index aa7c28706d3..18bd4b0e5be 100644 --- a/gcc/testsuite/gcc.dg/ipa/ipa-icf-39.c +++ b/gcc/testsuite/gcc.dg/ipa/ipa-icf-39.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-alias "" } */ /* { dg-options "-O2 -fdump-ipa-icf -fmerge-all-constants -fdbg-cnt=merged_ipa_icf:1:3" } */ /* { dg-prune-output "dbg_cnt 'merged_ipa_icf' set to 1-3" } */ -- 2.11.4.GIT