Commit Graph

683 Commits (develop)

Author SHA1 Message Date
Rui Huang 37b9dd4d77
Add windows toolchain compile command
./configure --prefix=/opt/kendryte-toolchain --host=i686-w64-mingw32 --with-host=i686-w64-mingw32 --with-cmodel=medany --with-arch=rv64imafc --with-abi=lp64f LDFLAGS="-static" --without-system-zlib
2019-04-12 15:20:44 +08:00
Rui Huang 84ba53e8ff
Run ./contrib/download_prerequisites before make
git clone --recursive https://github.com/kendryte/kendryte-gnu-toolchain
cd kendryte-gnu-toolchain
cd riscv-gcc
./contrib/download_prerequisites
cd ..

make -j16
2019-04-11 19:55:50 +08:00
Rui Huang 7b374acbc1
Add windows build guide in README.md for i686
Must cross-compile under linux using mingw.
2019-04-11 19:51:17 +08:00
Huang Rui 56e0012ed2 Add static-link tip
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-09 17:50:11 +08:00
Huang Rui 289ea18741 Add compile flags to gnu toolchain to remove D extension
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-09 17:35:33 +08:00
Huang Rui b03aa3dd84 Fix building problem on OSX with new isl 0.20
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-03-25 15:47:42 +08:00
sunnycase fbf5538371 Update newlib 2019-02-12 21:01:14 +08:00
sunnycase 2ee4854082 Update gcc 2019-02-12 18:48:04 +08:00
sunnycase 56d683cfb7 Update gcc and newlib 2019-01-29 21:14:30 +08:00
sunnycase 8449398881 Update gcc and newlib 2019-01-24 13:54:29 +08:00
xiangbingj f006380791 update gcc/newlib 2019-01-14 11:26:47 +08:00
sunnycase 9f71ff6aba
Update README.md 2018-11-16 21:33:24 +08:00
sunnycase 68e64588b9 Enable libatomic 2018-11-06 20:18:54 +08:00
sunnycase 6cb96495d3 Add posix thread 2018-10-31 16:13:03 +08:00
sunnycase 9301beee92 Update to gcc 8.2.0 2018-10-23 11:34:46 +08:00
sunnycase 97d460d285 Update riscv-gcc to maix-gcc 2018-04-18 13:32:23 +08:00
sunnycase 1114187113 Bump binutils 2018-04-13 20:12:00 +08:00
sunnycase 04c93f42b8
Update .gitmodules 2018-04-12 20:40:09 +08:00
sunnycase 3c3f5e52a1
Update README.md 2018-04-12 20:16:52 +08:00
sunnycase 5b799a4dcf modify cmodel 2018-04-12 12:12:40 +00:00
sunnycase 5968f39737 remove unused submodules 2018-04-12 10:45:38 +00:00
Jim Wilson 1b80cbe97d
Merge pull request #320 from riscv/expat-not-native
Make linux-native builds work again.
2018-01-31 17:51:30 -08:00
Jim Wilson 2d78afac90 Make linux-native builds work again.
expat is required by cross for OpenOCD support, but not provided for native
builds, so replace BINUTILS_GDB_TARGET_FLAGS with BINUTILS_GDB_NATIVE_FLAGS.
2018-01-26 16:35:36 -08:00
Palmer Dabbelt 7df3261416
Merge pull request #316 from riscv/cc-for-ld-testsuite
Set CC_FOR_TARGET when configuring cross binutils.
2018-01-05 12:22:55 -08:00
Jim Wilson 653f64b16d Set CC_FOR_TARGET when configuring cross binutils.
This is required to make the ld testsuite work correctly, as some tests
require a compiler.
2018-01-05 08:43:16 -08:00
Jim Wilson 5f2ff2723e
Merge pull request #314 from riscv/gdb-expat
Force --with-expat to be enabled for gdb, since OpenOCD requires it.
2018-01-03 10:23:46 -08:00
Jim Wilson 04b525ccad Force --with-expat to be enabled for gdb, since OpenOCD requires it.
Add BINUTILS_GDB_TARGET_FLAGS, init to --with-expat=yes, and pass to all 3 gdb
configure commands.  Update README.md to list expat package names.
2018-01-02 21:57:13 -08:00
Palmer Dabbelt d66c792dfe Bump binutils
248124ac2e RISC-V: Add missing privileged spec registers.
bee792f83a RISC-V: Add compressed instruction hints, and a few misc cleanups.
7d895b6f4c Add missing RISC-V fsrmi and fsflagsi instructions.
04d33e4a83 Objcopy interleave fails if section address not multiple of interleave.
71a8fbb5aa Really fix riscv shared library __global_pointer$ problem.
355497b4a7 Riscv shared libraries should not export __global_pointer$.
bfd4dc4363 Fix for texinfo 4.8.
caf839a4a4 Update and clean up RISC-V gas documentation.
df726395c9 Give Palmer co-credit for last patch.
0362ab46db Fix riscv malloc error on small alignment after norvc.
3adcc16f76 Merge pull request #126 from riscv/native-gdb
be4ba40749 Make native gdb builds work.
2017-12-31 13:25:00 -08:00
Jim Wilson e2b809a359
Merge pull request #310 from riscv/relsrcdir-fix
Fix relsrcdir problem that breaks regression Makefile.
2017-12-26 12:45:21 -08:00
Jim Wilson 3211aa154f Fix relsrcdir problem that breaks regression Makefile.
Rename to mayberelsrcdir, and handle both cases where it can be relative
or absolute when setting gccsrcdir.
2017-12-22 18:21:52 -08:00
Palmer Dabbelt 691e4e8262
Merge pull request #302 from zongbox/master
Add enable-obsolete-rpc option for glibc
2017-12-21 10:51:45 -08:00
Palmer Dabbelt 0ee6a5e24d
Merge pull request #307 from timsifive/gdb
Bump gdb to support XML target description
2017-12-20 16:47:46 -08:00
Tim Newsome 5006ecaff3 Bump gdb to support XML target description 2017-12-20 12:10:26 -08:00
Jim Wilson 12e85f5f70
Merge pull request #305 from riscv/clean-nano
Make clean remove nano build artifacts.
2017-12-19 19:40:15 -08:00
Jim Wilson 24662ebbe2 Make clean remove nano build artifacts.
* Makefile.in (clean): Add install-newlib-nano dir.
2017-12-19 15:33:18 -08:00
Jim Wilson bb18795aa6
Merge pull request #304 from riscv/msys2-relsrc
Fix some msys2 (Windows) build failures.
2017-12-19 15:22:25 -08:00
Jim Wilson 31c3657236 Fix some msys2 (Windows) build failures.
* Makefile.in (relsrcdir): New.
	(stamps/build-gcc-linux-stage1, stamps/build-gcc-linux-stage2)
	(stamps/build-gcc-newlib-stage1, stamps/build-gcc-newlib/stage2): Pass
	--src to configure set from relsrcdir.
