RFR: build pragma error with gcc 4.4.7

Michal Vala mvala at redhat.com
Fri Mar 16 13:48:37 UTC 2018

On 03/16/2018 12:36 PM, Magnus Ihse Bursie wrote:
> On 2018-03-16 12:05, David Holmes wrote:
>> Hi Michal,
>> On 16/03/2018 8:48 PM, Michal Vala wrote:
>>> Hi,
>>> I've been trying to build latest jdk with gcc 4.4.7 and I hit compile error 
>>> due to pragma used in function:
> I don't think gcc 4.4.7 is likely to work at all. Configure will complain (but 
> continue) if you use a gcc prior to 4.7 (very recently raised to 4.8).
> You can try getting past this error, but you are likely to hit more issues down 
> the road.
> Do you have any specific reasons for using such an old compiler?

Yes, I'm targeting RHEL6 where 4.4.7 is base gcc. With patch I've posted I'm 
able to compile. Configure is complaining with warning, but otherwise it's ok. 
Few more warnings during the build but no errors. We'd like to keep it 
'compilable' in RHEL6 with code as close as possible to upstream.

Michal Vala
Red Hat Czech

More information about the hotspot-dev mailing list