public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/17907] New: ICE in optimize_inline_calls
@ 2004-10-09 11:34 aj at gcc dot gnu dot org
  2004-10-09 11:35 ` [Bug middle-end/17907] " aj at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: aj at gcc dot gnu dot org @ 2004-10-09 11:34 UTC (permalink / raw)
  To: gcc-bugs

I received the following ICE: 
 
 /opt/gcc/4.0-devel/bin/g++ -O2 -fpreprocessed XmlOutputEventHandler.ii -v 
Reading specs from /opt/gcc/4.0-devel/lib/gcc/x86_64-suse-linux-gnu/4.0.0/specs 
Configured with: /cvs/gcc/configure --prefix=/opt/gcc/4.0-devel --disable-nls 
--enable-threads=posix --enable-clocale=gnu --enable-__cxa_atexit 
--enable-shared--enable-languages=c,c++,treelang,java,f95,objc 
--with-system-zlib x86_64-suse-linux-gnu 
Thread model: posix 
gcc version 4.0.0 20041007 (experimental) 
 /opt/gcc/4.0-devel/libexec/gcc/x86_64-suse-linux-gnu/4.0.0/cc1plus 
-fpreprocessed XmlOutputEventHandler.ii -quiet -dumpbase 
XmlOutputEventHandler.ii -mtune=k8-auxbase XmlOutputEventHandler -O2 -version 
-fpreprocessed -o /tmp/ccDsoHpJ.s 
GNU C++ version 4.0.0 20041007 (experimental) (x86_64-suse-linux-gnu) 
        compiled by GNU C version 4.0.0 20041007 (experimental). 
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 
XmlOutputEventHandler.ii: In member function `virtual void 
OpenSP::XmlOutputEventHandler::inputOpened(OpenSP::InputSource*)': 
XmlOutputEventHandler.ii:18499: internal compiler error: in 
optimize_inline_calls, at /tree-inline.c:1796 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           Summary: ICE in optimize_inline_calls
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: aj at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,jh at suse dot cz
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


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


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

* [Bug middle-end/17907] ICE in optimize_inline_calls
  2004-10-09 11:34 [Bug middle-end/17907] New: ICE in optimize_inline_calls aj at gcc dot gnu dot org
@ 2004-10-09 11:35 ` aj at gcc dot gnu dot org
  2004-10-09 14:29 ` [Bug middle-end/17907] [4.0 Regression] ice in optimize_inline_calls, at tree-inline.c pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: aj at gcc dot gnu dot org @ 2004-10-09 11:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From aj at gcc dot gnu dot org  2004-10-09 11:35 -------
Created an attachment (id=7313)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7313&action=view)
Preprocessed source file


-- 


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


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

* [Bug middle-end/17907] [4.0 Regression] ice in optimize_inline_calls, at tree-inline.c
  2004-10-09 11:34 [Bug middle-end/17907] New: ICE in optimize_inline_calls aj at gcc dot gnu dot org
  2004-10-09 11:35 ` [Bug middle-end/17907] " aj at gcc dot gnu dot org
@ 2004-10-09 14:29 ` pinskia at gcc dot gnu dot org
  2004-10-09 15:29 ` [Bug c++/17907] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-09 14:29 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Keywords|                            |ice-on-valid-code
            Summary|ICE in optimize_inline_calls|[4.0 Regression] ice in
                   |                            |optimize_inline_calls, at
                   |                            |tree-inline.c
   Target Milestone|---                         |4.0.0


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


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

* [Bug middle-end/17907] [4.0 Regression] ice in optimize_inline_calls, at tree-inline.c
  2004-10-09 11:34 [Bug middle-end/17907] New: ICE in optimize_inline_calls aj at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-10-09 15:29 ` [Bug c++/17907] " pinskia at gcc dot gnu dot org
@ 2004-10-09 15:29 ` pinskia at gcc dot gnu dot org
  2004-10-09 16:05 ` [Bug c++/17907] " pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-09 15:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-09 15:29 -------
