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 optimization/14196] New: [tree-ssa] ICE with __builtin_isgreater


The following code snippet causes an ICE when compiled with "-O -ffast-math":

=====================================================
double foo() { return __builtin_isgreater(0.,0.); }
=====================================================

bug.c: In function `foo':
bug.c:1: internal compiler error: in invert_tree_comparison, at
fold-const.c:2012
Please submit a full bug report, [etc.]

A similar problem was fixed in gcc 3.1 (see PR4765).

Jeff, your patch

http://gcc.gnu.org/ml/gcc-cvs/2004-02/msg00584.html

seems to be responsible for the regression.
Could you please have a look?

-- 
           Summary: [tree-ssa] ICE with __builtin_isgreater
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,law at redhat dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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