make/linux/makefiles/gcc.make

changeset 9572
624a0741915c
parent 9516
359ded4897e9
parent 9448
73d689add964
equal deleted inserted replaced
9571:421d9fe6d211 9572:624a0741915c
18 # 18 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any 20 # or visit www.oracle.com if you need additional information or have any
21 # questions. 21 # questions.
22 # 22 #
23 #
24
25 #
26 # This file has been modified by Loongson Technology in 2015. These
27 # modifications are Copyright (c) 2015 Loongson Technology, and are made
28 # available on the same license terms set forth above.
23 # 29 #
24 30
25 #------------------------------------------------------------------------ 31 #------------------------------------------------------------------------
26 # CC, CXX & AS 32 # CC, CXX & AS
27 33
174 ARCHFLAG/i486 = -m32 -march=i586 180 ARCHFLAG/i486 = -m32 -march=i586
175 ARCHFLAG/amd64 = -m64 $(STACK_ALIGNMENT_OPT) 181 ARCHFLAG/amd64 = -m64 $(STACK_ALIGNMENT_OPT)
176 ARCHFLAG/ia64 = 182 ARCHFLAG/ia64 =
177 ARCHFLAG/sparc = -m32 -mcpu=v9 183 ARCHFLAG/sparc = -m32 -mcpu=v9
178 ARCHFLAG/sparcv9 = -m64 -mcpu=v9 184 ARCHFLAG/sparcv9 = -m64 -mcpu=v9
185 ARCHFLAG/mips64 = -mabi=64
179 ARCHFLAG/zero = $(ZERO_ARCHFLAG) 186 ARCHFLAG/zero = $(ZERO_ARCHFLAG)
180 ARCHFLAG/ppc64 = -m64 187 ARCHFLAG/ppc64 = -m64
181 188
182 CFLAGS += $(ARCHFLAG) 189 CFLAGS += $(ARCHFLAG)
183 AOUT_FLAGS += $(ARCHFLAG) 190 AOUT_FLAGS += $(ARCHFLAG)
199 else 206 else
200 CFLAGS += -pipe 207 CFLAGS += -pipe
201 endif 208 endif
202 209
203 # Compiler warnings are treated as errors 210 # Compiler warnings are treated as errors
204 WARNINGS_ARE_ERRORS = -Werror 211 #WARNINGS_ARE_ERRORS = -Werror
205 212
206 ifeq ($(USE_CLANG), true) 213 ifeq ($(USE_CLANG), true)
207 # However we need to clean the code up before we can unrestrictedly enable this option with Clang 214 # However we need to clean the code up before we can unrestrictedly enable this option with Clang
208 WARNINGS_ARE_ERRORS += -Wno-logical-op-parentheses -Wno-parentheses-equality -Wno-parentheses 215 WARNINGS_ARE_ERRORS += -Wno-logical-op-parentheses -Wno-parentheses-equality -Wno-parentheses
209 WARNINGS_ARE_ERRORS += -Wno-switch -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare 216 WARNINGS_ARE_ERRORS += -Wno-switch -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare

mercurial