[Bug middle-end/41930] [4.5 regression] cc1 SEGV compiling maxval_r16.c

2009-11-12 Thread ro at techfak dot uni-bielefeld dot de


--- Comment #11 from ro at techfak dot uni-bielefeld dot de  2009-11-12 
16:46 ---
Subject: Re:  [4.5 regression] cc1 SEGV compiling maxval_r16.c

Bootstrap finishes with your patch on alpha-dec-osf5.1b; the testsuite is
still running.


-- 


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



[Bug middle-end/41930] [4.5 regression] cc1 SEGV compiling maxval_r16.c

2009-11-11 Thread ubizjak at gmail dot com


--- Comment #6 from ubizjak at gmail dot com  2009-11-11 10:01 ---
(In reply to comment #3)
 Subject: Re:  [4.5 regression] cc1 SEGV compiling maxval_r16.c
 
  I'll build a cross compiler from i386-pc-solaris2.10 and see if I can
  reproduce the problem there.
 
 Unfortunately, the problem does not reproduce in such a cross compiler,
 so I'll have to either start a native reghunt or find a way to debug the
 native compiler (maybe compiling with -g without -O2 or try the stage1
 compiler if it is also affected).

Add --with-long-double-128 to your configure flags and it will also trigger
with a cross compiler.

Confirmed with a cross from x86_64-pc-linux-gnu.


-- 

ubizjak at gmail dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2009-11-11 10:01:06
   date||


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



[Bug middle-end/41930] [4.5 regression] cc1 SEGV compiling maxval_r16.c

2009-11-11 Thread ubizjak at gmail dot com


--- Comment #7 from ubizjak at gmail dot com  2009-11-11 10:37 ---
We recurse with:

simplify_replace_fn_rtx called, x =
(expr_list:REG_DEP_TRUE (symbol_ref:DI (_OtsGeqX) [flags 0x41])
(expr_list:REG_DEP_TRUE (mem:TF (reg/f:DI 75 [ array_3(D)-data ]) [3 S16
A128])
(expr_list:REG_DEP_TRUE (reg:TF 76)
(nil

simplify_replace_fn_rtx called, x =
(symbol_ref:DI (_OtsGeqX) [flags 0x41])

simplify_replace_fn_rtx called, x =
(expr_list:REG_DEP_TRUE (mem:TF (reg/f:DI 75 [ array_3(D)-data ]) [3 S16
A128])
(expr_list:REG_DEP_TRUE (reg:TF 76)
(nil)))

simplify_replace_fn_rtx called, x =
(mem:TF (reg/f:DI 75 [ array_3(D)-data ]) [3 S16 A128])

simplify_replace_fn_rtx called, x =
(reg/f:DI 75 [ array_3(D)-data ])

simplify_replace_fn_rtx called, x =
(expr_list:REG_DEP_TRUE (reg:TF 76)
(nil))

simplify_replace_fn_rtx called, x =
(reg:TF 76)

gcc dies in case 'e':, recursing with (nil) from:

(expr_list:REG_DEP_TRUE (reg:TF 76)
(nil))

The fix is then trivial, like [no whitespace diff]:

--cut here--
Index: simplify-rtx.c
===
--- simplify-rtx.c  (revision 154088)
+++ simplify-rtx.c  (working copy)
@@ -489,6 +489,8 @@ simplify_replace_fn_rtx (rtx x, const_rt
break;

   case 'e':
+   if (XEXP (x, i))
+ {
op = simplify_replace_fn_rtx (XEXP (x, i), old_rtx, fn, data);
if (op != XEXP (x, i))
  {
@@ -496,6 +498,7 @@ simplify_replace_fn_rtx (rtx x, const_rt
  newx = shallow_copy_rtx (x);
XEXP (newx, i) = op;
  }
+ }
break;
   }
   return newx;
--cut here--


-- 

ubizjak at gmail dot com changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |ubizjak at gmail dot com
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2009-11-11 10:01:06 |2009-11-11 10:37:52
   date||


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



[Bug middle-end/41930] [4.5 regression] cc1 SEGV compiling maxval_r16.c

2009-11-11 Thread ubizjak at gmail dot com


--- Comment #8 from ubizjak at gmail dot com  2009-11-11 11:10 ---
Testing patch (it bootstraps OK on alpha-linux-gnu).


-- 


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



[Bug middle-end/41930] [4.5 regression] cc1 SEGV compiling maxval_r16.c

2009-11-11 Thread uros at gcc dot gnu dot org


--- Comment #9 from uros at gcc dot gnu dot org  2009-11-12 07:30 ---
Subject: Bug 41930

Author: uros
Date: Thu Nov 12 07:30:05 2009
New Revision: 154116

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=154116
Log:
PR middle-end/41930
* simplify-rtx.c (simplify_replace_fn_rtx) case 'e': Skip
processing if XEXP (x, i) is NULL.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/simplify-rtx.c


-- 


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



[Bug middle-end/41930] [4.5 regression] cc1 SEGV compiling maxval_r16.c

2009-11-11 Thread ubizjak at gmail dot com


--- Comment #10 from ubizjak at gmail dot com  2009-11-12 07:40 ---
Fixed.


-- 

ubizjak at gmail dot com changed:

   What|Removed |Added

URL||http://gcc.gnu.org/ml/gcc-
   ||patches/2009-
   ||11/msg00562.html
 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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



[Bug middle-end/41930] [4.5 regression] cc1 SEGV compiling maxval_r16.c

2009-11-09 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P4


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



[Bug middle-end/41930] [4.5 regression] cc1 SEGV compiling maxval_r16.c

2009-11-06 Thread pinskia at gcc dot gnu dot org


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
  Component|target  |middle-end
   Keywords||build, ice-on-valid-code
   Target Milestone|--- |4.5.0


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