enquire: enquire.o $(GCC_PARTS)
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ENQUIRE_LDFLAGS) enquire.o -o $@
enquire.o: $(srcdir)/enquire.c $(GCC_PASSES)
- if [ "$(srcdir)" != "." ]; then rm -f enquire.c; else false; fi
+ -if [ "$(srcdir)" != "." ]; then rm -f enquire.c; else true; fi
-cp $(srcdir)/enquire.c . > /dev/null 2>&1
# Breaking this line caused a problem with one version of GNU make.
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) $(ENQUIRE_CFLAGS) -I. -c enquire.c
print-rtl.o : print-rtl.c $(CONFIG_H) $(RTL_H)
rtlanal.o : rtlanal.c $(CONFIG_H) $(RTL_H)
-varasm.o : varasm.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h \
+varasm.o : varasm.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h defaults.h \
insn-codes.h expr.h hard-reg-set.h regs.h xcoffout.h
function.o : function.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h \
insn-flags.h insn-codes.h expr.h regs.h hard-reg-set.h insn-config.h \
# so that fixinc.svr4 can get at it if necessary.
# If the dirs are the same, this won't do anything.
# Delete file first in case it is read-only
- if [ "$(srcdir)" != "." ]; then rm -f byteorder.h; else false; fi
- -cp $(srcdir)/byteorder.h .
+ -if [ "$(srcdir)" != "." ]; then rm -f byteorder.h; else true; fi
+ -cp $(srcdir)/byteorder.h . > /dev/null 2>&1
# $(libsubdir)/include:
# -if [ -d $(libsubdir)/include ] ; then true ; else mkdir $(libsubdir)/include ; fi
-rm tm.h aux-output.c config.h md
make clean
# You must then run config to set up for compilation.
-
-bootstrap: all force
+bootstrap: force
+# Only build the C compiler for stage1, because that is the only one that
+# we can guarantee will build with the native compiler, and also it is the
+# only thing useful for building stage2.
+ $(MAKE) LANGUAGES=c
$(MAKE) stage1
# This used to define ALLOCA as empty, but that would lead to bad results
# for a subsequent `make install' since that would not have ALLOCA empty.
tree traditional_ptr_type_node;
/* Data type of memcpy. */
tree memcpy_ftype;
+ tree void_ftype_any;
int wchar_type_size;
tree temp;
endlink = tree_cons (NULL_TREE, void_type_node, NULL_TREE);
+ void_ftype_any
+ = build_function_type (void_type_node, 0);
+
double_ftype_double
= build_function_type (double_type_node,
tree_cons (NULL_TREE, double_type_node, endlink));
BUILT_IN_ALLOCA, "alloca");
if (! flag_no_builtin && !flag_no_nonansi_builtin)
{
- tree exit_type;
temp = builtin_function ("alloca",
build_function_type (ptr_type_node,
tree_cons (NULL_TREE,
BUILT_IN_ALLOCA, 0);
/* Suppress error if redefined as a non-function. */
DECL_BUILT_IN_NONANSI (temp) = 1;
- temp = builtin_function ("_exit", exit_type, NOT_BUILT_IN, 0);
+ temp = builtin_function ("_exit", void_ftype_any, NOT_BUILT_IN, 0);
TREE_THIS_VOLATILE (temp) = 1;
TREE_SIDE_EFFECTS (temp) = 1;
/* Suppress error if redefined as a non-function. */
However, honor the -fno-builtin option. */
if (!flag_no_builtin)
{
- tree exit_type;
-
builtin_function ("abs", int_ftype_int, BUILT_IN_ABS, 0);
builtin_function ("fabs", double_ftype_double, BUILT_IN_FABS, 0);
builtin_function ("labs", long_ftype_long, BUILT_IN_LABS, 0);
to avoid spurious "control drops through" warnings. */
/* Don't specify the argument types, to avoid errors
from certain code which isn't valid in ANSI but which exists. */
- temp = builtin_function ("abort",
- build_function_type (void_type_node, 0),
- NOT_BUILT_IN, 0);
+ temp = builtin_function ("abort", void_ftype_any, NOT_BUILT_IN, 0);
TREE_THIS_VOLATILE (temp) = 1;
TREE_SIDE_EFFECTS (temp) = 1;
#if 0
/* Suppress error if redefined as a non-function. */
DECL_BUILT_IN_NONANSI (temp) = 1;
#endif
- exit_type = build_function_type (void_type_node, 0);
- temp = builtin_function ("exit", exit_type, NOT_BUILT_IN, 0);
+ temp = builtin_function ("exit", void_ftype_any, NOT_BUILT_IN, 0);
TREE_THIS_VOLATILE (temp) = 1;
TREE_SIDE_EFFECTS (temp) = 1;
#if 0