public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/61554] [4.10 Regression] ICE: Segmentation fault
       [not found] <bug-61554-4@http.gcc.gnu.org/bugzilla/>
@ 2014-06-18 20:29 ` trippels at gcc dot gnu.org
  2014-06-18 20:58 ` trippels at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-06-18 20:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61554

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |4.8.3, 4.9.0
            Version|4.9.0                       |4.10.0
   Last reconfirmed|                            |2014-06-18
          Component|c++                         |tree-optimization
                 CC|                            |trippels at gcc dot gnu.org
     Ever confirmed|0                           |1
            Summary|ice in bb_seq_addr          |[4.10 Regression] ICE:
                   |                            |Segmentation fault
   Target Milestone|---                         |4.10.0
      Known to fail|                            |4.10.0

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Confirmed.

Program received signal SIGSEGV, Segmentation fault.
[Switching to process 20379]
gsi_for_stmt (stmt=stmt@entry=0x7ffff5a91910) at
../../gcc/gcc/gimple-iterator.c:620
620         i = gsi_start_bb (bb);
(gdb) bt
#0  gsi_for_stmt (stmt=stmt@entry=0x7ffff5a91910) at
../../gcc/gcc/gimple-iterator.c:620
#1  0x0000000000ce55c0 in substitute_and_fold
(get_value_fn=get_value_fn@entry=0xc59eb0 <get_constant_value(tree)>, 
    fold_fn=fold_fn@entry=0xc61d60 <ccp_fold_stmt(gimple_stmt_iterator*)>,
do_dce=do_dce@entry=true) at ../../gcc/gcc/tree-ssa-propagate.c:1227
#2  0x0000000000c5bd44 in ccp_finalize () at ../../gcc/gcc/tree-ssa-ccp.c:926
#3  do_ssa_ccp () at ../../gcc/gcc/tree-ssa-ccp.c:2341
#4  (anonymous namespace)::pass_ccp::execute (this=<optimized out>) at
../../gcc/gcc/tree-ssa-ccp.c:2374
#5  0x0000000000ad0be2 in execute_one_pass (pass=pass@entry=0x1831ad0) at
../../gcc/gcc/passes.c:2179
#6  0x0000000000ad0ed6 in execute_pass_list_1 (pass=0x1831ad0) at
../../gcc/gcc/passes.c:2232
#7  0x0000000000ad0ee8 in execute_pass_list_1 (pass=0x18319b0,
pass@entry=0x18316b0) at ../../gcc/gcc/passes.c:2233
#8  0x0000000000ad0f29 in execute_pass_list (fn=0x7ffff12a87e0, pass=0x18316b0)
at ../../gcc/gcc/passes.c:2243
#9  0x0000000000acf725 in do_per_function_toporder
(callback=callback@entry=0xad0f10 <execute_pass_list(function*, opt_pass*)>,
data=0x18316b0)
    at ../../gcc/gcc/passes.c:1547
#10 0x0000000000ad14d7 in execute_ipa_pass_list (pass=0x1831650) at
../../gcc/gcc/passes.c:2577
#11 0x000000000084ce47 in ipa_passes () at ../../gcc/gcc/cgraphunit.c:2056
#12 compile () at ../../gcc/gcc/cgraphunit.c:2187
#13 0x000000000084d8e5 in finalize_compilation_unit () at
../../gcc/gcc/cgraphunit.c:2342
#14 0x000000000063b2af in cp_write_global_declarations () at
../../gcc/gcc/cp/decl2.c:4647
#15 0x0000000000b85c2d in compile_file () at ../../gcc/gcc/toplev.c:562
#16 0x0000000000b87c75 in do_compile () at ../../gcc/gcc/toplev.c:1918
#17 toplev_main (argc=16, argv=0x7fffffffde58) at ../../gcc/gcc/toplev.c:1994
#18 0x00007ffff75fbfb0 in __libc_start_main () from /lib/libc.so.6
#19 0x000000000054b841 in _start ()


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

