[Patch] Add options to Xtensa to prevent certain branch relaxations

Sterling Augustine sterling@tensilica.com
Wed Jan 7 17:40:00 GMT 2009


Under certain circumstances, it is undesirable for the Xtensa port of 
gas to relax branches into flix-style branches.  The attached patch adds 
options to control this behavior.

Tested under xtensa-unknown-elf

2009-01-07  Sterling Augustine  <sterling@tensilica.com>

	* config/tc-xtensa.c (produce_flix): New.
	(option_flix, optoin_no_generate_flix, option_no_flix) Define.
	(md_longopts): Add support for them.
	(md_parse_option): Likewise.
	(md_show_usage): Add help message.
	(finish_vinsn): Don't allow multi-slot flix when produce_flix
	option is set to FLIX_NONE.
	* config/xtensa-relax.c (transition_applies): Only relax to
	flix branches when produce_flix equals FLIX_ALL.
	* config/xtensa-relax.h (flix_level, FLIX_ALL, FLIX_NO_GENERATE
	FLIX_NONE): New.
	(produce_flix): Declare.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20090107/37441800/attachment.ksh>


More information about the Binutils mailing list