public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/45991] New: [4.6 Regression] ICE: verify_stmts failed: Invalid address operand in in TARGET_MEM_REF. with -fstrict-overflow
@ 2010-10-12 19:26 zsojka at seznam dot cz
  2010-10-13  4:29 ` [Bug tree-optimization/45991] " hjl.tools at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2010-10-12 19:26 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.6 Regression] ICE: verify_stmts failed: Invalid
                    address operand in in TARGET_MEM_REF. with
                    -fstrict-overflow
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Created attachment 22024
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22024
reduced testcase

Command line:
$ gcc -O -fstrict-overflow pr45991.c

Compiler output:
$ gcc -O -fstrict-overflow pr45991.c 
pr45991.c: In function 'foo':
pr45991.c:8:6: error: Invalid address operand in in TARGET_MEM_REF.
# VUSE <.MEM_25>
b_10 = MEM[symbol: A[20], index: ivtmp.9_20, offset: 0B];

pr45991.c:8:6: internal compiler error: verify_stmts failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Tested revisions:
r165354 - crash
r163636 - OK
4.5 r163761 - OK


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

* [Bug tree-optimization/45991] [4.6 Regression] ICE: verify_stmts failed: Invalid address operand in in TARGET_MEM_REF. with -fstrict-overflow
  2010-10-12 19:26 [Bug tree-optimization/45991] New: [4.6 Regression] ICE: verify_stmts failed: Invalid address operand in in TARGET_MEM_REF. with -fstrict-overflow zsojka at seznam dot cz
@ 2010-10-13  4:29 ` hjl.tools at gmail dot com
  2010-10-26  4:01 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2010-10-13  4:29 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.10.13 04:29:26
                 CC|                            |spop at gcc dot gnu.org
   Target Milestone|---                         |4.6.0
     Ever Confirmed|0                           |1

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2010-10-13 04:29:26 UTC ---
It is caused by revision 164790:

http://gcc.gnu.org/ml/gcc-cvs/2010-09/msg01089.html


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

* [Bug tree-optimization/45991] [4.6 Regression] ICE: verify_stmts failed: Invalid address operand in in TARGET_MEM_REF. with -fstrict-overflow
  2010-10-12 19:26 [Bug tree-optimization/45991] New: [4.6 Regression] ICE: verify_stmts failed: Invalid address operand in in TARGET_MEM_REF. with -fstrict-overflow zsojka at seznam dot cz
  2010-10-13  4:29 ` [Bug tree-optimization/45991] " hjl.tools at gmail dot com
@ 2010-10-26  4:01 ` jakub at gcc dot gnu.org
  2010-11-04 12:17 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-10-26  4:01 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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


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

* [Bug tree-optimization/45991] [4.6 Regression] ICE: verify_stmts failed: Invalid address operand in in TARGET_MEM_REF. with -fstrict-overflow
  2010-10-12 19:26 [Bug tree-optimization/45991] New: [4.6 Regression] ICE: verify_stmts failed: Invalid address operand in in TARGET_MEM_REF. with -fstrict-overflow zsojka at seznam dot cz
  2010-10-13  4:29 ` [Bug tree-optimization/45991] " hjl.tools at gmail dot com
  2010-10-26  4:01 ` jakub at gcc dot gnu.org
@ 2010-11-04 12:17 ` rguenth at gcc dot gnu.org
  2010-11-04 12:29 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-04 12:17 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |rguenth at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-04 12:17:02 UTC ---
Mine.


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

* [Bug tree-optimization/45991] [4.6 Regression] ICE: verify_stmts failed: Invalid address operand in in TARGET_MEM_REF. with -fstrict-overflow
  2010-10-12 19:26 [Bug tree-optimization/45991] New: [4.6 Regression] ICE: verify_stmts failed: Invalid address operand in in TARGET_MEM_REF. with -fstrict-overflow zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2010-11-04 12:17 ` rguenth at gcc dot gnu.org
@ 2010-11-04 12:29 ` rguenth at gcc dot gnu.org
  2010-11-04 14:08 ` rguenth at gcc dot gnu.org
  2010-11-04 14:08 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-04 12:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-04 12:29:20 UTC ---
The problem is that fold figures sth out that tree-affine doesn't.  The
latter doesn't simplify

{
  type = long unsigned int
  offset = 0
  elements = {
    [0] = &A[(long unsigned int) (long unsigned int) ((i_3(D) + -1) * 16) + 20]
* 1, 
    [1] = (long unsigned int) ((i_3(D) + -1) * 16) *
340282366920938463463374607431768211455, 
    [2] = ivtmp.9_20 * 1
  }
}

to just &A[20] + ivtmp.9_20.

Now we can avoid the ICE by gimplifying the address properly which we don't
because of a typo I made in an earlier change.


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

* [Bug tree-optimization/45991] [4.6 Regression] ICE: verify_stmts failed: Invalid address operand in in TARGET_MEM_REF. with -fstrict-overflow
  2010-10-12 19:26 [Bug tree-optimization/45991] New: [4.6 Regression] ICE: verify_stmts failed: Invalid address operand in in TARGET_MEM_REF. with -fstrict-overflow zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2010-11-04 12:29 ` rguenth at gcc dot gnu.org
@ 2010-11-04 14:08 ` rguenth at gcc dot gnu.org
  2010-11-04 14:08 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-04 14:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-04 14:07:54 UTC ---
Author: rguenth
Date: Thu Nov  4 14:07:48 2010
New Revision: 166312

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

    PR tree-optimization/45991
    * gimplify.c (force_gimple_operand_1): Use the provded test
    function in the initial test.

    * gcc.dg/pr45991.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/pr45991.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimplify.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug tree-optimization/45991] [4.6 Regression] ICE: verify_stmts failed: Invalid address operand in in TARGET_MEM_REF. with -fstrict-overflow
  2010-10-12 19:26 [Bug tree-optimization/45991] New: [4.6 Regression] ICE: verify_stmts failed: Invalid address operand in in TARGET_MEM_REF. with -fstrict-overflow zsojka at seznam dot cz
                   ` (4 preceding siblings ...)
  2010-11-04 14:08 ` rguenth at gcc dot gnu.org
@ 2010-11-04 14:08 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-04 14:08 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

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

--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-04 14:08:32 UTC ---
Fixed.


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

end of thread, other threads:[~2010-11-04 14:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-12 19:26 [Bug tree-optimization/45991] New: [4.6 Regression] ICE: verify_stmts failed: Invalid address operand in in TARGET_MEM_REF. with -fstrict-overflow zsojka at seznam dot cz
2010-10-13  4:29 ` [Bug tree-optimization/45991] " hjl.tools at gmail dot com
2010-10-26  4:01 ` jakub at gcc dot gnu.org
2010-11-04 12:17 ` rguenth at gcc dot gnu.org
2010-11-04 12:29 ` rguenth at gcc dot gnu.org
2010-11-04 14:08 ` rguenth at gcc dot gnu.org
2010-11-04 14:08 ` rguenth 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).