Confirmed, reduced testcase:
struct String {
  ~String();
  int size() const;
};
struct CodingSystem {
  String convertOut() const;
};
void inputOpened(CodingSystem *outputCodingSystem)
{
   char filePath[outputCodingSystem->convertOut().size()];
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-09 15:29:05
               date|                            |


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


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

* [Bug c++/17907] [4.0 Regression] ice in optimize_inline_calls, at tree-inline.c
  2004-10-09 11:34 [Bug middle-end/17907] New: ICE in optimize_inline_calls aj at gcc dot gnu dot org
  2004-10-09 11:35 ` [Bug middle-end/17907] " aj at gcc dot gnu dot org
  2004-10-09 14:29 ` [Bug middle-end/17907] [4.0 Regression] ice in optimize_inline_calls, at tree-inline.c pinskia at gcc dot gnu dot org
@ 2004-10-09 15:29 ` pinskia at gcc dot gnu dot org
  2004-10-09 15:29 ` [Bug middle-end/17907] " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-09 15:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-09 15:29 -------
This is a front-end bug, we are forgetting a CLEANUP_POINT_EXPR somewhere.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |c++


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


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

* [Bug c++/17907] [4.0 Regression] ice in optimize_inline_calls, at tree-inline.c
  2004-10-09 11:34 [Bug middle-end/17907] New: ICE in optimize_inline_calls aj at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-10-09 15:29 ` [Bug middle-end/17907] " pinskia at gcc dot gnu dot org
@ 2004-10-09 16:05 ` pinskia at gcc dot gnu dot org
  2004-10-09 16:15 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-09 16:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-09 16:05 -------
Mine I have a fix and I was right, add_decl_expr was missing the case where the size needed cleanup.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/17907] [4.0 Regression] ice in optimize_inline_calls, at tree-inline.c
  2004-10-09 11:34 [Bug middle-end/17907] New: ICE in optimize_inline_calls aj at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-10-09 16:05 ` [Bug c++/17907] " pinskia at gcc dot gnu dot org
@ 2004-10-09 16:15 ` pinskia at gcc dot gnu dot org
  2004-10-11  3:16 ` pinskia at gcc dot gnu dot org
  2004-10-11  3:16 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-09 16:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-09 16:15 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-10/msg00825.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


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

* [Bug c++/17907] [4.0 Regression] ice in optimize_inline_calls, at tree-inline.c
  2004-10-09 11:34 [Bug middle-end/17907] New: ICE in optimize_inline_calls aj at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2004-10-11  3:16 ` pinskia at gcc dot gnu dot org
@ 2004-10-11  3:16 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-11  3:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-11 03:16 -------
Subject: Bug 17907

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2004-10-11 03:16:47

Modified files:
	gcc/cp         : ChangeLog semantics.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/eh: cleanup5.C 

Log message:
	2004-10-10  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR c++/17907
	* semantics.c (add_decl_expr): If the decl has a size which
	has side effects then the decl expression needs a cleanup point.
	2004-10-10  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR c++/17907
	* g++.dg/eh/cleanup5.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4419&r2=1.4420
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&r1=1.443&r2=1.444
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4431&r2=1.4432
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/eh/cleanup5.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c++/17907] [4.0 Regression] ice in optimize_inline_calls, at tree-inline.c
  2004-10-09 11:34 [Bug middle-end/17907] New: ICE in optimize_inline_calls aj at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-10-09 16:15 ` pinskia at gcc dot gnu dot org
@ 2004-10-11  3:16 ` pinskia at gcc dot gnu dot org
  2004-10-11  3:16 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-11  3:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-11 03:16 -------
Fixed.

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


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


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

end of thread, other threads:[~2004-10-11  3:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-09 11:34 [Bug middle-end/17907] New: ICE in optimize_inline_calls aj at gcc dot gnu dot org
2004-10-09 11:35 ` [Bug middle-end/17907] " aj at gcc dot gnu dot org
2004-10-09 14:29 ` [Bug middle-end/17907] [4.0 Regression] ice in optimize_inline_calls, at tree-inline.c pinskia at gcc dot gnu dot org
2004-10-09 15:29 ` [Bug c++/17907] " pinskia at gcc dot gnu dot org
2004-10-09 15:29 ` [Bug middle-end/17907] " pinskia at gcc dot gnu dot org
2004-10-09 16:05 ` [Bug c++/17907] " pinskia at gcc dot gnu dot org
2004-10-09 16:15 ` pinskia at gcc dot gnu dot org
2004-10-11  3:16 ` pinskia at gcc dot gnu dot org
2004-10-11  3:16 ` cvs-commit 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).