aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/Windows/explicit_symbols.inc
blob: cd56b13c14c37eec55c2123d2df71569e2e56a58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/* in libgcc.a */

#ifdef HAVE__ALLOCA
  EXPLICIT_SYMBOL(_alloca)
  EXPLICIT_SYMBOL2(alloca, _alloca)
#endif
#ifdef HAVE___ALLOCA
  EXPLICIT_SYMBOL(__alloca)
#endif
#ifdef HAVE___CHKSTK
  EXPLICIT_SYMBOL(__chkstk)
#endif
#ifdef HAVE____CHKSTK
  EXPLICIT_SYMBOL(___chkstk)
#endif
#ifdef HAVE___MAIN
  EXPLICIT_SYMBOL(__main) // FIXME: Don't call it.
#endif

#ifdef HAVE___ASHLDI3
  EXPLICIT_SYMBOL(__ashldi3)
#endif
#ifdef HAVE___ASHRDI3
  EXPLICIT_SYMBOL(__ashrdi3)
#endif
#ifdef HAVE___CMPDI2 // FIXME: unused
  EXPLICIT_SYMBOL(__cmpdi2)
#endif
#ifdef HAVE___DIVDI3
  EXPLICIT_SYMBOL(__divdi3)
#endif
#ifdef HAVE___FIXDFDI
  EXPLICIT_SYMBOL(__fixdfdi)
#endif
#ifdef HAVE___FIXSFDI
  EXPLICIT_SYMBOL(__fixsfdi)
#endif
#ifdef HAVE___FIXUNSDFDI
  EXPLICIT_SYMBOL(__fixunsdfdi)
#endif
#ifdef HAVE___FIXUNSSFDI
  EXPLICIT_SYMBOL(__fixunssfdi)
#endif
#ifdef HAVE___FLOATDIDF
  EXPLICIT_SYMBOL(__floatdidf)
#endif
#ifdef HAVE___FLOATDISF
  EXPLICIT_SYMBOL(__floatdisf)
#endif
#ifdef HAVE___LSHRDI3
  EXPLICIT_SYMBOL(__lshrdi3)
#endif
#ifdef HAVE___MODDI3
  EXPLICIT_SYMBOL(__moddi3)
#endif
#ifdef HAVE___UDIVDI3
  EXPLICIT_SYMBOL(__udivdi3)
#endif
#ifdef HAVE___UMODDI3
  EXPLICIT_SYMBOL(__umoddi3)
#endif

/* msvcrt */
#if defined(_MSC_VER)
  EXPLICIT_SYMBOL2(alloca, _alloca_probe)

#ifdef _M_IX86
#define INLINE_DEF_FLOAT_SYMBOL(SYM, ARGC) INLINE_DEF_SYMBOL##ARGC(float, SYM)
  INLINE_DEF_FLOAT_SYMBOL(acosf, 1)
  INLINE_DEF_FLOAT_SYMBOL(asinf, 1)
  INLINE_DEF_FLOAT_SYMBOL(atanf, 1)
  INLINE_DEF_FLOAT_SYMBOL(atan2f, 2)
  INLINE_DEF_FLOAT_SYMBOL(ceilf, 1)
  INLINE_DEF_FLOAT_SYMBOL(cosf, 1)
  INLINE_DEF_FLOAT_SYMBOL(coshf, 1)
  INLINE_DEF_FLOAT_SYMBOL(expf, 1)
  INLINE_DEF_FLOAT_SYMBOL(floorf, 1)
  INLINE_DEF_FLOAT_SYMBOL(fmodf, 2)
  INLINE_DEF_FLOAT_SYMBOL(logf, 1)
  INLINE_DEF_FLOAT_SYMBOL(powf, 2)
  INLINE_DEF_FLOAT_SYMBOL(sinf, 1)
  INLINE_DEF_FLOAT_SYMBOL(sinhf, 1)
  INLINE_DEF_FLOAT_SYMBOL(sqrtf, 1)
  INLINE_DEF_FLOAT_SYMBOL(tanf, 1)
  INLINE_DEF_FLOAT_SYMBOL(tanhf, 1)

  // These were added in VS 2013.
#if (1800 <= _MSC_VER && _MSC_VER < 1900)
  INLINE_DEF_FLOAT_SYMBOL(copysignf, 2)
  INLINE_DEF_FLOAT_SYMBOL(fminf, 2)
  INLINE_DEF_FLOAT_SYMBOL(fmaxf, 2)
#endif
#undef INLINE_DEF_FLOAT_SYMBOL
#endif

#endif