public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/13938] New: ICE when rounding double to long long
@ 2004-01-31  0:16 hebisch at math dot uni dot wroc dot pl
  2004-02-01 19:02 ` [Bug middle-end/13938] [3.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: hebisch at math dot uni dot wroc dot pl @ 2004-01-31  0:16 UTC (permalink / raw)
  To: gcc-bugs

The following function:

long long d2ll(double x)
{
        return (long long)(x>0?(x-0.5):(x+0.5));
}

compiled using '-c -O3' options couses ICE:

stystem6.c: In function `d2ll':
stystem6.c:4: internal compiler error: in subst_stack_regs_pat, at reg-stack.c:1430
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

gcc -v gives:
Using built-in specs.
Configured with: ../gcc-20040130/configure --enable-languages=c
Thread model: posix
gcc version 3.5.0 20040130 (experimental)

The problem is present with version from 20040121. The problem is absent
in version from 20040120 (and in earlier versions). Note that the function
above is translation to C of GNU Pascal built-in `round' function. The
problem couses ICE during compilation of GPC `System' unit and in effect
multiple test failures.

-- 
           Summary: ICE when rounding double to long long
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hebisch at math dot uni dot wroc dot pl
                CC: gcc-bugs at gcc dot gnu dot org
 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=13938


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

end of thread, other threads:[~2004-02-07 11:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-31  0:16 [Bug middle-end/13938] New: ICE when rounding double to long long hebisch at math dot uni dot wroc dot pl
2004-02-01 19:02 ` [Bug middle-end/13938] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-02-05 10:24 ` zlomek at gcc dot gnu dot org
2004-02-05 11:25 ` zlomek at gcc dot gnu dot org
2004-02-06  1:37 ` pinskia at gcc dot gnu dot org
2004-02-06  1:38 ` pinskia at gcc dot gnu dot org
2004-02-07 11:20 ` zlomek 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).