This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Improved switch statement generation
- From: law at redhat dot com
- To: Roger Sayle <roger at www dot eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 21 Jan 2003 09:23:47 -0700
- Subject: Re: [PATCH] Improved switch statement generation
- Reply-to: law at redhat dot com
In message <Pine.LNX.4.44.0301190828070.31327-100000@www.eyesopen.com>, Roger S
ayle writes:
>
>Whilst working on a patch to provide an alternate implementation
>of C's switch statement, I discovered a number of defficiencies
>and improvements that could be made to the existing code. To
>ease the review process, I'm submitting the generic improvements
>as a separate patch below.
>
>The main improvement is from strip_default_case_nodes that removes
>case nodes from the case node list that branch to the default
>target.
[ ... ]
Glad to see you did this -- I poked at it few years ago when our switch
tables started exploding after adding default: cases in GCC itself.
I never got anything that would bootstrap and gave up (trees were
very very foreign to me then).
Approved.
THanks,
Jeff