Patch: ARM thumb support

Anthony Green green@redhat.com
Sat Mar 16 13:01:00 GMT 2002


I wasn't building all of the xscale-elf mulitlibs before.  This patch
is needed in order to get -mthumb working.  Ok for branch and trunk?

Fri Mar 15 23:11:19 2002  Anthony Green  <green@redhat.com>

	* java/lang/ieeefp.h: Add ARM thumb support (copied from newlib).

Index: java/lang/ieeefp.h
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/ieeefp.h,v
retrieving revision 1.7
diff -u -p -c -r1.7 ieeefp.h
*** ieeefp.h	2002/01/02 15:58:39	1.7
--- ieeefp.h	2002/03/16 07:14:21
***************
*** 5,15 ****
  #define __IEEE_LITTLE_ENDIAN
  #endif
  
! #ifdef __arm__
  /* ARM always has big-endian words.  Within those words the byte ordering
!    appears to be big or little endian.  Newlib doesn't seem to care about
!    the byte ordering within words.  */
  #define __IEEE_BIG_ENDIAN
  #endif
  
  #ifdef __hppa__
--- 5,17 ----
  #define __IEEE_LITTLE_ENDIAN
  #endif
  
! #if defined(__arm__) || defined(__thumb__)
  /* ARM always has big-endian words.  Within those words the byte ordering
!    will be big or little endian depending upon the target.  */
  #define __IEEE_BIG_ENDIAN
+ #ifdef __ARMEL__
+ #define __IEEE_BYTES_LITTLE_ENDIAN
+ #endif
  #endif
  
  #ifdef __hppa__


AG



More information about the Java-patches mailing list