aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2010-10-11 15:15:09 +0000
committerNick Clifton <nickc@gcc.gnu.org>2010-10-11 15:15:09 +0000
commit40b7ae584b92e8bbeba399490a11db54f1fa4ff1 (patch)
treeec650fd3477d6a2ef14f59919ced61b02c1532b3 /gcc
parent5095da95bda21b0f8e6f8ebeb79618af1f9dab23 (diff)
downloadgcc-40b7ae584b92e8bbeba399490a11db54f1fa4ff1.zip
gcc-40b7ae584b92e8bbeba399490a11db54f1fa4ff1.tar.gz
gcc-40b7ae584b92e8bbeba399490a11db54f1fa4ff1.tar.bz2
pr44197.c: Require visibility support.
* gcc.c-torture/compile/pr44197.c: Require visibility support. Allow for a user label prefix. From-SVN: r165315
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr44197.c12
2 files changed, 16 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c6ab6da..d49e1ee 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr44197.c b/gcc/testsuite/gcc.c-torture/compile/pr44197.c
index 79f5421..9c2912f 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr44197.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr44197.c
@@ -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[] = {
};