public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/52720] New: internal compiler error: in try_move_mult_to_index
@ 2012-03-26  9:47 treeve at sourcemage dot org
  2012-03-26 11:06 ` [Bug c/52720] " rguenth at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: treeve at sourcemage dot org @ 2012-03-26  9:47 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52720
           Summary: internal compiler error: in try_move_mult_to_index
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: treeve@sourcemage.org


Created attachment 26995
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26995
preprocessed input file, xz compressed

root@Gemini-64:/usr/src/Mesa-8.0.2/src/gallium/drivers/r600# make
gcc -c -I. -I../../../../src/gallium/include
-I../../../../src/gallium/auxiliary -I../../../../src/gallium/drivers
-I../../../../include -march=native -mtune=native -m64 -pipe -O3 -Wall
-Wmissing-prototypes -std=c99 -fno-strict-aliasing -fno-builtin-memcmp
-march=native -mtune=native -m64 -pipe -O3  -fPIC  -DUSE_X86_64_ASM
-D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_XCB
-DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DUSE_EXTERNAL_DXTN_LIB=1
-DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -DHAVE_XCB_DRI2
-D__STDC_CONSTANT_MACROS -DHAVE_LLVM=0x0300 -fvisibility=hidden -save-temps
-I/usr/include    -D_GNU_SOURCE   -Wno-unused-parameter -Wwrite-strings 
-Wno-long-long -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS r600_asm.c -o r600_asm.o
gcc: warning: -pipe ignored because -save-temps specified
r600_asm.c: In function 'check_and_set_bank_swizzle':
r600_asm.c:780:12: internal compiler error: in try_move_mult_to_index, at
fold-const.c:6995
Please submit a full bug report,
with preprocessed source if appropriate.



$ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /usr/src/gcc-4.7.0/configure --prefix=/usr
--infodir=/usr/share/info --mandir=/usr/share/man --enable-threads=posix
--enable-languages=c,c++ --with-bugurl=http://bugs.sourcemage.org
--enable-bootstrap --enable-checking=release --disable-multilib --without-ppl
--without-cloog --build=x86_64-pc-linux-gnu --with-system-zlib --disable-nls
Thread model: posix
gcc version 4.7.0 (GCC)



Linux-3.3
amd64


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

* [Bug c/52720] internal compiler error: in try_move_mult_to_index
  2012-03-26  9:47 [Bug c/52720] New: internal compiler error: in try_move_mult_to_index treeve at sourcemage dot org
@ 2012-03-26 11:06 ` rguenth at gcc dot gnu.org
  2012-03-26 12:25 ` treeve at sourcemage dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-03-26 11:06 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2012-03-26
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-26 11:01:50 UTC ---
Works for me.  Please provide the output of your compile command-line with
'-v' appended.  That's important to see what -march=native gets translated to.


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

* [Bug c/52720] internal compiler error: in try_move_mult_to_index
  2012-03-26  9:47 [Bug c/52720] New: internal compiler error: in try_move_mult_to_index treeve at sourcemage dot org
  2012-03-26 11:06 ` [Bug c/52720] " rguenth at gcc dot gnu.org
