[Patch ARM Refactor Builtins 4/8] Refactor "VAR<n>" Macros

James Greenhalgh james.greenhalgh@arm.com
Wed Nov 12 17:11:00 GMT 2014


Hi,

These macros can always be defined as a base case of VAR1 and a "recursive"
case of VAR<n-1>. At the moment, the body of VAR1 is duplicated to each
macro.

This patch makes that change.

Regression tested on arm-none-linux-gnueabihf with no issues.

OK?

Thanks,
James

---
gcc/

2014-11-12  James Greenhalgh  <james.greenhalgh@arm.com>

	* config/arm/arm-builtins.c (VAR1): Add a comma.
	(VAR2): Rewrite in terms of VAR1.
	(VAR3-10): Likewise.
	(arm_builtins): Remove leading comma before ARM_BUILTIN_MAX.
	* config/arm/arm_neon_builtins.def: Remove trailing commas.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Patch-ARM-Refactor-Builtins-4-8-Refactor-VAR-n-Macro.patch
Type: text/x-patch
Size: 27782 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20141112/be2798ce/attachment.bin>


More information about the Gcc-patches mailing list