aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/decl.cc
diff options
context:
space:
mode:
authorMarc Poulhiès <poulhies@adacore.com>2024-02-29 10:51:40 +0100
committerMarc Poulhiès <poulhies@adacore.com>2024-06-14 09:34:50 +0200
commitcac993e84ea363dc593799ad1a6d0db5d0165f16 (patch)
tree2a2df236558ca9d66971372420f121421a85a3a8 /gcc/ada/gcc-interface/decl.cc
parent97810ccb01b21dd8c5ed4e84d5aa2bc6c0dd8a45 (diff)
downloadgcc-cac993e84ea363dc593799ad1a6d0db5d0165f16.zip
gcc-cac993e84ea363dc593799ad1a6d0db5d0165f16.tar.gz
gcc-cac993e84ea363dc593799ad1a6d0db5d0165f16.tar.bz2
ada: Typo and indentation fix
Fixes typo in comments and 2 instances of bad indentation. gcc/ada/ * gcc-interface/decl.cc (gnat_to_gnu_entity): Typo fix. (gnat_to_gnu_component_type): Indent fix. * gcc-interface/gigi.h (build_call_alloc_dealloc): Typo fix. * gcc-interface/utils.cc (make_dummy_type): Typo fix. * gcc-interface/utils2.cc (gnat_protect_expr): Indent fix.
Diffstat (limited to 'gcc/ada/gcc-interface/decl.cc')
-rw-r--r--gcc/ada/gcc-interface/decl.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/ada/gcc-interface/decl.cc b/gcc/ada/gcc-interface/decl.cc
index 8b72c96c..2398374 100644
--- a/gcc/ada/gcc-interface/decl.cc
+++ b/gcc/ada/gcc-interface/decl.cc
@@ -1384,7 +1384,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition)
volatile_flag = false;
gnu_size = NULL_TREE;
- /* In case this was a aliased object whose nominal subtype is
+ /* In case this was an aliased object whose nominal subtype is
unconstrained, the pointer above will be a thin pointer and
build_allocator will automatically make the template.
@@ -2103,7 +2103,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition)
1. the array type (suffix XUA) containing the actual data,
- 2. the template type (suffix XUB) containng the bounds,
+ 2. the template type (suffix XUB) containing the bounds,
3. the fat pointer type (suffix XUP) representing a pointer or a
reference to the unconstrained array type:
@@ -5445,8 +5445,8 @@ gnat_to_gnu_component_type (Entity_Id gnat_array, bool definition,
if (gnu_comp_align > TYPE_ALIGN (gnu_type))
gnu_comp_align = 0;
}
- else
- gnu_comp_align = 0;
+ else
+ gnu_comp_align = 0;
gnu_type = maybe_pad_type (gnu_type, gnu_comp_size, gnu_comp_align,
gnat_array, true, definition, true);