xref: /freebsd/contrib/llvm-project/llvm/lib/Support/Windows/explicit_symbols.inc (revision a4e5e0106ac7145f56eb39a691e302cabb4635be)
1/* in libgcc.a */
2
3#ifdef HAVE__ALLOCA
4EXPLICIT_SYMBOL(_alloca)
5EXPLICIT_SYMBOL2(alloca, _alloca)
6#endif
7#ifdef HAVE___ALLOCA
8EXPLICIT_SYMBOL(__alloca)
9#endif
10#ifdef HAVE___CHKSTK
11EXPLICIT_SYMBOL(__chkstk)
12#endif
13#ifdef HAVE___CHKSTK_MS
14EXPLICIT_SYMBOL(__chkstk_ms)
15#endif
16#ifdef HAVE____CHKSTK
17EXPLICIT_SYMBOL(___chkstk)
18#endif
19#ifdef HAVE____CHKSTK_MS
20EXPLICIT_SYMBOL(___chkstk_ms)
21#endif
22#ifdef HAVE___MAIN
23EXPLICIT_SYMBOL(__main) // FIXME: Don't call it.
24#endif
25
26#ifdef HAVE___ASHLDI3
27EXPLICIT_SYMBOL(__ashldi3)
28#endif
29#ifdef HAVE___ASHRDI3
30EXPLICIT_SYMBOL(__ashrdi3)
31#endif
32#ifdef HAVE___CMPDI2 // FIXME: unused
33EXPLICIT_SYMBOL(__cmpdi2)
34#endif
35#ifdef HAVE___DIVDI3
36EXPLICIT_SYMBOL(__divdi3)
37#endif
38#ifdef HAVE___FIXDFDI
39EXPLICIT_SYMBOL(__fixdfdi)
40#endif
41#ifdef HAVE___FIXSFDI
42EXPLICIT_SYMBOL(__fixsfdi)
43#endif
44#ifdef HAVE___FIXUNSDFDI
45EXPLICIT_SYMBOL(__fixunsdfdi)
46#endif
47#ifdef HAVE___FIXUNSSFDI
48EXPLICIT_SYMBOL(__fixunssfdi)
49#endif
50#ifdef HAVE___FLOATDIDF
51EXPLICIT_SYMBOL(__floatdidf)
52#endif
53#ifdef HAVE___FLOATDISF
54EXPLICIT_SYMBOL(__floatdisf)
55#endif
56#ifdef HAVE___LSHRDI3
57EXPLICIT_SYMBOL(__lshrdi3)
58#endif
59#ifdef HAVE___MODDI3
60EXPLICIT_SYMBOL(__moddi3)
61#endif
62#ifdef HAVE___UDIVDI3
63EXPLICIT_SYMBOL(__udivdi3)
64#endif
65#ifdef HAVE___UMODDI3
66EXPLICIT_SYMBOL(__umoddi3)
67#endif
68
69/* msvcrt */
70#if defined(_MSC_VER)
71EXPLICIT_SYMBOL2(alloca, _alloca_probe)
72
73#ifdef _M_IX86
74#define INLINE_DEF_FLOAT_SYMBOL(SYM, ARGC) INLINE_DEF_SYMBOL##ARGC(float, SYM)
75INLINE_DEF_FLOAT_SYMBOL(acosf, 1)
76INLINE_DEF_FLOAT_SYMBOL(asinf, 1)
77INLINE_DEF_FLOAT_SYMBOL(atanf, 1)
78INLINE_DEF_FLOAT_SYMBOL(atan2f, 2)
79INLINE_DEF_FLOAT_SYMBOL(ceilf, 1)
80INLINE_DEF_FLOAT_SYMBOL(cosf, 1)
81INLINE_DEF_FLOAT_SYMBOL(coshf, 1)
82INLINE_DEF_FLOAT_SYMBOL(expf, 1)
83INLINE_DEF_FLOAT_SYMBOL(floorf, 1)
84INLINE_DEF_FLOAT_SYMBOL(fmodf, 2)
85INLINE_DEF_FLOAT_SYMBOL(logf, 1)
86INLINE_DEF_FLOAT_SYMBOL(powf, 2)
87INLINE_DEF_FLOAT_SYMBOL(sinf, 1)
88INLINE_DEF_FLOAT_SYMBOL(sinhf, 1)
89INLINE_DEF_FLOAT_SYMBOL(sqrtf, 1)
90INLINE_DEF_FLOAT_SYMBOL(tanf, 1)
91INLINE_DEF_FLOAT_SYMBOL(tanhf, 1)
92
93#undef INLINE_DEF_FLOAT_SYMBOL
94#endif
95
96#endif
97