public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug pch/26660] New: PCH vs -save-temps, ICE while GCing
@ 2006-03-13 0:48 pinskia at gcc dot gnu dot org
2006-03-13 0:52 ` [Bug pch/26660] [4.2 Regression] " pinskia at gcc dot gnu dot org
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-13 0:48 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1066 bytes --]
create an empty file called t.hh.
create a file called t1.cc with:
#include "t.hh"
extern __inline__ int
stat (__const char *__path, struct stat *__statbuf) throw ()
{
--------------
compile the PCH like:
g++ t.hh
and the source file with:
g++ t1.cc -save-temps --param ggc-min-expand=0 --param ggc-min-heapsize=0
And see the following ICE:
t1.cc: In function int stat(const char*, stat*):
t1.cc:4: error: expected `}' at end of input
t1.cc: At global scope:
t1.cc:4: 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.
--
Summary: PCH vs -save-temps, ICE while GCing
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, GC
Severity: normal
Priority: P3
Component: pch
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26660
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug pch/26660] [4.2 Regression] PCH vs -save-temps, ICE while GCing
2006-03-13 0:48 [Bug pch/26660] New: PCH vs -save-temps, ICE while GCing pinskia at gcc dot gnu dot org
@ 2006-03-13 0:52 ` pinskia at gcc dot gnu dot org
2006-03-13 0:53 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-13 0:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-13 00:52 -------
This worked with "4.1.0 20060208".
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC target triplet| |x86-64-linux-gnu
Summary|PCH vs -save-temps, ICE |[4.2 Regression] PCH vs -
|while GCing |save-temps, ICE while GCing
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26660
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug pch/26660] [4.2 Regression] PCH vs -save-temps, ICE while GCing
2006-03-13 0:48 [Bug pch/26660] New: PCH vs -save-temps, ICE while GCing pinskia at gcc dot gnu dot org
2006-03-13 0:52 ` [Bug pch/26660] [4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-03-13 0:53 ` pinskia at gcc dot gnu dot org
2006-03-13 2:41 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-13 0:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-13 00:53 -------
I should note I found this wil trying to figure out why a libstdc++ testcase
was failing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26660
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug pch/26660] [4.2 Regression] PCH vs -save-temps, ICE while GCing
2006-03-13 0:48 [Bug pch/26660] New: PCH vs -save-temps, ICE while GCing pinskia at gcc dot gnu dot org
2006-03-13 0:52 ` [Bug pch/26660] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-03-13 0:53 ` pinskia at gcc dot gnu dot org
@ 2006-03-13 2:41 ` pinskia at gcc dot gnu dot org
2006-03-13 2:42 ` [Bug c++/26660] " pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-13 2:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-03-13 02:41 -------
Just a note the reason why this is ICE on valid and not just ICE on invalid is
because the source to t1.cc could also be:
#include "t.hh"
extern __inline__ int
stat (__const char *__path, struct stat *__statbuf) throw ()
{
}
-----
And it still ICEs.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26660
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26660] [4.2 Regression] PCH vs -save-temps, ICE while GCing
2006-03-13 0:48 [Bug pch/26660] New: PCH vs -save-temps, ICE while GCing pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-03-13 2:41 ` pinskia at gcc dot gnu dot org
@ 2006-03-13 2:42 ` pinskia at gcc dot gnu dot org
2006-03-13 22:32 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-13 2:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-03-13 02:42 -------
I am almost wanting to say this was caused by the openmp merge but I don't know
for sure.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|pch |c++
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26660
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26660] [4.2 Regression] PCH vs -save-temps, ICE while GCing
2006-03-13 0:48 [Bug pch/26660] New: PCH vs -save-temps, ICE while GCing pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-03-13 2:42 ` [Bug c++/26660] " pinskia at gcc dot gnu dot org
@ 2006-03-13 22:32 ` pinskia at gcc dot gnu dot org
2006-03-13 22:34 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-13 22:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-03-13 22:32 -------
This worked with "4.2.0 20060306" so it has to be a recent change.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC target triplet|x86-64-linux-gnu |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26660
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26660] [4.2 Regression] PCH vs -save-temps, ICE while GCing
2006-03-13 0:48 [Bug pch/26660] New: PCH vs -save-temps, ICE while GCing pinskia at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-03-13 22:32 ` pinskia at gcc dot gnu dot org
@ 2006-03-13 22:34 ` pinskia at gcc dot gnu dot org
2006-04-01 13:00 ` bsdfan3 at users dot sourceforge dot net
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-13 22:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pinskia at gcc dot gnu dot org 2006-03-13 22:34 -------
This is a blocker as I reduced it from a failing libstdc++ testcase.
CCing the developers of the openmp patch since that is the only patch to the
C++ front-end which could have caused this within the dates I gave.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rth at gcc dot gnu dot org,
| |dnovillo at redhat dot com,
| |jakub at redhat dot com
Severity|normal |blocker
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26660
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26660] [4.2 Regression] PCH vs -save-temps, ICE while GCing
2006-03-13 0:48 [Bug pch/26660] New: PCH vs -save-temps, ICE while GCing pinskia at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-03-13 22:34 ` pinskia at gcc dot gnu dot org
@ 2006-04-01 13:00 ` bsdfan3 at users dot sourceforge dot net
2006-04-01 13:05 ` bsdfan3 at users dot sourceforge dot net
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bsdfan3 at users dot sourceforge dot net @ 2006-04-01 13:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from bsdfan3 at users dot sourceforge dot net 2006-04-01 13:00 -------
Still fails on mainline:
$ mainline-gcc t1.cc -save-temps --param ggc-min-expand=0 --param ggc-min-heap
size=0
t1.cc:5: 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.
Lucas@your-xu5v9frokn ~
$ mainline-gcc --version
mainline-gcc (GCC) 4.2.0 20060401 (experimental)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Could someone please change this bug from UNCONFIRMED?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26660
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26660] [4.2 Regression] PCH vs -save-temps, ICE while GCing
2006-03-13 0:48 [Bug pch/26660] New: PCH vs -save-temps, ICE while GCing pinskia at gcc dot gnu dot org
` (6 preceding siblings ...)
2006-04-01 13:00 ` bsdfan3 at users dot sourceforge dot net
@ 2006-04-01 13:05 ` bsdfan3 at users dot sourceforge dot net
2006-04-10 13:58 ` reichelt at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bsdfan3 at users dot sourceforge dot net @ 2006-04-01 13:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from bsdfan3 at users dot sourceforge dot net 2006-04-01 13:05 -------
GCC 3.4.4 seems to compile the testcase fine though (sorry about the linker
error, nobody specified -c on the build command line):
Lucas@your-xu5v9frokn ~
$ gcc t1.cc -save-temps --param ggc-min-expand=0 --param ggc-min-heapsize=0
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o):: undefined
r
eference to `_WinMain@16'
collect2: ld returned 1 exit status
Lucas@your-xu5v9frokn ~
$ gcc --version
gcc (GCC) 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26660
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26660] [4.2 Regression] PCH vs -save-temps, ICE while GCing
2006-03-13 0:48 [Bug pch/26660] New: PCH vs -save-temps, ICE while GCing pinskia at gcc dot gnu dot org
` (7 preceding siblings ...)
2006-04-01 13:05 ` bsdfan3 at users dot sourceforge dot net
@ 2006-04-10 13:58 ` reichelt at gcc dot gnu dot org
2006-05-28 6:47 ` aoliva at gcc dot gnu dot org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-10 13:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from reichelt at gcc dot gnu dot org 2006-04-10 13:58 -------
Confirmed. One can also use the following for t1.cc:
=====================================
#include "t.hh"
void foo() {}
=====================================
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-04-10 13:58:10
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26660
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26660] [4.2 Regression] PCH vs -save-temps, ICE while GCing
2006-03-13 0:48 [Bug pch/26660] New: PCH vs -save-temps, ICE while GCing pinskia at gcc dot gnu dot org
` (8 preceding siblings ...)
2006-04-10 13:58 ` reichelt at gcc dot gnu dot org
@ 2006-05-28 6:47 ` aoliva at gcc dot gnu dot org
2006-05-28 6:49 ` aoliva at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2006-05-28 6:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from aoliva at gcc dot gnu dot org 2006-05-28 06:47 -------
Mine
--
aoliva at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |aoliva at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-04-10 13:58:10 |2006-05-28 06:47:10
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26660
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26660] [4.2 Regression] PCH vs -save-temps, ICE while GCing
2006-03-13 0:48 [Bug pch/26660] New: PCH vs -save-temps, ICE while GCing pinskia at gcc dot gnu dot org
` (9 preceding siblings ...)
2006-05-28 6:47 ` aoliva at gcc dot gnu dot org
@ 2006-05-28 6:49 ` aoliva at gcc dot gnu dot org
2006-06-01 4:55 ` aoliva at gcc dot gnu dot org
2006-06-01 4:57 ` aoliva at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2006-05-28 6:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from aoliva at gcc dot gnu dot org 2006-05-28 06:49 -------
Created an attachment (id=11522)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11522&action=view)
Patch that appears to fix the problem
This patch, that I'm testing now, appears to fix the bug. And it even makes
sense! :-)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26660
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26660] [4.2 Regression] PCH vs -save-temps, ICE while GCing
2006-03-13 0:48 [Bug pch/26660] New: PCH vs -save-temps, ICE while GCing pinskia at gcc dot gnu dot org
` (10 preceding siblings ...)
2006-05-28 6:49 ` aoliva at gcc dot gnu dot org
@ 2006-06-01 4:55 ` aoliva at gcc dot gnu dot org
2006-06-01 4:57 ` aoliva at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2006-06-01 4:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from aoliva at gcc dot gnu dot org 2006-06-01 04:55 -------
Subject: Bug 26660
Author: aoliva
Date: Thu Jun 1 04:55:32 2006
New Revision: 114298
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114298
Log:
PR c++/26660
* parser.c (cp_parser_initial_pragma): Read one more token for
caller after reading PCH file in.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26660
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26660] [4.2 Regression] PCH vs -save-temps, ICE while GCing
2006-03-13 0:48 [Bug pch/26660] New: PCH vs -save-temps, ICE while GCing pinskia at gcc dot gnu dot org
` (11 preceding siblings ...)
2006-06-01 4:55 ` aoliva at gcc dot gnu dot org
@ 2006-06-01 4:57 ` aoliva at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2006-06-01 4:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from aoliva at gcc dot gnu dot org 2006-06-01 04:56 -------
Fixed
--
aoliva at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26660
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2006-06-01 4:57 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-13 0:48 [Bug pch/26660] New: PCH vs -save-temps, ICE while GCing pinskia at gcc dot gnu dot org
2006-03-13 0:52 ` [Bug pch/26660] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-03-13 0:53 ` pinskia at gcc dot gnu dot org
2006-03-13 2:41 ` pinskia at gcc dot gnu dot org
2006-03-13 2:42 ` [Bug c++/26660] " pinskia at gcc dot gnu dot org
2006-03-13 22:32 ` pinskia at gcc dot gnu dot org
2006-03-13 22:34 ` pinskia at gcc dot gnu dot org
2006-04-01 13:00 ` bsdfan3 at users dot sourceforge dot net
2006-04-01 13:05 ` bsdfan3 at users dot sourceforge dot net
2006-04-10 13:58 ` reichelt at gcc dot gnu dot org
2006-05-28 6:47 ` aoliva at gcc dot gnu dot org
2006-05-28 6:49 ` aoliva at gcc dot gnu dot org
2006-06-01 4:55 ` aoliva at gcc dot gnu dot org
2006-06-01 4:57 ` aoliva 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).