[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

joseph at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Wed Oct 25 17:02:00 GMT 2017


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).


More information about the Gcc-bugs mailing list