https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687
--- Comment #30 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- An option to use just the file's basename in __FILE__ is bug 82176. I think that's a much more reasonable feature than straining the interpretation of what counts as the line number for the purposes of __LINE__ in a particular context. See also bug 70268, and the ongoing discussion of BUILD_PATH_PREFIX_MAP (where Jeff objected to the use of an environment variable, but a command-line option version should still be reasonable).