public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/22516] New: Segfault with ivopts at -O
@ 2005-07-17  0:28 falk at debian dot org
  2005-07-17  9:51 ` [Bug tree-optimization/22516] [4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: falk at debian dot org @ 2005-07-17  0:28 UTC (permalink / raw)
  To: gcc-bugs

GNU C version 4.1.0 20050716 (experimental) (alphaev68-unknown-linux-gnu)

falk@juist:/tmp% cat bug.c
void g(int x);
void f(int y2) {
    int y1 = 0, dy = y2;
    short sy = y2;
    for (;;) {
        g(y1);
        while (dy) {
            y1 += sy;
            dy += y2;
        }
    }
}

falk@juist:/tmp% gcc -c -O2 -W -Wall  bug.c                    
falk@juist:/tmp% gcc -c -O  -W -Wall  bug.c -fno-ivopts
falk@juist:/tmp% gcc -c -O  -W -Wall  bug.c            
bug.c: In function 'f':
bug.c:2: 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: Segfault with ivopts at -O
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: falk at debian dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: alphaev68-unknown-linux-gnu
  GCC host triplet: alphaev68-unknown-linux-gnu
GCC target triplet: alphaev68-unknown-linux-gnu


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


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

* [Bug tree-optimization/22516] [4.1 Regression] Segfault with ivopts at -O
  2005-07-17  0:28 [Bug tree-optimization/22516] New: Segfault with ivopts at -O falk at debian dot org
@ 2005-07-17  9:51 ` pinskia at gcc dot gnu dot org
  2005-07-18  9:46 ` rakdver 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 @ 2005-07-17  9:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-17 08:09 -------
Confirmed, backtrace:
#0  0x0010c034 in is_gimple_variable (t=0x0) at ../../gcc/tree-gimple.c:239
#1  0x0010c70c in is_gimple_val (t=0x0) at ../../gcc/tree-gimple.c:366
#2  0x0012bd94 in force_gimple_operand (expr=0x0, stmts=0xbffff528, simple=0 '\0', 
var=0x174d840) at ../../gcc/gimplify.c:4845
#3  0x001f1334 in rewrite_use_nonlinear_expr (data=0xbffff6f0, use=0x2105550, cand=0x2105830) 
at ../../gcc/tree-ssa-loop-ivopts.c:5365
#4  0x001f2dc8 in rewrite_use (data=0xbffff6f0, use=0x2105550, cand=0x2105830) at ../../gcc/tree-
ssa-loop-ivopts.c:5729
#5  0x001f2ed8 in rewrite_uses (data=0xbffff6f0) at ../../gcc/tree-ssa-loop-ivopts.c:5765
#6  0x001f3750 in tree_ssa_iv_optimize_loop (data=0xbffff6f0, loop=0x2105230) at ../../gcc/tree-
ssa-loop-ivopts.c:5941
#7  0x001f3858 in tree_ssa_iv_optimize (loops=0x21043a0) at ../../gcc/tree-ssa-loop-ivopts.c:5978
#8  0x001a3bf0 in tree_ssa_loop_ivopts () at ../../gcc/tree-ssa-loop.c:416
#9  0x005ba828 in execute_one_pass (pass=0x80cc8c) at ../../gcc/passes.c:778
#10 0x005ba948 in execute_pass_list (pass=0x80cc8c) at ../../gcc/passes.c:810
#11 0x005ba970 in execute_pass_list (pass=0x80ca50) at ../../gcc/passes.c:811
#12 0x005ba970 in execute_pass_list (pass=0x80c498) at ../../gcc/passes.c:811
#13 0x0010aaa0 in tree_rest_of_compilation (fndecl=0x174e780) at ../../gcc/tree-optimize.c:420

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rakdver at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
  GCC build triplet|alphaev68-unknown-linux-gnu |
   GCC host triplet|alphaev68-unknown-linux-gnu |
 GCC target triplet|alphaev68-unknown-linux-gnu |alphaev68-*-linux-gnu
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-17 08:09:53
               date|                            |
            Summary|Segfault with ivopts at -O  |[4.1 Regression] Segfault
                   |                            |with ivopts at -O
   Target Milestone|---                         |4.1.0
            Version|4.0.2                       |4.1.0


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


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

* [Bug tree-optimization/22516] [4.1 Regression] Segfault with ivopts at -O
  2005-07-17  0:28 [Bug tree-optimization/22516] New: Segfault with ivopts at -O falk at debian dot org
  2005-07-17  9:51 ` [Bug tree-optimization/22516] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-07-18  9:46 ` rakdver at gcc dot gnu dot org
  2005-09-09  1:01 ` janis at gcc dot gnu dot org
  2005-09-10 13:04 ` belyshev at depni dot sinp dot msu dot ru
  3 siblings, 0 replies; 5+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2005-07-18  9:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rakdver at gcc dot gnu dot org  2005-07-18 09:44 -------
Probably the same as PR 22438.

-- 


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


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

* [Bug tree-optimization/22516] [4.1 Regression] Segfault with ivopts at -O
  2005-07-17  0:28 [Bug tree-optimization/22516] New: Segfault with ivopts at -O falk at debian dot org
  2005-07-17  9:51 ` [Bug tree-optimization/22516] [4.1 Regression] " pinskia at gcc dot gnu dot org
  2005-07-18  9:46 ` rakdver at gcc dot gnu dot org
@ 2005-09-09  1:01 ` janis at gcc dot gnu dot org
  2005-09-10 13:04 ` belyshev at depni dot sinp dot msu dot ru
  3 siblings, 0 replies; 5+ messages in thread
From: janis at gcc dot gnu dot org @ 2005-09-09  1:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From janis at gcc dot gnu dot org  2005-09-09 01:00 -------
A regression hunt on powerpc-linux shows that the test case starts failing
with this patch from rakdver:

  http://gcc.gnu.org/ml/gcc-cvs/2005-07/msg00181.html

-- 


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


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

* [Bug tree-optimization/22516] [4.1 Regression] Segfault with ivopts at -O
  2005-07-17  0:28 [Bug tree-optimization/22516] New: Segfault with ivopts at -O falk at debian dot org
                   ` (2 preceding siblings ...)
  2005-09-09  1:01 ` janis at gcc dot gnu dot org
@ 2005-09-10 13:04 ` belyshev at depni dot sinp dot msu dot ru
  3 siblings, 0 replies; 5+ messages in thread
From: belyshev at depni dot sinp dot msu dot ru @ 2005-09-10 13:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From belyshev at depni dot sinp dot msu dot ru  2005-09-10 13:03 -------
(In reply to comment #3)
> A regression hunt on powerpc-linux shows that the test case starts failing
> with this patch from rakdver:
> 
>   http://gcc.gnu.org/ml/gcc-cvs/2005-07/msg00181.html

so this is a dup of PR 22438

*** This bug has been marked as a duplicate of 22438 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2005-09-10 13:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-17  0:28 [Bug tree-optimization/22516] New: Segfault with ivopts at -O falk at debian dot org
2005-07-17  9:51 ` [Bug tree-optimization/22516] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-07-18  9:46 ` rakdver at gcc dot gnu dot org
2005-09-09  1:01 ` janis at gcc dot gnu dot org
2005-09-10 13:04 ` belyshev at depni dot sinp dot msu dot ru

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).