This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/52318] New: [4.7 Regression] ICE: in execute_todo, at passes.c:1748 with -O3 -ftracer -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce and stpcpy_chk()


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

             Bug #: 52318
           Summary: [4.7 Regression] ICE: in execute_todo, at
                    passes.c:1748 with -O3 -ftracer -fno-tree-ccp
                    -fno-tree-copy-prop -fno-tree-dce and stpcpy_chk()
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


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

Looks similiar to PR52045

Compiler output:
$ gcc -O3 -ftracer -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce testcase.c   
testcase.c: In function 'foo':
testcase.c:4:6: internal compiler error: in execute_todo, at passes.c:1748
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

(gdb) bt
#0  fancy_abort (file=0x128bb58 "/mnt/svn/gcc-trunk/gcc/passes.c", line=1748,
function=0x128c109 "execute_todo")
    at /mnt/svn/gcc-trunk/gcc/diagnostic.c:898
#1  0x00000000008f9005 in execute_todo (flags=6) at
/mnt/svn/gcc-trunk/gcc/passes.c:1748
#2  0x00000000008fc1fe in execute_one_pass (pass=0x1954280) at
/mnt/svn/gcc-trunk/gcc/passes.c:2104
#3  0x00000000008fc585 in execute_pass_list (pass=0x1954280) at
/mnt/svn/gcc-trunk/gcc/passes.c:2136
#4  0x00000000008fc597 in execute_pass_list (pass=0x17cdd20) at
/mnt/svn/gcc-trunk/gcc/passes.c:2137
#5  0x0000000000a5e84e in tree_rest_of_compilation (fndecl=0x7ffff5ba6e00) at
/mnt/svn/gcc-trunk/gcc/tree-optimize.c:422
#6  0x00000000006b036a in cgraph_expand_function (node=0x7ffff5a976c0) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1837
#7  0x00000000006b225c in cgraph_expand_all_functions () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1904
#8  cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2218
#9  0x00000000006b28aa in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1344
#10 0x000000000058eec0 in c_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/c-decl.c:10031
#11 0x00000000009f10cc in compile_file () at
/mnt/svn/gcc-trunk/gcc/toplev.c:573
#12 do_compile () at /mnt/svn/gcc-trunk/gcc/toplev.c:1938
#13 toplev_main (argc=17, argv=0x7fffffffd748) at
/mnt/svn/gcc-trunk/gcc/toplev.c:2014
#14 0x00007ffff61cc09d in __libc_start_main () from /lib64/libc.so.6
#15 0x0000000000572541 in _start ()

Tested revisions:
r184386 - crash
4.6 r180325 - OK


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]