This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Bug in mklibgcc.in ?
- To: gcc at gcc dot gnu dot org
- Subject: Bug in mklibgcc.in ?
- From: Denis Chertykov <denisc at overta dot ru>
- Date: Tue, 9 May 2000 11:53:12 +0400
- Cc: gcc-patches at gcc dot gnu dot org
Fragment from mklibgcc.in:
if [ "$FPBIT" ]; then
for name in $FPBIT_FUNCS; do
for ml in $MULTILIBS; do
dir=`echo ${ml} | sed -e 's/;.*$//'`
flags=`echo ${ml} | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`;
out="libgcc/${dir}/${name}${objext}"
echo $out: $fpbit_c_dep
emit_gcc_compile $out '$(srcdir)/config/fp-bit.c' \
--------------------------------------^^^^^^^^^^^^^^^^
-DFLOAT -DFINE_GRAINED_LIBRARIES $flags -DL$name
done
libgcc2_objs="$libgcc2_objs ${name}${objext}"
done
fi
Is highlighted fragment right ($(srcdir)/config/fp-bit.c) ?
Why path to fp-bit.c has a hard encoded part `config/fp-bit.c' ?
Few targets (avr, arm, ...) uses something like:
fp-bit.c: $(srcdir)/config/fp-bit.c
echo '#define FLOAT' > fp-bit.c
echo '#ifndef __ARMEB__' >> fp-bit.c
echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
echo '#endif' >> fp-bit.c
cat $(srcdir)/config/fp-bit.c >> fp-bit.c
FPBIT = fp-bit.c
^^^^^^^^^^^^^^^^ Is this wrong ?
Tue May 9 11:41:41 2000 Denis Chertykov <denisc@overta.ru>
* mklibgcc.in: Uses $FPBIT as a part of path to fp-bit.c instead
of hard encoded part `config/fp-bit.c'.
diff -c3p gcc/mklibgcc.in.orig egcs/gcc/mklibgcc.in
*** gcc/mklibgcc.in.orig Thu May 4 03:56:03 2000
--- gcc/mklibgcc.in Tue May 9 11:37:26 2000
*************** libgcc1_c_dep='$(srcdir)/libgcc1.c $(CON
*** 106,112 ****
libgcc2_c_dep='$(srcdir)/libgcc2.c $(CONFIG_H) $(MACHMODE_H) longlong.h frame.h gbl-ctors.h config.status stmp-int-hdrs tsystem.h'
# Dependancies for fp-bit.c
! fpbit_c_dep='$(srcdir)/config/fp-bit.c config.status tsystem.h'
#
# Build libgcc1 components.
--- 106,112 ----
libgcc2_c_dep='$(srcdir)/libgcc2.c $(CONFIG_H) $(MACHMODE_H) longlong.h frame.h gbl-ctors.h config.status stmp-int-hdrs tsystem.h'
# Dependancies for fp-bit.c
! fpbit_c_dep='$(srcdir)/'"$FPBIT"' config.status tsystem.h'
#
# Build libgcc1 components.
*************** if [ "$FPBIT" ]; then
*** 205,211 ****
out="libgcc/${dir}/${name}${objext}"
echo $out: $fpbit_c_dep
! emit_gcc_compile $out '$(srcdir)/config/fp-bit.c' \
-DFLOAT -DFINE_GRAINED_LIBRARIES $flags -DL$name
done
libgcc2_objs="$libgcc2_objs ${name}${objext}"
--- 205,211 ----
out="libgcc/${dir}/${name}${objext}"
echo $out: $fpbit_c_dep
! emit_gcc_compile $out '$(srcdir)/'"$FPBIT" \
-DFLOAT -DFINE_GRAINED_LIBRARIES $flags -DL$name
done
libgcc2_objs="$libgcc2_objs ${name}${objext}"