public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/14205] New: ICE with -M and -include
@ 2004-02-19  0:06 1319 at bot dot ru
  2004-02-19  1:28 ` [Bug preprocessor/14205] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
  2004-02-19  7:06 ` 1319 at bot dot ru
  0 siblings, 2 replies; 3+ messages in thread
From: 1319 at bot dot ru @ 2004-02-19  0:06 UTC (permalink / raw)
  To: gcc-bugs

When gcc invoked with -M and -include it segfaults on any input files. This
problem happens with c++ also. Easiest way to turn this bug on is:

$ touch file.c file.h
$ gcc -M -include file.h file.c
file.c:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$

or, easier to debug:

$ cc1 -E -M -include file.h file.c

with same result.
It is at line 70 in c-ppoutput.c: (gcc 3.4.0 20040218)

61:/* Preprocess and output.  */
62:void
63:preprocess_file (cpp_reader *pfile)
64:{
65:  /* A successful cpp_read_main_file guarantees that we can call
66:     cpp_scan_nooutput or cpp_get_token next.  */
67:  if (flag_no_output)
68:    {
69:      /* Scan -included buffers, then the main file.  */
70:      while (pfile->buffer->prev)
80:	cpp_scan_nooutput (pfile);
90:      cpp_scan_nooutput (pfile);
91:    }

here pfile->buffer == 0.

-- 
           Summary: ICE with -M and -include
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P1
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: 1319 at bot dot ru
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug preprocessor/14205] [3.4/3.5 Regression] ICE with -M and -include
  2004-02-19  0:06 [Bug c/14205] New: ICE with -M and -include 1319 at bot dot ru
@ 2004-02-19  1:28 ` pinskia at gcc dot gnu dot org
  2004-02-19  7:06 ` 1319 at bot dot ru
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-19  1:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-19 01:28 -------
Confirmed but I think this is a dup of bug 14103, can you try again?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |per at bothner dot com
             Status|UNCONFIRMED                 |NEW
          Component|c                           |preprocessor
     Ever Confirmed|                            |1
           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-02-19 01:28:43
               date|                            |
            Summary|ICE with -M and -include    |[3.4/3.5 Regression] ICE
                   |                            |with -M and -include
   Target Milestone|---                         |3.4.0


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


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

* [Bug preprocessor/14205] [3.4/3.5 Regression] ICE with -M and -include
  2004-02-19  0:06 [Bug c/14205] New: ICE with -M and -include 1319 at bot dot ru
  2004-02-19  1:28 ` [Bug preprocessor/14205] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-02-19  7:06 ` 1319 at bot dot ru
  1 sibling, 0 replies; 3+ messages in thread
From: 1319 at bot dot ru @ 2004-02-19  7:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From 1319 at bot dot ru  2004-02-19 07:06 -------
(In reply to comment #1)
> Confirmed but 

*** This bug has been marked as a duplicate of 14103 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2004-02-19  7:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-19  0:06 [Bug c/14205] New: ICE with -M and -include 1319 at bot dot ru
2004-02-19  1:28 ` [Bug preprocessor/14205] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-02-19  7:06 ` 1319 at bot dot ru

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