]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/config/mips/irix-crtn.asm
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / config / mips / irix-crtn.asm
diff --git a/gcc/config/mips/irix-crtn.asm b/gcc/config/mips/irix-crtn.asm
new file mode 100644 (file)
index 0000000..600576c
--- /dev/null
@@ -0,0 +1,27 @@
+       .abicalls
+       .set    noreorder
+       .set    nomacro
+
+       .section .gcc_init,"ax",@progbits
+#if _MIPS_SIM == _ABIO32
+       lw      $31,0($sp)
+       jr      $31
+       addiu   $sp,$sp,16
+#else
+       ld      $31,0($sp)
+       ld      $28,8($sp)
+       jr      $31
+       daddiu  $sp,$sp,16
+#endif
+
+       .section .gcc_fini,"ax",@progbits
+#if _MIPS_SIM == _ABIO32
+       lw      $31,0($sp)
+       jr      $31
+       addiu   $sp,$sp,16
+#else
+       ld      $31,0($sp)
+       ld      $28,8($sp)
+       jr      $31
+       daddiu  $sp,$sp,16
+#endif