[Patch,AVR] Tidy up builtins expansion

Georg-Johann Lay avr@gjlay.de
Wed Jun 6 16:33:00 GMT 2012


This patch merges the tree functions that handled builtins with
one, two, three arguments to one function.

Code is clearer and smaller if the arguments are handled in a loop
instead of hand-unrolled loops as with the old functions.

Ok for trunk?

Johann

	* config/avr/avr.c (avr_default_expand_builtin): New function.
	(avr_expand_builtin): Use it.
	(avr_expand_unop_builtin): Remove.
	(avr_expand_binop_builtin): Remove.
	(avr_expand_triop_builtin): Remove.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: tidy-buitlins.diff
Type: text/x-patch
Size: 8045 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120606/fe5fa45c/attachment.bin>


More information about the Gcc-patches mailing list