Print this page
use thread_local for ntoa buf


 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
 414 # -nd builds
 415 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
 416 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-empty-body
 417 
 418 #
 419 # turn warnings into errors (C++)
 420 CCERRWARN=              -xwe
 421 
 422 # C standard.  Keep Studio flags until we get rid of lint.
 423 CSTD_GNU89=     -xc99=%none
 424 CSTD_GNU99=     -xc99=%all


 425 CSTD=           $(CSTD_GNU89)
 426 C99LMODE=       $(CSTD:-xc99%=-Xc99%)
 427 
 428 # In most places, assignments to these macros should be appended with +=
 429 # (CPPFLAGS.first allows values to be prepended to CPPFLAGS).
 430 sparc_CFLAGS=   $(sparc_XARCH) $(CCSTATICSYM)
 431 sparcv9_CFLAGS= $(sparcv9_XARCH) -dalign $(CCVERBOSE) $(V9ABIWARN) $(CCREGSYM) \
 432                 $(CCSTATICSYM)
 433 i386_CFLAGS=    $(i386_XARCH)
 434 amd64_CFLAGS=   $(amd64_XARCH)
 435 
 436 sparc_ASFLAGS=  $(sparc_AS_XARCH)
 437 sparcv9_ASFLAGS=$(sparcv9_AS_XARCH)
 438 i386_ASFLAGS=   $(i386_AS_XARCH)
 439 amd64_ASFLAGS=  $(amd64_AS_XARCH)
 440 
 441 #
 442 sparc_COPTFLAG=         -xO3
 443 sparcv9_COPTFLAG=       -xO3
 444 i386_COPTFLAG=          -O




 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
 414 # -nd builds
 415 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
 416 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-empty-body
 417 
 418 #
 419 # turn warnings into errors (C++)
 420 CCERRWARN=              -xwe
 421 
 422 # C standard.  Keep Studio flags until we get rid of lint.
 423 CSTD_GNU89=     -xc99=%none
 424 CSTD_GNU99=     -xc99=%all
 425 # Made up for cw
 426 CSTD_GNU11=     -xc11=%all
 427 CSTD=           $(CSTD_GNU89)
 428 C99LMODE=       $(CSTD:-xc99%=-Xc99%)
 429 
 430 # In most places, assignments to these macros should be appended with +=
 431 # (CPPFLAGS.first allows values to be prepended to CPPFLAGS).
 432 sparc_CFLAGS=   $(sparc_XARCH) $(CCSTATICSYM)
 433 sparcv9_CFLAGS= $(sparcv9_XARCH) -dalign $(CCVERBOSE) $(V9ABIWARN) $(CCREGSYM) \
 434                 $(CCSTATICSYM)
 435 i386_CFLAGS=    $(i386_XARCH)
 436 amd64_CFLAGS=   $(amd64_XARCH)
 437 
 438 sparc_ASFLAGS=  $(sparc_AS_XARCH)
 439 sparcv9_ASFLAGS=$(sparcv9_AS_XARCH)
 440 i386_ASFLAGS=   $(i386_AS_XARCH)
 441 amd64_ASFLAGS=  $(amd64_AS_XARCH)
 442 
 443 #
 444 sparc_COPTFLAG=         -xO3
 445 sparcv9_COPTFLAG=       -xO3
 446 i386_COPTFLAG=          -O