public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/35322] [4.2/4.3/4.4 regression] ICE with incomplete macro
  2008-02-23 18:44 [Bug c/35322] New: [4.2/4.3/4.4 regression] ICE with incomplete macro reichelt at gcc dot gnu dot org
@ 2008-02-23 18:44 ` reichelt at gcc dot gnu dot org
  2008-02-23 18:52 ` [Bug preprocessor/35322] " pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-23 18:44 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.2.4


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


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

* [Bug c/35322]  New: [4.2/4.3/4.4 regression] ICE with incomplete macro
@ 2008-02-23 18:44 reichelt at gcc dot gnu dot org
  2008-02-23 18:44 ` [Bug c/35322] " reichelt at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-23 18:44 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE since GCC 4.2.0:

=========================================
_Pragma("GCC dependency")
=========================================

bug.c:1: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]

A correct error message is issued in the following version:

=========================================
#pragma GCC dependency
=========================================

nobug.c:1:23: error: #pragma dependency expects "FILENAME" or <FILENAME>


-- 
           Summary: [4.2/4.3/4.4 regression] ICE with incomplete macro
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, monitored
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug preprocessor/35322] [4.2/4.3/4.4 regression] ICE with incomplete macro
  2008-02-23 18:44 [Bug c/35322] New: [4.2/4.3/4.4 regression] ICE with incomplete macro reichelt at gcc dot gnu dot org
  2008-02-23 18:44 ` [Bug c/35322] " reichelt at gcc dot gnu dot org
@ 2008-02-23 18:52 ` pinskia at gcc dot gnu dot org
  2008-03-03 16:28 ` rguenth at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-02-23 18:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-02-23 18:51 -------
The preprocessor is the one that is crashing and the preprocessor in the case
of the #pragma is the one that errors out.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
          Component|c                           |preprocessor
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-02-23 18:51:21
               date|                            |


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


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

* [Bug preprocessor/35322] [4.2/4.3/4.4 regression] ICE with incomplete macro
  2008-02-23 18:44 [Bug c/35322] New: [4.2/4.3/4.4 regression] ICE with incomplete macro reichelt at gcc dot gnu dot org
  2008-02-23 18:44 ` [Bug c/35322] " reichelt at gcc dot gnu dot org
  2008-02-23 18:52 ` [Bug preprocessor/35322] " pinskia at gcc dot gnu dot org
@ 2008-03-03 16:28 ` rguenth at gcc dot gnu dot org
  2008-03-13 15:49 ` tromey at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-03-03 16:28 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug preprocessor/35322] [4.2/4.3/4.4 regression] ICE with incomplete macro
  2008-02-23 18:44 [Bug c/35322] New: [4.2/4.3/4.4 regression] ICE with incomplete macro reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-03-03 16:28 ` rguenth at gcc dot gnu dot org
@ 2008-03-13 15:49 ` tromey at gcc dot gnu dot org
  2008-03-13 21:11 ` tromey at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: tromey at gcc dot gnu dot org @ 2008-03-13 15:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from tromey at gcc dot gnu dot org  2008-03-13 15:48 -------
Testing a patch.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |tromey at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-02-23 18:51:21         |2008-03-13 15:48:41
               date|                            |


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


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

* [Bug preprocessor/35322] [4.2/4.3/4.4 regression] ICE with incomplete macro
  2008-02-23 18:44 [Bug c/35322] New: [4.2/4.3/4.4 regression] ICE with incomplete macro reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-03-13 15:49 ` tromey at gcc dot gnu dot org
