OSDN Git Service

(fixup_var_refs_1, case ZERO_EXTRACT): Don't call fixup_memory_subreg
[pf3gnuchains/gcc-fork.git] / gcc / libgcc1-test.c
index 43250a9..977b9c7 100644 (file)
@@ -6,7 +6,10 @@
 int foo ();
 double dfoo ();
 
-main ()
+/* We don't want __main here because that can drag in atexit (among other
+   things) which won't necessarily exist yet.  */
+
+main_without__main ()
 {
   int a = foo (), b = foo ();
   unsigned int au = foo (), bu = foo ();
@@ -87,3 +90,14 @@ dfoo ()
   return table[idx++];
 }
 
+/* Provide functions that some versions of the linker use to default
+   the start address if -e symbol is not used, to avoid the warning
+   message saying the start address is defaulted.  */
+extern void start() __asm__("start");
+extern void _start() __asm__("_start");
+extern void __start() __asm__("__start");
+
+void start() {}
+void _start() {}
+void __start() {}
+void mainCRTStartup() {}