OSDN Git Service

PR tree-optimization/42963
authormatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Apr 2010 14:50:33 +0000 (14:50 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:32:24 +0000 (14:32 +0900)
* tree-cfg.c (touched_switch_bbs): New static variable.
(group_case_labels_stmt): New function broken out from ...
(group_case_labels): ... here, use the above.
(start_recording_case_labels): Allocate touched_switch_bbs.
(end_recording_case_labels): Deallocate it, call
group_case_labels_stmt.
(gimple_redirect_edge_and_branch): Remember index of affected BB.

testsuite/
* testsuite/gcc.dg/pr42963.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158345 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/testsuite/ChangeLog

index 122e5c8..63827c2 100644 (file)
@@ -1,3 +1,14 @@
+2010-04-14  Michael Matz  <matz@suse.de>
+
+       PR tree-optimization/42963
+       * tree-cfg.c (touched_switch_bbs): New static variable.
+       (group_case_labels_stmt): New function broken out from ...
+       (group_case_labels): ... here, use the above.
+       (start_recording_case_labels): Allocate touched_switch_bbs.
+       (end_recording_case_labels): Deallocate it, call
+       group_case_labels_stmt.
+       (gimple_redirect_edge_and_branch): Remember index of affected BB.
+
 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
index 350da80..0c8e72a 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-14  Michael Matz  <matz@suse.de>
+
+       PR tree-optimization/42963
+       * testsuite/gcc.dg/pr42963.c: New testcase.
+
 2010-04-14  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gnat.dg/class_wide.adb: Rename into...