public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/39646] New: __FILE__ breaks for empty file name
@ 2009-04-05 13:05 neil at gcc dot gnu dot org
2009-04-08 16:07 ` [Bug preprocessor/39646] " jsm28 at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: neil at gcc dot gnu dot org @ 2009-04-05 13:05 UTC (permalink / raw)
To: gcc-bugs
GCC rejects the following strictly conforming TU with -pedantic-errors
extern int x;
#line 24 ""
extern char z[sizeof __FILE__ == 1];
--
Summary: __FILE__ breaks for empty file name
Product: gcc
Version: 4.1.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: neil at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39646
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug preprocessor/39646] __FILE__ breaks for empty file name
2009-04-05 13:05 [Bug c/39646] New: __FILE__ breaks for empty file name neil at gcc dot gnu dot org
@ 2009-04-08 16:07 ` jsm28 at gcc dot gnu dot org
2009-04-18 17:36 ` jsm28 at gcc dot gnu dot org
2009-04-18 17:38 ` jsm28 at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-04-08 16:07 UTC (permalink / raw)
To: gcc-bugs
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |16620, 16989
nThis| |
Status|UNCONFIRMED |NEW
Component|c |preprocessor
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-04-08 16:07:35
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39646
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug preprocessor/39646] __FILE__ breaks for empty file name
2009-04-05 13:05 [Bug c/39646] New: __FILE__ breaks for empty file name neil at gcc dot gnu dot org
2009-04-08 16:07 ` [Bug preprocessor/39646] " jsm28 at gcc dot gnu dot org
@ 2009-04-18 17:36 ` jsm28 at gcc dot gnu dot org
2009-04-18 17:38 ` jsm28 at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-04-18 17:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jsm28 at gcc dot gnu dot org 2009-04-18 17:36 -------
Subject: Bug 39646
Author: jsm28
Date: Sat Apr 18 17:36:28 2009
New Revision: 146319
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146319
Log:
libcpp:
PR preprocessor/39646
* include/line-map.h (enum lc_reason): Add LC_RENAME_VERBATIM.
* line-map.c (linemap_add): Handle LC_RENAME_VERBATIM.
* directives.c (do_line, do_linemarker): Use LC_RENAME_VERBATIM in
place of LC_RENAME.
gcc/testsuite:
* gcc.dg/cpp/line8.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/cpp/line8.c
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/libcpp/ChangeLog
trunk/libcpp/directives.c
trunk/libcpp/include/line-map.h
trunk/libcpp/line-map.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39646
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug preprocessor/39646] __FILE__ breaks for empty file name
2009-04-05 13:05 [Bug c/39646] New: __FILE__ breaks for empty file name neil at gcc dot gnu dot org
2009-04-08 16:07 ` [Bug preprocessor/39646] " jsm28 at gcc dot gnu dot org
2009-04-18 17:36 ` jsm28 at gcc dot gnu dot org
@ 2009-04-18 17:38 ` jsm28 at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-04-18 17:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jsm28 at gcc dot gnu dot org 2009-04-18 17:37 -------
Fixed for 4.5.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Known to work| |4.5.0
Resolution| |FIXED
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39646
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-04-18 17:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-05 13:05 [Bug c/39646] New: __FILE__ breaks for empty file name neil at gcc dot gnu dot org
2009-04-08 16:07 ` [Bug preprocessor/39646] " jsm28 at gcc dot gnu dot org
2009-04-18 17:36 ` jsm28 at gcc dot gnu dot org
2009-04-18 17:38 ` jsm28 at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).