https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65448
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I was going to suggest to use json diagnostic format (-fdiagnostics-format=json) with newer GCC but I noticed it does not output the header include stack (which I filed as PR 107941 ).