diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2008-07-31 22:04:03 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2008-07-31 22:04:03 +0000 |
commit | 4c5a06150c83d2afa3354c22c4f340774fcacdc8 (patch) | |
tree | 0a3c9f745a58ffbd76137af01e163baa34eefb99 /gcc/ada/gcc-interface/utils.c | |
parent | 90d245c5622d1f805f1936e03331d0b26b1cfd49 (diff) | |
download | gcc-4c5a06150c83d2afa3354c22c4f340774fcacdc8.zip gcc-4c5a06150c83d2afa3354c22c4f340774fcacdc8.tar.gz gcc-4c5a06150c83d2afa3354c22c4f340774fcacdc8.tar.bz2 |
decl.c (gnat_to_gnu_entity): Fix formatting.
* gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
* gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
From-SVN: r138440
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
-rw-r--r-- | gcc/ada/gcc-interface/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c index 61e36fe..2105abd 100644 --- a/gcc/ada/gcc-interface/utils.c +++ b/gcc/ada/gcc-interface/utils.c @@ -1755,7 +1755,7 @@ create_field_decl (tree field_name, tree field_type, tree record_type, of a copy. This is the case for true bitfields, but the DECL_BIT_FIELD value we have at this point is not accurate enough, so we don't account for this here and let finish_record_type decide. */ - if (!type_for_nonaliased_component_p (field_type)) + if (!addressable && !type_for_nonaliased_component_p (field_type)) addressable = 1; DECL_NONADDRESSABLE_P (field_decl) = !addressable; |