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]

[csl-arm]: tidy up variable names


This patch is mainly a cleanup of some variable names in an attempt to 
make the code slightly more self-documenting.

It renames

	FL_FAST_MULT		-> 	FL_ARCH3M
	FL_ARCH6J		->	FL_ARCH6
	arm_fast_multiply	->	arm_arch3m
	arm_arch6j		->	arm_arch6
	
The arch6 changes are done because the extra instructions enabled by this 
flag are part of the base architecture v6 (not the v6J extension).

There's one technical fix:  The preprocessor define for __ARM_ARCH_6J__ 
was being triggered by a cpu name not an architecture name (missing 'v').  
I've also added an entry for __ARM_ARCH_6__.

Tested on an arm-elf cross.

R.

2004-01-08  Richard Earnshaw  <rearnsha@arm.com>

	* arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
	(FL_ARCH6): Renamed from FL_ARCH6J.
	(arm_arch3m): Renamed from arm_fast_multiply.
	(arm_arch6): Renamed from arm_arch6j.
	* arm.h: Update all uses of above.
	* arm-cores.def: Likewise.
	* arm.md: Likewise.

	* arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
	not arm6j.  Add entry for arch armv6.


Attachment: csl-arch.patch
Description: csl-arch.patch


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