@ 2012-03-26 12:25 ` treeve at sourcemage dot org
  2012-03-26 12:26 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: treeve at sourcemage dot org @ 2012-03-26 12:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from treeve at sourcemage dot org 2012-03-26 12:11:13 UTC ---
I added '-v' to compile flags, as requested


# make
gcc -c -I. -I../../../../src/gallium/include
-I../../../../src/gallium/auxiliary -I../../../../src/gallium/drivers
-I../../../../include -march=native -mtune=native -m64 -pipe -O3 -Wall
-Wmissing-prototypes -std=c99 -fno-strict-aliasing -fno-builtin-memcmp
-march=native -mtune=native -m64 -pipe -O3  -fPIC  -DUSE_X86_64_ASM
-D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_XCB
-DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DUSE_EXTERNAL_DXTN_LIB=1
-DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -DHAVE_XCB_DRI2
-D__STDC_CONSTANT_MACROS -DHAVE_LLVM=0x0300 -fvisibility=hidden -v
-I/usr/include    -D_GNU_SOURCE   -Wno-unused-parameter -Wwrite-strings 
-Wno-long-long -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS r600_asm.c -o r600_asm.o
Using built-in specs.
COLLECT_GCC=gcc
Target: x86_64-pc-linux-gnu
Configured with: /usr/src/gcc-4.7.0/configure --prefix=/usr
--infodir=/usr/share/info --mandir=/usr/share/man --enable-threads=posix
--enable-languages=c,c++ --with-bugurl=http://bugs.sourcemage.org
--enable-bootstrap --enable-checking=release --disable-multilib --without-ppl
--without-cloog --build=x86_64-pc-linux-gnu --with-system-zlib --disable-nls
Thread model: posix
gcc version 4.7.0 (GCC) 
COLLECT_GCC_OPTIONS='-c' '-I' '.' '-I' '../../../../src/gallium/include' '-I'
'../../../../src/gallium/auxiliary' '-I' '../../../../src/gallium/drivers' '-I'
'../../../../include' '-march=native' '-mtune=native' '-pipe' '-O3' '-Wall'
'-Wmissing-prototypes' '-std=c99' '-fno-strict-aliasing' '-fno-builtin-memcmp'
'-march=native' '-mtune=native' '-m64' '-pipe' '-O3' '-fPIC' '-D'
'USE_X86_64_ASM' '-D' '_GNU_SOURCE' '-D' 'PTHREADS' '-D' 'HAVE_POSIX_MEMALIGN'
'-D' 'USE_XCB' '-D' 'GLX_INDIRECT_RENDERING' '-D' 'GLX_DIRECT_RENDERING' '-D'
'USE_EXTERNAL_DXTN_LIB=1' '-D' 'IN_DRI_DRIVER' '-D' 'HAVE_ALIAS' '-D'
'HAVE_MINCORE' '-D' 'HAVE_LIBUDEV' '-D' 'HAVE_XCB_DRI2' '-D'
'__STDC_CONSTANT_MACROS' '-D' 'HAVE_LLVM=0x0300' '-fvisibility=hidden' '-v'
'-I' '/usr/include' '-D' '_GNU_SOURCE' '-Wno-unused-parameter'
'-Wwrite-strings' '-Wno-long-long' '-D' '__STDC_CONSTANT_MACROS' '-D'
'__STDC_FORMAT_MACROS' '-D' '__STDC_LIMIT_MACROS' '-o' 'r600_asm.o'
 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.7.0/cc1 -quiet -v -I . -I
../../../../src/gallium/include -I ../../../../src/gallium/auxiliary -I
../../../../src/gallium/drivers -I ../../../../include -I /usr/include -D
USE_X86_64_ASM -D _GNU_SOURCE -D PTHREADS -D HAVE_POSIX_MEMALIGN -D USE_XCB -D
GLX_INDIRECT_RENDERING -D GLX_DIRECT_RENDERING -D USE_EXTERNAL_DXTN_LIB=1 -D
IN_DRI_DRIVER -D HAVE_ALIAS -D HAVE_MINCORE -D HAVE_LIBUDEV -D HAVE_XCB_DRI2 -D
__STDC_CONSTANT_MACROS -D HAVE_LLVM=0x0300 -D _GNU_SOURCE -D
__STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS
r600_asm.c -march=k8-sse3 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul
-mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2
-mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mno-lzcnt --param
l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512
-mtune=k8 -quiet -dumpbase r600_asm.c -m64 -auxbase-strip r600_asm.o -O3 -O3
-Wall -Wmissing-prototypes -Wno-unused-parameter -Wwrite-strings -Wno-long-long
-std=c99 -version -fno-strict-aliasing -fno-builtin-memcmp -fPIC
-fvisibility=hidden -o - |
 /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/as
--64 -o r600_asm.o
GNU C (GCC) version 4.7.0 (x86_64-pc-linux-gnu)
        compiled by GNU C version 4.7.0, GMP version 5.0.4, MPFR version 2.4.2,
MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/include"
ignoring duplicate directory "/usr/include"
  as it is a non-system directory that duplicates a system directory
#include "..." search starts here:
#include <...> search starts here:
 .
 ../../../../src/gallium/include
 ../../../../src/gallium/auxiliary
 ../../../../src/gallium/drivers
 ../../../../include
 /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/include
 /usr/local/include
 /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/include-fixed
 /usr/include
End of search list.
GNU C (GCC) version 4.7.0 (x86_64-pc-linux-gnu)
        compiled by GNU C version 4.7.0, GMP version 5.0.4, MPFR version 2.4.2,
MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 7fe6ef4cb5124df873f31f22bb7f07de
r600_asm.c: In function 'check_and_set_bank_swizzle':
r600_asm.c:780:12: internal compiler error: in try_move_mult_to_index, at
fold-const.c:6995


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

* [Bug c/52720] internal compiler error: in try_move_mult_to_index
  2012-03-26  9:47 [Bug c/52720] New: internal compiler error: in try_move_mult_to_index treeve at sourcemage dot org
  2012-03-26 11:06 ` [Bug c/52720] " rguenth at gcc dot gnu.org
  2012-03-26 12:25 ` treeve at sourcemage dot org
@ 2012-03-26 12:26 ` rguenth at gcc dot gnu.org
  2012-03-26 12:28 ` [Bug middle-end/52720] [4.7/4.8 Regression] " rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-03-26 12:26 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-*
             Status|WAITING                     |NEW

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-26 12:25:16 UTC ---
Confirmed with -O3 -march=k8-sse3, triggered by array prefetching via SCEV.

Reducing.


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

* [Bug middle-end/52720] [4.7/4.8 Regression] internal compiler error: in try_move_mult_to_index
  2012-03-26  9:47 [Bug c/52720] New: internal compiler error: in try_move_mult_to_index treeve at sourcemage dot org
                   ` (2 preceding siblings ...)
  2012-03-26 12:26 ` rguenth at gcc dot gnu.org
@ 2012-03-26 12:28 ` rguenth at gcc dot gnu.org
  2012-03-26 12:46 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-03-26 12:28 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |middle-end
      Known to work|                            |4.6.3
   Target Milestone|---                         |4.7.1
            Summary|internal compiler error: in |[4.7/4.8 Regression]
                   |try_move_mult_to_index      |internal compiler error: in
                   |                            |try_move_mult_to_index
           Severity|critical                    |normal


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

