public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/41891]  New: ICE in move_loop_invariants
@ 2009-10-31 16:51 lucier at math dot purdue dot edu
  2009-10-31 16:56 ` [Bug c/41891] " lucier at math dot purdue dot edu
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: lucier at math dot purdue dot edu @ 2009-10-31 16:51 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4871 bytes --]

With this compiler

frying-pan:~/programs/gambc-v4_5_2-devel> /pkgs/gcc-mainline/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/pkgs/gcc-mainline/bin/gcc
COLLECT_LTO_WRAPPER=/pkgs/gcc-mainline/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../../mainline/configure --prefix=/pkgs/gcc-mainline
--enable-checking=release --enable-languages=c
Thread model: posix
gcc version 4.5.0 20091031 (experimental) [trunk revision 153773] (GCC) 

I get an ICE:

frying-pan:~/programs/gambc-v4_5_2-devel> /pkgs/gcc-mainline/bin/gcc
-march=core2 -msse4 -save-temps -Wno-unused -O1 -fno-math-errno
-fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv
-fomit-frame-pointer -fPIC -fno-common -mieee-fp -c -o "_io.o" _io.i
_io.i: In function ‘___H__23__23_read_2d_six_2d_datum_2d_or_2d_eof’:
_io.i:15174:1: internal compiler error: Segmentation fault

In gdb I get

frying-pan:~/programs/gambc-v4_5_2-devel> gdb
/pkgs/gcc-mainline/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/cc1 
GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/pkgs/gcc-mainline/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/cc1...done.
(gdb) run -march=core2 -msse4 -Wno-unused -O1 -fno-math-errno -fschedule-insns2
-fno-trapping-math -fno-strict-aliasing -fwrapv -fomit-frame-pointer -fPIC
-fno-common -mieee-fp _io.i
Starting program:
/pkgs/gcc-mainline/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/cc1 -march=core2
-msse4 -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math
-fno-strict-aliasing -fwrapv -fomit-frame-pointer -fPIC -fno-common -mieee-fp
_io.i
 btowc wctob mbrlen __signbitf __signbit __signbitl
___H__23__23_read_2d_six_2d_datum_2d_or_2d_eof
Analyzing compilation unit
Performing interprocedural optimizations
 <visibility> <> <early_local_cleanups> <whole-program> <inline> <static-var>
<pure-const>Assembling functions:
 ___H__23__23_read_2d_six_2d_datum_2d_or_2d_eof
Program received signal SIGSEGV, Segmentation fault.
bitmap_clear (head=0x78) at ../../../mainline/gcc/bitmap.c:297
297       if (head->first)
(gdb) where
#0  bitmap_clear (head=0x78) at ../../../mainline/gcc/bitmap.c:297
#1  0x0000000000622c78 in free_loop_data () at
../../../mainline/gcc/loop-invariant.c:1568
#2  move_loop_invariants () at ../../../mainline/gcc/loop-invariant.c:1906
#3  0x00000000006206d7 in rtl_move_loop_invariants () at
../../../mainline/gcc/loop-init.c:254
#4  0x00000000006544f0 in execute_one_pass (pass=0xf8fc60) at
../../../mainline/gcc/passes.c:1518
#5  0x0000000000654705 in execute_pass_list (pass=0xf8fc60) at
../../../mainline/gcc/passes.c:1567
#6  0x0000000000654717 in execute_pass_list (pass=0xf8fb40) at
../../../mainline/gcc/passes.c:1568
#7  0x0000000000654717 in execute_pass_list (pass=0x1010d60) at
../../../mainline/gcc/passes.c:1568
#8  0x00000000007263dc in tree_rest_of_compilation (fndecl=0x7ffff713fe00) at
../../../mainline/gcc/tree-optimize.c:392
#9  0x0000000000851b7c in cgraph_expand_function (node=0x7ffff713fd00) at
../../../mainline/gcc/cgraphunit.c:1160
#10 0x0000000000853485 in cgraph_expand_all_functions () at
../../../mainline/gcc/cgraphunit.c:1219
#11 cgraph_optimize () at ../../../mainline/gcc/cgraphunit.c:1465
#12 0x000000000085383f in cgraph_finalize_compilation_unit () at
../../../mainline/gcc/cgraphunit.c:1089
#13 0x000000000048e45b in c_write_global_declarations () at
../../../mainline/gcc/c-decl.c:9489
#14 0x00000000006e98ac in compile_file (argc=15, argv=0x7fffffffe5d8) at
../../../mainline/gcc/toplev.c:1061
#15 do_compile (argc=15, argv=0x7fffffffe5d8) at
../../../mainline/gcc/toplev.c:2408
#16 toplev_main (argc=15, argv=0x7fffffffe5d8) at
../../../mainline/gcc/toplev.c:2450
#17 0x00007ffff73d8abd in __libc_start_main () from /lib/libc.so.6
#18 0x000000000047af09 in _start () at ../sysdeps/x86_64/elf/start.S:113
(gdb) print head
$1 = (bitmap) 0x78

I'll add the (unfortunately very long) input file as an attachment.

Brad


-- 
           Summary: ICE in move_loop_invariants
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lucier at math dot purdue dot edu
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

* [Bug c/41891] ICE in move_loop_invariants
  2009-10-31 16:51 [Bug c/41891] New: ICE in move_loop_invariants lucier at math dot purdue dot edu
@ 2009-10-31 16:56 ` lucier at math dot purdue dot edu
  2009-10-31 17:32 ` [Bug middle-end/41891] " lucier at math dot purdue dot edu
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: lucier at math dot purdue dot edu @ 2009-10-31 16:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from lucier at math dot purdue dot edu  2009-10-31 16:56 -------
Created an attachment (id=18942)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18942&action=view)
test case

This is the test case.

BTW, this works in 4.4.1.


-- 


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


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

* [Bug middle-end/41891] ICE in move_loop_invariants
  2009-10-31 16:51 [Bug c/41891] New: ICE in move_loop_invariants lucier at math dot purdue dot edu
  2009-10-31 16:56 ` [Bug c/41891] " lucier at math dot purdue dot edu