2017-12-19 11:38:04 -08:00
Zong Li ed957ade26 Add enable-obsolete-rpc option for glibc
Enable this option to build the obsolete RPC implementation.
Some projects still uses these headers like: LTP, Busybox and so on.
2017-12-19 17:18:32 +08:00
Palmer Dabbelt 4ea02c125c
Merge pull request #295 from riscv/jimw-newlib-nano
Add newlib nano support.
2017-12-16 17:52:27 -08:00
Palmer Dabbelt acc92a31c9 Whitelist a log1p failure in newlib
This might be an actaul newlib bug: it's not providing a range error
when taking log1p of -1e80, but it appears that this triggered a glibc
bug from a while ago that may have not been fixed in newlib.  I'm not
sure why the bug is just manifesting now (the newlib sources haven't
changed for a long time), but the glibc version has some macros that
force the evaluation of particular floating-point expressions (one of
which produces the range error) that don't exist in newlib.

I'm OK whitelisting the error for the next release, despite it
technically being a regression.  log1p isn't a standard function, and I
doubt embedded users are going to notice.  That said, we should still
fix it.
2017-12-16 10:19:15 -08:00
Palmer Dabbelt b7283fc426 Bump dejagnu, so the tests can run again 2017-12-15 11:58:26 -08:00
Palmer Dabbelt f1f1895437 Ensure the GCC test suite runs 2017-12-15 11:48:24 -08:00
Palmer Dabbelt a7e0eccb28 Bump newlib, to pick up nano.specs 2017-12-14 15:06:15 -08:00
Jim Wilson d45cd89caa Add newlib nano support.
* Makefile.in (NEWLIB_NANO_TARGET_BOARDS): New.
	(build-libc): Change build-newlib to stamps/build-newlib.  Add
	stamps/build-newlib-nano.
	(check-newlib-nano, check-gcc-newlib-nano, check-binutils-newlib-nano)
	(check-gdb-newlib-nano, report-newlib-nano): New.
	(check-dhrystone-linux, check-dhrystone-newlib): Delete first version
	of these rules.
	(build-gcc-newlib-stage1): Use --with-sysroot.
	(build-newlib-nano, merge-newlib-nano): New.
	(build-gcc-newlib-stage2): Depend on merge-newlib-nano.  Use
	--with-sysroot instead of --with-headers.  Also use
	--with-native-system-header-dir.
	(build-dejagnu): Install it.
	(check-gcc-newlib, check-gcc-linux, check-dhrystone-newlib-%)
	(check-dhrystone-linux-%, check-binutils-newlib, check-binutils-linux)
	(check-gdb-newlib, check-gdb-linux): Drop
	DEJAGNULIBS environment variable set.
	(check-gcc-newlib-nano, check-dhrystone-newlib-nano)
	(check-dhrystone-newlib-nano-%, check-binutils-newlib-nano)
	(check-gdb-newlib-nano, report-gcc-newlib-nano)
	(report-dhrystone-newlib-nano, report-binutils-newlib-nano)
	(report-gdb-newlib-nano): New.
	(Makefile): Add rule to rebuild when Makefile.in changes.
	(test/benchmarks/dhrystone/check): Add -specs= option.  Use it in
	$cc commands.
