[PATCH] Further improved native as support on Solaris/x86
Mark Mitchell
mark@codesourcery.com
Sat Jul 22 01:41:00 GMT 2006
Roger Sayle wrote:
> Using "cc -xO2 -xarch=amd64 -Kpic -S switch.c", it appears that the
> native C compiler on Solaris avoids this problem by placing its
> jump table in the .text section, so it can take the difference of
> labels in the same section.
I think that you should define a general configuration macro that
indicates whether or not the assembler has the capability GCC is
depending upon. Then, JUMP_TABLE_IN_TEXT_SECTION should be defined by
default if that macro indicates a less-capable assembler.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
More information about the Gcc-patches
mailing list