public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/39824]  New: ice in fold-const.c
@ 2009-04-20 20:18 dcb314 at hotmail dot com
  2009-04-20 20:20 ` [Bug c/39824] " dcb314 at hotmail dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: dcb314 at hotmail dot com @ 2009-04-20 20:18 UTC (permalink / raw)
  To: gcc-bugs

I just tried to compile the Suse Linux package libxml2-2.7.3-1.1
with the GNU gcc version 4.5 snapshot 20090416.

The compiler said

xpath.c:6468: internal compiler error: in fold_convert_const_int_from_real, at
f
old-const.c:2214
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Preprocessed source code attached. Flag -O3 required.


-- 
           Summary: ice in fold-const.c
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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


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

* [Bug c/39824] ice in fold-const.c
  2009-04-20 20:18 [Bug c/39824] New: ice in fold-const.c dcb314 at hotmail dot com
@ 2009-04-20 20:20 ` dcb314 at hotmail dot com
  2009-04-21  9:53 ` [Bug middle-end/39824] " rguenth at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: dcb314 at hotmail dot com @ 2009-04-20 20:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dcb314 at hotmail dot com  2009-04-20 20:19 -------
Created an attachment (id=17658)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17658&action=view)
C source code


-- 


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


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

* [Bug middle-end/39824] ice in fold-const.c
  2009-04-20 20:18 [Bug c/39824] New: ice in fold-const.c dcb314 at hotmail dot com
  2009-04-20 20:20 ` [Bug c/39824] " dcb314 at hotmail dot com
@ 2009-04-21  9:53 ` rguenth at gcc dot gnu dot org
  2009-04-21 10:18 ` [Bug middle-end/39824] [4.5 Regression] " rguenth at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-21  9:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2009-04-21 09:53 -------
Reducing.


-- 


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


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

* [Bug middle-end/39824] [4.5 Regression] ice in fold-const.c
  2009-04-20 20:18 [Bug c/39824] New: ice in fold-const.c dcb314 at hotmail dot com
  2009-04-20 20:20 ` [Bug c/39824] " dcb314 at hotmail dot com
  2009-04-21  9:53 ` [Bug middle-end/39824] " rguenth at gcc dot gnu dot org
@ 2009-04-21 10:18 ` rguenth at gcc dot gnu dot org
  2009-04-22 13:47 ` rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-21 10:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2009-04-21 10:18 -------
Confirmed.

static const double internalEndianMagic = 7.949928895127363e-275;
static const unsigned char ieee_754_mantissa_mask[] = { 0x00, 0x0F, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF };
static inline int 
trio_isnan (double number)
{
  int has_mantissa = 0;
  unsigned int i;
  unsigned char current;
  for (i = 0; i < (unsigned int)sizeof(double); i++)
    {
      current = ((unsigned char *)&number)[(((unsigned char
*)&internalEndianMagic)[7-(i)])];
      has_mantissa |= (current & ieee_754_mantissa_mask[i]);
    }
  return has_mantissa;
}
void
xmlXPathEqualNodeSetFloat(int nodeNr, double v)
{
  int i;
  for (i=0; i<nodeNr; i++)
    if (!trio_isnan(v))
      break;
}


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to work|                            |4.4.0
   Last reconfirmed|0000-00-00 00:00:00         |2009-04-21 10:18:27
               date|                            |
            Summary|ice in fold-const.c         |[4.5 Regression] ice in
                   |                            |fold-const.c
   Target Milestone|---                         |4.5.0


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


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

* [Bug middle-end/39824] [4.5 Regression] ice in fold-const.c
  2009-04-20 20:18 [Bug c/39824] New: ice in fold-const.c dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2009-04-21 10:18 ` [Bug middle-end/39824] [4.5 Regression] " rguenth at gcc dot gnu dot org
@ 2009-04-22 13:47 ` rguenth at gcc dot gnu dot org
  2009-04-22 13:52 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-22 13:47 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


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


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

* [Bug middle-end/39824] [4.5 Regression] ice in fold-const.c
  2009-04-20 20:18 [Bug c/39824] New: ice in fold-const.c dcb314 at hotmail dot com
                   ` (3 preceding siblings ...)
  2009-04-22 13:47 ` rguenth at gcc dot gnu dot org
