https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61176
--- Comment #13 from Andrew Macleod <amacleod at redhat dot com> --- gcc-plugin.h has had a number of includes added to ease the pain of flattening basic-block.h and cgraph.h this release. If there are still issues with tree.h or others, submit a patch which adds the required includes.