2014-02-07 03:08:44 +01:00
|
|
|
# Clang flags for mips arch, target or host.
|
|
|
|
|
|
|
|
CLANG_CONFIG_mips_EXTRA_ASFLAGS :=
|
|
|
|
CLANG_CONFIG_mips_EXTRA_CFLAGS :=
|
|
|
|
CLANG_CONFIG_mips_EXTRA_LDFLAGS :=
|
|
|
|
|
|
|
|
# Include common unknown flags
|
|
|
|
CLANG_CONFIG_mips_UNKNOWN_CFLAGS := \
|
|
|
|
$(CLANG_CONFIG_UNKNOWN_CFLAGS) \
|
|
|
|
-fno-strict-volatile-bitfields \
|
|
|
|
-fgcse-after-reload \
|
|
|
|
-frerun-cse-after-loop \
|
|
|
|
-frename-registers \
|
|
|
|
-msynci \
|
2015-04-30 04:09:40 +02:00
|
|
|
-mno-synci \
|
2014-02-07 03:08:44 +01:00
|
|
|
-mno-fused-madd
|
|
|
|
|
2015-04-30 01:20:51 +02:00
|
|
|
# Temporary workaround for Mips clang++ problem, creates
|
|
|
|
# relocated ptrs in read-only pic .gcc_exception_table;
|
|
|
|
# permanent fix pending at http://reviews.llvm.org/D9669
|
|
|
|
CLANG_CONFIG_mips_UNKNOWN_CFLAGS += -Wl,--warn-shared-textrel
|
|
|
|
|
2014-02-07 03:08:44 +01:00
|
|
|
# We don't have any mips flags to substitute yet.
|
|
|
|
define subst-clang-incompatible-mips-flags
|
|
|
|
$(1)
|
|
|
|
endef
|