RFR: 8035063: Option handling in sjavac needs to be rewritten

2014-03-19 Thread Andreas Lundblad
Hi compiler-dev + build-dev, Please review the fix for JDK-8035063 and JDK-8037085 which involves changes to sjavac (option handling) and dev/ + dev/jdk build files. Description: - Sjavac relied on passing around the main arg array to whatever part of the code that were potentially affected b

Re: RFR: 8035063: Option handling in sjavac needs to be rewritten

2014-03-19 Thread Erik Joelsson
Hello, The input from our makefiles changes from "-i some.package" to "-i some/package/*". IIRC the include flag works recursively for sub packages. Will the single * do the same? /Erik On 2014-03-19 09:49, Andreas Lundblad wrote: Hi compiler-dev + build-dev, Please review the fix for JDK-

Re: RFR: 8035063: Option handling in sjavac needs to be rewritten

2014-03-19 Thread Andreas Lundblad
On Wed, Mar 19, 2014 at 10:03:33AM +0100, Erik Joelsson wrote: > Hello, > > The input from our makefiles changes from "-i some.package" to "-i > some/package/*". IIRC the include flag works recursively for sub > packages. Will the single * do the same? > > /Erik That's strange. What used to be "

Re: JDK-8036003: Add variable not to separate debug information.

2014-03-19 Thread Andrew Haley
On 03/18/2014 06:22 PM, Andrew Hughes wrote: > The intent was for #3 to cover this case (i.e. whatever Oracle does now) > and for #2 to be what the GNU/Linux distributions want (i.e. binaries with > all debuginfo generated and left intact so they can do their own stripping). Mmm, but maybe that wi

Re: RFR: 8035063: Option handling in sjavac needs to be rewritten

2014-03-19 Thread Erik Joelsson
Ah, I see now, it was "-i some.package.*" in the original code. Build part looks good to me now. /Erik On 2014-03-19 11:17, Andreas Lundblad wrote: On Wed, Mar 19, 2014 at 10:03:33AM +0100, Erik Joelsson wrote: Hello, The input from our makefiles changes from "-i some.package" to "-i some/pa

RFR 8037825 Fix warnings and enable "warnings as errors" in serviceability native libraries

2014-03-19 Thread Staffan Larsen
The serviceability libraries (as defined by jdk/make/lib/ServiceabilityLibraries.gmk) should be compiled with "warnings as errors". To enable this all current warnings need to be fixed. The background for this is that we recently had a bug that could have easily been avoided if we had paid att

Re: RFR 8037825 Fix warnings and enable "warnings as errors" in serviceability native libraries

2014-03-19 Thread Magnus Ihse Bursie
On 2014-03-19 13:30, Staffan Larsen wrote: The serviceability libraries (as defined by jdk/make/lib/ServiceabilityLibraries.gmk) should be compiled with "warnings as errors". To enable this all current warnings need to be fixed. The background for this is that we recently had a bug that could

Re: RFR 8037825 Fix warnings and enable "warnings as errors" in serviceability native libraries

2014-03-19 Thread Erik Joelsson
Hello, Nice work! Removing warnings and enforcing them is definitely something we like. For the makefile change, ideally the new variable WARNINGS_ARE_ERRORS should be set in configure. I would suggest flags.m4, in FLAGS_SETUP_COMPILER_FLAGS_MISC. Also, instead of making the conditional on

Re: RFR: 8035063: Option handling in sjavac needs to be rewritten

2014-03-19 Thread Andreas Lundblad
On Wed, Mar 19, 2014 at 01:58:21PM +0100, Fredrik Öhrström wrote: > The code by itself looks good. However I think that changing from . to / is > a really bad idea. > > If someone committed a package directory that does not map correctly to the > package name, then that is a major problem. You wil

Re: JDK-8036003: Add variable not to separate debug information.

2014-03-19 Thread Magnus Ihse Bursie
On 2014-03-18 19:25, Andrew Haley wrote: On 03/18/2014 06:22 PM, Andrew Hughes wrote: The intent was for #3 to cover this case (i.e. whatever Oracle does now) and for #2 to be what the GNU/Linux distributions want (i.e. binaries with all debuginfo generated and left intact so they can do their o

Re: RFR: 8035063: Option handling in sjavac needs to be rewritten

2014-03-19 Thread Magnus Ihse Bursie
On 2014-03-19 09:49, Andreas Lundblad wrote: Hi compiler-dev + build-dev, Please review the fix for JDK-8035063 and JDK-8037085 which involves changes to sjavac (option handling) and dev/ + dev/jdk build files. The build part looks good to me. /Magnus

