public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/21207] New: ICE with gcc4.0.0 in fold_convert, at fold-const.c:1922
@ 2005-04-25  9:18 micis at gmx dot de
  2005-04-25  9:19 ` [Bug tree-optimization/21207] " micis at gmx dot de
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: micis at gmx dot de @ 2005-04-25  9:18 UTC (permalink / raw)
  To: gcc-bugs

Trying gcc4.0.0 on our sources I get an ICE.
This ICE does not occur with gcc-4.0-20050326.

Michael Cieslinski


g++400 -O2 -c mediag.ii -o mediag.o
mediag.ii: In static member function 'static ErrorValue 
MetisImageInterface::calcLutPlot()':
mediag.ii:71923: internal compiler error: in fold_convert, at fold-const.c:1922
Please submit a full bug report, with preprocessed source if appropriate.

g++400 -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.0.0/configure --prefix=/usr/local/gcc400 --program-
suffix=400 --with-arch=opteron --enable-languages=c,c++
Thread model: posix
gcc version 4.0.0

-- 
           Summary: ICE with gcc4.0.0 in fold_convert, at fold-const.c:1922
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: micis at gmx dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

* [Bug tree-optimization/21207] ICE with gcc4.0.0 in fold_convert, at fold-const.c:1922
  2005-04-25  9:18 [Bug tree-optimization/21207] New: ICE with gcc4.0.0 in fold_convert, at fold-const.c:1922 micis at gmx dot de
@ 2005-04-25  9:19 ` micis at gmx dot de
  2005-04-25 15:00 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: micis at gmx dot de @ 2005-04-25  9:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From micis at gmx dot de  2005-04-25 09:19 -------
Created an attachment (id=8733)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8733&action=view)
preprocessed source


-- 


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


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

* [Bug tree-optimization/21207] ICE with gcc4.0.0 in fold_convert, at fold-const.c:1922
  2005-04-25  9:18 [Bug tree-optimization/21207] New: ICE with gcc4.0.0 in fold_convert, at fold-const.c:1922 micis at gmx dot de
  2005-04-25  9:19 ` [Bug tree-optimization/21207] " micis at gmx dot de
@ 2005-04-25 15:00 ` pinskia at gcc dot gnu dot org
  2005-04-25 21:04 ` [Bug rtl-optimization/21207] [4.0 regression] ICE folding large floating-point values reichelt at gcc dot gnu dot org
  2005-04-26 12:56 ` [Bug tree-optimization/21207] " reichelt at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-25 15:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-25 14:59 -------
It is also not reproducable with "4.0.0 20050410" with all checking enabled.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE with gcc4.0.0 in        |ICE with gcc4.0.0 in
                   |fold_convert, at fold-      |fold_convert, at fold-
                   |const.c:1922                |const.c:1922


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


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

* [Bug rtl-optimization/21207] [4.0 regression] ICE folding large floating-point values
  2005-04-25  9:18 [Bug tree-optimization/21207] New: ICE with gcc4.0.0 in fold_convert, at fold-const.c:1922 micis at gmx dot de
  2005-04-25  9:19 ` [Bug tree-optimization/21207] " micis at gmx dot de
  2005-04-25 15:00 ` pinskia at gcc dot gnu dot org
@ 2005-04-25 21:04 ` reichelt at gcc dot gnu dot org
  2005-04-26 12:56 ` [Bug tree-optimization/21207] " reichelt at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-04-25 21:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-04-25 21:04 -------
Confirmed.

Here's a reduced snippet which crashes on i686-pc-linux-gnu
when compiled with -O2:

=================================================
double d=1;
inline double foo() { return d ? 1e100 : 0.0; }
int i=(int)foo();
=================================================

The error message is:

bug.cc: In function 'void __static_initialization_and_destruction_0(int, int)':
bug.cc:3: internal compiler error: in convert_move, at expr.c:339
Please submit a full bug report, [etc.]

The ICE is in a different position than the original testcase,
but the underlying problem seems to be the same: The compiler crashes
when converting a too large floating-point number into an int.

The 4.0.0 release is affected, but not mainline.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
          Component|tree-optimization           |rtl-optimization
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code, monitored
      Known to fail|                            |4.0.0
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-25 21:04:10
               date|                            |
            Summary|ICE with gcc4.0.0 in        |[4.0 regression] ICE folding
                   |fold_convert, at fold-      |large floating-point values
                   |const.c:1922                |
   Target Milestone|---                         |4.0.1


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


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

* [Bug tree-optimization/21207] [4.0 regression] ICE folding large floating-point values
  2005-04-25  9:18 [Bug tree-optimization/21207] New: ICE with gcc4.0.0 in fold_convert, at fold-const.c:1922 micis at gmx dot de
                   ` (2 preceding siblings ...)
  2005-04-25 21:04 ` [Bug rtl-optimization/21207] [4.0 regression] ICE folding large floating-point values reichelt at gcc dot gnu dot org
@ 2005-04-26 12:56 ` reichelt at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-04-26 12:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-04-26 12:55 -------
Fixed by the patch for PR 21173.

Btw, "-O -ftree-pre" indeed triggered the bug.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
          Component|rtl-optimization            |tree-optimization
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2005-04-26 12:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-25  9:18 [Bug tree-optimization/21207] New: ICE with gcc4.0.0 in fold_convert, at fold-const.c:1922 micis at gmx dot de
2005-04-25  9:19 ` [Bug tree-optimization/21207] " micis at gmx dot de
2005-04-25 15:00 ` pinskia at gcc dot gnu dot org
2005-04-25 21:04 ` [Bug rtl-optimization/21207] [4.0 regression] ICE folding large floating-point values reichelt at gcc dot gnu dot org
2005-04-26 12:56 ` [Bug tree-optimization/21207] " reichelt 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).