public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/23476] New: [4.1 Regression] ICE in VRP, remove_range_assertions
@ 2005-08-19  6:19 pinskia at gcc dot gnu dot org
  2005-08-19  6:24 ` [Bug tree-optimization/23476] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-19  6:19 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1171 bytes --]

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


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

end of thread, other threads:[~2005-08-20 15:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-19  6:19 [Bug tree-optimization/23476] New: [4.1 Regression] ICE in VRP, remove_range_assertions pinskia at gcc dot gnu dot org
2005-08-19  6:24 ` [Bug tree-optimization/23476] " pinskia at gcc dot gnu dot org
2005-08-19  9:05 ` pinskia at gcc dot gnu dot org
2005-08-19 13:17 ` dnovillo at gcc dot gnu dot org
2005-08-19 13:36 ` dnovillo at gcc dot gnu dot org
2005-08-19 18:10 ` cvs-commit at gcc dot gnu dot org
2005-08-19 18:17 ` dnovillo at gcc dot gnu dot org
2005-08-20 16:09 ` roger at eyesopen dot com

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