Differences From Artifact [4bbf6b87d7]:

To Artifact [cd8b257f7c]:


1
2
3
4

5
6
7
8
9
10
11
1
2
3

4
5
6
7
8
9
10
11



-
+







/* Trampoline test */

/*
 * Copyright 1995-1999, 2001-2002, 2004 Bruno Haible, <bruno@clisp.org>
 * Copyright 1995-1999, 2001-2002, 2004-2006 Bruno Haible, <bruno@clisp.org>
 *
 * This is free software distributed under the GNU General Public Licence
 * described in the file COPYING. Contact the author if you don't have this
 * or can't live with it. There is ABSOLUTELY NO WARRANTY, explicit or implied,
 * on this software.
 */

24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48



49

50
51
52
53
54
55
56
24
25
26
27
28
29
30

31
32






33




34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49







-


-
-
-
-
-
-

-
-
-
-




+
+
+

+







#ifdef __cplusplus
typedef int (*function)(...);
#else
typedef int (*function)();
#endif

#if defined(__i386__)
#if defined(__STDC__) || defined(__GNUC__) || defined(__cplusplus)
int f (void* env, int x)
#else
int f (env, x)
  void* env;
  int x;
#endif
#else
#if defined(__STDC__) || defined(__GNUC__) || defined(__cplusplus)
int f (int x)
#else
int f (x)
  int x;
#endif
#endif
{
#ifdef __GNUC__
#ifdef __m68k__
#ifdef __NetBSD__
register void* env __asm__("a1");
#else
register void* env __asm__("a0");
#endif
#endif
#ifdef __mips__
register void* env __asm__("$2");
#endif
#ifdef __mips64__
register void* env __asm__("$2");
#endif
65
66
67
68
69
70
71
72

73
74
75
76
77
78
79
58
59
60
61
62
63
64

65
66
67
68
69
70
71
72







-
+







#endif
#ifdef __hppa__
register void* env __asm__("%r29");
#endif
#ifdef __arm__
register void* env __asm__("r12");
#endif
#ifdef __rs6000__
#ifdef __powerpc__
#ifdef __NetBSD__
register void* env __asm__("r13");
#else
register void* env __asm__("r11");
#endif
#endif
#ifdef __m88k__