pr44197.c: Require visibility support.
authorNick Clifton <nickc@redhat.com>
Mon, 11 Oct 2010 15:15:09 +0000 (15:15 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Mon, 11 Oct 2010 15:15:09 +0000 (15:15 +0000)
        * gcc.c-torture/compile/pr44197.c: Require visibility support.
        Allow for a user label prefix.

From-SVN: r165315

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr44197.c

index c6ab6da50cd1fecbb55d0d640e163d78201508ad..d49e1ee45b71e23026c0811197cf16a266ecab3b 100644 (file)
@@ -1,3 +1,8 @@
+2010-10-11  Nick Clifton  <nickc@redhat.com>
+
+       * gcc.c-torture/compile/pr44197.c: Require visibility support.
+        Allow for a user label prefix.
+
 2010-10-10  Richard Guenther  <rguenther@suse.de>
 
        * g++.dg/lto/20101010-1_0.C: New testcase.
index 79f5421643f2de2a3918a66bcfff423fa89fb76c..9c2912ffc5d931e5769f86982ea69d22a2cb33b0 100644 (file)
@@ -1,4 +1,14 @@
 /* { dg-require-alias "" } */
+/* { dg-require-visibility "" } */
+
+#ifndef __USER_LABEL_PREFIX__
+#define PREFIX ""
+#else
+#define xstr(s) str(s)
+#define str(s)  #s
+#define PREFIX  xstr(__USER_LABEL_PREFIX__)
+#endif
+
 typedef unsigned short int __uint16_t;
 enum
 {
@@ -12,7 +22,7 @@ typedef __uint16_t __ctype_mask_t;
 extern const __ctype_mask_t *__C_ctype_b;
 extern
 __typeof (__C_ctype_b)
-     __C_ctype_b __asm__ ("" "__GI___C_ctype_b")
+   __C_ctype_b __asm__ (PREFIX "__GI___C_ctype_b")
   __attribute__ ((visibility ("hidden")));
      static const __ctype_mask_t __C_ctype_b_data[] = {
      };