Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 692142 - dev-java/openjdk-11.0.4_p11 with >=sys-devel/gcc-9 - ?
Summary: dev-java/openjdk-11.0.4_p11 with >=sys-devel/gcc-9 - ?
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-08-14 13:57 UTC by Helmut Jarausch
Modified: 2019-08-16 17:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patches for gcc-9 (openjdk-11.0.4_p11-g++.patch,1.12 KB, patch)
2019-08-14 13:57 UTC, Helmut Jarausch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.