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: sh-elf-4_1-branch created


Kaz Kojima wrote:



--
2005-04-13  Kaz Kojima  <kkojima@gcc.gnu.org>

	* config/sh/sh.c (sh_div_strategy): Initialize with
	SH_DIV_STRATEGY_DEFAULT.
	* config/sh/sh.c (SH_DIV_STR_FOR_SIZE): Define.
	(SH_DIV_STRATEGY_DEFAULT): Likewise.
	(OPTIMIZATION_OPTIONS): Set sh_div_str to SH_DIV_STR_FOR_SIZE
	when optimized for size.
	* config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT): Redefine.
	(SH_DIV_STR_FOR_SIZE): Likewise.
	* config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT): Likewise.
	(SH_DIV_STR_FOR_SIZE): Likewise.



That is a possible solution, but I would consider this a last resort. I'd rather get
the symbol versioning approach working. If you add a line:
.symver __sdivsi3_1,__sdivsi3@@GCC_3.0
to the assembler file that uses __sdivsi3_1, and maybe also __sdivsi3 to the
version script, does the undefined symbol error go away?


Of course. for a real solution we probably want a new version string, but for a test
it should be OK to stick to an existing one.



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