public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/54211] New: [4.8 Regression] ICE: verify_gimple failed building freetype with -Os
@ 2012-08-09 17:17 rmansfield at qnx dot com
  2012-08-09 17:39 ` [Bug middle-end/54211] " markus at trippelsdorf dot de
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: rmansfield at qnx dot com @ 2012-08-09 17:17 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54211
           Summary: [4.8 Regression] ICE: verify_gimple failed building
                    freetype with -Os
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rmansfield@qnx.com
                CC: wschmidt@linux.vnet.ibm.com
              Host: x86_64-unknown-linux-gnu
            Target: x86_64-unknown-linux-gnu
             Build: x86_64-unknown-linux-gnu


Created attachment 27966
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27966
preprocessed src

After rev190220, freetype fails to build with -Os.  Seen on mips, ppc x86 and
x86_64.

Reduced testcase:

/home/ryan/ice.i: In function ‘tt_face_load_sbit_image’:
/home/ryan/ice.i:365:1: error: type mismatch in pointer plus expression
 tt_face_load_sbit_image (TT_Face face, FT_ULong strike_index,
 ^
sizetype

unsigned long

sizetype

D.2244_30 = D.2241_17 + slsr.98_48;

/home/ryan/ice.i:365:1: internal compiler error: verify_gimple failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug middle-end/54211] [4.8 Regression] ICE: verify_gimple failed building freetype with -Os
  2012-08-09 17:17 [Bug middle-end/54211] New: [4.8 Regression] ICE: verify_gimple failed building freetype with -Os rmansfield at qnx dot com
@ 2012-08-09 17:39 ` markus at trippelsdorf dot de
  2012-08-09 20:33 ` wschmidt at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: markus at trippelsdorf dot de @ 2012-08-09 17:39 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markus at trippelsdorf dot
                   |                            |de

--- Comment #1 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-08-09 17:38:46 UTC ---
Further reduced:

int a, b;
unsigned char e;
void fn1 ()
{
    unsigned char *c=0;
    for (;; a++)
    {
        unsigned char d = *(c + b);
        for (; &e<&d; c++)
            goto Found_Top;
    }
Found_Top:
    if (0)
        goto Empty_Bitmap;
    for (;; a++)
    {
        unsigned char *e = c + b;
        for (; c < e; c++)
            goto Found_Bottom;
        c -= b;
    }
Found_Bottom:
Empty_Bitmap:
    ;
}


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

* [Bug middle-end/54211] [4.8 Regression] ICE: verify_gimple failed building freetype with -Os
  2012-08-09 17:17 [Bug middle-end/54211] New: [4.8 Regression] ICE: verify_gimple failed building freetype with -Os rmansfield at qnx dot com
  2012-08-09 17:39 ` [Bug middle-end/54211] " markus at trippelsdorf dot de
@ 2012-08-09 20:33 ` wschmidt at gcc dot gnu.org
  2012-08-09 21:06 ` wschmidt at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: wschmidt at gcc dot gnu.org @ 2012-08-09 20:33 UTC (permalink / raw)
  To: gcc-bugs

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

William J. Schmidt <wschmidt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2012-08-09
                 CC|                            |wschmidt at gcc dot gnu.org
         AssignedTo|unassigned at gcc dot       |wschmidt at gcc dot gnu.org
                   |gnu.org                     |
   Target Milestone|---                         |4.8.0
     Ever Confirmed|0                           |1

--- Comment #2 from William J. Schmidt <wschmidt at gcc dot gnu.org> 2012-08-09 20:33:16 UTC ---
Confirmed.  I'll have a look.  For some reason a necessary cast is not being
introduced here.


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

* [Bug middle-end/54211] [4.8 Regression] ICE: verify_gimple failed building freetype with -Os
  2012-08-09 17:17 [Bug middle-end/54211] New: [4.8 Regression] ICE: verify_gimple failed building freetype with -Os rmansfield at qnx dot com
  2012-08-09 17:39 ` [Bug middle-end/54211] " markus at trippelsdorf dot de
  2012-08-09 20:33 ` wschmidt at gcc dot gnu.org
@ 2012-08-09 21:06 ` wschmidt at gcc dot gnu.org
  2012-08-10  1:15 ` wschmidt at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: wschmidt at gcc dot gnu.org @ 2012-08-09 21:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from William J. Schmidt <wschmidt at gcc dot gnu.org> 2012-08-09 21:06:22 UTC ---
Ah, actually we're generating a POINTER_PLUS_EXPR when a PLUS_EXPR is called
for.  I see what's going on, shouldn't be hard to fix.


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

* [Bug middle-end/54211] [4.8 Regression] ICE: verify_gimple failed building freetype with -Os
  2012-08-09 17:17 [Bug middle-end/54211] New: [4.8 Regression] ICE: verify_gimple failed building freetype with -Os rmansfield at qnx dot com
                   ` (2 preceding siblings ...)
  2012-08-09 21:06 ` wschmidt at gcc dot gnu.org
@ 2012-08-10  1:15 ` wschmidt at gcc dot gnu.org
  2012-08-10  1:17 ` wschmidt at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: wschmidt at gcc dot gnu.org @ 2012-08-10  1:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from William J. Schmidt <wschmidt at gcc dot gnu.org> 2012-08-10 01:14:41 UTC ---
The following patch is tested and awaiting approval:

Index: gcc/gimple-ssa-strength-reduction.c
===================================================================
--- gcc/gimple-ssa-strength-reduction.c    (revision 190260)
+++ gcc/gimple-ssa-strength-reduction.c    (working copy)
@@ -2534,7 +2534,7 @@ analyze_candidates_and_replace (void)
       /* Determine whether we'll be generating pointer arithmetic
          when replacing candidates.  */
       address_arithmetic_p = (c->kind == CAND_ADD
-                  && POINTER_TYPE_P (TREE_TYPE (c->base_expr)));
+                  && POINTER_TYPE_P (c->cand_type));

       /* If all candidates have already been replaced under other
          interpretations, nothing remains to be done.  */


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

