re PR ada/21327 (gnat_ugn.texi invalid @direntry)
[gcc.git] / gcc / ada / ChangeLog
index c6d8e1b87ca32c8df58fbb4881f153f792f22ff0..8513a58f3bfa56f5b49839c27e05c1fdaef8a91b 100644 (file)
+2008-09-17  Pascal Rigaux  <pixel@mandriva.com>
+
+       PR ada/21327
+       * gnat_ugn.texi: Use proper format in direntry.
+
+2008-09-15  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc-interface/trans.c (gigi): Declare the name of the compilation
+       unit as the first global name.
+
+2008-09-14  Jan Hubicka  <jh@suse.cz>
+
+       * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
+
+2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
+       bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
+       exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
+       exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
+       exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
+       g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
+       gcc-interface/gigi.h, gcc-interface/trans.c,
+       lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
+       opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
+       s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
+       s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
+       sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
+       sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
+       sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
+       sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
+       comments.
+       * gnathtml.pl: Fix typos.
+
+2008-09-10  Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
+       * s-osinte-rtems.ads: Add shared hardware interrupt adapter
+       layer. RTEMS binds to OS provided adapter routines so there are
+       no modifications to s-osinte-rtems.adb.
+
+2008-09-09  Arnaud Charlet  <charlet@adacore.com>
+           Joel Sherrill  <joel.sherrill@oarcorp.com>
+
+       * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
+
+       * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
+
+       * s-interr-hwint.adb: New file.
+
+       * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
+       needed by s-interr-hwint.adb.
+
+       * s-osinte-vxworks-kernel.adb: New file.
+
+2008-09-05  Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       * s-stchop-rtems.adb: Add file missed in early commit.  Already
+       referenced in gcc-interface/Makefile.in.
+
+2008-08-30  Thomas Quinot  <quinot@adacore.com>
+
+       * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
+       be built even without a separate libada directory.
+
+2008-08-22  Arnaud Charlet  <charlet@adacore.com>
+
+       * lib-xref.ads: Fix typo in subprogram reference definition.
+
+2008-08-22  Robert Dewar  <dewar@adacore.com>
+
+       * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
+       to avoid warning.
+
+       * g-trasym.adb: Ditto
+
+       * s-utf_32.adb (Get_Category): Fix obvious typo
+
+       * s-wwdcha.adb: Minor code reorganization
+       Remove dead code
+
+2008-08-22  Robert Dewar  <dewar@adacore.com>
+
+       * checks.adb (Determine_Range): Deal with values that might be invalid
+
+       * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
+       configuration switches.
+
+       * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
+
+       * sem_prag.adb: Implement pragma Assume_No_Default_Values
+
+       * snames.adb, snames.ads, snames.h:
+       Add entries for pragma Assume_No_Invalid_Values
+
+       * switch-c.adb: Add processing for -gnatB switch
+
+       * usage.adb: Add entry for flag -gnatB (no bad invalid values)
+
+2008-08-22  Javier Miranda  <miranda@adacore.com>
+
+       * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
+       init procedure all the expanded code associated with the spec of
+       task types and protected types.
+
+2008-08-22  Gary Dismukes  <dismukes@adacore.com>
+
+       * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
+       component expression copies rather than directly setting Etype and
+       Is_Static_Expression.
+
+2008-08-22  Gary Dismukes  <dismukes@adacore.com>
+
+       * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
+       private types to allow for types derived from a private type with
+       preelaborable initialization, but return False for a private extension
+       (unless it has the pragma).
+
+2008-08-22  Robert Dewar  <dewar@adacore.com>
+
+       * opt.ads: Minor code reorganization (put entries in alpha order)
+
+2008-08-22  Pascal Obry  <obry@adacore.com>
+
+       * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
+       spawn.
+
+2008-08-22  Geert Bosch  <bosch@adacore.com>
+
+       * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
+       (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
+
+2008-08-22  Doug Rupp  <rupp@adacore.com>
+
+       * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
+       __gnat_set_features.
+
+       * init.c
+       (__gnat_set_features): New function.
+       (__gnat_features_set): New tracking variable.
+       (__gl_no_malloc_64): New feature global variable
+
+2008-08-22  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
+       use_type_clause in an instance.
+
+2008-08-22  Bob Duff  <duff@adacore.com>
+
+       * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
+
+2008-08-22  Robert Dewar  <dewar@adacore.com>
+
+       * exp_ch6.adb: Minor reformatting
+
+       * exp_ch7.adb: Minor reformatting
+
+       * exp_ch7.ads: Put routines in proper alpha order
+
+       * exp_dist.adb: Minor reformatting
+
+2008-08-22  Vincent Celier  <celier@adacore.com>
+
+       * prj.ads: Minor comment update
+
+2008-08-22  Robert Dewar  <dewar@adacore.com>
+
+       * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
+
+2008-08-22  Ed Schonberg  <schonberg@adacore.com>
+
+       * exp_tss.adb:
+       (Base_Init_Proc): For a protected subtype, use the base type of the
+       corresponding record to locate the propoer initialization procedure.
+
+2008-08-22  Robert Dewar  <dewar@adacore.com>
+
+       * checks.adb:
+       (In_Subrange_Of): New calling sequence
+       (Determine_Range): Prepare for new processing using base type
+
+       * exp_ch4.adb:
+       (Compile_Time_Compare): Use new calling sequence
+
+       * exp_ch5.adb:
+       (Compile_Time_Compare): Use new calling sequence
+
+       * sem_eval.adb:
+       (Compile_Time_Compare): New calling sequence allows dealing with
+       invalid values.
+       (In_Subrange_Of): Ditto
+
+       * sem_eval.ads:
+       (Compile_Time_Compare): New calling sequence allows dealing with
+       invalid values.
+       (In_Subrange_Of): Ditto
+
+2008-08-22  Pascal Obry  <obry@adacore.com>
+
+       * adaint.c: Fix possible race condition on win32_wait().
+
+2008-08-22  Bob Duff  <duff@adacore.com>
+
+       * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
+       exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
+       exp_intr.adb, exp_ch3.adb: Rename:
+       Exp_Ch7.Controlled_Type => Needs_Finalization
+       Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
+       Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
+        Has_Controlled_Parts
+       (Has_Some_Controlled_Component): Fix bug in array case.
+
+2008-08-22  Robert Dewar  <dewar@adacore.com>
+
+       * sem_ch8.adb: Minor reformatting
+
+2008-08-22  Kevin Pouget  <pouget@adacore.com>
+
+       * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
+       Shared_Var_Close procedure specifications from package spec to package body.
+
+       * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
+       RE_Shared_Var_WOpen entries.
+
+       * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
+       Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
+
+2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * init.c: adjust EH support code on Alpha/Tru64 as well.
+
+       * raise-gcc.c: Add back a couple of comments.
+
+2008-08-22  Ed Schonberg  <schonberg@adacore.com>
+
+       * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
+       involved and the return type is class-wide, use the type of the expression
+       for the generated access type. Suppress useless discriminant checks on the
+       allocator.
+
+2008-08-22  Bob Duff  <duff@adacore.com>
+
+       * exp_ch7.adb: Minor comment fix
+
+       * exp_ch6.ads: Minor comment fix
+
+2008-08-22  Thomas Quinot  <quinot@adacore.com>
+
+       * sem_ch8.adb: Minor reformatting
+       Minor code reorganization (introduce subprogram to factor duplicated
+       code).
+
+2008-08-22  Sergey Rybin  <rybin@adacore.com>
+
+       * gnat_ugn.texi: Change the description of gnatcheck default rule
+       settings.
+
+2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
+       Solaris, FreeBSD, VxWorks and PowerPC/Linux.  For x86{-64}/Linux,
+       do not adjust the PC anymore.
+       (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
+       on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
+
+       * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
+       instead of _Unwind_GetIP.
+
+2008-08-22  Gary Dismukes  <dismukes@adacore.com>
+
+       * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
+       with a range is transformed into a positional aggregate, any copied
+       component literals should be marked Is_Static_Expression.
+
+       * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
+       not being known at at compile time when Configurable_Run_Time_Mode is
+       true.
+
+2008-08-22  Robert Dewar  <dewar@adacore.com>
+
+       * exp_attr.adb:
+       (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
+       Read or Input attribute.
+
+2008-08-22  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_ch8.adb (Use_One_Type): when checking which of two use_type
+       clauses in related units is redundant, if one of the units is a package
+       instantiation, use its instance_spec to determine which unit is the
+       ancestor of the other.
+
+2008-08-22  Javier Miranda  <miranda@adacore.com>
+
+       * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
+       attributes add missing support to handle designated types that come
+       from the limited view.
+
+       * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
+
+2008-08-22  Sergey Rybin  <rybin@adacore.com>
+
+       * vms_data.ads: Add entry for new gnatcheck -mNNN option
+
+       * gnat_ugn.texi: Add description for gnatcheck option '-m'
+
+2008-08-22  Sergey Rybin  <rybin@adacore.com>
+
+       * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
+       acoording to the latest changes in the metric rule interface
+
+2008-08-22  Vincent Celier  <celier@adacore.com>
+
+       * make.adb (Check.File_Not_A_Source_Of): New Boolean function
+       (Check): Check if the file names registered in the ALI file for the
+       spec, the body and each of the subunits are the ones expected.
+
+2008-08-22  Robert Dewar  <dewar@adacore.com>
+
+       * g-catiio.adb: Code cleanup.
+
+2008-08-20  Vincent Celier  <celier@adacore.com>
+
+       * make.adb (Gnatmake): Remove extra space in version line
+
+       * ali.adb:
+       (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
+       as the name may already have been entered in the table by the Project
+       Manager.
+
+2008-08-20  Jose Ruiz  <ruiz@adacore.com>
+
+       * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
+       weak symbols so we use the version provided by MaRTE when available.
+
+2008-08-20  Emmanuel Briot  <briot@adacore.com>
+
+       * g-catiio.ads, g-catiio.adb:
+       (Value): Avoid an unnecessary system call to Clock in most cases.
+       This call is only needed when only the time is provided in the string,
+       and ignored in all other cases. This is more efficient.
+
+2008-08-20  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * raise-gcc.c: Fix formatting nits.
+
+2008-08-20  Robert Dewar  <dewar@adacore.com>
+
+       * sem_ch13.adb:
+       (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
+       non-existing component clause.
+
+       * exp_ch5.adb: Minor reformatting
+
+       * g-comlin.adb: Minor reformatting
+
+       * make.adb: Minor reformatting
+
+       * prj-proc.adb: Minor reformatting
+
+       * stylesw.ads: Minor reformatting
+
+2008-08-20  Vincent Celier  <celier@adacore.com>
+
+       * make.adb (Gnatmake_Switch_Found): New Boolean global variable
+       (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
+       (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
+        defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
+       and a switch is not recognized by gnatmake.
+       (Gnatmake): Implement new scheme for gnatmake switches and global
+       compilation switches.
+       (Switches_Of): Try successively Switches (<file name>),
+       Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
+
+2008-08-20  Ed Schonberg  <schonberg@adacore.com>
+
+       * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
+       implement style check that overriding operations are explicitly marked
+       at such.
+
+       * style.ads (Missing_Overriding): new procedure that provides interface
+       to previous one.
+
+       * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
+       that the declaration or body of overriding operations carries an
+       explicit overriding indicator.
+
+       * sem_ch8.adb
+       (Analyze_Subprogram_Renaming): if operation is overriding, check whether
+       explicit indicator should be present.
+
+       * sem_ch6.adb (Verify_Overriding_Indicator,
+       Check_Overriding_Indicator): If operation is overriding, check whether
+       declaration and/or body of subprogram should be present
+
+2008-08-20  Vincent Celier  <celier@adacore.com>
+
+       * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
+       gprbuild when casing is MixedCase, whatever the casing of the letters
+       in the file name.
+
+2008-08-20  Gary Dismukes  <dismukes@adacore.com>
+
+       * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
+       creating dummy init proc.
+       (Requires_Init_Proc): Return False in the case No_Default_Initialization
+       is in force and the type does not have associated default
+       initialization. Move test of Is_Public (with tests of restrictions
+       No_Initialize_Scalars and No_Default_Initialization) to end, past tests
+       for default initialization.
+
+2008-08-20  Jerome Lambourg  <lambourg@adacore.com>
+
+       * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
+       of any alias or prefix but having attached parameters (as \"-O2\").
+
+2008-08-20  Robert Dewar  <dewar@adacore.com>
+
+       * s-fileio.adb: Minor reformatting
+
+2008-08-20  Thomas Quinot  <quinot@adacore.com>
+
+       * exp_strm.adb (Build_Elementary_Input_Call,
+       Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
+       selects the stream attribute routines for long float types.
+
+2008-08-20  Vincent Celier  <celier@adacore.com>
+
+       * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
+
+       * prj.ads (Array_Data): Add a component Location
+
+2008-08-20  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_prag.adb:
+       (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
+       argument for ASIS and navigation use.
+
+2008-08-20  Ed Schonberg  <schonberg@adacore.com>
+
+       * einfo.ads: Add comment.
+
+2008-08-20  Bob Duff  <duff@adacore.com>
+
+       * sem_eval.ads: Minor comment fix.
+
+2008-08-20  Bob Duff  <duff@adacore.com>
+
+       * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
+       folding. We were folding things like "False and then ...", but not
+       "X and then ..." where X is a constant whose value is known at compile
+       time.
+
+2008-08-20  Hristian Kirtchev  <kirtchev@adacore.com>
+
+       * exp_ch5.adb (Controlled_Type): New routine.
+       (Expand_N_Extended_Return_Statement): When generating a move of the
+       final list in extended return statements, check the type of the
+       function and in the case of double expanded return statements, the type
+       of the returned object.
+       (Expand_Simple_Function_Return): Perform an interface conversion when
+       the type of the returned object is an interface and the context is an
+       extended return statement.
+
+2008-08-20  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
+       and the full view is visible, set flag on full view as well.
+
+2008-08-20  Thomas Quinot  <quinot@adacore.com>
+
+       * g-comlin.adb: Minor reformatting
+       Minor code reorganization.
+
+       * freeze.adb: Minor reformatting
+
+2008-08-20  Vincent Celier  <celier@adacore.com>
+
+       * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
+       source of another project.
+
+2008-08-20  Pascal Obry  <obry@adacore.com>
+
+       * s-os_lib.ads: Minor reformatting.
+
+2008-08-20  Arnaud Charlet  <charlet@adacore.com>
+
+       * gnatvsn.ads: Minor reformatting.
+
+2008-08-20  Arnaud Charlet  <charlet@adacore.com>
+
+       * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
+       system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
+       g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
+       mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
+       exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
+       g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
+       s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
+       sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
+       s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
+       g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
+       g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
+       g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
+       live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
+       g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
+       s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
+       g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
+       s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
+       g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
+       osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
+       system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
+       i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
+       s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
+       a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
+       s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
+       a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
+       g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
+       a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
+       a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
+       lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
+       s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
+       par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
+       a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
+       system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
+       s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
+       a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
+       mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
+       s-poosiz.adb, link.c: Fix copyright notice.
+
+2008-08-20  Arnaud Charlet  <charlet@adacore.com>
+
+       * g-comlin.ads: Update comments.
+
+2008-08-20  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
+
+2008-08-20  Gary Dismukes  <dismukes@adacore.com>
+
+       * exp_ch11.adb:
+       (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
+       Make_Implicit_Exception_Handler when rewriting an exception handler with
+       a choice parameter, and pass the handler's Sloc instead of that of the
+       handled sequence of statements. Make_Implicit_Exception_Handler sets the
+       Sloc to No_Location (unless debugging generated code), which we don't
+       want for the case of a user handler.
+
+2008-08-20  Robert Dewar  <dewar@adacore.com>
+
+       * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
+       
+       * sem_ch13.adb:
+       (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
+       now labeled as info msgs, not warnings.
+
+       * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
+
+       * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
+
+       * a-textio.adb: Remove redundant test.
+
+       * a-witeio.adb: Minor code reorganization
+       Remove redundant test found working on another issue
+
+       * a-ztexio.adb: Minor code reorganization
+       Remove redundant test found working on another issue
+
+2008-08-20  Thomas Quinot  <quinot@adacore.com>
+
+       * s-fileio.adb (Open) Use C helper function to determine whether a
+       given errno value corresponds to a "file not found" error.
+
+       * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
+
+2008-08-20  Jose Ruiz  <ruiz@adacore.com>
+
+       * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
+       to get access to the per-task errno variable.
+       (__set_errno for MaRTE): Do not redefine this function here since it is
+       already defined in MaRTE.
+
+2008-08-20  Tristan Gingold  <gingold@adacore.com>
+
+       * gnat_ugn.texi: Gcov is not supported on static library on AIX.
+
+2008-08-20  Robert Dewar  <dewar@adacore.com>
+
+       * freeze.adb: Minor reformatting
+
+       * g-comlin.adb: Minor reformatting
+
+       * g-socket.adb: Minor reformatting
+
+       * g-socthi-mingw.adb: Minor reformatting
+
+       * g-stheme.adb: Minor reformatting
+
+2008-08-20  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
+       exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
+       confusion between partial and full views of an ancestor of the context
+       type when the parent is a private extension declared in a parent unit,
+       and full views are available for the context type.
+
+2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
+            Robert Dewar  <dewar@adacore.com>
+
+       PR ada/30827
+       * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
+       version string.
+       Move comment in the right place.
+       * g-comver.adb (Version): Look for a zero-termination in
+       addition to a closing parenthesis.
+
+2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
+
+       * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
+       * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
+       * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
+       Is_Package_Or_Generic_Package instead of hand-crafted tests.
+
+2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
+
+       PR ada/15808
+       * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
+       as well.
+
+2008-08-17  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
+
+       * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
+
+2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
+       for back-copy statements in lieu of that of the actual.
+
+2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR ada/20548
+       * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
+       setjmp test consistently.  Adjust for new behavior of flag_stack_check.
+       * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
+       test of flag_stack_check.  Adjust for new behavior of flag_stack_check.
+
+2008-08-13  Samuel Tardieu  <sam@rfc1149.net>
+
+       PR ada/36777
+       * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
+       * sem_attr.adb (Check_Type): The current instance of a protected
+       object is not a type name.
+       (Analyze_Access_Attribute): Accept instances of protected objects.
+       (Analyze_Attribute, Attribute_Address clause): Ditto.
+       * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
+       the prefix as being the current instance if needed.
+
+2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
+
+       * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
+       Remove duplicate s-win32.o. Add s-winext.o.
+
+2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
+
+       * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
+       with SOSC.SOCK__STREAM.
+       * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
+       SOSC.MSG_OOB.
+
+2008-08-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
+
+       * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
+       * gsocket.h, socket.c: Update to support RTEMS.
+       * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
+
+2008-08-10  Samuel Tardieu  <sam@rfc1149.net>
+            Robert Dewar <dewar@adacore.com>
+
+       * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
+       left argument even when right argument is 0.
+       (Expand_N_Op_Mod): Ditto when right argument is 1.
+       (Expand_N_Op_Multiply): Ditto when any argument is 0.
+       (Expand_N_Op_Rem): Ditto when right argument is 1.
+
+2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
+
+       * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
+       by warn_unused.
+       
+2008-08-08  Ed Schonberg  <schonberg@adacore.com>
+
+       * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
+       from Freeze_Entity. Used to generate cross-reference information for
+       types declared in generic packages.
+
+2008-08-08  Thomas Quinot  <quinot@adacore.com>
+
+       * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
+       compatibility shim.
+
+2008-08-08  Thomas Quinot  <quinot@adacore.com>
+
+       * gsocket.h:
+       On Windows, include <errno.h> and redefine only selected errno values
+       from their <winsock2.h> definitions.
+
+       * s-osinte-freebsd.ads: Minor reformatting
+
+       * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
+
+       * g-soccon.ads: New file.
+
+       * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
+       g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
+       g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
+       g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
+       unit, to allow building software that depends on this internal unit
+       with both older and newer compilers.
+
+2008-08-08  Robert Dewar  <dewar@adacore.com>
+
+       * s-strxdr.adb: Minor reformatting
+
+2008-08-08  Bob Duff  <duff@adacore.com>
+
+       * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
+       checking for integer operations (including division by zero)", which
+       is wrong -- divide by zero is not part of overflow checking.
+       Also added misc clarification about what check-suppression means.
+
+       * gnat_rm.texi: Clarify the meaning of pragma Suppress.
+
+2008-08-08  Jerome Lambourg  <lambourg@adacore.com>
+
+       * g-comlin.adb (Add_Switch): Handle addition of switches at the
+       begining of the command line.
+       (Append, Add): Renaming of Append to Add as this now allows addition
+       at the begining of the list.
+       
+       * g-comlin.ads (Add_Switch): Handle addition of switches at the
+       begining of the command line.
+
+2008-08-08  Thomas Quinot  <quinot@adacore.com>
+
+       * g-sercom.ads:
+       (Name): Document application scope (only legacy PC serial ports on
+       Linux and Windows).
+
+2008-08-08  Thomas Quinot  <quinot@adacore.com>
+
+       * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
+       previous change, not needed after all.
+
+2008-08-08  Ed Schonberg  <schonberg@adacore.com>
+
+       * exp_ch4.adb (Expand_Allocator_Expression): add check if null
+       exclusion indicator is present
+
+2008-08-08  Robert Dewar  <dewar@adacore.com>
+
+       * g-comlin.adb: Minor code reorganization
+       Minor reformatting
+
+       * g-comlin.ads: Minor reformatting
+
+       * s-fileio.adb: Minor reformatting
+
+       * sem_attr.adb: Minor code reorganization (use Nkind_In)
+       Minor reformatting
+
+2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
+
+       * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
+       with s-oscons-tmplt.i.
+
+2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
+
+       * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
+
+2008-08-06  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
+       of incomplete type.
+
+       * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
+       of a formal parameter of an incomplete type. Improve error message for
+       other improper uses of incomplete types.
+
+2008-08-06  Robert Dewar  <dewar@adacore.com>
+
+       * gnat_ugn.texi: Clarify -gnato documentation
+
+2008-08-06  Thomas Quinot  <quinot@adacore.com>
+
+       * gcc-interface/Makefile.in,
+       g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
+       g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
+       g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
+       g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
+       g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
+       g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
+       g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
+       g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
+       g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
+       Remove GNAT.Sockets.Constants. This internal package is replaced by
+       System.OS_Constants.
+
+2008-08-06  Thomas Quinot  <quinot@adacore.com>
+
+       * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
+       Remove obsolete targets referencing gen-soccon
+       When generating s-oscons.ads, use a file name that includes the
+       THREAD_KIND, to ensure that the (potentially different) version from a
+       previous build with a different threads flavour does not get reused.
+
+2008-08-06  Thomas Quinot  <quinot@adacore.com>
+
+       * sem_res.adb: Minor reformatting
+
+       * s-fileio.adb (Open): When file open operation fails, raise Name_Error
+       only when the operating system reports a non-existing file or directory
+       (ENOENT), otherwise raise Name_Error.
+
+       * exp_ch11.adb: Minor reformatting
+
+2008-08-06  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
+       incomplete, add the access_to_subprogram type to the list of private
+       dependents only if the incomplete type will be completed in the current
+       scope.
+       (Build_Discriminant_Constraints): If the type of the discriminant is
+       access_to_variable, reject a constraint that is access_to_constant.
+
+2008-08-06  Thomas Quinot  <quinot@adacore.com>
+
+       * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
+       g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
+       g-sttsne-dummy.ads: New files.
+
+       * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
+       with pragma Unimplemented_Unit for sockets packages on Nucleus.
+
+2008-08-06  Pascal Obry  <obry@adacore.com>
+
+       * adaint.c: Another fix for ACL support on Windows.
+
+2008-08-06  Javier Miranda  <miranda@adacore.com>
+
+       * exp_disp (Expand_Interface_Actuals): Adds missing support for
+       expansion of calls to subprograms using selected components.
+
+2008-08-06  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_res.adb (Resolve_Call): Use base type to determine whether a
+       dereference is needed because a subtype of an access_to_subprogram is
+       simply an access-subtype
+
+2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
+
+       * g-comlin.adb (Set_Command_Line): Now that aliases can contain
+       parameters, always specify the expected separator.
+
+2008-08-06  Thomas Quinot  <quinot@adacore.com>
+
+       * xnmake.adb: Use new XUtil package for platform independent text
+       output.
+
+2008-08-06  Vincent Celier  <celier@adacore.com>
+
+       * gnat_ugn.texi: Document compiler switch -gnateG
+
+2008-08-06  Quentin Ochem  <ochem@adacore.com>
+
+       * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
+       in the case of an empty pattern size.
+       (Compute_Result): Do not do any computation in the case of an empty
+       pattern size.
+       (Report_Result): Fixed computation of the overflow guard.
+
+2008-08-06  Ed Schonberg  <schonberg@adacore.com>
+
+       * g-awk.adb (Finalize): Do not use directly objects of the type in the
+       finalization routine to prevent elaboration order anomalies in new
+       finalization scheme.
+
+2008-08-06  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
+       declaration for the same type.
+
+2008-08-06  Thomas Quinot  <quinot@adacore.com>
+
+       * sem.adb: Minor rewording (comment)
+
+2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
+
+       * g-comlin.adb (Define_Switch, Get_Switches): New.
+       (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
+       ungrouping switches.
+       (For_Each_Simple_Switch): Allow more control over parameters handling.
+       This generic method now allows ungrouping of switches with parameters
+       and switches with more than one letter after the prefix.
+       (Set_Command_Line): Take care of switches that are prefixed with a
+       switch handling parameters without delimiter (-gnatya and -gnaty3 for
+       example).
+       (Add_Switch, Remove_Switch): Handle parameters possibly present inside
+       a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
+       the operation.
+       (Start, Alias_Switches, Group_Switches): Take care of parameters
+       possibly present inside a group.
+
+       * g-comlin.ads (Define_Switch): New method used to define a list of
+       expected switches, that are necessary for correctly ungrouping switches
+       with more that one character after the prefix.
+       (Get_Switches): Method that builds a getopt string from the list of
+       switches as set previously by Define_Switch.
+       (Add_Switch, Remove_Switch): New versions of the methods, reporting the
+       status of the operation. Also allow the removal of switches with
+       parameters only.
+       (Command_Line_Configuration_Record): Maintain a list of expected
+       switches.
+
+2008-08-06  Doug Rupp  <rupp@adacore.com>
+
+       * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
+       TARGET_MALLOC64 clear.
+
+       * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
+       if TARGET_MALLOC64 clear.
+
+       * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
+       (TARGET_MALLC64): New macro. Default to clear.
+
+2008-08-06  Doug Rupp  <rupp@adacore.com>
+
+       * gcc-interface/utils2.c (snames.h) Include
+       (TARGET_ABI_OPEN_VMS): Initialize.
+       (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
+       for Convention C.
+
+2008-08-06  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
+       null exclusion in a discriminant declaration
+
+       * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
+       indicators when type is not an access type.
+
+       * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
+       indicators when type is not an access type.
+
+2008-08-06  Javier Miranda  <miranda@adacore.com>
+
+       * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
+       with the target interface before expanding the code of the interface
+       conversion.
+
+2008-08-05  Ed Schonberg  <schonberg@adacore.com>
+
+       * freeze.adb:
+       (Freeze_Entity): A deferred constant does not violate the restriction
+       No_Default_Initialization, 
+
+       * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
+       can carry a null exclusion indicator, and on which an error may be
+       posted if the indicator is redundant.
+
+       * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
+       does not apply to a subtype mark that already excludes null.
+
+       * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
+       exclusion does not apply to a subtype mark that already excludes null.
+
+2008-08-05  Thomas Quinot  <quinot@adacore.com>
+
+       * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
+
+2008-08-05  Doug Rupp  <rupp@adacore.com>
+
+       * vms_data.ads: Translation for /POINTER_SIZE qualifier.
+
+2008-08-05  Thomas Quinot  <quinot@adacore.com>
+
+       * gsocket.h: Make this file includable in a Nucleus environment, which
+       does not support sockets.
+
+       * socket.c: Remove Nucleus-specific hack.
+
+2008-08-05  Pascal Obry  <obry@adacore.com>
+
+       * adaint.c: Remove support for readable attribute on vxworks and nucleus
+
+2008-08-05  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_attr.adb:
+       (Analyze_Attribute, case 'Result): handle properly the case where some
+       operand of the expression in a post-condition generates a transient
+       block.
+
+       * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
+       right-hand side when it is an anonymous access_to_subprogram, to force
+       static accessibility check when needed.
+
+2008-08-05  Sergey Rybin  <rybin@adacore.com>
+
+       * gnat_ugn.texi: Changing the description of the gnatcheck metrics
+       rule according to the change in the rule option.
+       Add documentation for -gnatw.b/-gnatw.B
+
+2008-08-05  Robert Dewar  <dewar@adacore.com>
+
+       * ug_words: Add entries for -gnatw.b/-gnatw.B
+
+       * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
+
+2008-08-05  Vincent Celier  <celier@adacore.com>
+
+       * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
+       (File).
+       
+       * a-ztdeio.adb: Ditto.
+
+2008-08-05  Pascal Obry  <obry@adacore.com>
+
+       * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
+       readable attribute.
+
+2008-08-05  Vincent Celier  <celier@adacore.com>
+
+       * s-wchwts.adb:
+       (Wide_String_To_String): Returns a String with the same 'First as its
+       parameter S.
+       (Wide_Wide_String_To_String): Ditto
+       
+       * s-wchwts.ads:
+       (Wide_String_To_String): Document that the lowest index of the returned
+       String is equal to S'First.
+
+2008-08-05  Thomas Quinot  <quinot@adacore.com>
+
+       * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
+
+       * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
+       s-oscons.ads
+
+2008-08-05  Robert Dewar  <dewar@adacore.com>
+
+       * opt.ads (Warn_On_Biased_Representation): New flag
+       
+       * sem_ch13.adb:
+       (Analyze_Attribute_Definition_Clause): Issue warning when biased
+       representation is required.
+       (Minimum_Size): Don't allow biasing if enum rep clause case
+       
+       * sem_warn.adb:
+       (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
+       (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
+       
+       * usage.adb: Add lines for -gnatw.b/B switches
+
+2008-08-05  Pascal Obry  <obry@adacore.com>
+
+       * a-coinve.adb: Reorder the code to avoid uninitialized warning.
+
+       * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
+
+2008-08-05  Thomas Quinot  <quinot@adacore.com>
+
+       * socket.c: Minor reformatting.
+
+2008-08-05  Robert Dewar  <dewar@adacore.com>
+
+       * sem_ch3.adb: Minor reformatting
+
+       * prj-nmsc.adb: Minor reformatting
+
+2008-08-05  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
+       visibility check on the component type if the simple test fails.
+
+2008-08-05  Jose Ruiz  <ruiz@adacore.com>
+
+       * init.c (__gnat_install_handler for linux): If we are building the
+       Xenomai run time then we need to do two additional things: avoid
+       memory swapping and transform the Linux environment task into a native
+       Xenomai task.
+
+       * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
+       time): Use interface to Xenomai native skin and avoid linux-specific
+       way of setting CPU affinity.
+       (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
+
+2008-08-05  Bob Duff  <duff@adacore.com>
+
+       * checks.ads: Minor comment fix
+
+2008-08-05  Thomas Quinot  <quinot@adacore.com>
+
+       * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
+       g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
+       CS8.
+
+2008-08-05  Robert Dewar  <dewar@adacore.com>
+
+       * mlib.adb: Minor code reorganization
+       Minor reformatting
+
+       * make.adb: Minor reformatting
+
+       * prj-attr.ads: Minor reformatting
+
+       * s-os_lib.adb: Minor reformatting
+
+       * s-fileio.adb: Minor code reorganization
+       Minor reformatting
+
+       * prj.ads: Minor reformatting
+
+2008-08-05  Bob Duff  <duff@adacore.com>
+
+       * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
+       unresolved initial value of "null", because it causes implicitly
+       generated "=" operators to be ambiguous, and because this type should
+       not be passed to gigi.
+
+2008-08-05  Vincent Celier  <celier@adacore.com>
+
+       * mlib.adb: Update comments.
+
+       * make.adb (Switches_Of): Check for Switches (others), before checking
+       for Default_Switches ("Ada").
+       (Gnatmake): Use Builder'Switches (others) in preference to
+       Builder'Default_Switches ("Ada") if there are several mains.
+
+       * prj-attr-pm.adb:
+       (Add_Attribute): Add component Others_Allowed in Attribute_Record
+       aggregate.
+
+       * prj-attr.adb:
+       Add markers to indicates that attributes Switches allow others as index
+       (Others_Allowed_For): New Boolean function, returning True for
+       attributes with the mark.
+       (Initialize): Recognize optional letter 'O' as the marker for
+       associative array attributes where others is allowed as the index.
+
+       * prj-attr.ads:
+       (Others_Allowed_For): New Boolean function
+       (Attribute_Record): New Boolean component Others_Allowed
+       
+       * prj-dect.adb:
+       (Parse_Attribute_Declaration): For associative array attribute where
+       others is allowed as the index, allow others as an index.
+
+       * prj-nmsc.adb:
+       (Process_Binder): Skip associative array attributes with index others
+       (Process_Compiler): Ditto
+
+       * prj-util.adb:
+       (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
+       index is All_Other_Names.
+
+       * prj.ads:
+       (All_Other_Names): New constant
+
+       * prj-proc.adb:
+       (Process_Declarative_Items): Skip associative array attribute when index
+       is reserved word "others".
+
+2008-08-05  Vasiliy Fofanov  <fofanov@adacore.com>
+
+       * gen-oscons.c: Adapt for VMS where termios.h is not available.
+
+2008-08-05  Thomas Quinot  <quinot@adacore.com>
+
+       * a-rttiev.adb: Minor reformatting (comments)
+
+       * gen-soccon.c: Rename to gen-oscons.c
+
+       * gen-oscons.c: New file. Now generate System.OS_Constants instead of
+       GNAT.Sockets.Constants.
+       Add new constants for GNAT.Serial_Communications and System.File_IO.
+
+2008-08-05  Javier Miranda  <miranda@adacore.com>
+
+       * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
+       * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
+       implementation of this routine has been simplified.
+
+2008-08-05  Pascal Obry  <obry@adacore.com>
+
+       * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
+       Set_Read_Only Win32 implementation.
+
+2008-08-05  Thomas Quinot  <quinot@adacore.com>
+
+       * exp_strm.adb: Minor reformatting (comments)
+
+       * sem_ch12.adb: Minor reformatting.
+
+2008-08-05  Robert Dewar  <dewar@adacore.com>
+
+       * sem_ch3.adb: Minor reformatting
+
+       * checks.adb: Minor reformatting
+
+2008-08-05  Thomas Quinot  <quinot@adacore.com>
+
+       * tbuild.ads (New_External_Name): Update spec to reflect relaxed
+       restriction on Prefix.
+
+2008-08-05  Jerome Lambourg  <lambourg@adacore.com>
+
+       * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
+       methods needed to handle switch sections when building a command line.
+       (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
+       Current_Section): New public methods or methods modified to handle
+       building command lines with sections.
+       (Set_Command_Line): Take into account sections when analysing a switch
+       string.
+       (Start): Sort the switches by sections before iterating the command line
+       elements.
+       
+       * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
+       Is_New_Section, Current_Section): New methods or methods modified to
+       handle building command lines with sections.
+
+2008-08-05  Ed Schonberg  <schonberg@adacore.com>
+
+       * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
+       discriminants, indicate that the corresponding object declaration has
+       no initialization, to prevent spurious warnings when the access type is
+       null-excluding.
+
+2008-08-05  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_res.adb (Resolve_Call): If this is a call to the predefined
+       Abort_Task, warn if the call appears within a protected operation.
+
+2008-08-04  Robert Dewar  <dewar@adacore.com>
+
+       * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
+
+2008-08-04  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_ch3.adb:
+       (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
+       anonymous access to protected subprogram that is the return type of the
+       specification of a subprogram body.
+
+       * sem_ch6.adb:
+       (Analyze_Subprogram_Body): if the return type is an anonymous access to
+       subprogram, freeze it now to prevent access anomalies in the back-end.
+
+       * exp_ch9.adb: Minor code cleanup.
+       Make sure that new declarations are inserted into the tree before
+       analysis (from code reading).
+
+2008-08-04  Robert Dewar  <dewar@adacore.com>
+
+       * exp_ch5.adb:
+       (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
+       at point of return.
+
+2008-08-04  Thomas Quinot  <quinot@adacore.com>
+
+       * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
+
+2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
+
+       * g-soccon-mingw.ads: Fix value for MSG_WAITALL
+
+2008-08-04  Javier Miranda  <miranda@adacore.com>
+
+       * sem_prag.adb (Process_Convention): Add missing support for
+        N_Private_Extension_Declaration nodes.
+
+2008-08-04  Robert Dewar  <dewar@adacore.com>
+
+       * exp_ch4.adb: Minor reformatting
+
+2008-08-04  Pascal Obry  <obry@adacore.com>
+
+       * adaint.h: Add missing prototype.
+
+       * adaint.c: Refine support for Windows file attributes.
+
+2008-08-04  Robert Dewar  <dewar@adacore.com>
+
+       * sem_res.adb:
+       (Valid_Conversion): Catch case of designated types having different
+       sizes, even though they statically match.
+
+2008-08-04  Javier Miranda  <miranda@adacore.com>
+
+       * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
+       added in previous patch to handle access to subprograms.
+
+2008-08-04  Robert Dewar  <dewar@adacore.com>
+
+       * freeze.adb:
+       (Freeze_Entity): Only check No_Default_Initialization restriction for
+       constructs that come from source
+
+2008-08-04  Thomas Quinot  <quinot@adacore.com>
+
+       * exp_ch6.adb: Minor comment fix.
+
+       * sem_ch4.adb: Minor reformatting.
+
+2008-08-04  Robert Dewar  <dewar@adacore.com>
+
+       * sem_res.adb: (Large_Storage_Type): Improve previous change.
+
+2008-08-04  Pascal Obry  <obry@adacore.com>
+
+       * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
+       file attributes.
+
+2008-08-04  Javier Miranda  <miranda@adacore.com>
+
+       * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
+       for N_Formal_Object_Declaration nodes. Adding kludge required by
+       First_Formal to provide its functionality with access to functions.
+       (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
+       for anonymous access types returned by functions.
+
+       * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
+       conversion of null-excluding access types (required only once to force
+       the generation of the required runtime check).
+
+       * sem_type.adb (Covers): minor reformating
+
+       * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
+       with internally generated nodes. Avoid generating the error inside init
+       procs.
+
+       * sem_res.adb (Resolve_Membership_Test): Minor reformating.
+       (Resolve_Null): Generate the null-excluding check in case of assignment
+       to a null-excluding object.
+       (Valid_Conversion): Add missing support for anonymous access to
+       subprograms.
+
+       * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
+       anonymous access types whose designated type is an itype. This case
+       occurs with anonymous access to protected subprograms types.
+       (Analyze_Return_Type):  Add missing support for anonymous access to
+       protected subprogram.
+
+       * sem_eval.adb (Subtypes_Statically_Match): In case of access to
+       subprograms addition of missing check on matching convention. Required
+       to properly handle access to protected subprogram types.
+
+       * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
+       null excluding access types.
+
+2008-08-04  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_ch12.adb: Add comments
+
+       * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
+       access type and the allocator is not initialized, warn rather than
+       reporting an error.
+
+2008-08-04  Robert Dewar  <dewar@adacore.com>
+
+       * exp_ch4.adb: Minor reformatting
+
+       * exp_dist.adb: Minor reformatting
+
+       * g-comlin.adb: Minor reformatting
+
+2008-08-04  Gary Dismukes  <dismukes@adacore.com>
+
+       * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
+       target to the type of the aggregate in the case where the target object
+       is class-wide.
+
+       * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
+       result type is class-wide and inherently limited, and the expression
+       has a specific type, create a return object of the specific type, for
+       more efficient handling of returns of build-in-place aggregates (avoids
+       conversions of the class-wide return object to the specific type on
+       component assignments).
+
+       * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
+       about a type mismatch for a class-wide function with a return object
+       having a specific type when the object declaration doesn't come from
+       source. Such an object can result from the expansion of a simple return.
+
+2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
+
+       * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
+
+       * gcc-interface/Makefile.in: Use 64bit-specific system files when
+       compiling for 64bit windows.
+
+2008-08-04  Jerome Lambourg  <lambourg@adacore.com>
+
+       * g-comlin.adb (Group_Switches): Preserve the switch order when
+       grouping and allow switch grouping of switches with more than one
+       character extension (e.g. gnatw.x).
+       (Args_From_Expanded): Remove this now obsolete method.
+
+2008-08-04  Ed Schonberg  <schonberg@adacore.com>
+
+       * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
+       chain at once, to ensure that type is properly decorated for back-end,
+       when allocator appears within a loop.
+
+2008-08-04  Kevin Pouget  <pouget@adacore.com>
+
+       * snames.h, snames.adb, snames.ads:
+       Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
+
+       * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
+       Build_To_Any_Call and Build_TypeCode_Call procedures.
+
+       * exp_attr.adb, sem_attr.adb: Add corresponding cases.
+
+       * rtsfind.ads: Add corresponding names.
+
+       * tbuild.adb: Update prefix restrictions to allow '_' character.
+
+2008-08-04  Doug Rupp  <rupp@adacore.com>
+
+       * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
+       * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
+       * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
+       use it.  Calculate pointer range overflow using 64bit types.
+
+2008-08-04  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_ch3.adb (Access_Definition): A formal object declaration is a
+       legal context for an anonymous access to subprogram.
+
+       * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
+       indirect call, report success to the caller to include possible
+       interpretation.
+
+       * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
+       check when the type
+       of the extended return is an anonymous access_to_subprogram type.
+
+       * sem_res.adb:
+       (Resolve_Call): Insert a dereference if the type of the subprogram is an
+       access_to_subprogram and the context requires its return type, and a
+       dereference has not been introduced previously.
+
+2008-08-04  Arnaud Charlet  <charlet@adacore.com>
+
+       * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
+       gnatcheck support in GPS.
+
+2008-08-04  Vincent Celier  <celier@adacore.com>
+
+       * mlib.adb (Create_Sym_Links): Create relative symbolic links when
+       requested
+
+2008-08-04  Vincent Celier  <celier@adacore.com>
+
+       * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
+       variable, but don't check the resulting value as it has no impact on
+       the processing.
+       
+       * opt.ads:
+       (Generate_Processed_File): New Boolean flag, set to True in the compiler
+       when switch -gnateG is used.
+       
+       * prep.adb:
+       (Preprocess): new Boolean out parameter Source_Modified. Set it to True
+       when the source is modified by the preprocessor and there is no
+       preprocessing errors.
+       
+       * prep.ads (Preprocess): new Boolean out parameter Source_Modified
+       
+       * sinput-l.adb:
+       (Load_File): Output the result of preprocessing if the source text was
+       modified.
+       
+       * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
+       
+       * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
+       
+       * ug_words: Add VMS equivalent for -gnateG
+       
+       * vms_data.ads:
+       Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
+
+2008-08-04  Doug Rupp  <rupp@adacore.com>
+
+       * gcc-interface/utils2.c:
+       (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
+       in 32bit descriptor.
+
+2008-08-04  Robert Dewar  <dewar@adacore.com>
+
+       * par-ch10.adb: Minor reformatting
+
+       * i-cobol.adb: Minor reformatting.
+
+2008-08-04  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_ch3.adb (Access_Definition): Create an itype reference for an
+       anonymous access return type of a regular function that is not a
+       compilation unit.
+
+2008-08-04  Vincent Celier  <celier@adacore.com>
+
+       * prj-attr.adb: New Builder attribute Global_Compilation_Switches
+       
+       * snames.adb: New standard name Global_Compilation_Switches
+       
+       * snames.ads: New standard name Global_Compilation_Switches
+
+       * make.adb: Correct spelling error in comment
+
+2008-08-04  Arnaud Charlet  <charlet@adacore.com>
+
+       * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
+       target.
+
+2008-08-04  Thomas Quinot  <quinot@adacore.com>
+
+       * sem_ch10.adb: Minor comment fix.
+
+2008-08-04  Robert Dewar  <dewar@adacore.com>
+
+       * restrict.adb: Improved messages for restriction warnings
+
+       * restrict.ads: Improved messages for restriction messages
+
+       * s-rident.ads (Profile_Name): Add No_Profile
+
+2008-08-04  Robert Dewar  <dewar@adacore.com>
+
+       * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
+
+2008-08-04  Robert Dewar  <dewar@adacore.com>
+
+       * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
+
+2008-08-04  Vincent Celier  <celier@adacore.com>
+
+       * prj-proc.adb:
+       (Copy_Package_Declarations): When inheriting package Naming from a
+       project being extended, do not inherit source exception names.
+
+2008-08-04  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
+       list of declaration to find previous subprogram, do not go to the
+       original node of a generic unit.
+
+2008-08-02  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
+       New case.  Convert BOOLEAN_TYPE operation to the default integer type.
+
+2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
+       * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
+       and adjust for above renaming.
+       * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
+       gnu_expr_alt_type parameter.  Convert the expression to it instead
+       of changing its type in place.
+       (build_function_stub): Adjust call to above function.
+
 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
@@ -10250,7 +11818,7 @@ PR ada/10768
        POINTER_PLUS_EXPR's operands.
        When adding an offset to a pointer, use POINTER_PLUS_EXPR.
 
-2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
+2007-06-11  Rafael Ávila de Espíndola  <espindola@google.com>
 
        * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
        of get_signed_or_unsigned_type.
@@ -12916,7 +14484,7 @@ PR ada/10768
 
        * misc.c (enumerate_modes): Consider log2_b to always be one.
 
-2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
+2007-05-14  Rafael Ávila de Espíndola  <espindola@google.com>
 
        * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
 
@@ -14736,7 +16304,7 @@ PR ada/10768
        (Print_Name,Print_Node): Make these debug printouts more robust: print
        "no such..." instead of crashing on bad input.
 
-2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
+2007-03-30  Rafael Ávila de Espíndola  <espindola@google.com>
 
        * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
        instead of gnat_signed_or_unsigned_type.
@@ -17431,7 +18999,7 @@ PR ada/10768
 
        * fe.h: Remove redundant declarations.
 
-2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
+2006-10-23 Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
 
        * utils.c (builtin_function): Rename to gnat_builtin_function.
        Move common code to add_builtin_function.
@@ -17582,7 +19150,7 @@ PR ada/10768
        * utils.c (create_var_decl): Use have_global_bss_p when deciding
        whether to make the decl common.
 
-2006-02-20  Rafael �vila de Esp�ndola  <rafael.espindola@gmail.com>
+2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
 
        * Make-lang.in (Ada): Remove.
        (.PHONY): Remove Ada
@@ -20040,11 +21608,11 @@ PR ada/10768
 
        * s-bitops.adb: Clarify comment for Bits_Array
 
-2005-12-07  Rafael �vila de Esp�ndola  <rafael.espindola@gmail.com>
+2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
 
        * Make-lang.in (ada.install-normal): Remove.
 
-2005-12-07  Rafael �vila de Esp�ndola  <rafael.espindola@gmail.com>
+2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
 
        * Make-lang.in: Remove all dependencies on s-gtype.