C-SKY port: Configury
authorJojo <jijie_rong@c-sky.com>
Fri, 17 Aug 2018 19:00:25 +0000 (19:00 +0000)
committerSandra Loosemore <sandra@gcc.gnu.org>
Fri, 17 Aug 2018 19:00:25 +0000 (15:00 -0400)
2018-08-17  Jojo  <jijie_rong@c-sky.com>
    Huibin Wang  <huibin_wang@c-sky.com>
    Sandra Loosemore  <sandra@codesourcery.com>
    Chung-Lin Tang  <cltang@codesourcery.com>
    Andrew Jenner  <andrew@codesourcery.com>

C-SKY port: Configury

gcc/
* config.gcc (csky-*-*): New.
* configure.ac: Add csky to targets for dwarf2 debug_line support.
* configure: Regenerated.

contrib/
* config-list.mk (LIST): Add csky-elf and csky-linux-gnu.

Co-Authored-By: Andrew Jenner <andrew@codesourcery.com>
Co-Authored-By: Chung-Lin Tang <cltang@codesourcery.com>
Co-Authored-By: Huibin Wang <huibin_wang@c-sky.com>
Co-Authored-By: Sandra Loosemore <sandra@codesourcery.com>
From-SVN: r263627

contrib/ChangeLog
contrib/config-list.mk
gcc/ChangeLog
gcc/config.gcc
gcc/configure
gcc/configure.ac

index dc493ddd9ecc545ffad433e005439a9885ffd648..97ed2002247ab2df463de6ddc10c1f5523121931 100644 (file)
@@ -1,3 +1,13 @@
+2018-08-17  Jojo  <jijie_rong@c-sky.com>
+           Huibin Wang  <huibin_wang@c-sky.com>
+           Sandra Loosemore  <sandra@codesourcery.com>
+           Chung-Lin Tang  <cltang@codesourcery.com>
+           Andrew Jenner  <andrew@codesourcery.com>
+
+       C-SKY port: Configury
+
+       * config-list.mk (LIST): Add csky-elf and csky-linux-gnu.
+
 2018-07-13  Tom de Vries  <tdevries@suse.de>
 
        * maintainers-verify.sh: New file.
index c3537d298b95c87380aee45751575ab9551fc08b..d9e48a952f2b354b6f05c00a3e392f51161ccb78 100644 (file)
@@ -40,6 +40,7 @@ LIST = aarch64-elf aarch64-linux-gnu aarch64-rtems \
   arm-symbianelf avr-elf \
   bfin-elf bfin-uclinux bfin-linux-uclibc bfin-rtems bfin-openbsd \
   c6x-elf c6x-uclinux cr16-elf cris-elf cris-linux crisv32-elf crisv32-linux \
+  csky-elf csky-linux-gnu \
   epiphany-elf epiphany-elfOPT-with-stack-offset=16 fido-elf \
   fr30-elf frv-elf frv-linux ft32-elf h8300-elf hppa-linux-gnu \
   hppa-linux-gnuOPT-enable-sjlj-exceptions=yes hppa64-linux-gnu \
index f51e30abf217577bec64b8f12c0f3ac609a47303..b1367f752b2180ee1523636795b359b20f03b892 100644 (file)
@@ -1,3 +1,15 @@
+2018-08-17  Jojo  <jijie_rong@c-sky.com>
+           Huibin Wang  <huibin_wang@c-sky.com>
+           Sandra Loosemore  <sandra@codesourcery.com>
+           Chung-Lin Tang  <cltang@codesourcery.com>
+           Andrew Jenner  <andrew@codesourcery.com>
+
+       C-SKY port: Configury
+
+       * config.gcc (csky-*-*): New.
+       * configure.ac: Add csky to targets for dwarf2 debug_line support.
+       * configure: Regenerated.
+
 2018-08-17  David Malcolm  <dmalcolm@redhat.com>
 
        * dump-context.h: Include "dumpfile.h".
