+2003-01-10 Geoffrey Keating <geoffk@apple.com>
+
+ * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
+ (RANLIB_TEST_FOR_TARGET): Delete. Don't pass down to sub-makes.
+ Remove calls.
+ * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
+
Fri Jan 10 22:05:35 CET 2003 Jan Hubicka <jh@suse.cz>
* ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
with weird operands.
2003-01-10 Dale Johannesen <dalej@apple.com>
-
- * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
- parameters. Call check_sibcall_argument_overlap if indicated.
- (check_sibcall_argument_overlap): Add mark_stored_args_map
- parameter. Don't mark parameter area as clobbered if not set.
- (expand_call): Adjust calls to above.
-
- 2003-01-10 Kelley Cook <kelleycook@comcast.net>
+
+ * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
+ parameters. Call check_sibcall_argument_overlap if indicated.
+ (check_sibcall_argument_overlap): Add mark_stored_args_map
+ parameter. Don't mark parameter area as clobbered if not set.
+ (expand_call): Adjust calls to above.
+
+2003-01-10 Kelley Cook <kelleycook@comcast.net>
* configure.in (linker read-only and read-write section mixing):
Squelch some assembler warnings.
echo $(objdir)/../binutils/ranlib ; \
else \
if [ "$(host_canonical)" = "$(target)" ] ; then \
- echo ranlib; \
+ echo $(RANLIB); \
else \
t='$(program_transform_cross_name)'; echo ranlib | sed -e $$t ; \
fi; \
fi`
-RANLIB_TEST_FOR_TARGET = \
- [ -f $(RANLIB_FOR_TARGET) ] \
- || ( [ "$(host_canonical)" = "$(target)" ] \
- && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )
NM_FOR_TARGET = ` \
if [ -f ./nm ] ; then \
echo ./nm ; \
"MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
"MAKEOVERRIDES=" \
"RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
- "RANLIB_TEST_FOR_TARGET=$(RANLIB_TEST_FOR_TARGET)" \
"SHELL=$(SHELL)" \
"exeext=$(exeext)" \
"build_exeext=$(build_exeext)" \
AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" \
CFLAGS="$(CFLAGS) $(WARN_CFLAGS)" \
RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)" \
- RANLIB_TEST_FOR_TARGET="$(RANLIB_TEST_FOR_TARGET)" \
NM_FOR_TARGET="$(NM_FOR_TARGET)" AWK="$(AWK)" \
LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" \
INCLUDES="$(INCLUDES)" \
AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" \
CFLAGS="$(CFLAGS) $(WARN_CFLAGS)" \
RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)" \
- RANLIB_TEST_FOR_TARGET="$(RANLIB_TEST_FOR_TARGET)" \
NM_FOR_TARGET="$(NM_FOR_TARGET)" AWK="$(AWK)" \
LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" \
INCLUDES="$(INCLUDES)" \
# Install the library.
install-libgcc: libgcc.mk libgcc.a installdirs
- if $(RANLIB_TEST_FOR_TARGET); then \
- r_f_t=$(RANLIB_FOR_TARGET); \
- else \
- r_f_t=: ; \
- fi; \
$(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
BUILD_PREFIX="$(BUILD_PREFIX)" BUILD_PREFIX_1="$(BUILD_PREFIX_1)" \
AR_FOR_TARGET="$(AR_FOR_TARGET)" \
AR_CREATE_FOR_TARGET="$(AR_CREATE_FOR_TARGET)" \
AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" \
CFLAGS="$(CFLAGS) $(WARN_CFLAGS)" \
- RANLIB_TEST_FOR_TARGET="$(RANLIB_TEST_FOR_TARGET)" \
NM_FOR_TARGET="$(NM_FOR_TARGET)" AWK="$(AWK)" \
LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" \
INCLUDES="$(INCLUDES)" \
LIB1ASMSRC='$(LIB1ASMSRC)' \
MAKEOVERRIDES= \
INSTALL_DATA="$(INSTALL_DATA)" \
- RANLIB_FOR_TARGET="$$r_f_t" \
+ RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)" \
DESTDIR="$(DESTDIR)" \
libsubdir="$(libsubdir)" \
slibdir="$(slibdir)" \
# Install multiple versions of libgcc.a.
install-multilib: stmp-multilib installdirs
- if $(RANLIB_TEST_FOR_TARGET); then \
- r_f_t=$(RANLIB_FOR_TARGET); \
- else \
- r_f_t=: ; \
- fi; \
$(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
BUILD_PREFIX="$(BUILD_PREFIX)" BUILD_PREFIX_1="$(BUILD_PREFIX_1)" \
AR_FOR_TARGET="$(AR_FOR_TARGET)" \
AR_CREATE_FOR_TARGET="$(AR_CREATE_FOR_TARGET)" \
AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" \
CFLAGS="$(CFLAGS) $(WARN_CFLAGS)" \
- RANLIB_TEST_FOR_TARGET="$(RANLIB_TEST_FOR_TARGET)" \
NM_FOR_TARGET="$(NM_FOR_TARGET)" AWK="$(AWK)" \
LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)" \
INCLUDES="$(INCLUDES)" \
LIB1ASMSRC='$(LIB1ASMSRC)' \
MAKEOVERRIDES= \
INSTALL_DATA="$(INSTALL_DATA)" \
- RANLIB_FOR_TARGET="$$r_f_t" \
+ RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)" \
DESTDIR="$(DESTDIR)" \
libsubdir="$(libsubdir)" \
slibdir="$(slibdir)" \
-if [ -f collect-ld$(exeext) ] ; then (cd stage1 && $(LN_S) ../collect-ld$(exeext) .) ; else true ; fi
-rm -f stage1/libgcc.a stage1/libgcc_eh.a
-cp libgcc.a stage1
- -if $(RANLIB_TEST_FOR_TARGET) ; then \
- $(RANLIB_FOR_TARGET) stage1/libgcc.a; \
- else true; fi
+ -$(RANLIB_FOR_TARGET) stage1/libgcc.a
-if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage1; \
- if $(RANLIB_TEST_FOR_TARGET) ; then \
$(RANLIB_FOR_TARGET) stage1/libgcc_eh.a; \
- else true; fi; fi
+ fi
-for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
cp stage1/$${f} . ; \
else true; \
-if [ -f collect-ld$(exeext) ] ; then (cd stage2 && $(LN_S) ../collect-ld$(exeext) .) ; else true ; fi
-rm -f stage2/libgcc.a stage2/libgcc_eh.a
-cp libgcc.a stage2
- -if $(RANLIB_TEST_FOR_TARGET) ; then \
- $(RANLIB_FOR_TARGET) stage2/libgcc.a; \
- else true; fi
+ -$(RANLIB_FOR_TARGET) stage2/libgcc.a
-if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage2; \
- if $(RANLIB_TEST_FOR_TARGET) ; then \
$(RANLIB_FOR_TARGET) stage2/libgcc_eh.a; \
- else true; fi; fi
+ fi
-for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
cp stage2/$${f} . ; \
else true; \
-if [ -f collect-ld$(exeext) ] ; then (cd stage3 && $(LN_S) ../collect-ld$(exeext) .) ; else true ; fi
-rm -f stage3/libgcc.a stage3/libgcc_eh.a
-cp libgcc.a stage3
- -if $(RANLIB_TEST_FOR_TARGET) ; then \
- $(RANLIB_FOR_TARGET) stage3/libgcc.a; \
- else true; fi
+ -$(RANLIB_FOR_TARGET) stage3/libgcc.a
-if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage3; \
- if $(RANLIB_TEST_FOR_TARGET) ; then \
$(RANLIB_FOR_TARGET) stage3/libgcc_eh.a; \
- else true; fi; fi
+ fi
-for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
cp stage3/$${f} . ; \
else true; \
-if [ -f collect-ld$(exeext) ] ; then (cd stage4 && $(LN_S) ../collect-ld$(exeext) .) ; else true ; fi
-rm -f stage4/libgcc.a stage4/libgcc_eh.a
-cp libgcc.a stage4
- -if $(RANLIB_TEST_FOR_TARGET) ; then \
- $(RANLIB_FOR_TARGET) stage4/libgcc.a; \
- else true; fi
+ -$(RANLIB_FOR_TARGET) stage4/libgcc.a
-if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage4; \
- if $(RANLIB_TEST_FOR_TARGET) ; then \
$(RANLIB_FOR_TARGET) stage4/libgcc_eh.a; \
- else true; fi; fi
+ fi
-for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
cp stage4/$${f} . ; \
else true; \
#!/bin/sh
# Construct makefile for libgcc.
-# Copyright (C) 2000, 2002 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2002, 2003 Free Software Foundation, Inc.
#
# This file is part of GCC.
echo "${dir}/libgcc.a: $libgcc_a_objs"
echo " -rm -rf ${dir}/libgcc.a"
echo ' $(AR_CREATE_FOR_TARGET)' ${dir}/libgcc.a $libgcc_a_objs
- echo ' if $(RANLIB_TEST_FOR_TARGET) ; then' \\
- echo ' $(RANLIB_FOR_TARGET)' ${dir}/libgcc.a ';' \\
- echo ' else true; fi;'
+ echo ' $(RANLIB_FOR_TARGET)' ${dir}/libgcc.a
if [ "$SHLIB_LINK" ]; then
echo "${dir}/libgcc_eh.a: $libgcc_eh_objs"
echo " -rm -rf ${dir}/libgcc_eh.a"
echo ' $(AR_CREATE_FOR_TARGET)' ${dir}/libgcc_eh.a $libgcc_eh_objs
- echo ' if $(RANLIB_TEST_FOR_TARGET) ; then' \\
- echo ' $(RANLIB_FOR_TARGET)' ${dir}/libgcc_eh.a ';' \\
- echo ' else true; fi;'
+ echo ' $(RANLIB_FOR_TARGET)' ${dir}/libgcc_eh.a
if [ -z "$SHLIB_MULTILIB" ]; then
if [ "$dir" = . ]; then