373 # XX64 future versions of gcc will make -mcmodel=kernel imply -mno-red-zone
374 #
375 sparc_STAND_FLAGS= -_gcc=-ffreestanding
376 sparcv9_STAND_FLAGS= -_gcc=-ffreestanding
377 # Disabling MMX also disables 3DNow, disabling SSE also disables all later
378 # additions to SSE (SSE2, AVX ,etc.)
379 NO_SIMD= -_gcc=-mno-mmx -_gcc=-mno-sse
380 i386_STAND_FLAGS= -_gcc=-ffreestanding $(NO_SIMD)
381 amd64_STAND_FLAGS= -xmodel=kernel $(NO_SIMD)
382
383 SAVEARGS= -Wu,-save_args
384 amd64_STAND_FLAGS += $(SAVEARGS)
385
386 STAND_FLAGS_32 = $($(MACH)_STAND_FLAGS)
387 STAND_FLAGS_64 = $($(MACH64)_STAND_FLAGS)
388
389 #
390 # disable the incremental linker
391 ILDOFF= -xildoff
392 #
393 XDEPEND= -xdepend
394 XFFLAG= -xF=%all
395 XESS= -xs
396 XSTRCONST= -xstrconst
397
398 #
399 # turn warnings into errors (C)
400 CERRWARN = -errtags=yes -errwarn=%all
401 CERRWARN += -erroff=E_EMPTY_TRANSLATION_UNIT
402 CERRWARN += -erroff=E_STATEMENT_NOT_REACHED
403
404 CERRWARN += -_gcc=-Wno-missing-braces
405 CERRWARN += -_gcc=-Wno-sign-compare
406 CERRWARN += -_gcc=-Wno-unknown-pragmas
407 CERRWARN += -_gcc=-Wno-unused-parameter
408 CERRWARN += -_gcc=-Wno-missing-field-initializers
409
410 # Unfortunately, this option can misfire very easily and unfixably.
411 CERRWARN += -_gcc=-Wno-array-bounds
412
413 # DEBUG v. -nd make for frequent unused variables, empty conditions, etc. in
|
373 # XX64 future versions of gcc will make -mcmodel=kernel imply -mno-red-zone
374 #
375 sparc_STAND_FLAGS= -_gcc=-ffreestanding
376 sparcv9_STAND_FLAGS= -_gcc=-ffreestanding
377 # Disabling MMX also disables 3DNow, disabling SSE also disables all later
378 # additions to SSE (SSE2, AVX ,etc.)
379 NO_SIMD= -_gcc=-mno-mmx -_gcc=-mno-sse
380 i386_STAND_FLAGS= -_gcc=-ffreestanding $(NO_SIMD)
381 amd64_STAND_FLAGS= -xmodel=kernel $(NO_SIMD)
382
383 SAVEARGS= -Wu,-save_args
384 amd64_STAND_FLAGS += $(SAVEARGS)
385
386 STAND_FLAGS_32 = $($(MACH)_STAND_FLAGS)
387 STAND_FLAGS_64 = $($(MACH64)_STAND_FLAGS)
388
389 #
390 # disable the incremental linker
391 ILDOFF= -xildoff
392 #
393 XFFLAG= -xF=%all
394 XESS= -xs
395 XSTRCONST= -xstrconst
396
397 #
398 # turn warnings into errors (C)
399 CERRWARN = -errtags=yes -errwarn=%all
400 CERRWARN += -erroff=E_EMPTY_TRANSLATION_UNIT
401 CERRWARN += -erroff=E_STATEMENT_NOT_REACHED
402
403 CERRWARN += -_gcc=-Wno-missing-braces
404 CERRWARN += -_gcc=-Wno-sign-compare
405 CERRWARN += -_gcc=-Wno-unknown-pragmas
406 CERRWARN += -_gcc=-Wno-unused-parameter
407 CERRWARN += -_gcc=-Wno-missing-field-initializers
408
409 # Unfortunately, this option can misfire very easily and unfixably.
410 CERRWARN += -_gcc=-Wno-array-bounds
411
412 # DEBUG v. -nd make for frequent unused variables, empty conditions, etc. in
|