aboutsummaryrefslogtreecommitdiff
path: root/glibc
diff options
context:
space:
mode:
authorDarius Rad <darius@bluespec.com>2015-02-08 16:50:27 -0500
committerDarius Rad <darius@bluespec.com>2015-02-09 08:58:43 -0500
commitca9c71c460dae5747dcbf353eb84b16d2d96d6fb (patch)
treecbe28a3c1879c648e8afe44736a5b9fb3dcea85b /glibc
parentf70c0dcba4d9878723d4c65b6fef6cc0d1641924 (diff)
downloadriscv-gnu-toolchain-ca9c71c460dae5747dcbf353eb84b16d2d96d6fb.zip
riscv-gnu-toolchain-ca9c71c460dae5747dcbf353eb84b16d2d96d6fb.tar.gz
riscv-gnu-toolchain-ca9c71c460dae5747dcbf353eb84b16d2d96d6fb.tar.bz2
glibc: Allow the prefix riscv- as an alias for riscv64-.
This permits avoiding a misleading architecture prefix when building a toolchain that support both RV32 and RV64. This makes glibc consistent with binutils and gcc with respect to the riscv- target. The target riscv- is identical to riscv64-, i.e., RV64 is the default.
Diffstat (limited to 'glibc')
-rw-r--r--glibc/sysdeps/riscv/preconfigure8
1 files changed, 4 insertions, 4 deletions
diff --git a/glibc/sysdeps/riscv/preconfigure b/glibc/sysdeps/riscv/preconfigure
index 4e8364a..5863d2d 100644
--- a/glibc/sysdeps/riscv/preconfigure
+++ b/glibc/sysdeps/riscv/preconfigure
@@ -1,5 +1,8 @@
case "$machine" in
-riscv64*)
+riscv32*) base_machine=riscv machine=riscv/rv32
+ machine=$machine/$config_machine
+ ;;
+riscv*)
case "$CC $CFLAGS $CPPFLAGS " in
*" -m32 "*) riscv_cc_abi=32 ;;
*" -m64 "*) riscv_cc_abi=64 ;;
@@ -22,7 +25,4 @@ riscv64*)
CPPFLAGS="$CPPFLAGS -m$riscv_config_abi"
fi
;;
-riscv*) base_machine=riscv machine=riscv/rv32
- machine=$machine/$config_machine
- ;;
esac