public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/18299] New: ICE
@ 2004-11-04 18:11 nathan at gcc dot gnu dot org
  2004-11-04 18:12 ` [Bug tree-optimization/18299] ICE nathan at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-11-04 18:11 UTC (permalink / raw)
  To: gcc-bugs

The attached code (preprocessed cp/decl.c with a patch), causes an ice at -O2.
I think it might have something to do with nested statement-expressions.


nathan@garibaldi:179>./cc1 -O2 bug.i -quiet
 <var_decl 0x40a96b54 __t>bug.i: In function 'start_preparsed_function':
bug.i:20444: internal compiler error: unexpected node

-- 
           Summary: ICE
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nathan at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug tree-optimization/18299] ICE
  2004-11-04 18:11 [Bug tree-optimization/18299] New: ICE nathan at gcc dot gnu dot org
@ 2004-11-04 18:12 ` nathan at gcc dot gnu dot org
  2004-11-04 19:19 ` [Bug middle-end/18299] [4.0 Regression] ICE in gimple-lower pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-11-04 18:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From nathan at gcc dot gnu dot org  2004-11-04 18:12 -------
Created an attachment (id=7472)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7472&action=view)
preprocessed source


-- 


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


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

* [Bug middle-end/18299] [4.0 Regression] ICE in gimple-lower
  2004-11-04 18:11 [Bug tree-optimization/18299] New: ICE nathan at gcc dot gnu dot org
  2004-11-04 18:12 ` [Bug tree-optimization/18299] ICE nathan at gcc dot gnu dot org
@ 2004-11-04 19:19 ` pinskia at gcc dot gnu dot org
  2004-11-04 19:48 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-04 19:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-04 19:19 -------
Confimed, reducing (gimple-lowering is crapping out on VAR_DECL, it could also crap out on 
INDIRECT_REF, and COMPONENT_REF which are valid gimple statements).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
          Component|tree-optimization           |middle-end
           Keywords|                            |ice-on-valid-code
            Summary|ICE                         |[4.0 Regression] ICE in
                   |                            |gimple-lower
   Target Milestone|---                         |4.0.0


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


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

* [Bug middle-end/18299] [4.0 Regression] ICE in gimple-lower
  2004-11-04 18:11 [Bug tree-optimization/18299] New: ICE nathan at gcc dot gnu dot org
  2004-11-04 18:12 ` [Bug tree-optimization/18299] ICE nathan at gcc dot gnu dot org
  2004-11-04 19:19 ` [Bug middle-end/18299] [4.0 Regression] ICE in gimple-lower pinskia at gcc dot gnu dot org
@ 2004-11-04 19:48 ` pinskia at gcc dot gnu dot org
  2004-11-04 19:52 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-04 19:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-04 19:48 -------
note the code will not work as you have "const tree __t = (__t);" in the code.  I will see if I can reduce it 
as this should not be that important.  This is why macros are bad.

-- 


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


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

* [Bug middle-end/18299] [4.0 Regression] ICE in gimple-lower
  2004-11-04 18:11 [Bug tree-optimization/18299] New: ICE nathan at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-11-04 19:48 ` pinskia at gcc dot gnu dot org
@ 2004-11-04 19:52 ` pinskia at gcc dot gnu dot org
  2004-11-08 13:53 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-04 19:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-04 19:52 -------
