8030350 breaks build with older gccs.

Mike Duigou mike.duigou at oracle.com
Tue Feb 25 22:29:23 PST 2014


Hello Goetz;

The earliest version I considered was 4.2. It is unfortunate that these options aren't available on older gcc releases. I think we are going to have to add configure logic to enable them based upon the compiler version found. Whether the code should also be fixed I leave to the hotspot commiters, yourself included.

David Holmes does bring a good point about the minimum reasonable or expected gcc version. Even if we do add conditional checks for these options it would,probably quickly get silly with every switch being checked. I picked 4.2 rather arbitrarily based on some other test I saw. I note that the 4.3.x line is almost 6 years old. By the time java 9 is released gcc 4.6 will be about 5 years old. I believe that is about as far back as it is reasonable to support. Requiring 4.6 today would probably be premature even though many are already using 4.8 and reporting 4.9.

Unfortunately,  I can't imagine that we could reasonably support both 3.3.3 and 4.9 and all versions in between on all platforms plus whatever comes in the next two years. We need to have a way to trim the set of supported compilers. Suggestions?
 
Mike

On Feb 25, 2014, at 3:42 AM, "Lindenmaier, Goetz" <goetz.lindenmaier at sap.com> wrote:

> Hi Mike,
>  
> your change breaks the build with older gccs as they don’t know the option “-Wno-error=format-nonliteral"
>  
> I saw this with gcc 4.1.2 on linuxppc64 and linuxx86_64, and with gcc 3.3.3 on linuxx86_64.
> Gcc 4.3.4 works.
>  
> In the mail thread I saw that you opened some bugs to fix further warnings, maybe you detected
> this issue already, or there is a bug to fix this?
>  
> I would propose to fix this by either adapting hotspot code not to issue these warnings:
> http://cr.openjdk.java.net/~goetz/webrevs/fix_hotspot/
> or to adapt the makefiles not to use the warning on older gccs:
> http://cr.openjdk.java.net/~goetz/webrevs/fix_makefiles/
>  
> If you give me advice what you would prefer, I will open a bug and send
> a RFR.
>  
> Best regards,
>   Goetz.
>  
>  


More information about the hotspot-dev mailing list