public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/49712] New: internal compiler error: in gen_lsm_tmp_name, at tree-ssa-loop-im.c:2048
@ 2011-07-12  5:03 regehr at cs dot utah.edu
  2011-07-12  5:16 ` [Bug tree-optimization/49712] " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: regehr at cs dot utah.edu @ 2011-07-12  5:03 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: internal compiler error: in gen_lsm_tmp_name, at
                    tree-ssa-loop-im.c:2048
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: regehr@cs.utah.edu
                CC: arthur.j.odwyer@gmail.com


[regehr@gamow tmp040]$ current-gcc -Ofast small.c

small.c: In function 'main':
small.c:40:5: internal compiler error: in gen_lsm_tmp_name, at
tree-ssa-loop-im.c:2048
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

[regehr@gamow tmp040]$ current-gcc -v

Using built-in specs.
COLLECT_GCC=current-gcc
COLLECT_LTO_WRAPPER=/uusoc/exports/scratch/regehr/z/compiler-install/gcc-r176182-install/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --with-libelf=/usr/local --enable-lto
--prefix=/home/regehr/z/compiler-install/gcc-r176182-install
--program-prefix=r176182- --enable-languages=c,c++
Thread model: posix
gcc version 4.7.0 20110711 (experimental) (GCC) 

[regehr@gamow tmp040]$ cat small.c


int safe_14 (int si1, int si2) {
  return 0;
}

struct S0 {
  int f5;
};

struct S1 {
};

int g_60[100];
int g_61;
int g_62;
struct S0 g_74;
int g_104;
struct S1 g_660;

int func_75 (struct S0 *p_78) {
 lbl_126:
  for (; 0;)
    goto lbl_126;
  return 0;
}

struct S0 *func_80 (void) {
  int l_90;
  for (l_90 = 0; l_90 <= 4; l_90 += 1)
    for (; g_74.f5 <= 0; g_74.f5 = 1)
      {
    int i;
    for (i = 0; i < 4; i++)
      for (g_104 = 0; g_104; g_104 = 1)
        {
        }
      }
  return 0;
}

int main (void) {
  for (g_61 = 0; g_61 <= 0; g_61 += 1) {
    for (; g_62; g_62 -= 0) {
      long *l_132 = 0;
      safe_14 (g_60[g_61] = 0, func_75 (func_80 ())), *l_132 = (func_80 (), 0);
    }
  }
  return 0;
}


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

* [Bug tree-optimization/49712] internal compiler error: in gen_lsm_tmp_name, at tree-ssa-loop-im.c:2048
  2011-07-12  5:03 [Bug c/49712] New: internal compiler error: in gen_lsm_tmp_name, at tree-ssa-loop-im.c:2048 regehr at cs dot utah.edu
@ 2011-07-12  5:16 ` pinskia at gcc dot gnu.org
  2011-07-12  6:38 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-07-12  5:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-07-12 05:15:55 UTC ---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49711


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

* [Bug tree-optimization/49712] internal compiler error: in gen_lsm_tmp_name, at tree-ssa-loop-im.c:2048
  2011-07-12  5:03 [Bug c/49712] New: internal compiler error: in gen_lsm_tmp_name, at tree-ssa-loop-im.c:2048 regehr at cs dot utah.edu
  2011-07-12  5:16 ` [Bug tree-optimization/49712] " pinskia at gcc dot gnu.org
@ 2011-07-12  6:38 ` jakub at gcc dot gnu.org
  2011-07-12  7:03 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-07-12  6:38 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.07.12 06:37:10
                 CC|                            |jakub at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-12 06:37:10 UTC ---
Slightly reduced testcase:

int a[2], b, c, d, e;

void
foo (int x, int y)
{
}

int
bar (void)
{
  int i;
  for (; d <= 0; d = 1)
    for (i = 0; i < 4; i++)
      for (e = 0; e; e = 1)
;
  return 0;
}

int
main ()
{
  for (b = 0; b < 2; b++)
    while (c)
      foo (a[b] = 0, bar ());
  return 0;
}


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

* [Bug tree-optimization/49712] internal compiler error: in gen_lsm_tmp_name, at tree-ssa-loop-im.c:2048
  2011-07-12  5:03 [Bug c/49712] New: internal compiler error: in gen_lsm_tmp_name, at tree-ssa-loop-im.c:2048 regehr at cs dot utah.edu
  2011-07-12  5:16 ` [Bug tree-optimization/49712] " pinskia at gcc dot gnu.org
  2011-07-12  6:38 ` jakub at gcc dot gnu.org
