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)
commit86439ca1f37a584c9fe993120abc4c1011c77c00
treed1745592619e48922818bd4193967c1e9207f504
parent48ccafc4e79f4dd8643192108612553655be2e93
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.

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