OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / libgcc / config.host
index d8e7255..6cb1651 100644 (file)
@@ -135,6 +135,9 @@ mips*-*-*)
        cpu_type=mips
        tmake_file=mips/t-mips
        ;;
+nios2*-*-*)
+        cpu_type=nios2
+        ;;
 powerpc*-*-*)
        cpu_type=rs6000
        ;;
@@ -829,6 +832,15 @@ moxie-*-rtems*)
        # Don't use default.
        extra_parts=
        ;;
+nios2-*-linux*)
+        tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc"
+        extra_parts="$extra_parts crti.o crtn.o"
+        md_unwind_header=nios2/linux-unwind.h
+        ;;
+nios2-*-*)
+        tmake_file="$tmake_file nios2/t-nios2 t-fdpbit"
+        extra_parts="$extra_parts crti.o crtn.o"
+        ;;
 pdp11-*-*)
        tmake_file="pdp11/t-pdp11 t-fdpbit"
        ;;