diff options
author | olegendo <olegendo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-06 10:40:53 +0000 |
---|---|---|
committer | olegendo <olegendo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-06 10:40:53 +0000 |
commit | 098f44bcc537e52bb5436cb6599346391f3d77b3 (patch) | |
tree | c0e9759f8814e01c08b304350c8e577840c81f77 /gcc/lto | |
parent | b23e5d4912c4253005b0585e0090eed66a923dc2 (diff) | |
download | gcc-098f44bcc537e52bb5436cb6599346391f3d77b3.tar.gz |
* asan.c: Remove struct tags when referring to class varpool_node.
* cgraph.h: Likewise.
* cgraphbuild.c: Likewise.
* cgraphunit.c: Likewise.
* dbxout.c: Likewise.
* dwarf2out.c: Likewise.
* gimple-fold.c: Likewise.
* ipa-devirt.c: Likewise.
* ipa-ref-inline.h: Likewise.
* ipa-ref.h: Likewise.
* ipa-reference.c: Likewise.
* ipa-utils.c: Likewise.
* ipa.c: Likewise.
* lto-cgraph.c: Likewise.
* lto-streamer-out.c: Likewise.
* lto-streamer.h: Likewise.
* passes.c: Likewise.
* toplev.c: Likewise.
* tree-eh.c: Likewise.
* tree-emutls.c: Likewise.
* tree-pass.h: Likewise.
* tree-ssa-structalias.c: Likewise.
* tree-vectorizer.c: Likewise.
* tree.c: Likewise.
* varasm.c: Likewise.
* varpool.c: Likewise.
* cp/decl2.c: Remove struct tags when referring to class varpool_node.
* lto/lto.c: Remove struct tags when referring to class varpool_node.
* lto/lto-partition.c: Likewise.
* lto/lto-symtab.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205733 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/lto/lto-partition.c | 12 | ||||
-rw-r--r-- | gcc/lto/lto-symtab.c | 4 | ||||
-rw-r--r-- | gcc/lto/lto.c | 2 |
4 files changed, 15 insertions, 9 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 6d6ebf6717d..a191fec01c2 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,9 @@ +2013-12-06 Oleg Endo <olegendo@gcc.gnu.org> + + * lto.c: Remove struct tags when referring to class varpool_node. + * lto-partition.c: Likewise. + * lto-symtab.c: Likewise. + 2013-11-29 Jakub Jelinek <jakub@redhat.com> Richard Biener <rguenther@suse.de> diff --git a/gcc/lto/lto-partition.c b/gcc/lto/lto-partition.c index 95ec7fabf86..5b46af9d907 100644 --- a/gcc/lto/lto-partition.c +++ b/gcc/lto/lto-partition.c @@ -408,8 +408,8 @@ node_cmp (const void *pa, const void *pb) static int varpool_node_cmp (const void *pa, const void *pb) { - const struct varpool_node *a = *(const struct varpool_node * const *) pa; - const struct varpool_node *b = *(const struct varpool_node * const *) pb; + const varpool_node *a = *(const varpool_node * const *) pa; + const varpool_node *b = *(const varpool_node * const *) pb; return b->order - a->order; } @@ -457,14 +457,14 @@ lto_balanced_map (void) int n_nodes = 0; int n_varpool_nodes = 0, varpool_pos = 0, best_varpool_pos = 0; struct cgraph_node **order = XNEWVEC (struct cgraph_node *, cgraph_max_uid); - struct varpool_node **varpool_order = NULL; + varpool_node **varpool_order = NULL; int i; struct cgraph_node *node; int total_size = 0, best_total_size = 0; int partition_size; ltrans_partition partition; int last_visited_node = 0; - struct varpool_node *vnode; + varpool_node *vnode; int cost = 0, internal = 0; int best_n_nodes = 0, best_i = 0, best_cost = INT_MAX, best_internal = 0; @@ -494,13 +494,13 @@ lto_balanced_map (void) FOR_EACH_VARIABLE (vnode) if (get_symbol_class (vnode) == SYMBOL_PARTITION) n_varpool_nodes++; - varpool_order = XNEWVEC (struct varpool_node *, n_varpool_nodes); + varpool_order = XNEWVEC (varpool_node *, n_varpool_nodes); n_varpool_nodes = 0; FOR_EACH_VARIABLE (vnode) if (get_symbol_class (vnode) == SYMBOL_PARTITION) varpool_order[n_varpool_nodes++] = vnode; - qsort (varpool_order, n_varpool_nodes, sizeof (struct varpool_node *), + qsort (varpool_order, n_varpool_nodes, sizeof (varpool_node *), varpool_node_cmp); } diff --git a/gcc/lto/lto-symtab.c b/gcc/lto/lto-symtab.c index 87d6332ab2b..ad0a37ca75c 100644 --- a/gcc/lto/lto-symtab.c +++ b/gcc/lto/lto-symtab.c @@ -103,8 +103,8 @@ lto_cgraph_replace_node (struct cgraph_node *node, all edges and removing the old node. */ static void -lto_varpool_replace_node (struct varpool_node *vnode, - struct varpool_node *prevailing_node) +lto_varpool_replace_node (varpool_node *vnode, + varpool_node *prevailing_node) { gcc_assert (!vnode->definition || prevailing_node->definition); gcc_assert (!vnode->analyzed || prevailing_node->analyzed); diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 1f46238d5bf..f322a0071d2 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -3314,7 +3314,7 @@ lto_main (void) do_whole_program_analysis (); else { - struct varpool_node *vnode; + varpool_node *vnode; timevar_start (TV_PHASE_OPT_GEN); |