[Bug middle-end/36238] [4.4 Regression] ICE in reg_or_subregno, at jump.c:1730

2008-08-09 Thread pinskia at gcc dot gnu dot org


--- Comment #4 from pinskia at gcc dot gnu dot org  2008-08-10 04:55 ---
Fixed, sorry this too so long to fix, there were other failures that were
blocking me to commit this patch.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

URL||http://gcc.gnu.org/ml/gcc-
   ||patches/2008-
   ||08/msg00640.html
 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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



[Bug middle-end/36238] [4.4 Regression] ICE in reg_or_subregno, at jump.c:1730

2008-08-09 Thread pinskia at gcc dot gnu dot org


--- Comment #5 from pinskia at gcc dot gnu dot org  2008-08-10 04:56 ---
Subject: Bug 36238

Author: pinskia
Date: Sun Aug 10 04:54:37 2008
New Revision: 138924

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=138924
Log:
2008-08-09  Andrew Pinski  [EMAIL PROTECTED]

PR middle-end/36238
* reload1.c (gen_reload): Guard calls to get_secondary_mem
for memory subregs.

2008-08-09  Andrew Pinski  [EMAIL PROTECTED]

PR middle-end/36238
* gcc.c-torture/compile/pr36238.c: New testcase.



Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr36238.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/reload1.c
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug middle-end/36238] [4.4 Regression] ICE in reg_or_subregno, at jump.c:1730

2008-07-15 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P1  |P2


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



[Bug middle-end/36238] [4.4 Regression] ICE in reg_or_subregno, at jump.c:1730

2008-07-14 Thread pinskia at gcc dot gnu dot org


--- Comment #3 from pinskia at gcc dot gnu dot org  2008-07-14 12:57 ---
Testing this on x86-darwin right now.  though darwin's libfortran is broken so
it might take a while.


-- 


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



[Bug middle-end/36238] [4.4 Regression] ICE in reg_or_subregno, at jump.c:1730

2008-05-16 Thread pinskia at gcc dot gnu dot org


--- Comment #2 from pinskia at gcc dot gnu dot org  2008-05-16 17:54 ---
I just fixed this bug in reload1.c this week for the PS3 toolchain, I will
forward port the patch.
This is related to PR 26826.


Index: ../../gcc/reload1.c
==
=
--- ../../gcc/reload1.c (revision 2480)
+++ ../../gcc/reload1.c (working copy)
@@ -7635,9 +7635,11 @@ gen_reload (rtx out, rtx in, int opnum,

 #ifdef SECONDARY_MEMORY_NEEDED
   /* If we need a memory location to do the move, do it that way.  */
-  else if ((REG_P (in) || GET_CODE (in) == SUBREG)
+  else if ((REG_P (in)
+   || (GET_CODE (in) == SUBREG  REG_P (SUBREG_REG (in
reg_or_subregno (in)  FIRST_PSEUDO_REGISTER
-   (REG_P (out) || GET_CODE (out) == SUBREG)
+   (REG_P (out)
+   || (GET_CODE (out) == SUBREG  REG_P (SUBREG_REG (out
reg_or_subregno (out)  FIRST_PSEUDO_REGISTER
SECONDARY_MEMORY_NEEDED (REGNO_REG_CLASS (reg_or_subregno (in)),
   REGNO_REG_CLASS (reg_or_subregno (out)),


-- 

pinskia at gcc dot gnu dot org changed:

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



[Bug middle-end/36238] [4.4 Regression] ICE in reg_or_subregno, at jump.c:1730

2008-05-16 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


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



[Bug middle-end/36238] [4.4 Regression] ICE in reg_or_subregno, at jump.c:1730

2008-05-15 Thread rguenth at gcc dot gnu dot org


--- Comment #1 from rguenth at gcc dot gnu dot org  2008-05-15 08:56 ---
Confirmed.

#1  0x007607dd in reg_or_subregno (reg=0x2b3ca9894d80)
at /space/rguenther/src/svn/trunk/gcc/jump.c:1730
1730  gcc_assert (REG_P (reg));
(gdb) call debug_rtx (reg)
(mem/v/u/c/i:SI (symbol_ref:DI (g_258) [flags 0x2] var_decl 0x2b3ca8fa81e0
g_258) [0 g_258+0 S4 A32])


#0  fancy_abort (file=0xf2b220 /space/rguenther/src/svn/trunk/gcc/jump.c, 
line=1730, function=0xf2bba0 reg_or_subregno)
at /space/rguenther/src/svn/trunk/gcc/diagnostic.c:654
#1  0x007607dd in reg_or_subregno (reg=0x2b3ca9894d80)
at /space/rguenther/src/svn/trunk/gcc/jump.c:1730
#2  0x00831713 in gen_reload (out=0x2b3ca9894da0, in=0x2b3ca9894580, 
opnum=1, type=RELOAD_FOR_INPUT)
at /space/rguenther/src/svn/trunk/gcc/reload1.c:8025
#3  0x0082e5ce in emit_input_reload_insns (chain=0x1432790, 
rl=0x13ec0c8, old=0x2b3ca9894580, j=1)
at /space/rguenther/src/svn/trunk/gcc/reload1.c:6975
#4  0x0082f251 in do_input_reload (chain=0x1432790, rl=0x13ec0c8, j=1)
at /space/rguenther/src/svn/trunk/gcc/reload1.c:7269
#5  0x0082fad9 in emit_reload_insns (chain=0x1432790)
at /space/rguenther/src/svn/trunk/gcc/reload1.c:7460
#6  0x008271ad in reload_as_needed (live_known=1)
at /space/rguenther/src/svn/trunk/gcc/reload1.c:4136
#7  0x0081f5e6 in reload (first=0x2b3ca9893040, global=1)
at /space/rguenther/src/svn/trunk/gcc/reload1.c:1145
#8  0x00e1ec90 in global_alloc ()


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
  GCC build triplet|i686-pc-linux-gnu   |
   GCC host triplet|i686-pc-linux-gnu   |
 GCC target triplet|i686-pc-linux-gnu   |i?86-*-* x86_64-*-*
   Keywords||ice-on-valid-code
   Last reconfirmed|-00-00 00:00:00 |2008-05-15 08:56:11
   date||
Summary|ICE |[4.4 Regression] ICE in
   ||reg_or_subregno, at
   ||jump.c:1730
   Target Milestone|--- |4.4.0


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