index 17ca0cf061508df74a98259fbf9bebaab713dd58..f81cf76ad4fb057b966a84dfb7f10cfeae98e972 100644 (file)
@@ -1278,6 +1278,70 @@ crisv32-*-linux* | cris-*-linux*)
                ;;
        esac
        ;;
+csky-*-*)
+       if test x${with_endian} != x; then
+           case ${with_endian} in
+               big|little)             ;;
+               *)
+                   echo "with_endian=${with_endian} not supported."
+                   exit 1
+                   ;;
+           esac
+       fi
+       if test x${with_float} != x; then
+           case ${with_float} in
+               soft | hard) ;;
+               *) echo
+                   "Unknown floating point type used in --with-float=$with_float"
+                   exit 1
+                   ;;
+           esac
+       fi
+       tm_file="csky/csky.h"
+       md_file="csky/csky.md"
+       out_file="csky/csky.c"
+       tm_p_file="${tm_p_file} csky/csky-protos.h"
+       extra_options="${extra_options} csky/csky_tables.opt"
+
+       if test x${enable_tpf_debug} = xyes; then
+           tm_defines="${tm_defines} ENABLE_TPF_DEBUG"
+       fi
+
+       case ${target} in
+           csky-*-elf*)
+               tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file} csky/csky-elf.h"
+               tmake_file="csky/t-csky csky/t-csky-elf"
+               default_use_cxa_atexit=no
+               ;;
+           csky-*-linux*)
+               tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} csky/csky-linux-elf.h"
+               tmake_file="${tmake_file} csky/t-csky csky/t-csky-linux"
+
+               if test "x${enable_multilib}" = xyes ; then
+                   tm_file="$tm_file ./sysroot-suffix.h"
+                   tmake_file="${tmake_file} csky/t-sysroot-suffix"
+               fi
+
+               case ${target} in
+                   csky-*-linux-gnu*)
+                       tm_defines="$tm_defines DEFAULT_LIBC=LIBC_GLIBC"
+                       ;;
+                   csky-*-linux-uclibc*)
+                       tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC"
+                       default_use_cxa_atexit=no
+                       ;;
+                   *)
+                       echo "Unknown target $target"
+                       exit 1
+                       ;;
+               esac
+               ;;
+           *)
+               echo "Unknown target $target"
+               exit 1
+               ;;
+       esac
+       ;;
 epiphany-*-elf | epiphany-*-rtems*)
        tm_file="${tm_file} dbxelf.h elfos.h"
        tmake_file="${tmake_file} epiphany/t-epiphany"
@@ -3795,6 +3859,10 @@ case "${target}" in
                fi
                ;;
 
+    csky-*-*)
+       supported_defaults="cpu endian float"
+       ;;
+
        arm*-*-*)
                supported_defaults="arch cpu float tune fpu abi mode tls"
                for which in cpu tune arch; do
index 80ac4a3d478a01dce5d362d64ca50a79254a4e20..b7a8e3643778b1f04286b21ffe682bcd62e86acb 100755 (executable)
@@ -27838,7 +27838,7 @@ esac
 # ??? Once 2.11 is released, probably need to add first known working
 # version to the per-target configury.
 case "$cpu_type" in
-  aarch64 | alpha | arc | arm | avr | bfin | cris | i386 | m32c | m68k \
+  aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
   | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
   | tilegx | tilepro | visium | xstormy16 | xtensa)
     insn="nop"
index 4fc851c644edc00f58fea69f92dbc2e9d9e54a08..65f9c92ec8522aa2fc6d4c5853a8ef804ebdb1eb 100644 (file)
@@ -4932,7 +4932,7 @@ esac
 # ??? Once 2.11 is released, probably need to add first known working
 # version to the per-target configury.
 case "$cpu_type" in
-  aarch64 | alpha | arc | arm | avr | bfin | cris | i386 | m32c | m68k \
+  aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
   | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
   | tilegx | tilepro | visium | xstormy16 | xtensa)
     insn="nop"