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] Improved switch statement generation


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


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