Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 692142

Summary: dev-java/openjdk-11.0.4_p11 with >=sys-devel/gcc-9 - ?
Product: Gentoo Linux Reporter: Helmut Jarausch <jarausch>
Component: Current packagesAssignee: Georgy Yakovlev <gyakovlev>
Status: UNCONFIRMED ---    
Severity: normal CC: java
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: patches for gcc-9

Description Helmut Jarausch 2019-08-14 13:57:12 UTC
Created attachment 586788 [details, diff]
patches for gcc-9

Modern C++ compilers (like gcc-9) don't except  'typeof' any more - it has to be replaced ty __typeof__

Furthermore enums don't except expressions like (-1)<<13
which can be replaced by 0xfffe000

The attached patch fixes these.

This patches should be fine with older versions of gcc, as well.
Comment 1 Georgy Yakovlev gentoo-dev 2019-08-16 17:45:36 UTC
are those just warnings or you are getting an error? I've been running on gcc-9.1 for quite some time and haven't seen it break yet.