https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61176
--- Comment #18 from PaX Team <pageexec at gmail dot com> --- (In reply to Jakub Jelinek from comment #17) > Created attachment 35144 [details] > gcc5-pr61176.patch > > Patch to install all gcc/*.h and gcc/*.def headers, even when they aren't > listed in PLUGIN_HEADERS. thanks, this will be a big (future-proof) step towards writing plugins! on a related note, there's PR61311 where (among other issues) i list a few more missing headers needed for LTO. some would now be handled with the wildcard match however there's still a few missing: gcc/lto/lto.h <build_dir>/gcc/gcov-iov.h while lto/lto.h is probably easy to add, i'm not sure about the build-time generated one...