OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [lto/] [20081222_1.c] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
#include "20081222_0.h"
2
 
3
#define ASMNAME(cname)  ASMNAME2 (__USER_LABEL_PREFIX__, cname)
4
#define ASMNAME2(prefix, cname) STRING (prefix) cname
5
#define STRING(x)    #x
6
 
7
/* Actually, call "x" "INT_X", and make it hidden.  */
8
extern __typeof (x) x
9
        __asm__ (ASMNAME ("INT_x"))
10
        __attribute__ ((__visibility__ ("hidden")));
11
 
12
int x ()
13
{
14
  return 7;
15
}
16
 
17
/* Make an externally-visible symbol "X" that's an alias for INT_x.  */
18
extern __typeof (x) EXT_x
19
        __asm__ (ASMNAME ("x"))
20
        __attribute__ ((__alias__ ("INT_x")));

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.