~ubuntu-branches/debian/squeeze/ffcall/squeeze

« back to all changes in this revision

Viewing changes to ffcall/callback/trampoline_r/asmsparc.h

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger
  • Date: 2010-06-26 15:29:30 UTC
  • mfrom: (5.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100626152930-c09y01gk3szcnykn
Tags: 1.10+cvs20100619-2
Ship to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Assembly language support for sparc CPU.
2
 
// Bruno Haible 29.5.1999
3
 
 
4
 
#ifdef ASM_UNDERSCORE
5
 
// SunOS4, Linux/a.out
6
 
#define C(entrypoint) _##entrypoint
7
 
#else
8
 
// Solaris, Linux/ELF
9
 
#define C(entrypoint) entrypoint
10
 
#endif
11
 
 
12
 
// When assembly language code is compiled into a shared library, ELF linkers
13
 
// need to know which symbols are functions.
14
 
#if defined(__NetBSD__) || defined(__OpenBSD__)
15
 
#define DECLARE_FUNCTION(name) .type C(name),@function
16
 
#elif defined(__svr4__) || defined(__ELF__)
17
 
// Solaris, Linux/ELF
18
 
// Some preprocessors keep the backslash in place, some don't.
19
 
// Some complain about the # being not in front of an ANSI C macro.
20
 
// Therefore we use a dollar, which will be sed-converted to # later.
21
 
#define DECLARE_FUNCTION(name) .type C(name),$function
22
 
#else
23
 
// SunOS4, Linux/a.out
24
 
#define DECLARE_FUNCTION(name)
25
 
#endif