diff options
author | Alan Modra <amodra@gmail.com> | 2016-06-14 13:25:21 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-06-14 13:25:21 +0930 |
commit | 0aa7f5862e5619194b3956d5bd45b93970635bde (patch) | |
tree | ec56aa7d659a0aeae143cb5795453bf325f40bf2 /ld/ldcref.c | |
parent | 3860d2b4b72feeef4cf045c6c9907a0476f46f3d (diff) | |
download | gdb-0aa7f5862e5619194b3956d5bd45b93970635bde.zip gdb-0aa7f5862e5619194b3956d5bd45b93970635bde.tar.gz gdb-0aa7f5862e5619194b3956d5bd45b93970635bde.tar.bz2 |
Formatting fixes.
* ldbuildid.c: Formatting.
* ldcref.c: Formatting.
* ldctor.c: Formatting.
* ldemul.c: Formatting.
* ldexp.c: Formatting.
* ldfile.c: Formatting.
* ldlang.c: Formatting.
* ldmain.c: Formatting.
* ldwrite.c: Formatting.
Diffstat (limited to 'ld/ldcref.c')
-rw-r--r-- | ld/ldcref.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/ld/ldcref.c b/ld/ldcref.c index d96db20..a489058 100644 --- a/ld/ldcref.c +++ b/ld/ldcref.c @@ -112,8 +112,8 @@ static size_t cref_symcount; static struct bfd_hash_entry **old_table; static unsigned int old_size; static unsigned int old_count; -static void * old_tab; -static void * alloc_mark; +static void *old_tab; +static void *alloc_mark; static size_t tabsize, entsize, refsize; static size_t old_symcount; @@ -163,7 +163,7 @@ add_cref (const char *name, struct cref_hash_entry *h; struct cref_ref *r; - if (! cref_initialized) + if (!cref_initialized) { if (!bfd_hash_table_init (&cref_table.root, cref_hash_newfunc, sizeof (struct cref_hash_entry))) @@ -346,10 +346,10 @@ cref_fill_array (struct cref_hash_entry *h, void *data) static int cref_sort_array (const void *a1, const void *a2) { - const struct cref_hash_entry * const *p1 = - (const struct cref_hash_entry * const *) a1; - const struct cref_hash_entry * const *p2 = - (const struct cref_hash_entry * const *) a2; + const struct cref_hash_entry *const *p1 + = (const struct cref_hash_entry *const *) a1; + const struct cref_hash_entry *const *p2 + = (const struct cref_hash_entry *const *) a2; if (demangling) return strcmp ((*p1)->demangled, (*p2)->demangled); @@ -379,7 +379,7 @@ output_cref (FILE *fp) } fprintf (fp, _("File\n")); - if (! cref_initialized) + if (!cref_initialized) { fprintf (fp, _("No symbols\n")); return; @@ -473,7 +473,7 @@ output_one_cref (FILE *fp, struct cref_hash_entry *h) for (r = h->refs; r != NULL; r = r->next) { - if (! r->def && ! r->common) + if (!r->def && !r->common) { while (len < FILECOL) { @@ -493,7 +493,7 @@ output_one_cref (FILE *fp, struct cref_hash_entry *h) void check_nocrossrefs (void) { - if (! cref_initialized) + if (!cref_initialized) return; cref_hash_traverse (&cref_table, check_nocrossref, NULL); @@ -595,7 +595,8 @@ check_nocrossref (struct cref_hash_entry *h, void *ignore ATTRIBUTE_UNUSED) /* The struct is used to pass information from check_refs to check_reloc_refs through bfd_map_over_sections. */ -struct check_refs_info { +struct check_refs_info +{ const char *sym_name; asection *defsec; struct lang_nocrossrefs *ncrs; |