From 592e4d9459282554601e983a6423b258244864b3 Mon Sep 17 00:00:00 2001 From: Alexander Monakov Date: Wed, 21 Dec 2016 17:33:17 +0300 Subject: [PATCH] nvptx: adjust testcase for 'shared' attribute * gcc.target/nvptx/decl-shared.c (v_common): Add 'common' attribute to explicitly request the desired storage class. From-SVN: r243856 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/nvptx/decl-shared.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b178e7335e8..825aa18cb0c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-12-21 Alexander Monakov + + * gcc.target/nvptx/decl-shared.c (v_common): Add 'common' attribute to + explicitly request the desired storage class. + 2016-12-21 Georg-Johann Lay PR testsuite/52641 diff --git a/gcc/testsuite/gcc.target/nvptx/decl-shared.c b/gcc/testsuite/gcc.target/nvptx/decl-shared.c index 367075cebe2..4aacb4ad03b 100644 --- a/gcc/testsuite/gcc.target/nvptx/decl-shared.c +++ b/gcc/testsuite/gcc.target/nvptx/decl-shared.c @@ -1,5 +1,5 @@ static int v_internal __attribute__((shared,used)); -int v_common __attribute__((shared)); +int v_common __attribute__((shared,common)); int v_extdef __attribute__((shared,nocommon)); extern int v_extdecl __attribute__((shared)); -- 2.30.2