[committed] Fix test failures that require alias support on hppa*-*-hpux*

Message ID 8c998615-ebc5-d5b9-4be9-5ddbba2bf0d2@bell.net
State New
Headers show
Series
  • [committed] Fix test failures that require alias support on hppa*-*-hpux*
Related show

Commit Message

John David Anglin March 17, 2019, 6:03 p.m.
Committed to trunk.

Dave
-- 
John David Anglin  dave.anglin@bell.net

2019-03-17  John David Anglin  <danglin@gcc.gnu.org>

	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.

Patch

Index: c-c++-common/builtin-has-attribute-3.c
===================================================================
--- c-c++-common/builtin-has-attribute-3.c	(revision 269717)
+++ c-c++-common/builtin-has-attribute-3.c	(working copy)
@@ -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__))
Index: gcc.dg/attr-copy.c
===================================================================
--- gcc.dg/attr-copy.c	(revision 269717)
+++ gcc.dg/attr-copy.c	(working copy)
@@ -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)
Index: gcc.dg/ipa/ipa-icf-39.c
===================================================================
--- gcc.dg/ipa/ipa-icf-39.c	(revision 269717)
+++ gcc.dg/ipa/ipa-icf-39.c	(working copy)
@@ -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" } */