diff mbox

[ARM] attribute target (thumb,arm) [1/6] respin (4th)

Message ID 555072D3.8070207@st.com
State New
Headers show

Commit Message

Christian Bruel May 11, 2015, 9:13 a.m. UTC
>
>
> OK with those changes.
>
>
>
> Ramana
>

thanks, done

following up the thumb_code cleanup, here is a missing chunk for the 
vxworks config.

arm-vxworks build checked. ok for trunk ?

thanks,

Christian

Comments

Ramana Radhakrishnan May 11, 2015, 9:56 a.m. UTC | #1
On Mon, May 11, 2015 at 10:13 AM, Christian Bruel
<christian.bruel@st.com> wrote:
>>
>>
>> OK with those changes.
>>
>>
>>
>> Ramana
>>
>
> thanks, done
>
> following up the thumb_code cleanup, here is a missing chunk for the vxworks
> config.
>
> arm-vxworks build checked. ok for trunk ?
>
> thanks,
>
> Christian


OK thanks  - please post the version of p1 that you committed for
archival purposes.

Ramana
diff mbox

Patch

 2015-05-11  Christian Bruel  <christian.bruel@st.com>
 
	* config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
	* config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.

Index: gcc/config/arm/arm-protos.h
===================================================================
--- gcc/config/arm/arm-protos.h	(revision 222997)
+++ gcc/config/arm/arm-protos.h	(working copy)
@@ -462,12 +462,6 @@ 
 /* Nonzero if tuning for Cortex-A9.  */
 extern int arm_tune_cortex_a9;
 
-/* Nonzero if generating Thumb instructions.  */
-extern int thumb_code;
-
-/* Nonzero if generating Thumb-1 instructions.  */
-extern int thumb1_code;
-
 /* Nonzero if we should define __THUMB_INTERWORK__ in the
    preprocessor.
    XXX This is a bit of a hack, it's intended to help work around
Index: gcc/config/arm/vxworks.h
===================================================================
--- gcc/config/arm/vxworks.h	(revision 222997)
+++ gcc/config/arm/vxworks.h	(working copy)
@@ -40,7 +40,7 @@ 
       builtin_define ("CPU=ARMARCH5");		\
     else if (arm_arch4)				\
       {						\
-	if (thumb_code)				\
+	if (TARGET_THUMB)			\
 	  builtin_define ("CPU=ARMARCH4_T");	\
 	else					\
 	  builtin_define ("CPU=ARMARCH4");	\