Re: RFR: 8035063: Option handling in sjavac needs to be rewritten

2014-03-19 Thread Erik Joelsson
I should fill in that the background for this change is that there are a bunch of directories named "doc-files" in the classes source dir. They have been there a long time. These contain html and gif files (mainly) that shouldn't get copied into the output classes directory. In a recent cleanu

Re: RFR 8037825 Fix warnings and enable "warnings as errors" in serviceability native libraries

2014-03-19 Thread Staffan Larsen
Erik, Magnus, Thanks for the quick looks. Here is an updated version that adds the new variable to flags.m4 instead. http://cr.openjdk.java.net/~sla/8037825/webrev.01/root/ http://cr.openjdk.java.net/~sla/8037825/webrev.01/jdk/ Thanks, /Staffan On 19 mar 2014, at 14:03, Erik Joelsson wrote:

Re: RFR: 8035063: Option handling in sjavac needs to be rewritten

2014-03-19 Thread Fredrik Öhrström
The code by itself looks good. However I think that changing from . to / is a really bad idea. If someone committed a package directory that does not map correctly to the package name, then that is a major problem. You will not find that source through -sourcepath, which means that you just broke

Re: JDK-8036003: Add variable not to separate debug information.

2014-03-19 Thread Andrew Haley
On 03/19/2014 01:51 PM, Magnus Ihse Bursie wrote: > On 2014-03-18 19:25, Andrew Haley wrote: >> On 03/18/2014 06:22 PM, Andrew Hughes wrote: >>> The intent was for #3 to cover this case (i.e. whatever Oracle does now) >>> and for #2 to be what the GNU/Linux distributions want (i.e. binaries with >>

Re: JDK-8036003: Add variable not to separate debug information.

2014-03-19 Thread Andrew Hughes
- Original Message - > On 03/19/2014 01:51 PM, Magnus Ihse Bursie wrote: > > On 2014-03-18 19:25, Andrew Haley wrote: > >> On 03/18/2014 06:22 PM, Andrew Hughes wrote: > >>> The intent was for #3 to cover this case (i.e. whatever Oracle does now) > >>> and for #2 to be what the GNU/Linux

Re: [OpenJDK 2D-Dev] RFR: Allow using a system-installed lcms2

2014-03-19 Thread Phil Race
On 3/17/2014 4:27 AM, Magnus Ihse Bursie wrote: While we generally support moving files to a proper location, if this move is causing trouble for Phil and the 2d team, we think it can be an acceptable exception this time to just single out the LCMS.c file. (This can be achieved by setting INC

Re: RFR 8037825 Fix warnings and enable "warnings as errors" in serviceability native libraries

2014-03-19 Thread Staffan Larsen
On 19 mar 2014, at 17:47, Erik Joelsson wrote: > Build part looks good! Thanks. > > Don't forget to push the closed generated configure. I would have forgotten… /Staffan > > /Erik > > On 2014-03-19 15:20, Staffan Larsen wrote: >> Erik, Magnus, >> >> Thanks for the quick looks. Here is a

Re: RFR 8037825 Fix warnings and enable "warnings as errors" in serviceability native libraries

2014-03-19 Thread Erik Joelsson
Build part looks good! Don't forget to push the closed generated configure. /Erik On 2014-03-19 15:20, Staffan Larsen wrote: Erik, Magnus, Thanks for the quick looks. Here is an updated version that adds the new variable to flags.m4 instead. http://cr.openjdk.java.net/~sla/8037825/webrev.01

Re: [OpenJDK 2D-Dev] RFR: Allow using a system-installed lcms2

2014-03-19 Thread Omair Majid
Hi, * Phil Race [2014-03-19 12:39]: > On 3/17/2014 4:27 AM, Magnus Ihse Bursie wrote: > >While we generally support moving files to a proper location, if > >this move is causing trouble for Phil and the 2d team, we think it > >can be an acceptable exception this time to just single out the > >LCM

RFR: 8030681 : (s) add "serve" command and --quiet and --verbose options to hgforest

2014-03-19 Thread Mike Duigou
Hello all; This is a patch which adds support for the "serve" command to hgforest as well as providing --quiet and --verbose options. The serve command is particularly useful for sharing repos with virtual machines used for building/testing. Using "serve" is generally faster and has fewer prob