Skip to content

Commit

Permalink
Fix gcc with EABI on big-endian ARM by setting the endian correctly.
Browse files Browse the repository at this point in the history
Without this gcc would generate byte loads for a little-endian core.

MFC after:	1 week
  • Loading branch information
zxombie committed Jan 12, 2014
1 parent d9c8f41 commit 5cac9c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/gcc/config/arm/freebsd.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
#undef TARGET_DEFAULT_FLOAT_ABI
#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_SOFT

#undef TARGET_DEFAULT
#define TARGET_DEFAULT (MASK_INTERWORK | TARGET_ENDIAN_DEFAULT)

#undef ARM_DEFAULT_ABI
#define ARM_DEFAULT_ABI ARM_ABI_AAPCS_LINUX

Expand Down

0 comments on commit 5cac9c6

Please sign in to comment.