Commit e378e7e9 by Richard Earnshaw

semi.h (CPP_SPEC): Define __ARMEB__...

	* arm/semi.h (CPP_SPEC):  Define __ARMEB__, __ARMEL__, and
	__ARMWEL__ depending on the endian flags passed to the compiler.
	(LINK_SPEC): Pass -EB to the linker if compiling for big-endian
	mode.

From-SVN: r11213
parent 3dafc5c3
...@@ -23,8 +23,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -23,8 +23,6 @@ Boston, MA 02111-1307, USA. */
#define LIB_SPEC "-lc" #define LIB_SPEC "-lc"
#define LINK_SPEC "-X"
#define CPP_PREDEFINES \ #define CPP_PREDEFINES \
"-Darm -Dsemi -Acpu(arm) -Amachine(arm)" "-Darm -Dsemi -Acpu(arm) -Amachine(arm)"
...@@ -37,8 +35,15 @@ Boston, MA 02111-1307, USA. */ ...@@ -37,8 +35,15 @@ Boston, MA 02111-1307, USA. */
%{msoft-float:-D__SOFTFP__} \ %{msoft-float:-D__SOFTFP__} \
%{mhard-float:-U__SOFTFP__} \ %{mhard-float:-U__SOFTFP__} \
%{!mhard-float: %{!msoft-float:-U__SOFTFP__}} \ %{!mhard-float: %{!msoft-float:-U__SOFTFP__}} \
%{mbig-endian:-D__ARMEB__ %{mwords-little-endian:-D__ARMWEL__}} \
%{mbe:-D__ARMEB__ %{mwords-little-endian:-D__ARMWEL__}} \
%{!mbe: %{!mbig-endian:-D__ARMEL__}} \
" "
#define ASM_SPEC "%{mbig-endian:-EB}"
#define LINK_SPEC "%{mbig-endian:-EB} -X"
#define TARGET_VERSION fputs (" (ARM/semi-hosted)", stderr); #define TARGET_VERSION fputs (" (ARM/semi-hosted)", stderr);
#define TARGET_DEFAULT ARM_FLAG_APCS_32 #define TARGET_DEFAULT ARM_FLAG_APCS_32
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment