1 /* This small function uses all the arithmetic operators that
2 libgcc1.c can handle. If you can link it, then
3 you have provided replacements for all the libgcc1.c functions that
4 your target machine needs. */
9 /* We don't want __main here because that can drag in atexit (among other
10 things) which won't necessarily exist yet. */
14 int a
= foo (), b
= foo ();
15 unsigned int au
= foo (), bu
= foo ();
16 float af
= dfoo (), bf
= dfoo ();
17 double ad
= dfoo (), bd
= dfoo ();
47 ddiscard ((double) a
);
49 ddiscard ((float) ad
);
78 static int table
[] = {20, 69, 4, 12};
87 static double table
[] = {20.4, 69.96, 4.4, 202.202};
93 /* Provide functions that some versions of the linker use to default
94 the start address if -e symbol is not used, to avoid the warning
95 message saying the start address is defaulted. */
96 extern void start() __asm__("start");
97 extern void _start() __asm__("_start");
98 extern void __start() __asm__("__start");
100 /* Provide functions that might be needed by soft-float emulation routines. */
106 void mainCRTStartup() {}