@ 2009-04-22 13:52 ` rguenth at gcc dot gnu dot org
  2009-04-22 14:12 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-22 13:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2009-04-22 13:52 -------
Mine.  CCP does sth weird.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2009-04-21 10:18:27         |2009-04-22 13:52:25
               date|                            |


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


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

* [Bug middle-end/39824] [4.5 Regression] ice in fold-const.c
  2009-04-20 20:18 [Bug c/39824] New: ice in fold-const.c dcb314 at hotmail dot com
                   ` (4 preceding siblings ...)
  2009-04-22 13:52 ` rguenth at gcc dot gnu dot org
@ 2009-04-22 14:12 ` rguenth at gcc dot gnu dot org
  2009-04-22 15:42 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-22 14:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2009-04-22 14:12 -------
This is latent on the 4.4 branch.  I have a patch.


-- 


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


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

* [Bug middle-end/39824] [4.5 Regression] ice in fold-const.c
  2009-04-20 20:18 [Bug c/39824] New: ice in fold-const.c dcb314 at hotmail dot com
                   ` (5 preceding siblings ...)
  2009-04-22 14:12 ` rguenth at gcc dot gnu dot org
@ 2009-04-22 15:42 ` rguenth at gcc dot gnu dot org
  2009-04-22 19:55 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-22 15:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2009-04-22 15:42 -------
Subject: Bug 39824

Author: rguenth
Date: Wed Apr 22 15:41:48 2009
New Revision: 146592

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146592
Log:
2009-04-22  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/39824
        * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
        make sure the types are compatible.

        * gcc.c-torture/compile/pr39824.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr39824.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-ccp.c


-- 


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


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

* [Bug middle-end/39824] [4.5 Regression] ice in fold-const.c
  2009-04-20 20:18 [Bug c/39824] New: ice in fold-const.c dcb314 at hotmail dot com
                   ` (7 preceding siblings ...)
  2009-04-22 19:55 ` rguenth at gcc dot gnu dot org
@ 2009-04-22 19:55 ` rguenth at gcc dot gnu dot org
  2009-04-26 17:05 ` rguenth at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-22 19:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from rguenth at gcc dot gnu dot org  2009-04-22 19:55 -------
Subject: Bug 39824

Author: rguenth
Date: Wed Apr 22 19:55:24 2009
New Revision: 146611

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146611
Log:
2009-04-22  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/39824
        * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
        make sure the types are compatible.

        * gcc.c-torture/compile/pr39824.c: New testcase.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr39824.c
Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_4-branch/gcc/tree-ssa-ccp.c


-- 


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


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

* [Bug middle-end/39824] [4.5 Regression] ice in fold-const.c
  2009-04-20 20:18 [Bug c/39824] New: ice in fold-const.c dcb314 at hotmail dot com
                   ` (6 preceding siblings ...)
  2009-04-22 15:42 ` rguenth at gcc dot gnu dot org
@ 2009-04-22 19:55 ` rguenth at gcc dot gnu dot org
  2009-04-22 19:55 ` rguenth at gcc dot gnu dot org
  2009-04-26 17:05 ` rguenth at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-22 19:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rguenth at gcc dot gnu dot org  2009-04-22 19:55 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.5.0                       |4.4.1


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


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

* [Bug middle-end/39824] [4.5 Regression] ice in fold-const.c
  2009-04-20 20:18 [Bug c/39824] New: ice in fold-const.c dcb314 at hotmail dot com
                   ` (8 preceding siblings ...)
  2009-04-22 19:55 ` rguenth at gcc dot gnu dot org
@ 2009-04-26 17:05 ` rguenth at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-26 17:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from rguenth at gcc dot gnu dot org  2009-04-26 17:05 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2009-04-26 17:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-20 20:18 [Bug c/39824] New: ice in fold-const.c dcb314 at hotmail dot com
2009-04-20 20:20 ` [Bug c/39824] " dcb314 at hotmail dot com
2009-04-21  9:53 ` [Bug middle-end/39824] " rguenth at gcc dot gnu dot org
2009-04-21 10:18 ` [Bug middle-end/39824] [4.5 Regression] " rguenth at gcc dot gnu dot org
2009-04-22 13:47 ` rguenth at gcc dot gnu dot org
2009-04-22 13:52 ` rguenth at gcc dot gnu dot org
2009-04-22 14:12 ` rguenth at gcc dot gnu dot org
2009-04-22 15:42 ` rguenth at gcc dot gnu dot org
2009-04-22 19:55 ` rguenth at gcc dot gnu dot org
2009-04-22 19:55 ` rguenth at gcc dot gnu dot org
2009-04-26 17:05 ` rguenth 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).