aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/utils.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2014-11-24 08:18:40 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2014-11-24 08:18:40 +0000
commit90b4c164f4c725bfd77c1a1c6ad574604b423401 (patch)
treed3dce21e6f62462c4a3162939a961e2744aecfb6 /gcc/ada/gcc-interface/utils.c
parent29e0597e2530cc21fe964e35c6cfbfadfb08a01e (diff)
downloadgcc-90b4c164f4c725bfd77c1a1c6ad574604b423401.zip
gcc-90b4c164f4c725bfd77c1a1c6ad574604b423401.tar.gz
gcc-90b4c164f4c725bfd77c1a1c6ad574604b423401.tar.bz2
trans.c (push_range_check_info): Replace early test with assertion.
* gcc-interface/trans.c (push_range_check_info): Replace early test with assertion. (Raise_Error_to_gnu): Do not call push_range_check_info if the loop stack is empty. * gcc-interface/utils.c (convert_to_fat_pointer): Fix formatting. * gcc-interface/utils2.c (gnat_invariant_expr): Deal with padded types and revert latest change. From-SVN: r217998
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
-rw-r--r--gcc/ada/gcc-interface/utils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c
index 32f0012..1b14737 100644
--- a/gcc/ada/gcc-interface/utils.c
+++ b/gcc/ada/gcc-interface/utils.c
@@ -3860,8 +3860,7 @@ convert_to_fat_pointer (tree type, tree expr)
{
/* The template type can still be dummy at this point so we build an
empty constructor. The middle-end will fill it in with zeros. */
- t = build_constructor (template_type,
- NULL);
+ t = build_constructor (template_type, NULL);
TREE_CONSTANT (t) = TREE_STATIC (t) = 1;
null_bounds = build_unary_op (ADDR_EXPR, NULL_TREE, t);
SET_TYPE_NULL_BOUNDS (ptr_template_type, null_bounds);