diff options
author | brooks <brooks@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-07 18:10:31 +0000 |
---|---|---|
committer | brooks <brooks@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-07 18:10:31 +0000 |
commit | f6d0e37ab55942a2a12a485bf0691f7d5eaaf1df (patch) | |
tree | a5d4d0d32adbc5ce952e0f81a156f8590ce3ee2f /gcc/fortran/trans-common.c | |
parent | 28bf151dc6d18f3116e011e77a5be7775c47ac7b (diff) | |
download | gcc-f6d0e37ab55942a2a12a485bf0691f7d5eaaf1df.tar.gz |
* decl.c: Miscellaneous whitespace fixes.
* expr.c: Likewise.
* gfortran.h: Likewise.
* interface.c : Likewise.
* io.c: Likewise.
* match.c: Likewise.
* match.h: Likewise.
* module.c: Likewise.
* parse.c: Likewise.
* resolve.c: Likewise.
* symbol.c: Likewise.
* trans-array.c: Likewise.
* trans-common.c: Likewise.
* trans-decl.c: Likewise.
* trans-intrinsic.c: Likewise.
* trans-io.c: Likewise.
* trans-stmt.c: Likewise.
* trans-types.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125533 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/trans-common.c')
-rw-r--r-- | gcc/fortran/trans-common.c | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/gcc/fortran/trans-common.c b/gcc/fortran/trans-common.c index a96c4746780..bde7ea577cd 100644 --- a/gcc/fortran/trans-common.c +++ b/gcc/fortran/trans-common.c @@ -417,7 +417,7 @@ build_common_decl (gfc_common_head *com, tree union_type, bool is_init) backend declarations for all of the elements. */ static void -create_common (gfc_common_head *com, segment_info * head, bool saw_equiv) +create_common (gfc_common_head *com, segment_info *head, bool saw_equiv) { segment_info *s, *next_s; tree union_type; @@ -483,8 +483,10 @@ create_common (gfc_common_head *com, segment_info * head, bool saw_equiv) } /* Add the initializer for this field. */ tmp = gfc_conv_initializer (s->sym->value, &s->sym->ts, - TREE_TYPE (s->field), s->sym->attr.dimension, - s->sym->attr.pointer || s->sym->attr.allocatable); + TREE_TYPE (s->field), + s->sym->attr.dimension, + s->sym->attr.pointer + || s->sym->attr.allocatable); CONSTRUCTOR_APPEND_ELT (v, s->field, tmp); offset = s->offset + s->length; @@ -785,7 +787,7 @@ find_equivalence (segment_info *n) } - /* Add all symbols equivalenced within a segment. We need to scan the +/* Add all symbols equivalenced within a segment. We need to scan the segment list multiple times to include indirect equivalences. Since a new segment_info can inserted at the beginning of the segment list, depending on its offset, we have to force a final pass through the @@ -827,7 +829,7 @@ add_equivalences (bool *saw_equiv) Sets *palign to the required alignment. */ static HOST_WIDE_INT -align_segment (unsigned HOST_WIDE_INT * palign) +align_segment (unsigned HOST_WIDE_INT *palign) { segment_info *s; unsigned HOST_WIDE_INT offset; @@ -864,7 +866,7 @@ align_segment (unsigned HOST_WIDE_INT * palign) /* Adjust segment offsets by the given amount. */ static void -apply_segment_offset (segment_info * s, HOST_WIDE_INT offset) +apply_segment_offset (segment_info *s, HOST_WIDE_INT offset) { for (; s; s = s->next) s->offset += offset; @@ -999,7 +1001,8 @@ finish_equivalences (gfc_namespace *ns) sym = z->expr->symtree->n.sym; current_segment = get_segment_info (sym, 0); - /* All objects directly or indirectly equivalenced with this symbol. */ + /* All objects directly or indirectly equivalenced with this + symbol. */ add_equivalences (&dummy); /* Align the block. */ @@ -1010,16 +1013,17 @@ finish_equivalences (gfc_namespace *ns) apply_segment_offset (current_segment, offset); - /* Create the decl. If this is a module equivalence, it has a unique - name, pointed to by z->module. This is written to a gfc_common_header - to push create_common into using build_common_decl, so that the - equivalence appears as an external symbol. Otherwise, a local - declaration is built using build_equiv_decl.*/ + /* Create the decl. If this is a module equivalence, it has a + unique name, pointed to by z->module. This is written to a + gfc_common_header to push create_common into using + build_common_decl, so that the equivalence appears as an + external symbol. Otherwise, a local declaration is built using + build_equiv_decl. */ if (z->module) { c = gfc_get_common_head (); /* We've lost the real location, so use the location of the - enclosing procedure. */ + enclosing procedure. */ c->where = ns->proc_name->declared_at; strcpy (c->name, z->module); } |