nvptx: adjust testcase for 'shared' attribute
authorAlexander Monakov <amonakov@ispras.ru>
Wed, 21 Dec 2016 14:33:17 +0000 (17:33 +0300)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Wed, 21 Dec 2016 14:33:17 +0000 (17:33 +0300)
* gcc.target/nvptx/decl-shared.c (v_common): Add 'common' attribute to
explicitly request the desired storage class.

From-SVN: r243856

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/nvptx/decl-shared.c

index b178e7335e8a47134afceaf27bc7ab8a15e9499f..825aa18cb0c4fd1d9b5a1f0045e9220dbbd99f1d 100644 (file)
@@ -1,3 +1,8 @@
+2016-12-21  Alexander Monakov  <amonakov@ispras.ru>
+
+       * gcc.target/nvptx/decl-shared.c (v_common): Add 'common' attribute to
+       explicitly request the desired storage class.
+
 2016-12-21  Georg-Johann Lay  <avr@gjlay.de>
 
        PR testsuite/52641
index 367075cebe29f01861d8ed4ace03a025900170ef..4aacb4ad03b7877441787bb4689a305222eb2f4e 100644 (file)
@@ -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));