This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR tree-opt/17343, cases do not combine with default



On Oct 1, 2004, at 11:11 AM, Andrew Pinski wrote:



On Oct 1, 2004, at 11:01 AM, Diego Novillo wrote:


On Fri, 2004-10-01 at 01:19, Andrew Pinski wrote:

	* tree-cfg.c (group_case_labels): Make sure that the last
	case was a default and if so get the label.
	When the label we looking at is the default, decrement the
	new_size.

Looks OK. Any chance you can add a test for this?

Tescase which I applied:

Which I had to remove as the last place where group_case_labels gets
called and is applied to this testcase is after optimization has happened
and we don't get a tree dump for it either.


Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]