public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/14266] New: ICE on legal
@ 2004-02-23 23:27 dalej at gcc dot gnu dot org
  2004-02-24  0:52 ` [Bug optimization/14266] [tree-ssa] ICE on legal, depends on .GLOBAL_VAR pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: dalej at gcc dot gnu dot org @ 2004-02-23 23:27 UTC (permalink / raw)
  To: gcc-bugs

This showed up in a large program where GLOBAL_VAR was chosen.
Compile the following with -O1 --param global-var-threshold=0
and watch the crash (with enable-checking).

void foo() {bar(); }
main() { foo(); }

-- 
           Summary: ICE on legal
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dalej at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin7.2.0
  GCC host triplet: powerpc-apple-darwin7.2.0
GCC target triplet: powerpc-apple-darwin7.2.0


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


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

* [Bug optimization/14266] [tree-ssa] ICE on legal, depends on .GLOBAL_VAR.
  2004-02-23 23:27 [Bug optimization/14266] New: ICE on legal dalej at gcc dot gnu dot org
@ 2004-02-24  0:52 ` pinskia at gcc dot gnu dot org
  2004-03-02 19:13 ` dnovillo at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-24  0:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-24 00:52 -------
Confirmed but only tried 20040220, trying a newer one now.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |tree-ssa
   Last reconfirmed|0000-00-00 00:00:00         |2004-02-24 00:52:56
               date|                            |
            Summary|ICE on legal                |[tree-ssa] ICE on legal,
                   |                            |depends on .GLOBAL_VAR.
   Target Milestone|---                         |tree-ssa


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


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

* [Bug optimization/14266] [tree-ssa] ICE on legal, depends on .GLOBAL_VAR.
  2004-02-23 23:27 [Bug optimization/14266] New: ICE on legal dalej at gcc dot gnu dot org
  2004-02-24  0:52 ` [Bug optimization/14266] [tree-ssa] ICE on legal, depends on .GLOBAL_VAR pinskia at gcc dot gnu dot org
@ 2004-03-02 19:13 ` dnovillo at gcc dot gnu dot org
  2004-03-02 19:38 ` dnovillo at gcc dot gnu dot org
  2004-03-02 19:49 ` cvs-commit at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2004-03-02 19:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dnovillo at gcc dot gnu dot org  2004-03-02 19:13 -------

Looking at it now.

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


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


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

* [Bug optimization/14266] [tree-ssa] ICE on legal, depends on .GLOBAL_VAR.
  2004-02-23 23:27 [Bug optimization/14266] New: ICE on legal dalej at gcc dot gnu dot org
  2004-02-24  0:52 ` [Bug optimization/14266] [tree-ssa] ICE on legal, depends on .GLOBAL_VAR pinskia at gcc dot gnu dot org
  2004-03-02 19:13 ` dnovillo at gcc dot gnu dot org
@ 2004-03-02 19:38 ` dnovillo at gcc dot gnu dot org
  2004-03-02 19:49 ` cvs-commit at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2004-03-02 19:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dnovillo at gcc dot gnu dot org  2004-03-02 19:38 -------
We were not marking .GLOBAL_VAR for renaming after creating it.  Fixed with:

Index: tree-ssa-alias.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa-alias.c,v
retrieving revision 1.1.2.7
diff -d -u -p -r1.1.2.7 tree-ssa-alias.c
--- tree-ssa-alias.c    27 Feb 2004 18:38:58 -0000      1.1.2.7
+++ tree-ssa-alias.c    2 Mar 2004 19:35:24 -0000
@@ -1713,6 +1713,7 @@ create_global_var (void)
   TREE_ADDRESSABLE (global_var) = 0;

   add_referenced_tmp_var (global_var);
+  bitmap_set_bit (vars_to_rename, var_ann (global_var)->uid);
 }


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


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


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

* [Bug optimization/14266] [tree-ssa] ICE on legal, depends on .GLOBAL_VAR.
  2004-02-23 23:27 [Bug optimization/14266] New: ICE on legal dalej at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-03-02 19:38 ` dnovillo at gcc dot gnu dot org
@ 2004-03-02 19:49 ` cvs-commit at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-02 19:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-03-02 19:49 -------
Subject: Bug 14266

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	tree-ssa-20020619-branch
Changes by:	dnovillo@gcc.gnu.org	2004-03-02 19:48:50

Modified files:
	gcc            : ChangeLog.tree-ssa tree-ssa-alias.c 
	gcc/testsuite  : ChangeLog.tree-ssa 
Added files:
	gcc/testsuite/gcc.dg/tree-ssa: 20040302-1.c 

Log message:
	PR optimization/14266
	* tree-ssa-alias.c (create_global_var): Mark GLOBAL_VAR for
	renaming.
	
	testsuite/ChangeLog.tree-ssa
	
	* gcc.dg/tree-ssa/20040302-1.c: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.tree-ssa.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.1247&r2=1.1.2.1248
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-alias.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.7&r2=1.1.2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.tree-ssa.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.180&r2=1.1.2.181
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/tree-ssa/20040302-1.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-23 23:27 [Bug optimization/14266] New: ICE on legal dalej at gcc dot gnu dot org
2004-02-24  0:52 ` [Bug optimization/14266] [tree-ssa] ICE on legal, depends on .GLOBAL_VAR pinskia at gcc dot gnu dot org
2004-03-02 19:13 ` dnovillo at gcc dot gnu dot org
2004-03-02 19:38 ` dnovillo at gcc dot gnu dot org
2004-03-02 19:49 ` 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).