On Sat, 23 Mar 2024, Lewis Hyatt wrote: > Hello- > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114436 > > This is a small fix for the issue mentioned in the PR that _Pragma("GCC > system_header") does not work completely. I believe it was always the case > since _Pragma() support was first added. bootstrap + regtested all languages > on x86-64 Linux. Is it OK now or in stage 1 please? Thanks! > > -Lewis > > -- >8 -- > > _Pragma("GCC system_header") currently takes effect only partially. It does > succeed in updating the line_map, so that checks like in_system_header_at() > return correctly, but it does not update pfile->buffer->sysp. One result is > that a subsequent #include does not set up the system header state properly > for the newly included file, as pointed out in the PR. Fix by propagating > the new system header state back to the buffer after processing the pragma.
OK. -- Joseph S. Myers josmy...@redhat.com