RFR(XS) : 8144695 : --disable-warnings-as-errors does not work for HotSpot build

Kim Barrett kim.barrett at oracle.com
Wed Dec 16 23:10:46 UTC 2015


On Dec 16, 2015, at 5:54 PM, Igor Ignatyev <igor.ignatyev at oracle.com> wrote:
> 
> as Mikael V correctly pointed out, there is missed $( ) in solaris/adlc.
> here is the new webrev: http://cr.openjdk.java.net/~iignatyev/8144695/webrev.01/

I wonder why the value for WARNINGS_ARE_ERRORS isn't obtained from the
configure-provided variable CFLAGS_WARNINGS_ARE_ERRORS?
E.g. something like

  WARNINGS_ARE_ERRORS ?= $(CFLAGS_WARNINGS_ARE_ERRORS)

There may be a good reason for that, and thinking about it is probably
better done as a separate RFE.  Doing so might simplify things by
allowing the assignment to be moved to some higher level common point.
[The bsd conditionalization on $(COMPILER_WARNINGS_FATAL) might make
that hard.  Where does that variable come from?  I haven't looked for
anything similar elsewhere.]

------------------------------------------------------------------------------ 
make/solaris/makefiles/adlc.make 
  77   WARNINGS_ARE_ERRORS ?= -w -xwe

I'm pretty sure "-w" is wrong here, and should be removed.  And it's
not clear why this assignment should be conditional on the compiler
version.

------------------------------------------------------------------------------




More information about the build-dev mailing list