public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/39636] [4.5 Regression] ICE in gimple_assign_rhs_code, at gimple.h:1837, 435.gromacs fails to build
  2009-04-04  8:57 [Bug tree-optimization/39636] New: [4.5 Regression] ICE in gimple_assign_rhs_code, at gimple.h:1837, 435.gromacs fails to build rguenth at gcc dot gnu dot org
@ 2009-04-04  8:57 ` rguenth at gcc dot gnu dot org
  2009-04-04  9:05 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-04  8:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2009-04-04 08:57 -------
Mine.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-04-04 08:57:46
               date|                            |
   Target Milestone|---                         |4.5.0


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


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

* [Bug tree-optimization/39636]  New: [4.5 Regression] ICE in gimple_assign_rhs_code, at gimple.h:1837, 435.gromacs fails to build
@ 2009-04-04  8:57 rguenth at gcc dot gnu dot org
  2009-04-04  8:57 ` [Bug tree-optimization/39636] " rguenth at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-04  8:57 UTC (permalink / raw)
  To: gcc-bugs

./cc1 -quiet shift_util.i -O2
shift_util.c: In function 'phi_sr':
shift_util.c:207: internal compiler error: gimple check: expected
gimple_assign(error_mark), have gimple_phi() in gimple_assign_rhs_code, at
gimple.h:1837
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

(gdb) 
#3  0x00000000009f9e0d in forward_propagate_addr_into_variable_array_index (
    offset=0x7ffff5f07af0, def_rhs=0x7ffff5e8b1c0, use_stmt_gsi=0x7fffffffd870)
    at /space/rguenther/src/svn/trunk/gcc/tree-ssa-forwprop.c:671
671              if (gimple_assign_rhs_code (offset_def2) == MULT_EXPR

Reducing.


-- 
           Summary: [4.5 Regression] ICE in gimple_assign_rhs_code, at
                    gimple.h:1837, 435.gromacs fails to build
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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


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

* [Bug tree-optimization/39636] [4.5 Regression] ICE in gimple_assign_rhs_code, at gimple.h:1837, 435.gromacs fails to build
  2009-04-04  8:57 [Bug tree-optimization/39636] New: [4.5 Regression] ICE in gimple_assign_rhs_code, at gimple.h:1837, 435.gromacs fails to build rguenth at gcc dot gnu dot org
  2009-04-04  8:57 ` [Bug tree-optimization/39636] " rguenth at gcc dot gnu dot org
@ 2009-04-04  9:05 ` rguenth at gcc dot gnu dot org
  2009-04-04  9:25 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-04  9:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2009-04-04 09:05 -------
Reduced testcase:

typedef float real;
typedef real rvec[3];
real phi_sr(int nj,rvec x[],real charge[],real rc,real r1,rvec box,
            real phi[],rvec f_sr[],int bOld)
{
  int i,j,k,m,ni,i1,i2;
  real pp,r2,R,R_1,R_2,rc2;
  real qi,qj,vsr,eps,fscal;
  rvec dx;
  for(i=0; (i<nj-1); i++)
    {
      for(j=i+1; (j<nj); j++)
        {
          if (k == i2)
            {
              r2=calc_dx2dx(x[i],x[j],box,dx);
              if (r2 < rc2)
                {
                  qj = charge[j];
                  R_1 = (1.0f/sqrt(r2));
                  R_2 = R_1*R_1;
                  R = (1.0f/sqrt(R_2));
                  if (bOld)
                    {
                      fscal = old_f(R,rc,r1)*R_2;
                      pp = old_phi(R,rc,r1);
                    }
                  else
                    {
                      fscal = new_f(R,rc)*R_2;
                      pp = new_phi(R,rc);
                    }
                  phi[i] += eps*qj*pp;
                  phi[j] += eps*qi*pp;
                  vsr += eps*qj*qi*pp;
                  for(m=0; (m<3); m++)
                    {
                      f_sr[i][m] += dx[m]*fscal;
                      f_sr[j][m] -= dx[m]*fscal;
                    }
                  ni++;
                }
            }
        }
    }
}


-- 


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


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

* [Bug tree-optimization/39636] [4.5 Regression] ICE in gimple_assign_rhs_code, at gimple.h:1837, 435.gromacs fails to build
  2009-04-04  8:57 [Bug tree-optimization/39636] New: [4.5 Regression] ICE in gimple_assign_rhs_code, at gimple.h:1837, 435.gromacs fails to build rguenth at gcc dot gnu dot org
  2009-04-04  8:57 ` [Bug tree-optimization/39636] " rguenth at gcc dot gnu dot org
  2009-04-04  9:05 ` rguenth at gcc dot gnu dot org
@ 2009-04-04  9:25 ` rguenth at gcc dot gnu dot org
  2009-04-04  9:31 ` rguenth at gcc dot gnu dot org
  2009-04-04  9:31 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-04  9:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2009-04-04 09:24 -------
typedef float real;
typedef real rvec[3];                                                           
void calc_dx2dx(real *, real *);
void phi_sr(int nj,rvec x[],int k)
{                                                                               
  int i,j;
  for(i=0; (i<nj-1); i++)                                                       
    for(j=i+1; (j<nj); j++)
      if (k)                                                                    
        calc_dx2dx(x[i],x[j]);
}


-- 


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


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

* [Bug tree-optimization/39636] [4.5 Regression] ICE in gimple_assign_rhs_code, at gimple.h:1837, 435.gromacs fails to build
  2009-04-04  8:57 [Bug tree-optimization/39636] New: [4.5 Regression] ICE in gimple_assign_rhs_code, at gimple.h:1837, 435.gromacs fails to build rguenth at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-04-04  9:31 ` rguenth at gcc dot gnu dot org
@ 2009-04-04  9:31 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-04  9:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2009-04-04 09:30 -------
Subject: Bug 39636

Author: rguenth
Date: Sat Apr  4 09:30:34 2009
New Revision: 145532

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145532
Log:
2009-04-04  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/39636
        * tree-ssa-forwprop.c
        (forward_propagate_addr_into_variable_array_index): Check for
        GIMPLE_ASSIGN before accessing the rhs code.

        * gcc.c-torture/compile/pr39636.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr39636.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-forwprop.c


-- 


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


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

* [Bug tree-optimization/39636] [4.5 Regression] ICE in gimple_assign_rhs_code, at gimple.h:1837, 435.gromacs fails to build
  2009-04-04  8:57 [Bug tree-optimization/39636] New: [4.5 Regression] ICE in gimple_assign_rhs_code, at gimple.h:1837, 435.gromacs fails to build rguenth at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2009-04-04  9:25 ` rguenth at gcc dot gnu dot org
@ 2009-04-04  9:31 ` rguenth at gcc dot gnu dot org
  2009-04-04  9:31 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-04  9:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2009-04-04 09:30 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2009-04-04  9:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-04  8:57 [Bug tree-optimization/39636] New: [4.5 Regression] ICE in gimple_assign_rhs_code, at gimple.h:1837, 435.gromacs fails to build rguenth at gcc dot gnu dot org
2009-04-04  8:57 ` [Bug tree-optimization/39636] " rguenth at gcc dot gnu dot org
2009-04-04  9:05 ` rguenth at gcc dot gnu dot org
2009-04-04  9:25 ` rguenth at gcc dot gnu dot org
2009-04-04  9:31 ` rguenth at gcc dot gnu dot org
2009-04-04  9:31 ` rguenth 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).