aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
-rw-r--r--gcc/ada/gcc-interface/utils.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c
index 7217eea..fa98a5a 100644
--- a/gcc/ada/gcc-interface/utils.c
+++ b/gcc/ada/gcc-interface/utils.c
@@ -2246,13 +2246,6 @@ rest_of_record_type_compilation (tree record_type)
pos = compute_related_constant (curpos, last_pos);
}
- /* If we can't compute a position, set it to zero.
-
- ??? We really should abort here, but it's too much work
- to get this correct for all cases. */
- if (!pos)
- pos = bitsize_zero_node;
-
/* See if this type is variable-sized and make a pointer type
and indicate the indirection if so. Beware that the debug
back-end may adjust the position computed above according
@@ -2273,6 +2266,13 @@ rest_of_record_type_compilation (tree record_type)
}
}
+ /* If we can't compute a position, set it to zero.
+
+ ??? We really should abort here, but it's too much work
+ to get this correct for all cases. */
+ if (!pos)
+ pos = bitsize_zero_node;
+
/* Make a new field name, if necessary. */
if (var || align != 0)
{