This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/23476] New: [4.1 Regression] ICE in VRP, remove_range_assertions


Testcase:
int h(int);

static inline int f(int t, const int i)
{
  _Bool a = i < t;
  if (a)
    return h(t);
  return 9;
}

int g(int t)
{
  return f(t, 0x7FFFFFFF);
}

Compile with -O2 -fno-tree-copy-prop, and you will get an ICE:
t.c: In function ?g?:
t.c:12: internal compiler error: in remove_range_assertions, at tree-vrp.c:2767
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

This most likely can be produced with a much larger source but I cannot find it right now as copy-prop 
does nothing interesting except for calling fold on all the statements which is just a waste of time.

-- 
           Summary: [4.1 Regression] ICE in VRP, remove_range_assertions
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]