diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-08-10 04:44:59 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-08-10 04:44:59 +0000 |
commit | a920b69312e45b31e5b005985c617f539459bf24 (patch) | |
tree | a9661bff9dbc0c1dd08f6ee4148b86e9d267d4af /gas/read.c | |
parent | 6700d36e840fad4694c68b12915efdb8ac2ff3ec (diff) | |
download | gdb-a920b69312e45b31e5b005985c617f539459bf24.zip gdb-a920b69312e45b31e5b005985c617f539459bf24.tar.gz gdb-a920b69312e45b31e5b005985c617f539459bf24.tar.bz2 |
* read.c (s_set): Remove unused local ptr.
(hex_float): Check target_big_endian.
(equals): Remove unused local p.
* config/tc-a29k.h (TARGET_BYTES_BIG_ENDIAN): Define.
* config/tc-h8500.h (TARGET_BYTES_BIG_ENDIAN): Define.
* config/tc-hppa.h (TARGET_BYTES_BIG_ENDIAN): Define.
* config/tc-i860.h (TARGET_BYTES_BIG_ENDIAN): Define.
* config/tc-m68k.h (TARGET_BYTES_BIG_ENDIAN): Define.
* config/tc-m88k.h (TARGET_BYTES_BIG_ENDIAN): Define.
* config/tc-tahoe.h (TARGET_BYTES_BIG_ENDIAN): Define.
* config/tc-sh.c (little): Set target_big_endian.
(md_begin): Likewise.
(md_parse_option): Likewise.
(build_relax): Check target_big_endian rather than shl.
(build_Mytes, md_atof): Likewise.
(md_convert_frag, md_apply_fix): Likewise.
(md_number_to_chars): Likewise.
Diffstat (limited to 'gas/read.c')
-rw-r--r-- | gas/read.c | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -1680,7 +1680,6 @@ s_set (ignore) /* Turn '. = mumble' into a .org mumble */ register segT segment; expressionS exp; - register char *ptr; segment = get_known_segmented_expression (&exp); @@ -2662,11 +2661,20 @@ hex_float (float_type, bytes) d += hex_value (*input_line_pointer); ++input_line_pointer; } - bytes[i++] = d; + if (target_big_endian) + bytes[i] = d; + else + bytes[length - i - 1] = d; + ++i; } if (i < length) - memset (bytes + i, 0, length - i); + { + if (target_big_endian) + memset (bytes + i, 0, length - i); + else + memset (bytes, 0, length - i); + } return length; } @@ -3148,7 +3156,6 @@ equals (sym_name) /* Turn '. = mumble' into a .org mumble */ register segT segment; expressionS exp; - register char *p; segment = get_known_segmented_expression (&exp); if (!need_pass_2) |