* Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
* mklibgcc.in (libgcc_dep): New, covering general dependencies, but
not unwind code specific ones.
(libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
Remove unwind code specific dependencies.
(libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
Remove gbl-ctors.h.
Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
From-SVN: r87026
+2004-09-02 Jan Beulich <jbeulich@novell.com>
+
+ * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
+ * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
+ not unwind code specific ones.
+ (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
+ Remove unwind code specific dependencies.
+ (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
+ Remove gbl-ctors.h.
+ Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
+ LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
+ * tsystem.h: Declare memcpy and memset when inhibit_libc.
+
2004-09-02 Roman Zippel <zippel@linux-m68k.org>
* combine.c (try_combine): Delay modifying of insns which cannot
2004-09-01 Roger Sayle <roger@eyesopen.com>
* expmed.c (enum alg_code): Remove long unused enumeration values.
- (struct mult_cost): New structure to hold the "score" of a synthetic
+ (struct mult_cost): New structure to hold the "score" of a synthetic
multiply sequence, including both a rtx_cost and a latency field.
(MULT_COST_LESS): New macro to compare mult_cost to a constant.
(CHEAPER_MULT_COST): New macro to compare two mult_costs.
2004-09-01 Richard Henderson <rth@redhat.com>
- * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
- (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
+ * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
+ (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
2004-09-01 Jakub Jelinek <jakub@redhat.com>
# Additional sources to handle exceptions; overridden by targets as needed.
LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
$(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c
-LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h unwind-dw2.h
+LIB2ADDEHDEP = unwind.h unwind-pe.h unwind.inc unwind-dw2-fde.h unwind-dw2.h
# nm flags to list global symbols in libgcc object files.
SHLIB_NM_FLAGS = -pg
BUILD_PREFIX_1="$(BUILD_PREFIX_1)" \
LANGUAGES="$(LANGUAGES)"'
+# Generic dependencies for libgcc
+libgcc_dep='$(CONFIG_H) coretypes.h $(TM_H) $(MACHMODE_H) longlong.h config.status stmp-int-hdrs tsystem.h'
+
# Dependencies for libgcc2.c
-libgcc2_c_dep='stmp-dirs $(srcdir)/libgcc2.c $(CONFIG_H) coretypes.h $(TM_H) $(MACHMODE_H) longlong.h gbl-ctors.h config.status stmp-int-hdrs tsystem.h'" $LIB2ADDEHDEP"
+libgcc2_c_dep='stmp-dirs $(srcdir)/libgcc2.c gbl-ctors.h'" $libgcc_dep"
# Dependencies for libgcov.c
-libgcov_c_dep='stmp-dirs $(srcdir)/libgcov.c $(CONFIG_H) coretypes.h $(TM_H) $(MACHMODE_H) longlong.h gbl-ctors.h config.status stmp-int-hdrs tsystem.h $(srcdir)/gcov-io.h $(srcdir)/gcov-io.c gcov-iov.h'
+libgcov_c_dep='stmp-dirs $(srcdir)/libgcov.c $(srcdir)/gcov-io.h $(srcdir)/gcov-io.c gcov-iov.h'" $libgcc_dep"
# Dependencies for fp-bit.c
fpbit_c_dep='stmp-dirs config.status tsystem.h'
flags="$flags -xassembler-with-cpp"
fi
- echo $out: stmp-dirs $file
+ echo $out: stmp-dirs $file $libgcc_dep
echo " $gcc_compile" $flags -c $file -o $out
done
libgcc2_objs="$libgcc2_objs ${oname}${objext}"
flags="$flags -xassembler-with-cpp"
fi
- echo $out: stmp-dirs $file
+ echo $out: stmp-dirs $file $LIB2ADDEHDEP $libgcc_dep
echo " $gcc_compile" $flags -fexceptions -c $file -o $out
done
if [ "$SHLIB_LINK" ]; then
flags="$flags -xassembler-with-cpp"
fi
- echo $out: stmp-dirs $file
+ echo $out: stmp-dirs $file $libgcc_dep
echo " $gcc_compile" $flags -c $file -o $out
done
libgcc2_st_objs="$libgcc2_st_objs ${oname}${objext}"
extern size_t strlen (const char *);
#endif
+#ifndef memcpy
+extern void *memcpy (void *, const void *, size_t);
+#endif
+
+#ifndef memset
+extern void *memset (void *, int, size_t);
+#endif
+
#else /* ! inhibit_libc */
/* We disable this when inhibit_libc, so that gcc can still be built without
needing header files first. */