Browse Source

Merge pull request #25 from darius-bluespec/multilib

glibc: Fix multilib support.
pull/27/merge
Palmer Dabbelt 11 years ago
parent
commit
f0addb7a8c
  1. 4
      glibc/sysdeps/riscv/bits/wordsize.h
  2. 8
      glibc/sysdeps/riscv/preconfigure
  3. 19
      glibc/sysdeps/riscv/rv32/bits/wordsize.h

4
glibc/sysdeps/riscv/rv64/bits/wordsize.h → glibc/sysdeps/riscv/bits/wordsize.h

@ -16,5 +16,9 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
#if defined __riscv64
#define __WORDSIZE 64
#define __WORDSIZE_TIME64_COMPAT32 1
#else
#define __WORDSIZE 32
#endif

8
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

19
glibc/sysdeps/riscv/rv32/bits/wordsize.h

@ -1,19 +0,0 @@
/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
#define __WORDSIZE 32
Loading…
Cancel
Save