This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers
- From: "mtewoodbury at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 31 Oct 2013 18:00:13 +0000
- Subject: [Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers
- Auto-submitted: auto-generated
- References: <bug-58687-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687
--- Comment #14 from Max TenEyck Woodbury <mtewoodbury at gmail dot com> ---
Created attachment 31125
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31125&action=edit
Patch to postpone __LINE__ evaluation to the end of a # line directive.
Patch includes changes to 2 source code files, a header and the line4.c test
case.
make bootstrap OK.
make -k check of patched and un-patched code matches except for time stamps.
Formal release of changes copyright to FSF granted.
Max TenEyck Woodbury