public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/15913] New: Preprocessor dies on // comment if --traditional-cpp is specified
@ 2004-06-10 19:58 pkoning at equallogic dot com
  2004-06-10 22:34 ` [Bug preprocessor/15913] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: pkoning at equallogic dot com @ 2004-06-10 19:58 UTC (permalink / raw)
  To: gcc-bugs

gcc -E --traditional-cpp test.c

test.c is:
#ifdef notyet
not yet
#endif // comment

Results in:
# 1 "../cvs162/NetBSD162/src/test.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "../cvs162/NetBSD162/src/test.c"
../cvs162/NetBSD162/src/test.c:0: internal compiler error: Abort trap
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

According to gdb, the abort is in _cpp_process_line_notes.  I dug a bit and it
looks like it's processing the "sentinel" line note, which the comment says
should never be processed.  That's as far as I managed to get.

-- 
           Summary: Preprocessor dies on // comment if --traditional-cpp is
                    specified
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pkoning at equallogic dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i386-unknown-netbsdelf1.6.2
  GCC host triplet: i386-unknown-netbsdelf1.6.2
GCC target triplet: i386-unknown-netbsdelf1.6.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15913


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug preprocessor/15913] [3.4/3.5 Regression] Preprocessor dies on // comment if --traditional-cpp is specified
  2004-06-10 19:58 [Bug preprocessor/15913] New: Preprocessor dies on // comment if --traditional-cpp is specified pkoning at equallogic dot com
@ 2004-06-10 22:34 ` pinskia at gcc dot gnu dot org
  2004-06-26  8:41 ` neil at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-10 22:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-10 22:34 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
  GCC build triplet|i386-unknown-netbsdelf1.6.2 |
   GCC host triplet|i386-unknown-netbsdelf1.6.2 |
 GCC target triplet|i386-unknown-netbsdelf1.6.2 |
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |3.4.0 3.5.0
      Known to work|                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-10 22:34:47
               date|                            |
            Summary|Preprocessor dies on //     |[3.4/3.5 Regression]
                   |comment if --traditional-cpp|Preprocessor dies on //
                   |is specified                |comment if --traditional-cpp
                   |                            |is specified
   Target Milestone|---                         |3.4.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15913


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug preprocessor/15913] [3.4/3.5 Regression] Preprocessor dies on // comment if --traditional-cpp is specified
  2004-06-10 19:58 [Bug preprocessor/15913] New: Preprocessor dies on // comment if --traditional-cpp is specified pkoning at equallogic dot com
  2004-06-10 22:34 ` [Bug preprocessor/15913] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-06-26  8:41 ` neil at gcc dot gnu dot org
  2004-06-28 20:40 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: neil at gcc dot gnu dot org @ 2004-06-26  8:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From neil at gcc dot gnu dot org  2004-06-26 08:40 -------
Mine.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2004-06-10 22:34:47         |2004-06-26 08:40:46
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15913


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug preprocessor/15913] [3.4/3.5 Regression] Preprocessor dies on // comment if --traditional-cpp is specified
  2004-06-10 19:58 [Bug preprocessor/15913] New: Preprocessor dies on // comment if --traditional-cpp is specified pkoning at equallogic dot com
  2004-06-10 22:34 ` [Bug preprocessor/15913] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
  2004-06-26  8:41 ` neil at gcc dot gnu dot org
@ 2004-06-28 20:40 ` cvs-commit at gcc dot gnu dot org
  2004-06-28 20:41 ` [Bug preprocessor/15913] [3.5 " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-28 20:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-28 20:28 -------
Subject: Bug 15913

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	neil@gcc.gnu.org	2004-06-28 20:28:07

Modified files:
	gcc            : cppinit.c cppexp.c 
	gcc/doc        : cpp.texi cppopts.texi 
	gcc/testsuite/gcc.dg/cpp: if-mop.c 
Added files:
	gcc/testsuite/gcc.dg/cpp/trad: comment-3.c 

Log message:
	PR preprocessor/16192
	PR preprocessor/15913
	PR preprocessor/15572
	* cppexp.c (_cpp_parse_expr): Handle remaining cases where an
	expression is missing.
	* cppinit.c (post_options): Traditional cpp doesn't do // comments.
	* doc/cpp.texi: Don't document what we do for ill-formed expressions.
	* doc/cppopts.texi: Clarify processing of command-line defines.
	
	testsuite:
	* gcc.dg/cpp/if-mop.c: Two new testcases.
	* gcc.dg/cpp/trad/comment-3.c: New.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cppinit.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.297.6.5&r2=1.297.6.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cppexp.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.144.6.1&r2=1.144.6.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/cpp.texi.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.65.4.2&r2=1.65.4.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/cppopts.texi.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.28.4.3&r2=1.28.4.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/if-mop.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3&r2=1.3.54.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/trad/comment-3.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15913


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug preprocessor/15913] [3.5 Regression] Preprocessor dies on // comment if --traditional-cpp is specified
  2004-06-10 19:58 [Bug preprocessor/15913] New: Preprocessor dies on // comment if --traditional-cpp is specified pkoning at equallogic dot com
                   ` (2 preceding siblings ...)
  2004-06-28 20:40 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-28 20:41 ` pinskia at gcc dot gnu dot org
  2004-07-04 12:58 ` cvs-commit at gcc dot gnu dot org
  2004-07-04 12:59 ` neil at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-28 20:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-28 20:41 -------
Fixed in 3.4.1 and Neil is testing for 3.5.0 but is having bootstrap problems even without the patch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|3.3.3                       |3.3.3 3.4.1
            Summary|[3.4/3.5 Regression]        |[3.5 Regression]
                   |Preprocessor dies on //     |Preprocessor dies on //
                   |comment if --traditional-cpp|comment if --traditional-cpp
                   |is specified                |is specified
   Target Milestone|3.4.2                       |3.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15913


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug preprocessor/15913] [3.5 Regression] Preprocessor dies on // comment if --traditional-cpp is specified
  2004-06-10 19:58 [Bug preprocessor/15913] New: Preprocessor dies on // comment if --traditional-cpp is specified pkoning at equallogic dot com
                   ` (3 preceding siblings ...)
  2004-06-28 20:41 ` [Bug preprocessor/15913] [3.5 " pinskia at gcc dot gnu dot org
@ 2004-07-04 12:58 ` cvs-commit at gcc dot gnu dot org
  2004-07-04 12:59 ` neil at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-07-04 12:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-07-04 12:57 -------
Subject: Bug 15913

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	neil@gcc.gnu.org	2004-07-04 12:57:51

Modified files:
	gcc            : ChangeLog 
	libcpp         : ChangeLog expr.c init.c 
	gcc/doc        : cpp.texi cppopts.texi 
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/gcc.dg/cpp: if-mop.c 
Added files:
	gcc/testsuite/gcc.dg/cpp/trad: comment-3.c 

Log message:
	* doc/cpp.texi: Don't document what we do for ill-formed expressions.
	* doc/cppopts.texi: Clarify processing of command-line defines.
	
	libcpp:
	PR preprocessor/16192
	PR preprocessor/15913
	PR preprocessor/15572
	* expr.c (_cpp_parse_expr): Handle remaining cases where an
	expression is missing.
	* init.c (post_options): Traditional cpp doesn't do // comments.
	
	testsuite:
	* gcc.dg/cpp/if-mop.c: Two new testcases.
	* gcc.dg/cpp/trad/comment-3.c: New.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.4281&r2=2.4282
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/ChangeLog.diff?cvsroot=gcc&r1=1.16&r2=1.17
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/expr.c.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/init.c.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/cpp.texi.diff?cvsroot=gcc&r1=1.69&r2=1.70
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/cppopts.texi.diff?cvsroot=gcc&r1=1.34&r2=1.35
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3936&r2=1.3937
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/if-mop.c.diff?cvsroot=gcc&r1=1.3&r2=1.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/trad/comment-3.c.diff?cvsroot=gcc&r1=1.1&r2=1.2



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15913


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug preprocessor/15913] [3.5 Regression] Preprocessor dies on // comment if --traditional-cpp is specified
  2004-06-10 19:58 [Bug preprocessor/15913] New: Preprocessor dies on // comment if --traditional-cpp is specified pkoning at equallogic dot com
                   ` (4 preceding siblings ...)
  2004-07-04 12:58 ` cvs-commit at gcc dot gnu dot org
@ 2004-07-04 12:59 ` neil at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: neil at gcc dot gnu dot org @ 2004-07-04 12:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From neil at gcc dot gnu dot org  2004-07-04 12:59 -------
Fixed in 3.4 and 3.5.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15913


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-07-04 12:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-10 19:58 [Bug preprocessor/15913] New: Preprocessor dies on // comment if --traditional-cpp is specified pkoning at equallogic dot com
2004-06-10 22:34 ` [Bug preprocessor/15913] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-06-26  8:41 ` neil at gcc dot gnu dot org
2004-06-28 20:40 ` cvs-commit at gcc dot gnu dot org
2004-06-28 20:41 ` [Bug preprocessor/15913] [3.5 " pinskia at gcc dot gnu dot org
2004-07-04 12:58 ` cvs-commit at gcc dot gnu dot org
2004-07-04 12:59 ` neil 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).