From 2e81e6e929f10ea2d404c254366f060a8e826041 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Tue, 8 Jan 2019 09:15:34 +0000 Subject: [PATCH] testsuite - Require alias support for three tests. 2019-01-08 Iain Sandoe gcc/testsuite/ * gcc.dg/Wmissing-attributes.c: Require alias support. * gcc.dg/attr-copy-2.c: Likewise. * gcc.dg/attr-copy-5.c: Likewise. From-SVN: r267673 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/Wmissing-attributes.c | 1 + gcc/testsuite/gcc.dg/attr-copy-2.c | 1 + gcc/testsuite/gcc.dg/attr-copy-5.c | 1 + 4 files changed, 9 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 552ba4dd977..0bd59d5caa6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-01-08 Iain Sandoe + + * gcc.dg/Wmissing-attributes.c: Require alias support. + * gcc.dg/attr-copy-2.c: Likewise. + * gcc.dg/attr-copy-5.c: Likewise. + 2019-01-08 Jonathan Wakely Jakub Jelinek diff --git a/gcc/testsuite/gcc.dg/Wmissing-attributes.c b/gcc/testsuite/gcc.dg/Wmissing-attributes.c index 2a981828a29..049a4c095bd 100644 --- a/gcc/testsuite/gcc.dg/Wmissing-attributes.c +++ b/gcc/testsuite/gcc.dg/Wmissing-attributes.c @@ -1,5 +1,6 @@ /* PR middle-end/81824 - Warn for missing attributes with function aliases { dg-do compile } + { dg-require-alias "" } { dg-options "-Wall" } */ #define ATTR(list) __attribute__ (list) diff --git a/gcc/testsuite/gcc.dg/attr-copy-2.c b/gcc/testsuite/gcc.dg/attr-copy-2.c index 39e5f087dea..8564811fc0b 100644 --- a/gcc/testsuite/gcc.dg/attr-copy-2.c +++ b/gcc/testsuite/gcc.dg/attr-copy-2.c @@ -1,6 +1,7 @@ /* PR middle-end/81824 - Warn for missing attributes with function aliases Exercise attribute copy for functions. { dg-do compile } + { dg-require-alias "" } { dg-options "-O2 -Wall" } */ #define Assert(expr) typedef char AssertExpr[2 * !!(expr) - 1] diff --git a/gcc/testsuite/gcc.dg/attr-copy-5.c b/gcc/testsuite/gcc.dg/attr-copy-5.c index b085cf968ac..24cd6e7aa7b 100644 --- a/gcc/testsuite/gcc.dg/attr-copy-5.c +++ b/gcc/testsuite/gcc.dg/attr-copy-5.c @@ -3,6 +3,7 @@ copied. Also verify that copying attribute tls_model to a non-thread variable triggers a warning. { dg-do compile } + { dg-require-alias "" } { dg-options "-Wall" } { dg-require-effective-target tls } */ -- 2.30.2