public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/43972]  New: [4.5/4.6 Regression] ICE in loc_cmp
@ 2010-05-03 10:28 jakub at gcc dot gnu dot org
  2010-05-03 10:35 ` [Bug debug/43972] " jakub at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-05-03 10:28 UTC (permalink / raw)
  To: gcc-bugs

struct { int *b1; } *f1 ();
short v1[1];
struct S { int b2; };
void
foo (struct S *a1, union { char *b3; unsigned *b4; int *b5; } *a2)
{
  int d;
  switch (d)
    {
    case 0:
      {
        int c = a1->b2, i;
        if (f1 () == 0)
          *a2->b3++ = 2;
        else if (((long) (f1 () - f1 ())) ^ ((long) f1 ()->b1 - ((long) f1 () &
8)))
          *a2->b3++ = (long) f1 - ((long) f1 () & 0xff);
        else
          *a2->b4++ = (long) f1;
        for (i = 0; i < c; i++)
          *a2->b5++ = (long) v1;
        foo (a1, a2);
      }
    }
}

ICEs with -g -O2 -fpic on x86_64-linux with:
rh588154.i: In function 'foo':
rh588154.i:24:1: internal compiler error: in loc_cmp, at var-tracking.c:2681
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: [4.5/4.6 Regression] ICE in loc_cmp
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
GCC target triplet: x86_64-linux


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


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

* [Bug debug/43972] [4.5/4.6 Regression] ICE in loc_cmp
  2010-05-03 10:28 [Bug debug/43972] New: [4.5/4.6 Regression] ICE in loc_cmp jakub at gcc dot gnu dot org
@ 2010-05-03 10:35 ` jakub at gcc dot gnu dot org
  2010-05-03 11:27 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-05-03 10:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2010-05-03 10:34 -------
 (value/u:DI 24:19029 @0x171db88/0x172c120)
    offset 0
      (reg:SI 4 si)
      (mem/c:QI (value:DI 26:3872 @0x171dbb8/0x172c180) [11 %sfp+-1 S1 A8])
      (mem:SI (value/u:DI 52:52 @0x171de28/0x172d4b0) [2 *D.2766_31+0 S4 A32])
      (value/u:QI 25:25 @0x171dba0/0x172c150)
      (value/u:SI 53:53 @0x171de40/0x172d4e0)

the modes differ a lot here.


-- 


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


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

* [Bug debug/43972] [4.5/4.6 Regression] ICE in loc_cmp
  2010-05-03 10:28 [Bug debug/43972] New: [4.5/4.6 Regression] ICE in loc_cmp jakub at gcc dot gnu dot org
  2010-05-03 10:35 ` [Bug debug/43972] " jakub at gcc dot gnu dot org
@ 2010-05-03 11:27 ` rguenth at gcc dot gnu dot org
  2010-05-03 11:55 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-03 11:27 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.5.1


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


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

* [Bug debug/43972] [4.5/4.6 Regression] ICE in loc_cmp
  2010-05-03 10:28 [Bug debug/43972] New: [4.5/4.6 Regression] ICE in loc_cmp jakub at gcc dot gnu dot org
  2010-05-03 10:35 ` [Bug debug/43972] " jakub at gcc dot gnu dot org
  2010-05-03 11:27 ` rguenth at gcc dot gnu dot org
@ 2010-05-03 11:55 ` jakub at gcc dot gnu dot org
  2010-05-03 15:43 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-05-03 11:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2010-05-03 11:55 -------
Testing a patch.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-05-03 11:55:05
               date|                            |


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


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

* [Bug debug/43972] [4.5/4.6 Regression] ICE in loc_cmp
  2010-05-03 10:28 [Bug debug/43972] New: [4.5/4.6 Regression] ICE in loc_cmp jakub at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-05-03 11:55 ` jakub at gcc dot gnu dot org
@ 2010-05-03 15:43 ` jakub at gcc dot gnu dot org
  2010-05-03 15:47 ` jakub at gcc dot gnu dot org
  2010-05-10  7:55 ` jakub at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-05-03 15:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2010-05-03 15:43 -------
Subject: Bug 43972

Author: jakub
Date: Mon May  3 15:42:43 2010
New Revision: 158989

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158989
Log:
        PR debug/43972
        * config/i386/i386.c (ix86_delegitimize_address): Make sure the
        result mode matches original rtl mode.

        * gcc.dg/debug/pr43972.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/debug/pr43972.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug debug/43972] [4.5/4.6 Regression] ICE in loc_cmp
  2010-05-03 10:28 [Bug debug/43972] New: [4.5/4.6 Regression] ICE in loc_cmp jakub at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-05-03 15:43 ` jakub at gcc dot gnu dot org
@ 2010-05-03 15:47 ` jakub at gcc dot gnu dot org
  2010-05-10  7:55 ` jakub at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-05-03 15:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2010-05-03 15:46 -------
Subject: Bug 43972

Author: jakub
Date: Mon May  3 15:46:43 2010
New Revision: 158990

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158990
Log:
        PR debug/43972
        * config/i386/i386.c (ix86_delegitimize_address): Make sure the
        result mode matches original rtl mode.

        * gcc.dg/debug/pr43972.c: New test.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/debug/pr43972.c
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/config/i386/i386.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug debug/43972] [4.5/4.6 Regression] ICE in loc_cmp
  2010-05-03 10:28 [Bug debug/43972] New: [4.5/4.6 Regression] ICE in loc_cmp jakub at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2010-05-03 15:47 ` jakub at gcc dot gnu dot org
@ 2010-05-10  7:55 ` jakub at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-05-10  7:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2010-05-10 07:55 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2010-05-10  7:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-03 10:28 [Bug debug/43972] New: [4.5/4.6 Regression] ICE in loc_cmp jakub at gcc dot gnu dot org
2010-05-03 10:35 ` [Bug debug/43972] " jakub at gcc dot gnu dot org
2010-05-03 11:27 ` rguenth at gcc dot gnu dot org
2010-05-03 11:55 ` jakub at gcc dot gnu dot org
2010-05-03 15:43 ` jakub at gcc dot gnu dot org
2010-05-03 15:47 ` jakub at gcc dot gnu dot org
2010-05-10  7:55 ` jakub 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).