* [Bug middle-end/52720] [4.7/4.8 Regression] internal compiler error: in try_move_mult_to_index
  2012-03-26  9:47 [Bug c/52720] New: internal compiler error: in try_move_mult_to_index treeve at sourcemage dot org
                   ` (3 preceding siblings ...)
  2012-03-26 12:28 ` [Bug middle-end/52720] [4.7/4.8 Regression] " rguenth at gcc dot gnu.org
@ 2012-03-26 12:46 ` rguenth at gcc dot gnu.org
  2012-03-26 13:06 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-03-26 12:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-26 12:44:33 UTC ---
Reduced testcase:

struct alu_bank_swizzle {
    int hw_gpr[3][4];
    int hw_cfile_addr[4];
};
static void init_bank_swizzle(struct alu_bank_swizzle *bs)
{
  int i, cycle, component;
  for (cycle = 0; cycle < 3; cycle++)
    for (component = 0; component < 4; component++)
      bs->hw_gpr[cycle][component] = -1;
  for (i = 0; i < 4; i++)
    bs->hw_cfile_addr[i] = -1;
}
int check_and_set_bank_swizzle(int max_slots, int *slots)
{
  struct alu_bank_swizzle bs;
  int i;
  for (i = 0; i < max_slots; i++)
    {
      init_bank_swizzle(&bs);
      if (slots[i])
        check_vector(&bs);
    }
}


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

* [Bug middle-end/52720] [4.7/4.8 Regression] internal compiler error: in try_move_mult_to_index
  2012-03-26  9:47 [Bug c/52720] New: internal compiler error: in try_move_mult_to_index treeve at sourcemage dot org
                   ` (4 preceding siblings ...)
  2012-03-26 12:46 ` rguenth at gcc dot gnu.org
@ 2012-03-26 13:06 ` rguenth at gcc dot gnu.org
  2012-03-27 12:51 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-03-26 13:06 UTC (permalink / raw)
  To: gcc-bugs

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

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 #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-26 13:01:14 UTC ---
Mine.


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