@ 2011-07-12  7:03 ` jakub at gcc dot gnu.org
  2011-07-12  8:51 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-07-12  7:03 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-12 07:02:30 UTC ---
Created attachment 24742
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24742
gcc47-pr49712.patch

Untested fix.

Wonder if TARGET_MEM_REF shouldn't be handled alongside MEM_REF in
ref_always_accessed_p too.


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

* [Bug tree-optimization/49712] internal compiler error: in gen_lsm_tmp_name, at tree-ssa-loop-im.c:2048
  2011-07-12  5:03 [Bug c/49712] New: internal compiler error: in gen_lsm_tmp_name, at tree-ssa-loop-im.c:2048 regehr at cs dot utah.edu
                   ` (2 preceding siblings ...)
  2011-07-12  7:03 ` jakub at gcc dot gnu.org
@ 2011-07-12  8:51 ` rguenth at gcc dot gnu.org
  2011-07-12  8:54 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-07-12  8:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-07-12 08:48:45 UTC ---
(In reply to comment #3)
> Created attachment 24742 [details]
> gcc47-pr49712.patch
> 
> Untested fix.
> 
> Wonder if TARGET_MEM_REF shouldn't be handled alongside MEM_REF in
> ref_always_accessed_p too.

Looks obvious.


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

* [Bug tree-optimization/49712] internal compiler error: in gen_lsm_tmp_name, at tree-ssa-loop-im.c:2048
  2011-07-12  5:03 [Bug c/49712] New: internal compiler error: in gen_lsm_tmp_name, at tree-ssa-loop-im.c:2048 regehr at cs dot utah.edu
                   ` (3 preceding siblings ...)
  2011-07-12  8:51 ` rguenth at gcc dot gnu.org
@ 2011-07-12  8:54 ` rguenth at gcc dot gnu.org
  2011-07-12  9:13 ` jakub at gcc dot gnu.org
  2011-08-04 15:19 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-07-12  8:54 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-07-12 08:49:12 UTC ---
*** Bug 49711 has been marked as a duplicate of this bug. ***


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

* [Bug tree-optimization/49712] internal compiler error: in gen_lsm_tmp_name, at tree-ssa-loop-im.c:2048
  2011-07-12  5:03 [Bug c/49712] New: internal compiler error: in gen_lsm_tmp_name, at tree-ssa-loop-im.c:2048 regehr at cs dot utah.edu
                   ` (4 preceding siblings ...)
  2011-07-12  8:54 ` rguenth at gcc dot gnu.org
@ 2011-07-12  9:13 ` jakub at gcc dot gnu.org
  2011-08-04 15:19 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-07-12  9:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-12 09:13:11 UTC ---
Author: jakub
Date: Tue Jul 12 09:13:06 2011
New Revision: 176195

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176195
Log:
    PR tree-optimization/49712
    * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.

    * gcc.c-torture/execute/pr49712.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr49712.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-loop-im.c


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

* [Bug tree-optimization/49712] internal compiler error: in gen_lsm_tmp_name, at tree-ssa-loop-im.c:2048
  2011-07-12  5:03 [Bug c/49712] New: internal compiler error: in gen_lsm_tmp_name, at tree-ssa-loop-im.c:2048 regehr at cs dot utah.edu
                   ` (5 preceding siblings ...)
  2011-07-12  9:13 ` jakub at gcc dot gnu.org
@ 2011-08-04 15:19 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-08-04 15:19 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-08-04 15:17:44 UTC ---
Fixed.


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

end of thread, other threads:[~2011-08-04 15:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-12  5:03 [Bug c/49712] New: internal compiler error: in gen_lsm_tmp_name, at tree-ssa-loop-im.c:2048 regehr at cs dot utah.edu
2011-07-12  5:16 ` [Bug tree-optimization/49712] " pinskia at gcc dot gnu.org
2011-07-12  6:38 ` jakub at gcc dot gnu.org
2011-07-12  7:03 ` jakub at gcc dot gnu.org
2011-07-12  8:51 ` rguenth at gcc dot gnu.org
2011-07-12  8:54 ` rguenth at gcc dot gnu.org
2011-07-12  9:13 ` jakub at gcc dot gnu.org
2011-08-04 15:19 ` jakub 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).