* sparc-tdep.c (sparc_target_architecture_hook): Set target
authorMark Alexander <marka@cygnus>
Wed, 3 Jun 1998 02:08:06 +0000 (02:08 +0000)
committerMark Alexander <marka@cygnus>
Wed, 3 Jun 1998 02:08:06 +0000 (02:08 +0000)
byte order only when it's selectable.

gdb/ChangeLog
gdb/sparc-tdep.c

index f7732d463d8831e5a2198e668fff320d99bace75..b2e64b2eb7a01524b3f9424eff68dd3dfd5b3971 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jun  2 19:05:04 1998  Mark Alexander  <marka@cygnus.com>
+
+       * sparc-tdep.c (sparc_target_architecture_hook): Set target
+       byte order only when it's selectable.
+
 Tue Jun  2 02:01:56 1998  Mark Alexander  <marka@cygnus.com>
 
        * sparc-tdep.c (sparc_target_architecture_hook): New function to
index 25d92cf5d4d1c58d79388beb3b27c8046bf963e3..2ea0c1b3da540b00f775aea9b6b1682e1cf05f7c 100644 (file)
@@ -1872,8 +1872,10 @@ sparc_target_architecture_hook (ap)
 {
   int i, j;
 
+#ifdef TARGET_BYTE_ORDER_SELECTABLE
   if (ap->mach == bfd_mach_sparc_sparclite_le)
     target_byte_order = LITTLE_ENDIAN;
+#endif
   return 1;
 }