Confirmed, here is the reduced testcase:
static inline int f(int i)
{
const int __t = (__t);
}
int g(void)
{
  return f(0);
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-11-04 19:52:12
               date|                            |


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


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

* [Bug middle-end/18299] [4.0 Regression] ICE in gimple-lower
  2004-11-04 18:11 [Bug tree-optimization/18299] New: ICE nathan at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-11-04 19:52 ` pinskia at gcc dot gnu dot org
@ 2004-11-08 13:53 ` pinskia at gcc dot gnu dot org
  2004-11-08 14:48 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-08 13:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-08 13:53 -------
: Search converges between 2003-07-29-trunk (#308) and 2003-07-30-trunk (#309).


-- 


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


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

* [Bug middle-end/18299] [4.0 Regression] ICE in gimple-lower
  2004-11-04 18:11 [Bug tree-optimization/18299] New: ICE nathan at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-11-08 13:53 ` pinskia at gcc dot gnu dot org
@ 2004-11-08 14:48 ` pinskia at gcc dot gnu dot org
  2004-11-08 19:19 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-08 14:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-08 14:48 -------
(stupid thing was failing for a while before 3.4):

: Search converges between 2004-05-11-trunk (#454) and 2004-05-14-trunk (#455).
And we have been failing on the tree-ssa for a long time (since at least 2003-05-30).

-- 


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


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

* [Bug middle-end/18299] [4.0 Regression] ICE in gimple-lower
  2004-11-04 18:11 [Bug tree-optimization/18299] New: ICE nathan at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-11-08 14:48 ` pinskia at gcc dot gnu dot org
@ 2004-11-08 19:19 ` pinskia at gcc dot gnu dot org
  2004-11-08 19:47 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-08 19:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-08 19:19 -------
Created an attachment (id=7493)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7493&action=view)
patch which I am testing

This patch fixes the bug in the tree-inliner but I want to make sure that we
only inline when we are in gimple and that we will only produce gimple when
inlining (I think this is true but I want to know for sure).

-- 
           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=18299


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

* [Bug middle-end/18299] [4.0 Regression] ICE in gimple-lower
  2004-11-04 18:11 [Bug tree-optimization/18299] New: ICE nathan at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2004-11-08 19:19 ` pinskia at gcc dot gnu dot org
@ 2004-11-08 19:47 ` pinskia at gcc dot gnu dot org
  2004-11-08 20:12 ` cvs-commit at gcc dot gnu dot org
  2004-11-08 20:12 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-08 19:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-08 19:47 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00631.html>.

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


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


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

* [Bug middle-end/18299] [4.0 Regression] ICE in gimple-lower
  2004-11-04 18:11 [Bug tree-optimization/18299] New: ICE nathan at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2004-11-08 19:47 ` pinskia at gcc dot gnu dot org
@ 2004-11-08 20:12 ` cvs-commit at gcc dot gnu dot org
  2004-11-08 20:12 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-08 20:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-08 20:11 -------
Fixed.
------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-11-08 20:11 -------
Subject: Bug 18299

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2004-11-08 20:10:46

Modified files:
	gcc            : tree-inline.c ChangeLog 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.c-torture: pr18299-1.c 

Log message:
	2004-11-08  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR tree-opt/18299
	* gcc.c-torture/pr18299-1.c: New test.
	
	2004-11-08  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR tree-opt/18299
	* tree-inline.c (copy_body_r): Change "t = t" to empty
	statement instead of "t".

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-inline.c.diff?cvsroot=gcc&r1=1.148&r2=1.149
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6225&r2=2.6226
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4559&r2=1.4560
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/pr18299-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



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


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


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

* [Bug middle-end/18299] [4.0 Regression] ICE in gimple-lower
  2004-11-04 18:11 [Bug tree-optimization/18299] New: ICE nathan at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2004-11-08 20:12 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-08 20:12 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-08 20:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-08 20:11 -------
Fixed.

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


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


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

end of thread, other threads:[~2004-11-08 20:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-04 18:11 [Bug tree-optimization/18299] New: ICE nathan at gcc dot gnu dot org
2004-11-04 18:12 ` [Bug tree-optimization/18299] ICE nathan at gcc dot gnu dot org
2004-11-04 19:19 ` [Bug middle-end/18299] [4.0 Regression] ICE in gimple-lower pinskia at gcc dot gnu dot org
2004-11-04 19:48 ` pinskia at gcc dot gnu dot org
2004-11-04 19:52 ` pinskia at gcc dot gnu dot org
2004-11-08 13:53 ` pinskia at gcc dot gnu dot org
2004-11-08 14:48 ` pinskia at gcc dot gnu dot org
2004-11-08 19:19 ` pinskia at gcc dot gnu dot org
2004-11-08 19:47 ` pinskia at gcc dot gnu dot org
2004-11-08 20:12 ` cvs-commit at gcc dot gnu dot org
2004-11-08 20:12 ` pinskia 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).