@ 2008-03-13 21:11 ` tromey at gcc dot gnu dot org
  2008-03-13 21:12 ` [Bug preprocessor/35322] [4.2/4.3 " tromey at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: tromey at gcc dot gnu dot org @ 2008-03-13 21:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from tromey at gcc dot gnu dot org  2008-03-13 21:10 -------
Subject: Bug 35322

Author: tromey
Date: Thu Mar 13 21:10:07 2008
New Revision: 133195

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133195
Log:
gcc/testsuite
        PR libcpp/35322:
        * gcc.dg/cpp/pr35322.c: New file.
libcpp
        PR libcpp/35322:
        * directives.c (destringize_and_run): Set pfile->directive.

Added:
    trunk/gcc/testsuite/gcc.dg/cpp/pr35322.c
Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/libcpp/ChangeLog
    trunk/libcpp/directives.c


-- 


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


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

* [Bug preprocessor/35322] [4.2/4.3 regression] ICE with incomplete macro
  2008-02-23 18:44 [Bug c/35322] New: [4.2/4.3/4.4 regression] ICE with incomplete macro reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-03-13 21:11 ` tromey at gcc dot gnu dot org
@ 2008-03-13 21:12 ` tromey at gcc dot gnu dot org
  2008-03-14 14:53 ` ubizjak at gmail dot com
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: tromey at gcc dot gnu dot org @ 2008-03-13 21:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from tromey at gcc dot gnu dot org  2008-03-13 21:11 -------
Fixed on trunk.
I'm never sure if I should close these PRs or not.
It is a regression on the older branches, but minor enough that I 
doubt anybody will want to back-port the fix.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.4.0
            Summary|[4.2/4.3/4.4 regression] ICE|[4.2/4.3 regression] ICE
                   |with incomplete macro       |with incomplete macro
   Target Milestone|4.2.4                       |4.4.0


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


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

* [Bug preprocessor/35322] [4.2/4.3 regression] ICE with incomplete macro
  2008-02-23 18:44 [Bug c/35322] New: [4.2/4.3/4.4 regression] ICE with incomplete macro reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-03-13 21:12 ` [Bug preprocessor/35322] [4.2/4.3 " tromey at gcc dot gnu dot org
@ 2008-03-14 14:53 ` ubizjak at gmail dot com
  2008-03-14 15:46 ` tromey at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ubizjak at gmail dot com @ 2008-03-14 14:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from ubizjak at gmail dot com  2008-03-14 14:52 -------
(In reply to comment #4)
> Fixed on trunk.

This patch is also needed:

Index: pr35322.c
===================================================================
--- pr35322.c   (revision 133217)
+++ pr35322.c   (working copy)
@@ -1,4 +1,4 @@
 /* Test case for PR 35322 -- _Pragma ICE.  */

 /* { dg-do preprocess } */
-_Pragma("GCC dependency")
+_Pragma("GCC dependency") /* { dg-error "#pragma dependency expects" } */


-- 


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


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

* [Bug preprocessor/35322] [4.2/4.3 regression] ICE with incomplete macro
  2008-02-23 18:44 [Bug c/35322] New: [4.2/4.3/4.4 regression] ICE with incomplete macro reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2008-03-14 14:53 ` ubizjak at gmail dot com
@ 2008-03-14 15:46 ` tromey at gcc dot gnu dot org
  2008-03-15  0:52 ` jsm28 at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: tromey at gcc dot gnu dot org @ 2008-03-14 15:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from tromey at gcc dot gnu dot org  2008-03-14 15:45 -------
Subject: Bug 35322

Author: tromey
Date: Fri Mar 14 15:44:56 2008
New Revision: 133220

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133220
Log:
2008-03-14  Uros Bizjak  <ubizjak@gmail.com>

        PR libcpp/35322:
        * gcc.dg/cpp/pr35322.c: Add dg-error line.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/cpp/pr35322.c


-- 


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


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

* [Bug preprocessor/35322] [4.2/4.3 regression] ICE with incomplete macro
  2008-02-23 18:44 [Bug c/35322] New: [4.2/4.3/4.4 regression] ICE with incomplete macro reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2008-03-14 15:46 ` tromey at gcc dot gnu dot org
@ 2008-03-15  0:52 ` jsm28 at gcc dot gnu dot org
  2008-06-06 15:02 ` rguenth at gcc dot gnu dot org
  2008-07-30 12:42 ` jakub at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-03-15  0:52 UTC (permalink / raw)
  To: gcc-bugs



-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.4.0                       |4.3.1


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


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

* [Bug preprocessor/35322] [4.2/4.3 regression] ICE with incomplete macro
  2008-02-23 18:44 [Bug c/35322] New: [4.2/4.3/4.4 regression] ICE with incomplete macro reichelt at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2008-03-15  0:52 ` jsm28 at gcc dot gnu dot org
@ 2008-06-06 15:02 ` rguenth at gcc dot gnu dot org
  2008-07-30 12:42 ` jakub at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-06-06 15:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rguenth at gcc dot gnu dot org  2008-06-06 14:59 -------
4.3.1 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.1                       |4.3.2


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


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

* [Bug preprocessor/35322] [4.2/4.3 regression] ICE with incomplete macro
  2008-02-23 18:44 [Bug c/35322] New: [4.2/4.3/4.4 regression] ICE with incomplete macro reichelt at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2008-06-06 15:02 ` rguenth at gcc dot gnu dot org
@ 2008-07-30 12:42 ` jakub at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-07-30 12:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jakub at gcc dot gnu dot org  2008-07-30 12:40 -------
I agree there is no need to fix this on the older branches.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.3.2                       |4.4.0


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


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

end of thread, other threads:[~2008-07-30 12:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-23 18:44 [Bug c/35322] New: [4.2/4.3/4.4 regression] ICE with incomplete macro reichelt at gcc dot gnu dot org
2008-02-23 18:44 ` [Bug c/35322] " reichelt at gcc dot gnu dot org
2008-02-23 18:52 ` [Bug preprocessor/35322] " pinskia at gcc dot gnu dot org
2008-03-03 16:28 ` rguenth at gcc dot gnu dot org
2008-03-13 15:49 ` tromey at gcc dot gnu dot org
2008-03-13 21:11 ` tromey at gcc dot gnu dot org
2008-03-13 21:12 ` [Bug preprocessor/35322] [4.2/4.3 " tromey at gcc dot gnu dot org
2008-03-14 14:53 ` ubizjak at gmail dot com
2008-03-14 15:46 ` tromey at gcc dot gnu dot org
2008-03-15  0:52 ` jsm28 at gcc dot gnu dot org
2008-06-06 15:02 ` rguenth at gcc dot gnu dot org
2008-07-30 12:42 ` jakub 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).