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 c/17297] New: ICE with FP vector constructor containing qnan calculation


Trying to initialize a floating point vector with an FP expression that is
constant, but is not evaluated at compile time, leads to an ICE.  With checking
enabled, it dies in build_vector as called from digest_init.  Without checking
enabled, it dies much later, in an immed_double_const call.

The immediate problem is that digest_init calls build_vector if it has a vector
with a constant value, when it should call build_vector only if it has a vector
of actual constants.  However, the real problem might be elsewhere.  I haven't
fully analyzed the problem.

This testcase reproduces the bug on x86_64 with -O and on mipsisa64 with -O
-mpaired-single.

I can also reproduce the bug with gcc-3.4.x, so it has been around for a while.

-- 
           Summary: ICE with FP vector constructor containing qnan
                    calculation
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wilson at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: x86_64-unknown-linux-gnu


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


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