This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [csl-sol210] Patch to add -fno-jump-tables
Richard Henderson wrote:
On Thu, May 19, 2005 at 10:07:50PM +0000, Joseph S. Myers wrote:
Any comments on whether this would be a useful feature for mainline?
Eh. Maybe. In practice other dynamic linkers have simply been
written without switch statements at the source code level to
avoid this problem.
It seems like a useful switch to me. I believe that Sun is coming from
a compiler that had such a switch to GCC; as a result, I can see that
they might find it painful to change their code, and it seems nice to be
able to support all (more of?) the language in a dynamic linker. Maybe
even GLIBC could benefit by being able to use switch statements earlier?
Certainly, Joseph's implementation seems straightforward.
Do you object to this patch?
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304