* [Bug tree-optimization/61554] [4.10 Regression] ICE: Segmentation fault
       [not found] <bug-61554-4@http.gcc.gnu.org/bugzilla/>
  2014-06-18 20:29 ` [Bug tree-optimization/61554] [4.10 Regression] ICE: Segmentation fault trippels at gcc dot gnu.org
@ 2014-06-18 20:58 ` trippels at gcc dot gnu.org
  2014-06-20 12:02 ` trippels at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-06-18 20:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61554

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
markus@x4 tmp % cat bug.ii
struct A
{
  A ();
};
const unsigned long &min (const unsigned long &, const unsigned long &) {}

template <typename _InputIterator1, typename _InputIterator2,
          typename _OutputIterator, typename _BinaryOperation>
void transform (_InputIterator1 p1, _InputIterator2, _OutputIterator,
                _BinaryOperation p4)
{
  for (; p1;)
    p4 (0, 0);
}

class multi_array
{
public:
  multi_array (int &, int &);
  int &resize_ranges;
  int resize___trans_tmp_1;
  void m_fn1 ()
  {
    multi_array a (resize_ranges, this->m_fn2 ());
    const unsigned long &(*b)(const unsigned long &, const unsigned long &)
        = min;
    transform (&resize___trans_tmp_1, 0, 0, b);
    A c;
  }
  ~multi_array ()
  {
    for (int i; &base_;)
      ;
  }
  int base_;
  int &m_fn2 ();
};

class B
{
  void m_fn3 (const int &, const int &);
  multi_array _bookingSnapshotBlock;
};
void B::m_fn3 (const int &, const int &) { _bookingSnapshotBlock.m_fn1 (); }


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

* [Bug tree-optimization/61554] [4.10 Regression] ICE: Segmentation fault
       [not found] <bug-61554-4@http.gcc.gnu.org/bugzilla/>
  2014-06-18 20:29 ` [Bug tree-optimization/61554] [4.10 Regression] ICE: Segmentation fault trippels at gcc dot gnu.org
  2014-06-18 20:58 ` trippels at gcc dot gnu.org
@ 2014-06-20 12:02 ` trippels at gcc dot gnu.org
  2014-06-24  6:34 ` cltang at gcc dot gnu.org
  2014-06-24  6:53 ` trippels at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-06-20 12:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61554

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Stated with r211725.


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

* [Bug tree-optimization/61554] [4.10 Regression] ICE: Segmentation fault
       [not found] <bug-61554-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2014-06-20 12:02 ` trippels at gcc dot gnu.org
@ 2014-06-24  6:34 ` cltang at gcc dot gnu.org
  2014-06-24  6:53 ` trippels at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: cltang at gcc dot gnu.org @ 2014-06-24  6:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61554

--- Comment #4 from Chung-Lin Tang <cltang at gcc dot gnu.org> ---
Author: cltang
Date: Tue Jun 24 06:33:58 2014
New Revision: 211928

URL: https://gcc.gnu.org/viewcvs?rev=211928&root=gcc&view=rev
Log:
2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>

    PR tree-optimization/61554
    * tree-ssa-propagate.c: Include "bitmap.h".
    (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
    properly update constructor/destructor.
    (substitute_and_fold_dom_walker::before_dom_children):
    Remove call to gimple_purge_dead_eh_edges, add bb->index to
    need_eh_cleaup instead.
    (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
    need_eh_cleanup.

testsuite/
2014-06-24  Markus Trippelsdorf  <markus@trippelsdorf.de>

    PR tree-optimization/61554
    * g++.dg/torture/pr61554.C: New testcase.


Added:
    trunk/gcc/testsuite/g++.dg/torture/pr61554.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-propagate.c


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

* [Bug tree-optimization/61554] [4.10 Regression] ICE: Segmentation fault
       [not found] <bug-61554-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2014-06-24  6:34 ` cltang at gcc dot gnu.org
@ 2014-06-24  6:53 ` trippels at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-06-24  6:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61554

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

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

--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Fixed. Thanks.


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

end of thread, other threads:[~2014-06-24  6:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-61554-4@http.gcc.gnu.org/bugzilla/>
2014-06-18 20:29 ` [Bug tree-optimization/61554] [4.10 Regression] ICE: Segmentation fault trippels at gcc dot gnu.org
2014-06-18 20:58 ` trippels at gcc dot gnu.org
2014-06-20 12:02 ` trippels at gcc dot gnu.org
2014-06-24  6:34 ` cltang at gcc dot gnu.org
2014-06-24  6:53 ` trippels 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).