public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/17297] New: ICE with FP vector constructor containing qnan calculation
@ 2004-09-02 18:59 wilson at gcc dot gnu dot org
  2004-09-02 19:00 ` [Bug c/17297] " wilson at gcc dot gnu dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: wilson at gcc dot gnu dot org @ 2004-09-02 18:59 UTC (permalink / raw)
  To: gcc-bugs

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


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

end of thread, other threads:[~2005-01-19  9:49 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-02 18:59 [Bug c/17297] New: ICE with FP vector constructor containing qnan calculation wilson at gcc dot gnu dot org
2004-09-02 19:00 ` [Bug c/17297] " wilson at gcc dot gnu dot org
2004-09-09  3:46 ` [Bug c/17297] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-09-09 18:18 ` wilson at tuliptree dot org
2004-09-09 18:21 ` pinskia at gcc dot gnu dot org
2004-09-09 18:27 ` [Bug c/17297] [3.4/3.5 " pinskia at gcc dot gnu dot org
2004-09-09 19:56 ` wilson at tuliptree dot org
2004-09-09 20:30 ` [Bug c/17297] [3.4/4.0 " pinskia at gcc dot gnu dot org
2004-09-21 12:49 ` coyote at coyotegulch dot com
2004-09-21 21:33 ` wilson at tuliptree dot org
2004-11-01  0:45 ` mmitchel at gcc dot gnu dot org
2004-12-12 21:56 ` pinskia at gcc dot gnu dot org
2005-01-13 18:17 ` pinskia at gcc dot gnu dot org
2005-01-19  9:28 ` cvs-commit at gcc dot gnu dot org
2005-01-19  9:45 ` cvs-commit at gcc dot gnu dot org
2005-01-19  9:49 ` jakub 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).