public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [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()
@ 2012-02-20 19:46 zsojka at seznam dot cz
  2012-02-20 21:09 ` [Bug tree-optimization/52318] " jakub at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: zsojka at seznam dot cz @ 2012-02-20 19:46 UTC (permalink / raw)
  To: gcc-bugs

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


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

* [Bug tree-optimization/52318] [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()
  2012-02-20 19:46 [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() zsojka at seznam dot cz
@ 2012-02-20 21:09 ` jakub at gcc dot gnu.org
  2012-02-21  9:30 ` jakub at gcc dot gnu.org
  2012-02-21 10:55 ` jakub at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-20 21:09 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-02-20
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |4.7.0
     Ever Confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-20 20:15:02 UTC ---
Started with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178527
Will look at this tomorrow.


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

* [Bug tree-optimization/52318] [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()
  2012-02-20 19:46 [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() zsojka at seznam dot cz
  2012-02-20 21:09 ` [Bug tree-optimization/52318] " jakub at gcc dot gnu.org
@ 2012-02-21  9:30 ` jakub at gcc dot gnu.org
  2012-02-21 10:55 ` jakub at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-21  9:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-21 09:24:47 UTC ---
Author: jakub
Date: Tue Feb 21 09:24:42 2012
New Revision: 184428

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184428
Log:
    PR tree-optimization/52318
    * gimple-fold.c (gimplify_and_update_call_from_tree): Add
    vdef also to non-pure/const call stmts in the sequence.

    * gcc.dg/pr52318.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr52318.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-fold.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug tree-optimization/52318] [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()
  2012-02-20 19:46 [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() zsojka at seznam dot cz
  2012-02-20 21:09 ` [Bug tree-optimization/52318] " jakub at gcc dot gnu.org
  2012-02-21  9:30 ` jakub at gcc dot gnu.org
@ 2012-02-21 10:55 ` jakub at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-21 10:55 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-21 10:47:50 UTC ---
Fixed.


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

end of thread, other threads:[~2012-02-21 10:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-20 19:46 [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() zsojka at seznam dot cz
2012-02-20 21:09 ` [Bug tree-optimization/52318] " jakub at gcc dot gnu.org
2012-02-21  9:30 ` jakub at gcc dot gnu.org
2012-02-21 10:55 ` 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).