From: Ken Raeburn Date: Tue, 12 Oct 1993 08:45:49 +0000 (+0000) Subject: more null/empty string fixups X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9902404797153b548894cf20588b30af65e05cca;p=binutils-gdb.git more null/empty string fixups --- diff --git a/gas/ChangeLog b/gas/ChangeLog index bdd48abd86f..f2fe3048b33 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,4 +1,16 @@ - Mon Oct 11 16:46:31 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) +Tue Oct 12 03:33:26 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) + + * config/tc-i960.c (md_begin): Use null pointer, not empty string, + as initial "return" value in case hashing isn't needed. + + * config/tc-a29k.c (md_atof): Return null, not empty string, on + success. + * config/tc-h8300.c (md_atof), config/tc-h8500.c (md_atof), + config/tc-hppa.c (md_atof), config/tc-i860.c (md_atof), + config/tc-i960.c (md_atof), config/tc-m88k.c (md_atof), + config/tc-ns32k.c (md_atof), config/tc-sh.c (md_atof): Ditto. + +Mon Oct 11 16:46:31 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) fix for pr 3571 * config/tc-h8300.c (get_specific): Special action if 8 bit diff --git a/gas/config/tc-a29k.c b/gas/config/tc-a29k.c index 72b61f78b82..288779b7e9c 100644 --- a/gas/config/tc-a29k.c +++ b/gas/config/tc-a29k.c @@ -766,7 +766,7 @@ md_atof (type, litP, sizeP) md_number_to_chars (litP, (valueT) (*wordP++), sizeof (LITTLENUM_TYPE)); litP += sizeof (LITTLENUM_TYPE); } - return ""; + return 0; } /* diff --git a/gas/config/tc-h8500.c b/gas/config/tc-h8500.c index 021043603f3..651b1733d7d 100644 --- a/gas/config/tc-h8500.c +++ b/gas/config/tc-h8500.c @@ -1230,7 +1230,7 @@ md_atof (type, litP, sizeP) md_number_to_chars (litP, (long) (*wordP++), sizeof (LITTLENUM_TYPE)); litP += sizeof (LITTLENUM_TYPE); } - return ""; /* Someone should teach Dean about null pointers */ + return 0; } int diff --git a/gas/config/tc-m88k.c b/gas/config/tc-m88k.c index 961c418ff42..84ba82372be 100644 --- a/gas/config/tc-m88k.c +++ b/gas/config/tc-m88k.c @@ -1117,7 +1117,7 @@ md_atof (type, litP, sizeP) md_number_to_chars (litP, (long) (*wordP++), sizeof (LITTLENUM_TYPE)); litP += sizeof (LITTLENUM_TYPE); } - return ""; /* Someone should teach Dean about null pointers */ + return 0; } int md_short_jump_size = 4;