@ 2009-10-31 17:32 ` lucier at math dot purdue dot edu
  2009-11-01 10:25 ` [Bug rtl-optimization/41891] [4.5 Regression] " rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: lucier at math dot purdue dot edu @ 2009-10-31 17:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from lucier at math dot purdue dot edu  2009-10-31 17:32 -------
There is no ICE with

heine:~/Desktop> /pkgs/gcc-mainline/bin/gcc -vUsing built-in specs.
COLLECT_GCC=/pkgs/gcc-mainline/bin/gcc
COLLECT_LTO_WRAPPER=/pkgs/gcc-mainline/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../../mainline/configure --enable-checking=release
--prefix=/pkgs/gcc-mainline --enable-languages=c --disable-multilib
Thread model: posix
gcc version 4.5.0 20091005 (experimental) [trunk revision 152459] (GCC) 


-- 


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


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

* [Bug rtl-optimization/41891] [4.5 Regression] ICE in move_loop_invariants
  2009-10-31 16:51 [Bug c/41891] New: ICE in move_loop_invariants lucier at math dot purdue dot edu
  2009-10-31 16:56 ` [Bug c/41891] " lucier at math dot purdue dot edu
  2009-10-31 17:32 ` [Bug middle-end/41891] " lucier at math dot purdue dot edu
@ 2009-11-01 10:25 ` rguenth at gcc dot gnu dot org
  2009-11-01 23:56 ` lucier at math dot purdue dot edu
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-11-01 10:25 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |rtl-optimization
            Summary|ICE in move_loop_invariants |[4.5 Regression] ICE in
                   |                            |move_loop_invariants
   Target Milestone|---                         |4.5.0


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


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

* [Bug rtl-optimization/41891] [4.5 Regression] ICE in move_loop_invariants
  2009-10-31 16:51 [Bug c/41891] New: ICE in move_loop_invariants lucier at math dot purdue dot edu
                   ` (2 preceding siblings ...)
  2009-11-01 10:25 ` [Bug rtl-optimization/41891] [4.5 Regression] " rguenth at gcc dot gnu dot org
