Module Name: src Committed By: rillig Date: Mon May 30 15:13:25 UTC 2022
Modified Files: src/usr.bin/xlint/lint1: main1.c Log Message: lint: report proper file name in assertion failures When given the (obviously malformed) translation unit 'f=({;};}', lint runs into an assertion failure. It reported this as occurring near ':1'. This location was missing a filename since the input didn't contain a GCC line number directive such as '# 2 "input.c"'. In GCC mode, the GCC builtins are loaded first, in which case the reported location was ':9'. Fix this by providing proper location information, even for input that does not come from the GCC C preprocessor. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/usr.bin/xlint/lint1/main1.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.