aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/opt.ads
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@act-europe.fr>2003-10-21 15:42:24 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2003-10-21 15:42:24 +0200
commitfbf5a39b3e101719c6bf03cf2cd013b4a312e275 (patch)
treebdfc70477b60f1220cb05dd233a4570dd9c6bb5c /gcc/ada/opt.ads
parent75a5a481c2048242ed62c7355381160aa1369616 (diff)
downloadgcc-fbf5a39b3e101719c6bf03cf2cd013b4a312e275.zip
gcc-fbf5a39b3e101719c6bf03cf2cd013b4a312e275.tar.gz
gcc-fbf5a39b3e101719c6bf03cf2cd013b4a312e275.tar.bz2
3psoccon.ads, [...]: Files added.
2003-10-21 Arnaud Charlet <charlet@act-europe.fr> * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads, 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb, 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads, 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads, 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads, 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads, 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb, 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads, 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb, 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb, 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb, 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb, a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb, a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb, a-stwisu.ads, bld.adb, bld.ads, bld-io.adb, bld-io.ads, clean.adb, clean.ads, ctrl_c.c, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads, g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb, g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads, g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb, g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb, g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb, g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads, gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb, g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads, g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb, i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads, prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb, s-caun64.ads, scng.adb, scng.ads, s-exnint.adb, s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb, s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb, s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads, socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb, s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads, s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads, s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb, styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads, tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads, vms_conv.ads, vms_conv.adb, vms_data.ads, vxaddr2line.adb: Files added. Merge with ACT tree. * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads, 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads, 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c, g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb, s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads, s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads, s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads, s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads, s-expssi.ads, style.adb: Files removed. Merge with ACT tree. * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads, 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads, 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads, 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads, 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads, 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads, 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb, 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb, 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb, a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads, a-comlin.adb, adaint.c, adaint.h, ada-tree.def, a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb, a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads, ali.adb, ali.ads, ali-util.adb, ali-util.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb, a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb, a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb, a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb, a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb, a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb, a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb, a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads, atree.adb, atree.ads, a-witeio.adb, a-witeio.ads, a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb, a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb, bcheck.adb, binde.adb, bindgen.adb, bindusg.adb, checks.adb, checks.ads, cio.c, comperr.adb, comperr.ads, csets.adb, cstand.adb, cstreams.c, debug_a.adb, debug_a.ads, debug.adb, decl.c, einfo.adb, einfo.ads, errout.adb, errout.ads, eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb, expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c, exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb, fe.h, fmap.adb, fmap.ads, fname.adb, fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb, freeze.ads, frontend.adb, g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads, g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads, g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb, g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads, gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb, gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb, gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads, i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c, inline.adb, interfac.ads, i-pacdec.ads, itypes.adb, itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h, layout.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads, link.c, live.adb, make.adb, make.ads, Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb, mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb, misc.c, mkdir.c, mlib.adb, mlib.ads, mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.adb, namet.ads, namet.h, nlists.ads, nlists.h, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads, osint-b.adb, osint-c.adb, par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb, prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads, raise.c, raise.h, repinfo.adb, repinfo.h, restrict.adb, restrict.ads, rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads, s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb, scans.ads, scn.adb, scn.ads, s-crc32.adb, s-crc32.ads, s-direio.adb, sem.adb, sem.ads, sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb, sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb, s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads, s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads, s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb, s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads, s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb, sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb, sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads, sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads, s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads, s-memory.adb, s-memory.ads, snames.adb, snames.ads, snames.h, s-osprim.ads, s-parame.ads, s-parint.ads, s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb, s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads, s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads, s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads, s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads, stringt.h, style.ads, stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads, s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb, s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb, switch.ads, switch-b.adb, switch-c.adb, switch-m.adb, s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads, table.adb, table.ads, targparm.adb, targparm.ads, targtyps.c, tbuild.adb, tbuild.ads, tracebak.c, trans.c, tree_io.adb, treepr.adb, treeprs.adt, ttypes.ads, types.ads, types.h, uintp.adb, uintp.ads, uintp.h, uname.adb, urealp.adb, urealp.ads, urealp.h, usage.adb, utils2.c, utils.c, validsw.adb, validsw.ads, widechar.adb, xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb, einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb, gnatvsn.ads: Merge with ACT tree. * gnatvsn.adb: Rewritten in a simpler and more efficient way. From-SVN: r72751
Diffstat (limited to 'gcc/ada/opt.ads')
-rw-r--r--gcc/ada/opt.ads339
1 files changed, 287 insertions, 52 deletions
diff --git a/gcc/ada/opt.ads b/gcc/ada/opt.ads
index 83601c4..356ed02 100644
--- a/gcc/ada/opt.ads
+++ b/gcc/ada/opt.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- Copyright (C) 1992-2002, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2003, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -36,9 +36,12 @@
-- the binder, gnatmake or other GNAT tools. The comments indicate which
-- options are used by which programs (GNAT, GNATBIND, GNATMAKE, etc).
-with Hostparm; use Hostparm;
-with Types; use Types;
+with Gnatvsn; use Gnatvsn;
+with Hostparm; use Hostparm;
+with Types; use Types;
+
with System.WCh_Con; use System.WCh_Con;
+with GNAT.Strings; use GNAT.Strings;
package Opt is
@@ -115,10 +118,23 @@ package Opt is
-- GNAT
-- Enable assertions made using pragma Assert.
+ ASIS_Mode : Boolean := False;
+ -- GNAT
+ -- Enable semantic checks and tree transformations that are important
+ -- for ASIS but that are usually skipped if Operating_Mode is set to
+ -- Check_Semantics. This flag does not have the corresponding option to set
+ -- it ON. It is set ON when Tree_Output is set ON, it can also be set ON
+ -- from the code of GNSA-based tool (a client may need to set ON the
+ -- Back_Annotate_Rep_Info flag in this case. At the moment this does not
+ -- make very much sense, because GNSA can not do back annotation).
+
Back_Annotate_Rep_Info : Boolean := False;
-- GNAT
- -- If set True (by use of -gnatB), enables back annotation of
- -- representation information by gigi, even in -gnatc mode.
+ -- If set True, enables back annotation of representation information
+ -- by gigi, even in -gnatc mode. This is set True by the use of -gnatR
+ -- (list representation information) or -gnatt (generate tree). It is
+ -- also set true if certain Unchecked_Conversion instantiations require
+ -- checking based on annotated values.
Bind_Alternate_Main_Name : Boolean := False;
-- GNATBIND
@@ -139,6 +155,11 @@ package Opt is
-- Set to True to skip compile and link steps
-- (except when Compile_Only and/or Link_Only are True).
+ Blank_Deleted_Lines : Boolean := False;
+ -- GNAT, GNATPREP
+ -- Output empty lines for each line of preprocessed input that is deleted
+ -- in the output, including preprocessor lines starting with a '#'.
+
Brief_Output : Boolean := False;
-- GNAT, GNATBIND
-- Force brief error messages to standard error, even if verbose mode is
@@ -188,21 +209,32 @@ package Opt is
-- Set to True to enable checking for unused withs, and also the case
-- of withing a package and using none of the entities in the package.
- Compile_Only : Boolean := False;
- -- GNATMAKE
- -- Set to True to skip bind and link steps (except when Bind_Only is True)
+ Comment_Deleted_Lines : Boolean := False;
+ -- GNATPREP
+ -- True if source lines removed by the preprocessor should be commented
+ -- in the output file.
- Compress_Debug_Names : Boolean := False;
- -- GNAT
- -- Set to True if the option to compress debug information is set (-gnatC)
+ Compile_Only : Boolean := False;
+ -- GNATMAKE, GNATCLEAN
+ -- GNATMAKE: set to True to skip bind and link steps (except when
+ -- Bind_Only is True).
+ -- GNATCLEAN: set to True to only the files produced by the compiler are to
+ -- be deleted, but not the library files or executable files.
Config_File : Boolean := True;
-- GNAT
-- Set to False to inhibit reading and processing of gnat.adc file
- Config_File_Name : String_Ptr := null;
+ Config_File_Names : String_List_Access := null;
-- GNAT
- -- File name of configuration pragmas file (given by switch -gnatec)
+ -- Names of configuration pragmas files (given by switches -gnatec)
+
+ Configurable_Run_Time_Mode : Boolean := False;
+ -- GNAT, GNATBIND
+ -- Set True if the compiler is operating in configurable run-time mode.
+ -- This happens if the flag Targparm.Configurable_Run_TimeMode_On_Target
+ -- is set True, or if pragma No_Run_Time is used. See the spec of Rtsfind
+ -- for details on the handling of the latter pragma.
Constant_Condition_Warnings : Boolean := False;
-- GNAT
@@ -278,10 +310,40 @@ package Opt is
-- Set to True if -gnato (enable overflow checks) switch is set,
-- but not -gnatp.
- type Exception_Mechanism_Type is (Setjmp_Longjmp, Front_End_ZCX, GCC_ZCX);
+ Exception_Locations_Suppressed : Boolean := False;
+ -- GNAT
+ -- This flag is set True if a Suppress_Exception_Locations configuration
+ -- pragma is currently active.
+
+ type Exception_Mechanism_Type is
+ -- Determines the handling of exceptions. See Exp_Ch11 for details
+ --
+ (Front_End_Setjmp_Longjmp_Exceptions,
+ -- Exceptions use setjmp/longjmp generated explicitly by the
+ -- front end (this includes gigi or other equivalent parts of
+ -- the code generator). AT END handlers are converted into
+ -- exception handlers by the front end in this mode.
+
+ Front_End_ZCX_Exceptions,
+ -- Exceptions use the zero cost table mechanism with explicit
+ -- tables and exception regions generated by the front end.
+ -- AT END handlers are converted into exception handlers by
+ -- the front end in this mode.
+
+ Back_End_ZCX_Exceptions);
+ -- Exceptions are handled by the back end. The front end simply
+ -- generates the handlers as they appear in the source, and AT
+ -- END handlers are left untouched (they are not converted into
+ -- exception handlers when operating in this mode. Note that the
+ -- name includes ZCX, since the expectation is that the back end
+ -- mechanism will in fact be a ZCX approach, but nothing in the
+ -- compiler depends on this, so for example if GNAT is run with
+ -- a version of GCC configured for setjmp/longjmp exception handling,
+ -- then everything will work fine.
pragma Convention (C, Exception_Mechanism_Type);
- Exception_Mechanism : Exception_Mechanism_Type := Setjmp_Longjmp;
+ Exception_Mechanism : Exception_Mechanism_Type :=
+ Front_End_Setjmp_Longjmp_Exceptions;
-- GNAT
-- Set to the appropriate value depending on the default as given in
-- system.ads (ZCX_By_Default, GCC_ZCX_Support, Front_End_ZCX_Support)
@@ -343,6 +405,11 @@ package Opt is
-- Force generation of ALI file even if errors are encountered.
-- Also forces generation of tree file if -gnatt is also set.
+ Force_Checking_Of_Elaboration_Flags : Boolean := False;
+ -- GNATBIND
+ -- True if binding with forced checking of the elaboration flags
+ -- (-F switch set).
+
Force_Compilations : Boolean := False;
-- GNATMAKE
-- Set to force recompilations even when the objects are up-to-date.
@@ -354,12 +421,19 @@ package Opt is
-- some future release. It is no longer documented. The proper way
-- to get this effect is to use -gnatE and suppress elab checks.
+ Full_Path_Name_For_Brief_Errors : Boolean := False;
+ -- GNAT, GNATMAKE, GNATCLEAN
+ -- When True, in Brief_Output mode, each error message line
+ -- will start with the full path name of the source.
+ -- When False, only the file name without directory information
+ -- is used.
+
Full_List : Boolean := False;
-- GNAT
-- Set True to generate full source listing with embedded errors
Global_Discard_Names : Boolean := False;
- -- GNAT
+ -- GNAT, GNATBIND
-- Set true if a pragma Discard_Names applies to the current unit
GNAT_Mode : Boolean := False;
@@ -405,7 +479,7 @@ package Opt is
-- controlled by use of -gnatwp/-gnatwP.
Init_Or_Norm_Scalars : Boolean := False;
- -- GNAT
+ -- GNAT, GANTBIND
-- Set True if a pragma Initialize_Scalars applies to the current unit.
-- Also set True if a pragma Normalize_Scalars applies.
@@ -414,20 +488,23 @@ package Opt is
-- Set True if a pragma Initialize_Scalars applies to the current unit.
-- Note that Init_Or_Norm_Scalars is also set to True if this is True.
- Initialize_Scalars_Mode : Character := 'I';
- -- GNATBIND
- -- Set to 'I' for -Sin (default), 'L' for -Slo, 'H' for -Shi, 'X' for -Sxx
-
- Initialize_Scalars_Val : String (1 .. 2);
+ Initialize_Scalars_Mode1 : Character := 'I';
+ Initialize_Scalars_Mode2 : Character := 'N';
-- GNATBIND
- -- Valid only if Initialize_Scalars_Mode is set to 'X' (-Shh). Contains
- -- the two hex bytes from the -Shh switch.
+ -- Set to two characters from -S switch (IN/LO/HI/EV/xx). The default
+ -- is IN (invalid values), used if no -S switch is used.
Inline_Active : Boolean := False;
-- GNAT
-- Set True to activate pragma Inline processing across modules. Default
-- for now is not to inline across module boundaries.
+ Interface_Library_Unit : Boolean := False;
+ -- GNATBIND
+ -- Set to True to indicate that at least one ALI file is an interface ALI:
+ -- then elaboration flag checks are to be generated in the binder
+ -- generated file.
+
Front_End_Inlining : Boolean := False;
-- GNAT
-- Set True to activate inlining by front-end expansion.
@@ -486,6 +563,17 @@ package Opt is
-- file) instead of stdout. For example, if file x.adb is compiled
-- using -gnatR2s then representation info is written to x.adb.ref.
+ List_Representation_Info_Mechanisms : Boolean := False;
+ -- GNAT
+ -- Set true by -gnatRm switch. Causes information on mechanisms to
+ -- be included in the representation output information.
+
+ List_Preprocessing_Symbols : Boolean := False;
+ -- GNAT, GNATPREP
+ -- Set to True if symbols for preprocessing a source are to be listed
+ -- before preprocessing occurs. Set to True by switch -s of gnatprep
+ -- or -s in preprocessing data file for the compiler.
+
type Creat_Repinfo_File_Proc is access procedure (Src : File_Name_Type);
type Write_Repinfo_Line_Proc is access procedure (Info : String);
type Close_Repinfo_File_Proc is access procedure;
@@ -503,17 +591,28 @@ package Opt is
-- unwanted units in the ASIS build.
Locking_Policy : Character := ' ';
- -- GNAT
+ -- GNAT, GNATBIND
-- Set to ' ' for the default case (no locking policy specified).
-- Reset to first character (uppercase) of locking policy name if a
-- valid pragma Locking_Policy is encountered.
+ Locking_Policy_Sloc : Source_Ptr := No_Location;
+ -- GNAT, GNATBIND
+ -- Remember location of previous Locking_Policy pragma. This is used
+ -- for inconsistency error messages. A value of System_Location is
+ -- used if the policy is set in package System.
+
Look_In_Primary_Dir : Boolean := True;
- -- GNAT, GNATBIND, GNATMAKE
+ -- GNAT, GNATBIND, GNATMAKE, GNATCLEAN
-- Set to False if a -I- was present on the command line.
-- When True we are allowed to look in the primary directory to locate
-- other source or library files.
+ Make_Steps : Boolean := False;
+ -- GNATMAKE
+ -- Set to True when either Compile_Only, Bind_Only or Link_Only is
+ -- set to True.
+
Mapping_File_Name : String_Ptr := null;
-- GNAT
-- File name of mapping between unit names, file names and path names.
@@ -521,7 +620,8 @@ package Opt is
Maximum_Errors : Int := 9999;
-- GNAT, GNATBIND
- -- Maximum number of errors before compilation is terminated
+ -- Maximum default number of errors before compilation is terminated.
+ -- Can be overridden using -gnatm (GNAT) or -m (GNATBIND) switch.
Maximum_File_Name_Length : Int;
-- GNAT, GNATBIND
@@ -551,15 +651,19 @@ package Opt is
-- Set to True if compilation/binding of a program without main
-- subprogram requested.
+ No_Run_Time_Mode : Boolean := False;
+ -- GNAT, GNATBIND
+ -- This flag is set True if a No_Run_Time pragma is encountered. See
+ -- spec of Rtsfind for a full description of handling of this pragma.
+
Normalize_Scalars : Boolean := False;
- -- GNAT
+ -- GNAT, GNATBIND
-- Set True if a pragma Normalize_Scalars applies to the current unit.
-- Note that Init_Or_Norm_Scalars is also set to True if this is True.
- No_Run_Time : Boolean := False;
- -- GNAT
- -- Set True if a valid pragma No_Run_Time is processed or if the
- -- flag Targparm.High_Integrity_Mode_On_Target is set True.
+ Object_Directory_Present : Boolean := False;
+ -- GNATMAKE
+ -- Set to True when an object directory is specified with option -D
type Operating_Mode_Type is (Check_Syntax, Check_Semantics, Generate_Code);
Operating_Mode : Operating_Mode_Type := Generate_Code;
@@ -568,9 +672,19 @@ package Opt is
-- code, which runs the parser, semantics and backend. Switches can be
-- used to set syntax checking only mode, or syntax and semantics checking
-- only mode. Operating_Mode can also be modified as a result of detecting
- -- errors during the compilation process. In particular if any error is
- -- detected then this flag is reset from Generate_Code to Check_Semantics
- -- after generating an error message.
+ -- errors during the compilation process. In particular if any serious
+ -- error is detected then this flag is reset from Generate_Code to
+ -- Check_Semantics after generating an error message.
+
+ Original_Operating_Mode : Operating_Mode_Type := Generate_Code;
+ -- GNAT
+ -- Indicates the original operating mode of the compiler as set by
+ -- compiler options. This is identical to Operating_Mode except that
+ -- this is not affected by errors.
+
+ Optimization_Level : Int;
+ pragma Import (C, Optimization_Level, "optimize");
+ -- This constant reflects the optimization level (0,1,2 for -O0,-O1,-O2)
Output_File_Name_Present : Boolean := False;
-- GNATBIND, GNAT, GNATMAKE
@@ -596,6 +710,10 @@ package Opt is
-- Set to True if polling for asynchronous abort is enabled by using
-- the -gnatP option for GNAT.
+ Preprocessing_Data_File : String_Ptr := null;
+ -- GNAT
+ -- Set by switch -gnatep=. The file name of the prepocessing data file.
+
Print_Generated_Code : Boolean := False;
-- GNAT
-- Set to True to enable output of generated code in source form. This
@@ -607,20 +725,43 @@ package Opt is
-- built for imported subprograms. Set True if a Propagate_Exceptions
-- pragma applies to the extended main unit.
- Queuing_Policy : Character := ' ';
+ type Usage is (Unknown, Not_In_Use, In_Use);
+ Project_File_In_Use : Usage := Unknown;
-- GNAT
+ -- Indicates if a project file is used or not.
+ -- Set to In_Use by the first SFNP pragma.
+
+ Queuing_Policy : Character := ' ';
+ -- GNAT, GNATBIND
-- Set to ' ' for the default case (no queuing policy specified).
-- Reset to first character (uppercase) of locking policy name if a valid
-- Queuing_Policy pragma is encountered.
+ Queuing_Policy_Sloc : Source_Ptr := No_Location;
+ -- GNAT, GNATBIND
+ -- Remember location of previous Queuing_Policy pragma. This is used
+ -- for inconsistency error messages. A value of System_Location is
+ -- used if the policy is set in package System.
+
Quiet_Output : Boolean := False;
- -- GNATMAKE
- -- Set to True if the list of compilation commands should not be output.
+ -- GNATMAKE, GNATCLEAN, GPR2MAKE
+ -- Set to True if the tool should not have any output if there are no
+ -- errors or warnings.
+
+ RTS_Lib_Path_Name : String_Ptr := null;
+ RTS_Src_Path_Name : String_Ptr := null;
+ -- GNAT
+ -- Set to the "adalib" and "adainclude" directories of the run time
+ -- specified by --RTS=.
RTS_Switch : Boolean := False;
-- GNAT, GNATMAKE, GNATBIND, GNATLS, GNATFIND, GNATXREF
-- Set to True when the --RTS switch is set
+ Run_Path_Option : Boolean := True;
+ -- GNATMAKE, GNATLINK
+ -- Set to False when no run_path_option should be issued to the linker
+
Shared_Libgnat : Boolean;
-- GNATBIND
-- Set to True if a shared libgnat is requested by using the -shared
@@ -648,6 +789,14 @@ package Opt is
-- in which case it points to the argument of the pragma, and the name can
-- be located as Chars (Expression (System_Extend_Pragma_Arg)).
+ System_Extend_Unit : Node_Id := Empty;
+ -- GNAT
+ -- This is set to Empty if GNAT_Mode is set, since pragma Extend_System
+ -- is never appropriate in GNAT_Mode (and causes troubles, including
+ -- bogus circularities, if we try to compile the run-time library with
+ -- a System extension). If GNAT_Mode is not set, then System_Extend_Unit
+ -- is a copy of the value set in System_Extend_Pragma_Ary.
+
Subunits_Missing : Boolean := False;
-- GNAT
-- This flag is set true if missing subunits are detected with code
@@ -657,13 +806,19 @@ package Opt is
-- GNAT
-- Set to True if -gnatp (suppress all checks) switch present.
- Suppress_Options : Suppress_Record;
+ Suppress_Options : Suppress_Array;
-- GNAT
-- Flags set True to suppress corresponding check, i.e. add an implicit
-- pragma Suppress at the outer level of each unit compiled. Note that
-- these suppress actions can be overridden by the use of the Unsuppress
-- pragma. This variable is initialized by Osint.Initialize.
+ Suppress_Back_Annotation : Boolean := False;
+ -- GNAT
+ -- This flag is set True if back annotation of representation information
+ -- is to be suppressed. This is set if neither -gnatt or -gnatR0-3 is set.
+ -- This avoids unnecessary time being spent on back annotation.
+
Table_Factor : Int := 1;
-- GNAT
-- Factor by which all initial table sizes set in Alloc are multiplied.
@@ -673,11 +828,17 @@ package Opt is
-- used if no -gnatT switch appears.
Task_Dispatching_Policy : Character := ' ';
- -- GNAT
+ -- GNAT, GNATBIND
-- Set to ' ' for the default case (no task dispatching policy specified).
-- Reset to first character (uppercase) of task dispatching policy name
-- if a valid Task_Dispatching_Policy pragma is encountered.
+ Task_Dispatching_Policy_Sloc : Source_Ptr := No_Location;
+ -- GNAT, GNATBIND
+ -- Remember location of previous Task_Dispatching_Policy pragma. This is
+ -- used for inconsistency error messages. A value of System_Location is
+ -- used if the policy is set in package System.
+
Tasking_Used : Boolean := False;
-- Set True if any tasking construct is encountered. Used to activate the
-- output of the Q, L and T lines in ALI files.
@@ -713,11 +874,24 @@ package Opt is
-- the other hand, most such blowups will be caught cleanly and simply
-- say compilation abandoned. This flag is set to True by -gnatq or -gnatQ.
+ Undefined_Symbols_Are_False : Boolean := False;
+ -- GNAT, GNATPREP
+ -- Set to True by switch -u of gnatprep or -u in the preprocessing data
+ -- file for the compiler. Indicates that while preprocessing sources,
+ -- symbols that are not defined have the value FALSE.
+
Unique_Error_Tag : Boolean := Tag_Errors;
-- GNAT
-- Indicates if error messages are to be prefixed by the string error:
-- Initialized from Tag_Errors, can be forced on with the -gnatU switch.
+ Universal_Addressing_On_AAMP : Boolean := False;
+ -- GNAAMP
+ -- Indicates if library-level objects should be accessed and updated
+ -- using universal addressing instructions on the AAMP architecture.
+ -- This flag is set to True when pragma Universal_Data is given as
+ -- a configuration pragma.
+
Unreserve_All_Interrupts : Boolean := False;
-- GNAT, GNATBIND
-- Normally set False, set True if a valid Unreserve_All_Interrupts
@@ -753,31 +927,63 @@ package Opt is
-- This flag is set to False by the -gnatp switch.
Verbose_Mode : Boolean := False;
- -- GNAT, GNATBIND, GNATMAKE, GNATLINK, GNATLS, GNATCHOP, GNATNAME
+ -- GNAT, GNATBIND, GNATMAKE, GNATLINK, GNATLS, GNATCHOP, GNATNAME,
+ -- GNATCLEAN
-- Set to True to get verbose mode (full error message text and location
-- information sent to standard output, also header, copyright and summary)
- Warn_On_Biased_Rounding : Boolean := False;
+ Warn_On_Constant : Boolean := False;
-- GNAT
- -- Set to True to generate warnings for static constants that are rounded
- -- in a manner inconsistent with unbiased rounding (round to even). Can
- -- be modified by use of -gnatwb/B.
+ -- Set to True to generate warnings for variables that could be declared
+ -- as constants. Modified by use of -gnatwk/K.
Warn_On_Dereference : Boolean := False;
-- GNAT
-- Set to True to generate warnings for implicit dereferences for array
-- indexing and record component access. Modified by use of -gnatwd/D.
+ Warn_On_Export_Import : Boolean := True;
+ -- GNAT
+ -- Set to True to generate warnings for suspicious use of export or
+ -- import pragmas. Modified by use of -gnatwx/X.
+
Warn_On_Hiding : Boolean := False;
-- GNAT
-- Set to True to generate warnings if a declared entity hides another
-- entity. The default is that this warning is suppressed.
+ Warn_On_Modified_Unread : Boolean := False;
+ -- GNAT
+ -- Set to True to generate warnings if a variable is assigned but is
+ -- never read. The default is that this warning is suppressed.
+
+ Warn_On_No_Value_Assigned : Boolean := True;
+ -- GNAT
+ -- Set to True to generate warnings if no value is ever assigned to a
+ -- variable that is at least partially uninitialized. Set to false to
+ -- suppress such warnings. The default is that such warnings are enabled.
+
+ Warn_On_Obsolescent_Feature : Boolean := False;
+ -- GNAT
+ -- Set to True to generate warnings on use of any feature in Annex J
+ -- or if a subprogram is called for which a pragma Obsolescent applies.
+
Warn_On_Redundant_Constructs : Boolean := False;
-- GNAT
-- Set to True to generate warnings for redundant constructs (e.g. useless
-- assignments/conversions). The default is that this warning is disabled.
+ Warn_On_Unchecked_Conversion : Boolean := True;
+ -- GNAT
+ -- Set to True to generate warnings for unchecked conversions that may have
+ -- non-portable semantics (e.g. because sizes of types differ). The default
+ -- is that this warning is enabled.
+
+ Warn_On_Unrecognized_Pragma : Boolean := True;
+ -- GNAT
+ -- Set to True to generate warnings for unrecognized pragmas. The default
+ -- is that this warning is enabled.
+
type Warning_Mode_Type is (Suppress, Normal, Treat_As_Error);
Warning_Mode : Warning_Mode_Type := Normal;
-- GNAT, GNATBIND
@@ -833,6 +1039,10 @@ package Opt is
-- Set True for dynamic elaboration checking mode, as set by the -gnatE
-- switch or by the use of pragma Elaboration_Checking (Dynamic).
+ Exception_Locations_Suppressed_Config : Boolean := False;
+ -- GNAT
+ -- Set True by use of the configuration pragma Suppress_Exception_Messages
+
Extensions_Allowed_Config : Boolean;
-- GNAT
-- This is the flag that indicates whether extensions are allowed.
@@ -927,16 +1137,41 @@ package Opt is
procedure Tree_Write;
-- Writes out switch settings to current tree file using Tree_Write
+ --------------------------
+ -- ASIS Version Control --
+ --------------------------
+
+ -- These two variables (Tree_Version_String and Tree_ASIS_Version_Number)
+ -- are supposed to be used in the GNAT/ASIS version check performed in
+ -- the ASIS code (this package is also a part of the ASIS implementation).
+ -- They are set by Tree_Read procedure, so they represent the version
+ -- number (and the version string) of the compiler which has created the
+ -- tree, and they are supposed to be compared with the corresponding values
+ -- from the Gnatvsn package which is a part of ASIS implementation.
+
+ Tree_Version_String : String (Gnat_Version_String'Range);
+ -- Used to store the compiler version string read from a tree file to
+ -- check if it is the same as stored in the version string in Gnatvsn.
+ -- Therefore its length is taken directly from the version string in
+ -- Gnatvsn. If the length of the version string stored in the tree is
+ -- different, then versions are for sure different, and a string containing
+ -- '?' characters is assigned to this variable as a result of tree read.
+
+ Tree_ASIS_Version_Number : Int;
+ -- Used to store the ASIS version number read from a tree file to check if
+ -- it is the same as stored in the ASIS version number in Gnatvsn.
+
private
type Config_Switches_Type is record
- Ada_83 : Boolean;
- Dynamic_Elaboration_Checks : Boolean;
- Extensions_Allowed : Boolean;
- External_Name_Exp_Casing : External_Casing_Type;
- External_Name_Imp_Casing : External_Casing_Type;
- Polling_Required : Boolean;
- Use_VADS_Size : Boolean;
+ Ada_83 : Boolean;
+ Dynamic_Elaboration_Checks : Boolean;
+ Exception_Locations_Suppressed : Boolean;
+ Extensions_Allowed : Boolean;
+ External_Name_Exp_Casing : External_Casing_Type;
+ External_Name_Imp_Casing : External_Casing_Type;
+ Polling_Required : Boolean;
+ Use_VADS_Size : Boolean;
end record;
end Opt;