@ 2009-11-01 23:56 ` lucier at math dot purdue dot edu
  2009-11-07 22:54 ` rguenth at gcc dot gnu dot org
  2009-11-07 23:27 ` rguenth at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: lucier at math dot purdue dot edu @ 2009-11-01 23:56 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2105 bytes --]



------- Comment #3 from lucier at math dot purdue dot edu  2009-11-01 23:55 -------
This one works:

frying-pan:~/programs/gambc-v4_5_2-devel> /pkgs/gcc-mainline/bin/gcc
-march=core2 -msse4 -save-temps -Wno-unused -O1 -fno-math-errno
-fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv
-fomit-frame-pointer -fPIC -fno-common -mieee-fp -c -o "_io.o" _io.i
frying-pan:~/programs/gambc-v4_5_2-devel> /pkgs/gcc-mainline/bin/gcc -v        
                                                                               
                                Using built-in specs.
COLLECT_GCC=/pkgs/gcc-mainline/bin/gcc
COLLECT_LTO_WRAPPER=/pkgs/gcc-mainline/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../../mainline/configure --prefix=/pkgs/gcc-mainline
--enable-languages=c --enable-checking=release
Thread model: posix
gcc version 4.5.0 20091014 (experimental) [trunk revision 152748] (GCC) 

This one fails:

frying-pan:~/programs/gambc-v4_5_2-devel> /pkgs/gcc-mainline/bin/gcc
-march=core2 -msse4 -save-temps -Wno-unused -O1 -fno-math-errno
-fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv
-fomit-frame-pointer -fPIC -fno-common -mieee-fp -c -o "_io.o" _io.i
_io.i: In function â:
_io.i:15174:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
frying-pan:~/programs/gambc-v4_5_2-devel> /pkgs/gcc-mainline/bin/gcc -v        
                                                                               
                                Using built-in specs.
COLLECT_GCC=/pkgs/gcc-mainline/bin/gcc
COLLECT_LTO_WRAPPER=/pkgs/gcc-mainline/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../../mainline/configure --prefix=/pkgs/gcc-mainline
--enable-languages=c --enable-checking=release
Thread model: posix
gcc version 4.5.0 20091015 (experimental) [trunk revision 152797] (GCC) 


-- 


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


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

* [Bug rtl-optimization/41891] [4.5 Regression] ICE in move_loop_invariants
  2009-10-31 16:51 [Bug c/41891] New: ICE in move_loop_invariants lucier at math dot purdue dot edu
                   ` (3 preceding siblings ...)
  2009-11-01 23:56 ` lucier at math dot purdue dot edu
@ 2009-11-07 22:54 ` rguenth at gcc dot gnu dot org
  2009-11-07 23:27 ` rguenth at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-11-07 22:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2009-11-07 22:54 -------
PR41928 has the smallest testcase.


-- 


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


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

* [Bug rtl-optimization/41891] [4.5 Regression] ICE in move_loop_invariants
  2009-10-31 16:51 [Bug c/41891] New: ICE in move_loop_invariants lucier at math dot purdue dot edu
                   ` (4 preceding siblings ...)
  2009-11-07 22:54 ` rguenth at gcc dot gnu dot org
@ 2009-11-07 23:27 ` rguenth at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-11-07 23:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2009-11-07 23:27 -------


*** This bug has been marked as a duplicate of 41928 ***


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2009-11-07 23:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-31 16:51 [Bug c/41891] New: ICE in move_loop_invariants lucier at math dot purdue dot edu
2009-10-31 16:56 ` [Bug c/41891] " lucier at math dot purdue dot edu
2009-10-31 17:32 ` [Bug middle-end/41891] " lucier at math dot purdue dot edu
2009-11-01 10:25 ` [Bug rtl-optimization/41891] [4.5 Regression] " rguenth at gcc dot gnu dot org
2009-11-01 23:56 ` lucier at math dot purdue dot edu
2009-11-07 22:54 ` rguenth at gcc dot gnu dot org
2009-11-07 23:27 ` rguenth 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).