* [Bug middle-end/52720] [4.7/4.8 Regression] internal compiler error: in try_move_mult_to_index
  2012-03-26  9:47 [Bug c/52720] New: internal compiler error: in try_move_mult_to_index treeve at sourcemage dot org
                   ` (5 preceding siblings ...)
  2012-03-26 13:06 ` rguenth at gcc dot gnu.org
@ 2012-03-27 12:51 ` rguenth at gcc dot gnu.org
  2012-03-27 12:51 ` rguenth at gcc dot gnu.org
  2012-03-27 13:02 ` rguenth at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-03-27 12:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-27 12:49:20 UTC ---
Author: rguenth
Date: Tue Mar 27 12:49:10 2012
New Revision: 185864

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185864
Log:
2012-03-27  Richard Guenther  <rguenther@suse.de>

    PR middle-end/52720
    * fold-const.c (try_move_mult_to_index): Handle &x.array more
    explicitely.

    * gcc.dg/torture/pr52720.c: New testcase.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/torture/pr52720.c
Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/fold-const.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog


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

* [Bug middle-end/52720] [4.7/4.8 Regression] internal compiler error: in try_move_mult_to_index
  2012-03-26  9:47 [Bug c/52720] New: internal compiler error: in try_move_mult_to_index treeve at sourcemage dot org
                   ` (6 preceding siblings ...)
  2012-03-27 12:51 ` rguenth at gcc dot gnu.org
@ 2012-03-27 12:51 ` rguenth at gcc dot gnu.org
  2012-03-27 13:02 ` rguenth at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-03-27 12:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-27 12:50:34 UTC ---
Author: rguenth
Date: Tue Mar 27 12:50:29 2012
New Revision: 185865

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185865
Log:
2012-03-27  Richard Guenther  <rguenther@suse.de>

    PR middle-end/52720
    * fold-const.c (try_move_mult_to_index): Handle &x.array more
    explicitely.

    * gcc.dg/torture/pr52720.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr52720.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug middle-end/52720] [4.7/4.8 Regression] internal compiler error: in try_move_mult_to_index
  2012-03-26  9:47 [Bug c/52720] New: internal compiler error: in try_move_mult_to_index treeve at sourcemage dot org
                   ` (7 preceding siblings ...)
  2012-03-27 12:51 ` rguenth at gcc dot gnu.org
@ 2012-03-27 13:02 ` rguenth at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-03-27 13:02 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to work|                            |4.7.1
         Resolution|                            |FIXED
      Known to fail|                            |4.7.0

--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-27 12:51:41 UTC ---
Fixed.


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

end of thread, other threads:[~2012-03-27 12:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-26  9:47 [Bug c/52720] New: internal compiler error: in try_move_mult_to_index treeve at sourcemage dot org
2012-03-26 11:06 ` [Bug c/52720] " rguenth at gcc dot gnu.org
2012-03-26 12:25 ` treeve at sourcemage dot org
2012-03-26 12:26 ` rguenth at gcc dot gnu.org
2012-03-26 12:28 ` [Bug middle-end/52720] [4.7/4.8 Regression] " rguenth at gcc dot gnu.org
2012-03-26 12:46 ` rguenth at gcc dot gnu.org
2012-03-26 13:06 ` rguenth at gcc dot gnu.org
2012-03-27 12:51 ` rguenth at gcc dot gnu.org
2012-03-27 12:51 ` rguenth at gcc dot gnu.org
2012-03-27 13:02 ` 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).