[Patch,AVR] Print no-return functions as JMP

Georg-Johann Lay avr@gjlay.de
Thu Oct 13 18:53:00 GMT 2011

This patch saves some ticks and bytes on stack by JUMPing to no-return
functions instead of CALLing them.

Passes without regression.

Ok for trunk?


	* config/avr/avr-protos.h (avr_out_call): New prototype.
	* config/avr/avr.md (adjust_len): Add alternative "call".
	(call_insn, call_calue_insn): Use it.  Use avr_out_call to print
	* config/avr/avr.c (avr_out_call): New function.
	(adjust_insn_length): Handle ADJUST_LEN_CALL.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: noreturn.diff
Type: text/x-patch
Size: 4498 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111013/923d9be2/attachment.bin>

More information about the Gcc-patches mailing list