https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79106

Lucas Bader <lucas.bader at sap dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lucas.bader at sap dot com

--- Comment #7 from Lucas Bader <lucas.bader at sap dot com> ---
Created attachment 47443
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47443&action=edit
Proposed patch

This behavior (opening the original source file for diagnostics) also causes
issues when compiling within a compile cluster because only preprocessed files
are distributed. This results in wrong or no source lines being printed.

The attached patch attempts to alter the behavior by implementing a
location_get_source_line_preprocessed function that can be used in
diagnostic-show-locus.c in case a preprocessed file is compiled.

Reply via email to