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 bootstrap/32024] ICE - libgcc2.c:557: internal compiler error: in fold_checksum_tree, at fold-const.c:12652



------- Comment #10 from ubizjak at gmail dot com  2007-06-20 08:23 -------
Confirmed, configure gcc with --enable=checking=fold

--cut here--
typedef union
{
  struct {int low, high;} s;
  long long ll;
} DWunion;

long long
__muldi3 (long long u, long long v)
{
  const DWunion uu = {.ll = u};
  const DWunion vv = {.ll = v};
  DWunion w = {.ll = 0 };

  w.s.high += ((unsigned int) uu.s.low * (unsigned int) vv.s.high
        + (unsigned int) uu.s.high * (unsigned int) vv.s.low);

  return w.ll;
}
--cut here--

gcc -O2:

mul.c: In function '__muldi3':
mul.c:9: internal compiler error: in fold_checksum_tree, at fold-const.c:12775
Please submit a full bug report,


-- 

ubizjak at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|middle-end                  |bootstrap
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-06-20 08:23:06
               date|                            |


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


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