Commit 40b7ae58 by Nick Clifton Committed by Nick Clifton

pr44197.c: Require visibility support.

        * gcc.c-torture/compile/pr44197.c: Require visibility support.
        Allow for a user label prefix.

From-SVN: r165315
parent 5095da95
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> 2010-10-10 Richard Guenther <rguenther@suse.de>
* g++.dg/lto/20101010-1_0.C: New testcase. * g++.dg/lto/20101010-1_0.C: New testcase.
......
/* { dg-require-alias "" } */ /* { 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; typedef unsigned short int __uint16_t;
enum enum
{ {
...@@ -12,7 +22,7 @@ typedef __uint16_t __ctype_mask_t; ...@@ -12,7 +22,7 @@ typedef __uint16_t __ctype_mask_t;
extern const __ctype_mask_t *__C_ctype_b; extern const __ctype_mask_t *__C_ctype_b;
extern extern
__typeof (__C_ctype_b) __typeof (__C_ctype_b)
__C_ctype_b __asm__ ("" "__GI___C_ctype_b") __C_ctype_b __asm__ (PREFIX "__GI___C_ctype_b")
__attribute__ ((visibility ("hidden"))); __attribute__ ((visibility ("hidden")));
static const __ctype_mask_t __C_ctype_b_data[] = { static const __ctype_mask_t __C_ctype_b_data[] = {
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment