[Bug middle-end/29609] [4.2/4.3/4.4 Regression] Even with -O0 -g gcc optimizes a goto away and I cannot debug

2008-11-21 Thread pinskia at gcc dot gnu dot org


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

   Target Milestone|4.2.5   |4.4.0


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



[Bug middle-end/29609] [4.2/4.3/4.4 Regression] Even with -O0 -g gcc optimizes a goto away and I cannot debug

2008-10-07 Thread jakub at gcc dot gnu dot org


--- Comment #10 from jakub at gcc dot gnu dot org  2008-10-07 19:01 ---
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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



[Bug middle-end/29609] [4.2/4.3/4.4 Regression] Even with -O0 -g gcc optimizes a goto away and I cannot debug

2008-10-07 Thread jakub at gcc dot gnu dot org


--- Comment #9 from jakub at gcc dot gnu dot org  2008-10-07 18:50 ---
Subject: Bug 29609

Author: jakub
Date: Tue Oct  7 18:48:40 2008
New Revision: 140948

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140948
Log:
PR debug/29609
PR debug/36690
PR debug/37616
* basic-block.h (struct edge_def): Add goto_block field.
* cfglayout.c (fixup_reorder_chain): Ensure that there is at least
one insn with locus corresponding to edge's goto_locus if !optimize.
* profile.c (branch_prob): Copy edge's goto_block.
* cfgrtl.c (force_nonfallthru_and_redirect): Use goto_locus for
emitted jumps.
(cfg_layout_merge_blocks): Emit a nop with edge's goto_locus
locator in between the merged basic blocks if !optimize and needed.
* cfgexpand.c (expand_gimple_cond): Convert goto_block and
goto_locus into RTL locator.  For unconditional jump use that
locator for the jump insn.
(expand_gimple_cond): Convert goto_block and goto_locus into
RTL locator for all remaining edges.  For unconditional jump
use that locator for the jump insn.
* cfgcleanup.c (try_forward_edges): Avoid the optimization if
there is more than one edge or insn locator along the forwarding
edges and !optimize.  If there is just one, set e->goto_locus.
* tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Set also
edge's goto_block.
(move_block_to_fn): Adjust edge's goto_block.

* gcc.dg/debug/pr29609-1.c: New test.
* gcc.dg/debug/pr29609-2.c: New test.
* gcc.dg/debug/pr36690-1.c: New test.
* gcc.dg/debug/pr36690-2.c: New test.
* gcc.dg/debug/pr36690-3.c: New test.
* gcc.dg/debug/pr37616.c: New test.
* gcc.dg/debug/dwarf2/pr29609-1.c: New test.
* gcc.dg/debug/dwarf2/pr29609-2.c: New test.
* gcc.dg/debug/dwarf2/pr36690-1.c: New test.
* gcc.dg/debug/dwarf2/pr36690-2.c: New test.
* gcc.dg/debug/dwarf2/pr36690-3.c: New test.
* gcc.dg/debug/dwarf2/pr37616.c: New test.

Added:
trunk/gcc/testsuite/gcc.dg/debug/dwarf2/pr29609-1.c
trunk/gcc/testsuite/gcc.dg/debug/dwarf2/pr29609-2.c
trunk/gcc/testsuite/gcc.dg/debug/dwarf2/pr36690-1.c
trunk/gcc/testsuite/gcc.dg/debug/dwarf2/pr36690-2.c
trunk/gcc/testsuite/gcc.dg/debug/dwarf2/pr36690-3.c
trunk/gcc/testsuite/gcc.dg/debug/dwarf2/pr37616.c
trunk/gcc/testsuite/gcc.dg/debug/pr29609-1.c
trunk/gcc/testsuite/gcc.dg/debug/pr29609-2.c
trunk/gcc/testsuite/gcc.dg/debug/pr36690-1.c
trunk/gcc/testsuite/gcc.dg/debug/pr36690-2.c
trunk/gcc/testsuite/gcc.dg/debug/pr36690-3.c
trunk/gcc/testsuite/gcc.dg/debug/pr37616.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/basic-block.h
trunk/gcc/cfgcleanup.c
trunk/gcc/cfgexpand.c
trunk/gcc/cfglayout.c
trunk/gcc/cfgrtl.c
trunk/gcc/profile.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-cfg.c


-- 


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



[Bug middle-end/29609] [4.2/4.3/4.4 Regression] Even with -O0 -g gcc optimizes a goto away and I cannot debug

2008-10-03 Thread jakub at gcc dot gnu dot org


-- 

jakub at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
   |dot org |
URL||http://gcc.gnu.org/ml/gcc-
   ||patches/2008-
   ||10/msg00017.html
 Status|NEW |ASSIGNED
   Last reconfirmed|2008-01-07 17:40:51 |2008-10-03 08:54:37
   date||


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



[Bug middle-end/29609] [4.2/4.3/4.4 Regression] Even with -O0 -g gcc optimizes a goto away and I cannot debug

2008-07-04 Thread jsm28 at gcc dot gnu dot org


--- Comment #8 from jsm28 at gcc dot gnu dot org  2008-07-04 21:43 ---
Closing 4.1 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

   What|Removed |Added

Summary|[4.1/4.2/4.3/4.4 Regression]|[4.2/4.3/4.4 Regression]
   |Even with  -O0 -g gcc   |Even with  -O0 -g gcc
   |optimizes a goto away and I |optimizes a goto away and I
   |cannot debug|cannot debug
   Target Milestone|4.1.3   |4.2.5


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