From 124866d539681cadf2fce8a41e71a436563bc085 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 12 Sep 2006 07:09:45 +0000 Subject: Default to big endian ARM if "TARGET_BIG_ENDIAN" is defined (& targeting ARM). --- gnu/usr.bin/cc/cc_int/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gnu') diff --git a/gnu/usr.bin/cc/cc_int/Makefile b/gnu/usr.bin/cc/cc_int/Makefile index 5c945c54d0f6..3867181ceb6d 100644 --- a/gnu/usr.bin/cc/cc_int/Makefile +++ b/gnu/usr.bin/cc/cc_int/Makefile @@ -80,6 +80,10 @@ insn-$F.c: ${.OBJDIR}/../cc_tools/gen$F CFLAGS+= -DHAVE_CONFIG_H CFLAGS+= -DTARGET_NAME=\"${target}\" -DIN_GCC +.if ${TARGET_ARCH} == "arm" && defined(TARGET_BIG_ENDIAN) +CFLAGS+= -DTARGET_ENDIAN_DEFAULT=ARM_FLAG_BIG_END +.endif + # c-pch.o needs extra defines. Replicate the rule here rather than # pollute compiler command line for all other files. c-pch.o: c-pch.c -- cgit v1.3