This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi! gas/config/tc-vax.c contained md_chars_to_number() which is only used within this file, but needlessly defined globally. This patch makes it static and removes the declaration from gas/config/tc-vax.h . Tested and commited. MfG, JBG 2006-03-18 Jan-Benedict Glaw <jbglaw@lug-owl.de> * config/tc-vax.c (md_chars_to_number): Used only locally, so make it static. * config/tc-vax.h (md_chars_to_number): Remove obsolete declaration. Index: gas/config/tc-vax.c =================================================================== RCS file: /cvs/src/src/gas/config/tc-vax.c,v retrieving revision 1.30 diff -u -p -r1.30 tc-vax.c --- gas/config/tc-vax.c 22 Dec 2005 15:46:55 -0000 1.30 +++ gas/config/tc-vax.c 18 Mar 2006 11:05:06 -0000 @@ -295,7 +295,7 @@ md_apply_fix (fixS *fixP, valueT *valueP into host byte order. con is the buffer to convert, nbytes is the length of the given buffer. */ -long +static long md_chars_to_number (unsigned char con[], int nbytes) { long retval; Index: gas/config/tc-vax.h =================================================================== RCS file: /cvs/src/src/gas/config/tc-vax.h,v retrieving revision 1.8 diff -u -p -r1.8 tc-vax.h --- gas/config/tc-vax.h 11 Aug 2005 01:25:28 -0000 1.8 +++ gas/config/tc-vax.h 18 Mar 2006 11:05:06 -0000 @@ -47,8 +47,6 @@ #define md_operand(x) -long md_chars_to_number PARAMS ((unsigned char *, int)); - extern const struct relax_type md_relax_table[]; #define TC_GENERIC_RELAX_TABLE md_relax_table -- Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _ "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O fÃr einen Freien Staat voll Freier BÃrger" | im Internet! | im Irak! O O O ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
Attachment:
signature.asc
Description: Digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |