From: kazu Date: Sat, 16 Nov 2002 18:33:29 +0000 (+0000) Subject: * tlink.c: Fix formatting. X-Git-Tag: upstream/4.9.2~83400 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=513b1ebee0ce082584dfe39e551ea6d877e2e7e9;p=platform%2Fupstream%2Flinaro-gcc.git * tlink.c: Fix formatting. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59176 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9131799..c0a444b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-11-16 Kazu Hirata + + * tlink.c: Fix formatting. + 2002-11-16 David Edelsohn PR 8362 diff --git a/gcc/tlink.c b/gcc/tlink.c index 4a56d48..b4a724e 100644 --- a/gcc/tlink.c +++ b/gcc/tlink.c @@ -73,8 +73,8 @@ hash_string_eq (s1_p, s2_p) const void *s1_p; const void *s2_p; { - const char *const *s1 = (const char *const *)s1_p; - const char *s2 = (const char *)s2_p; + const char *const *s1 = (const char *const *) s1_p; + const char *s2 = (const char *) s2_p; return strcmp (*s1, s2) == 0; } @@ -82,7 +82,7 @@ static hashval_t hash_string_hash (s_p) const void *s_p; { - const char *const *s = (const char *const *)s_p; + const char *const *s = (const char *const *) s_p; return (*htab_hash_string) (*s); } @@ -120,7 +120,7 @@ symbol_hash_lookup (string, create) { PTR *e; e = htab_find_slot_with_hash (symbol_table, string, - (*htab_hash_string)(string), + (*htab_hash_string) (string), create ? INSERT : NO_INSERT); if (e == NULL) return NULL; @@ -143,7 +143,7 @@ file_hash_lookup (string) { PTR *e; e = htab_find_slot_with_hash (file_table, string, - (*htab_hash_string)(string), + (*htab_hash_string) (string), INSERT); if (*e == NULL) { @@ -165,7 +165,7 @@ demangled_hash_lookup (string, create) { PTR *e; e = htab_find_slot_with_hash (demangled_table, string, - (*htab_hash_string)(string), + (*htab_hash_string) (string), create ? INSERT : NO_INSERT); if (e == NULL) return NULL; @@ -583,13 +583,13 @@ scan_linker_output (fname) symbol *sym; int end; - while (*p && ISSPACE ((unsigned char)*p)) + while (*p && ISSPACE ((unsigned char) *p)) ++p; if (! *p) continue; - for (q = p; *q && ! ISSPACE ((unsigned char)*q); ++q) + for (q = p; *q && ! ISSPACE ((unsigned char) *q); ++q) ; /* Try the first word on the line. */ @@ -605,9 +605,9 @@ scan_linker_output (fname) /* Some SVR4 linkers produce messages like ld: 0711-317 ERROR: Undefined symbol: .g__t3foo1Zi */ - if (! sym && ! end && strstr (q+1, "Undefined symbol: ")) + if (! sym && ! end && strstr (q + 1, "Undefined symbol: ")) { - char *p = strrchr (q+1, ' '); + char *p = strrchr (q + 1, ' '); p++; if (*p == '.') p++; @@ -619,7 +619,7 @@ scan_linker_output (fname) if (! sym && ! end) /* Try a mangled name in quotes. */ { - const char *oldq = q+1; + const char *oldq = q + 1; demangled *dem = 0; q = 0;