public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/13726] [3.4/4.0/4.1 regression]cpp -C -dI loses comments on same line as #include directives
[not found] <bug-13726-189@http.gcc.gnu.org/bugzilla/>
@ 2005-10-04 18:06 ` cvs-commit at gcc dot gnu dot org
2005-10-04 18:18 ` [Bug preprocessor/13726] [3.4/4.0 " ian at airs dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-04 18:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from cvs-commit at gcc dot gnu dot org 2005-10-04 18:06 -------
Subject: Bug 13726
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: ian@gcc.gnu.org 2005-10-04 18:06:20
Modified files:
gcc : ChangeLog c-ppoutput.c
gcc/testsuite : ChangeLog
libcpp : ChangeLog directives.c
libcpp/include : cpplib.h
Added files:
gcc/testsuite/gcc.dg/cpp: cmdlne-dI-C.c cmdlne-dI-C.h
Log message:
libcpp/
PR preprocessor/13726
* directives.c (check_eol_return_comments): New static function.
(parse_include): Add buf parameter. Change all callers.
(do_include_common): If not discard comments, turn on
save_comments. Pass collected comments to include callback.
* include/cpplib.h (struct cpp_callbacks): Add new parameter to
include callback: cpp_token list.
gcc/
PR preprocessor/13726
* c-ppoutput.c (cb_include): Add comments parameter, and print out
any comments passed in.
gcc/testsuite/
PR preprocessor/13726
* gcc.dg/cpp/cmdlne-dI-C.c: New test.
* gcc.dg/cpp/cmdlne-dI-C.h: New file.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.10080&r2=2.10081
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-ppoutput.c.diff?cvsroot=gcc&r1=1.25&r2=1.26
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6133&r2=1.6134
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/ChangeLog.diff?cvsroot=gcc&r1=1.77&r2=1.78
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/directives.c.diff?cvsroot=gcc&r1=1.17&r2=1.18
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/include/cpplib.h.diff?cvsroot=gcc&r1=1.14&r2=1.15
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/cmdlne-dI-C.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/cmdlne-dI-C.h.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13726
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug preprocessor/13726] [3.4/4.0 regression]cpp -C -dI loses comments on same line as #include directives
[not found] <bug-13726-189@http.gcc.gnu.org/bugzilla/>
2005-10-04 18:06 ` [Bug preprocessor/13726] [3.4/4.0/4.1 regression]cpp -C -dI loses comments on same line as #include directives cvs-commit at gcc dot gnu dot org
@ 2005-10-04 18:18 ` ian at airs dot com
2006-03-05 16:43 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: ian at airs dot com @ 2005-10-04 18:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from ian at airs dot com 2005-10-04 18:18 -------
Fixed on mainline.
--
ian at airs dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work|2.95.3 |2.95.3 4.1.0
Summary|[3.4/4.0/4.1 regression]cpp |[3.4/4.0 regression]cpp -C -
|-C -dI loses comments on |dI loses comments on same
|same line as #include |line as #include directives
|directives |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13726
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug preprocessor/13726] [3.4/4.0 regression]cpp -C -dI loses comments on same line as #include directives
[not found] <bug-13726-189@http.gcc.gnu.org/bugzilla/>
2005-10-04 18:06 ` [Bug preprocessor/13726] [3.4/4.0/4.1 regression]cpp -C -dI loses comments on same line as #include directives cvs-commit at gcc dot gnu dot org
2005-10-04 18:18 ` [Bug preprocessor/13726] [3.4/4.0 " ian at airs dot com
@ 2006-03-05 16:43 ` pinskia at gcc dot gnu dot org
2006-03-11 3:17 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-05 16:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from pinskia at gcc dot gnu dot org 2006-03-05 16:43 -------
(In reply to comment #6)
> The previous was because i'm an idiot.
That ICE is now reported as PR 26567.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13726
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug preprocessor/13726] [3.4/4.0 regression]cpp -C -dI loses comments on same line as #include directives
[not found] <bug-13726-189@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2006-03-05 16:43 ` pinskia at gcc dot gnu dot org
@ 2006-03-11 3:17 ` mmitchel at gcc dot gnu dot org
2007-01-18 2:49 ` [Bug preprocessor/13726] [4.0 " gdr at gcc dot gnu dot org
2007-01-18 2:52 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-03-11 3:17 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.3 |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13726
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug preprocessor/13726] [4.0 regression]cpp -C -dI loses comments on same line as #include directives
[not found] <bug-13726-189@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2006-03-11 3:17 ` mmitchel at gcc dot gnu dot org
@ 2007-01-18 2:49 ` gdr at gcc dot gnu dot org
2007-01-18 2:52 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 6+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-01-18 2:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from gdr at gcc dot gnu dot org 2007-01-18 02:48 -------
Closing as fixed in recent version of GCC.
Not to be fixed in GCC-4.0.x
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|4.0.4 |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13726
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug preprocessor/13726] [4.0 regression]cpp -C -dI loses comments on same line as #include directives
[not found] <bug-13726-189@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2007-01-18 2:49 ` [Bug preprocessor/13726] [4.0 " gdr at gcc dot gnu dot org
@ 2007-01-18 2:52 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-18 2:52 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.0 |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13726
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-01-18 2:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-13726-189@http.gcc.gnu.org/bugzilla/>
2005-10-04 18:06 ` [Bug preprocessor/13726] [3.4/4.0/4.1 regression]cpp -C -dI loses comments on same line as #include directives cvs-commit at gcc dot gnu dot org
2005-10-04 18:18 ` [Bug preprocessor/13726] [3.4/4.0 " ian at airs dot com
2006-03-05 16:43 ` pinskia at gcc dot gnu dot org
2006-03-11 3:17 ` mmitchel at gcc dot gnu dot org
2007-01-18 2:49 ` [Bug preprocessor/13726] [4.0 " gdr at gcc dot gnu dot org
2007-01-18 2:52 ` pinskia 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).