2017-12-14 14:16:46 -08:00
Palmer Dabbelt bf5697a1a6 README Cleanups
https://github.com/riscv/riscv-gnu-toolchain/issues/296
2017-11-16 10:53:07 -08:00
Palmer Dabbelt b4dae89f85 Bump GCC
b731149757b9 RISC-V: Implement movmemsi
605bc7b5e06a RISC-V: Define MUSL_DYNAMIC_LINKER
2017-11-07 14:59:50 -08:00
Palmer Dabbelt 9790f450a1 Bump binutils, for a debug info bug fix
d0176cb1653b RISC-V: Fix riscv g++ testsuite EH failures.
d5feabfac32f RISC-V: Add satp as an alias for sptbr
2017-11-07 14:59:23 -08:00
Palmer Dabbelt 28db62c566 I accidentally commited a staging branch of GCC
This has the same commits as the previous hash, it's just on the proper
branch now (so it's round-tripped through upstream's trunk).  I archived
the old commit.
2017-11-06 10:10:37 -08:00
Palmer Dabbelt 686320c1fe Bump binutils
2f9782d95416 (WIP SIM): Fix jal and jalr
2017-11-04 17:59:39 -07:00
Palmer Dabbelt e561a9432f Bump GCC
b66926e93524 RISC-V: Emit "i" suffix for instructions with immediate operands
a2fc54542b66 RISC-V: If -m[no-]strict-align is not passed, assume its value from -mtune
f34a83e82258 RISC-V: Set SLOW_BYTE_ACCESS=1
7dde69e2c5f7 RISC-V: Handle non-legitimate address in riscv_legitimize_move
1751fbe7b9e8 RISC-V: Use "@minus{}2 GB" instead of "-2 GB" in invoke.texi
6d1f1f891869 RISC-V: Document the medlow and medany code models
2017-11-04 17:51:01 -07:00