OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / config.gcc
index 9f70998..5380f88 100644 (file)
@@ -413,6 +413,10 @@ mips*-*-*)
        extra_headers="loongson.h"
        extra_options="${extra_options} g.opt mips/mips-tables.opt"
        ;;
+nios2-*-*)
+       cpu_type=nios2
+       extra_options="${extra_options} g.opt"
+       ;;      
 picochip-*-*)
         cpu_type=picochip
         ;;
@@ -1950,6 +1954,19 @@ mn10300-*-*)
        use_collect2=no
        use_gcc_stdint=wrap
        ;;
+nios2-*-*)
+       tm_file="elfos.h ${tm_file}"
+        tmake_file="${tmake_file} nios2/t-nios2"
+        case ${target} in
+        nios2-*-linux*)
+                tm_file="${tm_file} gnu-user.h linux.h glibc-stdint.h nios2/linux.h "
+                ;;
+       nios2-*-elf*)
+               tm_file="${tm_file} newlib-stdint.h nios2/elf.h"
+               extra_options="${extra_options} nios2/elf.opt"
+               ;;
+        esac
+       ;;
 pdp11-*-*)
        tm_file="${tm_file} newlib-stdint.h"
        use_gcc_stdint=wrap