* [Bug middle-end/54211] [4.8 Regression] ICE: verify_gimple failed building freetype with -Os
  2012-08-09 17:17 [Bug middle-end/54211] New: [4.8 Regression] ICE: verify_gimple failed building freetype with -Os rmansfield at qnx dot com
                   ` (3 preceding siblings ...)
  2012-08-10  1:15 ` wschmidt at gcc dot gnu.org
@ 2012-08-10  1:17 ` wschmidt at gcc dot gnu.org
  2012-08-10 12:16 ` wschmidt at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: wschmidt at gcc dot gnu.org @ 2012-08-10  1:17 UTC (permalink / raw)
  To: gcc-bugs

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

William J. Schmidt <wschmidt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl.tools at gmail dot com

--- Comment #5 from William J. Schmidt <wschmidt at gcc dot gnu.org> 2012-08-10 01:16:07 UTC ---
*** Bug 54215 has been marked as a duplicate of this bug. ***


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

* [Bug middle-end/54211] [4.8 Regression] ICE: verify_gimple failed building freetype with -Os
  2012-08-09 17:17 [Bug middle-end/54211] New: [4.8 Regression] ICE: verify_gimple failed building freetype with -Os rmansfield at qnx dot com
                   ` (4 preceding siblings ...)
  2012-08-10  1:17 ` wschmidt at gcc dot gnu.org
@ 2012-08-10 12:16 ` wschmidt at gcc dot gnu.org
  2012-08-10 12:17 ` wschmidt at gcc dot gnu.org
  2012-08-10 12:18 ` wschmidt at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: wschmidt at gcc dot gnu.org @ 2012-08-10 12:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from William J. Schmidt <wschmidt at gcc dot gnu.org> 2012-08-10 12:16:11 UTC ---
Author: wschmidt
Date: Fri Aug 10 12:16:04 2012
New Revision: 190294

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190294
Log:
gcc:

2012-08-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

    PR middle-end/54211
    * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
    Use cand_type to determine whether pointer arithmetic will be generated.

gcc/testsuite:

2012-08-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

    PR middle-end/54211
    * gcc.dg/tree-ssa/pr54211.c: New test.


Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr54211.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-ssa-strength-reduction.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug middle-end/54211] [4.8 Regression] ICE: verify_gimple failed building freetype with -Os
  2012-08-09 17:17 [Bug middle-end/54211] New: [4.8 Regression] ICE: verify_gimple failed building freetype with -Os rmansfield at qnx dot com
                   ` (5 preceding siblings ...)
  2012-08-10 12:16 ` wschmidt at gcc dot gnu.org
@ 2012-08-10 12:17 ` wschmidt at gcc dot gnu.org
  2012-08-10 12:18 ` wschmidt at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: wschmidt at gcc dot gnu.org @ 2012-08-10 12:17 UTC (permalink / raw)
  To: gcc-bugs

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

William J. Schmidt <wschmidt at gcc dot gnu.org> changed:

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

--- Comment #6 from William J. Schmidt <wschmidt at gcc dot gnu.org> 2012-08-10 12:16:11 UTC ---
Author: wschmidt
Date: Fri Aug 10 12:16:04 2012
New Revision: 190294

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190294
Log:
gcc:

2012-08-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

    PR middle-end/54211
    * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
    Use cand_type to determine whether pointer arithmetic will be generated.

gcc/testsuite:

2012-08-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

    PR middle-end/54211
    * gcc.dg/tree-ssa/pr54211.c: New test.


Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr54211.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-ssa-strength-reduction.c
    trunk/gcc/testsuite/ChangeLog

--- Comment #7 from William J. Schmidt <wschmidt at gcc dot gnu.org> 2012-08-10 12:16:55 UTC ---
Fixed.


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

* [Bug middle-end/54211] [4.8 Regression] ICE: verify_gimple failed building freetype with -Os
  2012-08-09 17:17 [Bug middle-end/54211] New: [4.8 Regression] ICE: verify_gimple failed building freetype with -Os rmansfield at qnx dot com
                   ` (6 preceding siblings ...)
  2012-08-10 12:17 ` wschmidt at gcc dot gnu.org
@ 2012-08-10 12:18 ` wschmidt at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: wschmidt at gcc dot gnu.org @ 2012-08-10 12:18 UTC (permalink / raw)
  To: gcc-bugs

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

William J. Schmidt <wschmidt at gcc dot gnu.org> changed:

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

--- Comment #7 from William J. Schmidt <wschmidt at gcc dot gnu.org> 2012-08-10 12:16:55 UTC ---
Fixed.


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

end of thread, other threads:[~2012-08-10 12:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-09 17:17 [Bug middle-end/54211] New: [4.8 Regression] ICE: verify_gimple failed building freetype with -Os rmansfield at qnx dot com
2012-08-09 17:39 ` [Bug middle-end/54211] " markus at trippelsdorf dot de
2012-08-09 20:33 ` wschmidt at gcc dot gnu.org
2012-08-09 21:06 ` wschmidt at gcc dot gnu.org
2012-08-10  1:15 ` wschmidt at gcc dot gnu.org
2012-08-10  1:17 ` wschmidt at gcc dot gnu.org
2012-08-10 12:16 ` wschmidt at gcc dot gnu.org
2012-08-10 12:17 ` wschmidt at gcc dot gnu.org
2012-08-10 12:18 ` wschmidt at gcc dot gnu.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).