aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/layout.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2014-08-01 11:38:48 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2014-08-01 11:38:48 +0200
commit7a5b62b0c751de386bc4faf8648503b48d1d3c9b (patch)
treef82c18553ae17d64cbb6e00de68fc79cfbdbd657 /gcc/ada/layout.adb
parent935a9145c69ce92e228e32427d91044407118eea (diff)
downloadgcc-7a5b62b0c751de386bc4faf8648503b48d1d3c9b.zip
gcc-7a5b62b0c751de386bc4faf8648503b48d1d3c9b.tar.gz
gcc-7a5b62b0c751de386bc4faf8648503b48d1d3c9b.tar.bz2
[multiple changes]
2014-08-01 Vincent Celier <celier@adacore.com> * make.adb (Await_Compile): Remove loop that was only needed for VMS. 2014-08-01 Robert Dewar <dewar@adacore.com> * a-calcon.ads, a-direct.adb, a-dirval-mingw.adb, a-dirval.adb, a-dirval.ads, a-except-2005.adb, a-excpol-abort.adb, a-numaux-darwin.ads, a-numaux.ads, bindgen.adb, bindusg.adb, einfo.adb, einfo.ads, err_vars.ads, errout.ads, errutil.adb, exp_ch3.adb, exp_ch4.adb, exp_ch7.adb, exp_ch7.ads, fname-uf.adb, fname.adb, fname.ads, freeze.adb, g-debpoo.adb, g-dirope.ads, g-excact.ads, g-expect.ads, g-socket.adb, g-socket.ads, g-sothco.ads, g-traceb.ads, gnat_rm.texi, gnatlink.adb, gnatls.adb, i-cstrea.adb, krunch.adb, krunch.ads, layout.adb, lib-util.adb, make.adb, mlib.adb, osint-b.adb, osint-b.ads, osint-c.adb, osint.adb, osint.ads, output.ads, par.adb, prj-conf.adb, prj-env.adb, prj-makr.adb, prj-nmsc.adb, prj.adb, prj.ads, repinfo.adb, rtsfind.adb, rtsfind.ads, s-excmac-gcc.ads, s-fatgen.adb, s-mastop.ads, s-parame-ae653.ads, s-parame-hpux.ads, s-parame-vxworks.ads, s-parame.ads, s-soflin.ads, s-stoele.adb, s-tasini.adb, s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-mingw.ads, s-taspri-posix-noaltstack.ads, s-taspri-posix.ads, s-taspri-solaris.ads, s-taspri-vxworks.ads, s-trasym.ads, sem_ch12.adb, sem_ch4.adb, sem_eval.adb, sem_intr.adb, sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_res.adb, sem_util.adb, sem_util.ads, sinfo.adb, sinfo.ads, sinput-c.adb, symbols.ads, targparm.adb, treepr.adb, types.ads, xr_tabls.adb, xr_tabls.ads: Remove VMS specific code and comments. 2014-08-01 Ed Schonberg <schonberg@adacore.com> * sem_ch5.adb (Analyze_Iterator_Specification): New procedure Check_Reverse_Iteration, to verify the legality of the Reverse indicator on various container types, and to detect illegal reverse iterations on containers that only supoort forward iteration. From-SVN: r213431
Diffstat (limited to 'gcc/ada/layout.adb')
-rw-r--r--gcc/ada/layout.adb28
1 files changed, 1 insertions, 27 deletions
diff --git a/gcc/ada/layout.adb b/gcc/ada/layout.adb
index d9108c9..2692c8b 100644
--- a/gcc/ada/layout.adb
+++ b/gcc/ada/layout.adb
@@ -2526,31 +2526,6 @@ package body Layout is
Init_Size (E, System_Address_Size);
end if;
- -- On VMS, reset size to 32 for convention C access type if no
- -- explicit size clause is given and the default size is 64. Really
- -- we do not know the size, since depending on options for the VMS
- -- compiler, the size of a pointer type can be 32 or 64, but choosing
- -- 32 as the default improves compatibility with legacy VMS code.
-
- -- Note: we do not use Has_Size_Clause in the test below, because we
- -- want to catch the case of a derived type inheriting a size clause.
- -- We want to consider this to be an explicit size clause for this
- -- purpose, since it would be weird not to inherit the size in this
- -- case.
-
- -- We do NOT do this if we are in -gnatdm mode on a non-VMS target
- -- since in that case we want the normal pointer representation.
-
- if Opt.True_VMS_Target
- and then (Convention (E) = Convention_C
- or else
- Convention (E) = Convention_CPP)
- and then No (Get_Attribute_Definition_Clause (E, Attribute_Size))
- and then Esize (E) = 64
- then
- Init_Size (E, 32);
- end if;
-
Set_Elem_Alignment (E);
-- Scalar types: set size and alignment
@@ -3022,8 +2997,7 @@ package body Layout is
-- If Optimize_Alignment is set to Time, then we reset for odd
-- "in between sizes", for example a 17 bit record is given an
- -- alignment of 4. Note that this matches the old VMS behavior
- -- in versions of GNAT prior to 6.1.1.
+ -- alignment of 4.
elsif Optimize_Alignment_Time (E)
and then Siz > System_Storage_Unit