diff mbox

[committed] nvptx: adjust testcase for 'shared' attribute

Message ID alpine.LNX.2.20.13.1612211726070.16232@monopod.intra.ispras.ru
State New
Headers show

Commit Message

Alexander Monakov Dec. 21, 2016, 2:32 p.m. UTC
Hi,

I have applied the following testsuite patch to fix one scan-assembler failure
in the testcase for the 'shared' attribute caused by backend change to enable
-fno-common by default.

Alexander

	* gcc.target/nvptx/decl-shared.c (v_common): Add 'common' attribute to
	explicitly request the desired storage class.
diff mbox

Patch

Index: gcc.target/nvptx/decl-shared.c
===================================================================
--- gcc.target/nvptx/decl-shared.c      (revision 243855)
+++ gcc.target/nvptx/decl-shared.c      (working copy)
@@ -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));