1 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
3 * trans.c: Fix misplaced #define.
5 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
7 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
8 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
10 2007-09-21 Olivier Hainque <hainque@adacore.com>
12 * utils.c (type_for_nonaliased_component_p): Return false for
15 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
17 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
18 object covered by 13.3(19) volatile.
20 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
24 * utils.c (unchecked_convert): Use a subtype as the intermediate type
25 in the special VIEW_CONVERT_EXPR case.
27 2007-09-12 Robert Dewar <dewar@adacore.com>
29 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
31 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
32 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
33 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
34 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
35 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
36 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
37 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
38 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
39 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
40 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
41 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
42 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
43 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
44 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
45 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
46 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
47 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
48 pragma Compiler_Unit and adds it to relevant library units.
50 2007-09-12 Ed Schonberg <schonberg@adacore.com>
52 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
53 a box need not correspond to any component.
55 2007-09-12 Robert Dewar <dewar@adacore.com>
57 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
58 the tasking version of the Ada run time when foreign threads are
59 present and there are no explicit Ada tasks or tasking constructs.
61 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
63 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
65 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
66 the usage of switch -y.
68 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
69 when switch -y is present.
71 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
72 leap seconds in Ada.Calendar and its children.
74 2007-09-12 Jose Ruiz <ruiz@adacore.com>
76 * a-extiti.ads (Timer): The discriminant is a "not null access
77 constant" in the Reference Manual.
78 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
80 2007-09-12 Robert Dewar <dewar@adacore.com>
82 * a-swuwha.adb: Remove junk RM header
84 2007-09-12 Vincent Celier <celier@adacore.com>
86 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
89 * g-bytswa.ads: Minor reformatting
91 2007-09-12 Thomas Quinot <quinot@adacore.com>
93 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
94 Add new constant Thread_Blocking_IO, always True by default, set False
95 on a per-runtime basis.
96 (Need_Netdb_Buffer): New constant.
98 2007-09-12 Arnaud Charlet <charlet@adacore.com>
100 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
101 Added renames for corresponding functions in System.Partition_Interface.
103 2007-09-12 Doug Rupp <rupp@adacore.com>
105 * Makefile.in: Remove VMS specific System.CRTL packages which are no
108 * s-crtl-vms64.ads: Removed.
110 2007-09-12 Olivier Hainque <hainque@adacore.com>
112 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
113 with discriminant constraints, generalize the code for BIT_FIELDs
114 to PACKED fields of constant size and propagate DECL_PACKED.
116 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
118 * decl.c (array_type_has_nonaliased_component): New predicate.
119 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
120 set the TYPE_NONALIASED_COMPONENT flag on the type.
121 <E_Array_Subtype>: Likewise.
122 * gigi.h (type_for_nonaliased_component_p): Declare.
123 * utils.c (type_for_nonaliased_component_p): New predicate.
124 (create_field_decl): Invoke the above predicate to set the
125 DECL_NONADDRESSABLE_P flag on the field.
127 2007-09-11 Javier Miranda <miranda@adacore.com>
129 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
130 in library level record type entities if we are generating statically
131 allocated dispatch tables.
133 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
134 importing/exporting the _tag declaration by new code
135 importing/exporting the dispatch table wrapper. This change allows us
136 to statically allocate of the TSD.
137 (Make_DT.Export_DT): New procedure.
138 (Build_Static_DT): New function.
139 (Has_DT): New function.
141 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
142 True_Constant and Current_Value. Required to statically
143 allocate the dispatch tables.
144 (Check_Allocator): Make function iterative instead of recursive.
145 Also return inner allocator node, when present, so that we do not have
146 to look for that node again in the caller.
148 2007-09-11 Jan Hubicka <jh@suse.cz>
150 * misc.c (gnat_expand_body): Kill.
151 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
153 2007-09-10 Robert Dewar <dewar@adacore.com>
155 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
156 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
157 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
158 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
159 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
160 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
161 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
162 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
163 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
164 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
165 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
166 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
167 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
168 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
169 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
170 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
171 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
172 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
173 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
174 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
175 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
176 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
177 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
178 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
179 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
180 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
181 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
182 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
183 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
184 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
185 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
186 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
187 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
188 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
189 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
190 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
191 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
192 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
193 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
194 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
195 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
196 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
197 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
198 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
199 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
200 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
201 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
202 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
203 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
204 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
205 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
206 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
207 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
208 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
209 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
210 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
211 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
212 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
213 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
214 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
215 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
216 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
217 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
218 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
219 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
220 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
221 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
222 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
223 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
224 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
225 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
226 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
227 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
228 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
229 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
230 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
231 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
232 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
233 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
234 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
235 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
236 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
237 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
239 2007-09-10 Emmanuel Briot <briot@adacore.com>
241 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
244 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
246 * adaint.c (__gnat_translate_vms): new function.
248 2007-09-10 Gary Dismukes <dismukes@adacore.com>
249 Thomas Quinot <quinot@adacore.com>
251 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
252 create an abstract subprogram in the case of 'Input. For 'Output we now
253 create a real spec/body when the type is abstract, since it can
254 potentially be called.
255 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
256 body for 'Output when the type is abstract (only the creation of the
257 body for 'Input is excluded when the type is abstract).
258 (Stream_Operation_OK): Add an additional condition in the return
259 statement, so that False will be returned for TTS_Stream_Input if the
260 associated tagged type is an abstract extension. Add comments for
262 (Expand_N_Object_Declaration): For the case of a shared passive
263 variable, insert init proc call only after the shared variable
264 procedures have been processed, because the IP call needs to undergo
265 shared passive variable reference expansion, which requires these
266 procedures to be available (and elaborated).
268 2007-09-10 Vincent Celier <celier@adacore.com>
270 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
271 parameter Runtime_Project.
273 2007-09-10 Ed Schonberg <schonberg@adacore.com>
275 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
276 given a box association, the type of the component is discriminated,
277 and the value of the discriminant is the discriminant of the enclosing
278 type, retrieve its value from the aggregate itself, where it must have
281 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
282 to remove other spurious ambiguities on arithmetic operations involving
283 literals and addresses, on systems where Address is a visible integer
284 type, when the operator is called in functional notation.
285 (Try_Primitive_Operation): Within an instance, a call in prefixed form
286 is legal when the types match, even if the operation is currently
289 2007-09-10 Ed Schonberg <schonberg@adacore.com>
291 * sem_ch12.adb (Build_Local_Package): A formal package with no
292 associations is legal if all formals have defaults. It is not
293 equivalent to a formal declared with a box.
295 2007-09-10 Sergey Rybin <rybin@adacore.com>
297 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
299 2007-09-10 Sergey Rybin <rybin@adacore.com>
301 * gnat_ugn.texi: Add description of the new '-lratio' option
302 Update 7.3.1 section about availability of the feature.
304 2007-09-10 Thomas Quinot <quinot@adacore.com>
306 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
309 2007-09-10 Olivier Hainque <hainque@adacore.com>
311 * Makefile.in: (mips-irix section): Activate build of libgmem.
313 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
315 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
318 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
320 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
321 a debug renaming declaration specially.
323 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
325 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
326 which a constant renaming is treated as a normal object declaration.
327 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
328 the N_Indexed_Component case.
329 <N_Indexed_Component>: Fall through to above case.
330 <N_Object_Renaming_Declaration>: Return true for all composite types.
332 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
334 * decl.c (make_packable_type): If the new type has been given BLKmode,
335 try again to get an integral mode for it.
337 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
339 Re-apply accidentally reverted change:
341 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
343 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
344 get_action_description_for): Replace _Unwind_Word with _uleb128_t
345 and _Unwind_SWord with _sleb128_t.
347 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
349 * trans.c (convert_with_check): Update call to real_2expN.
351 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
353 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
354 * utils.c (end_subprog_body): Likewise.
356 2007-09-03 Nick Clifton <nickc@redhat.com>
358 * Make-lang.in: Change copyright header to refer to version 3 of
359 the GNU General Public License and to point readers at the
360 COPYING3 file and the FSF's license web page.
361 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
362 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
363 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
364 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
367 2007-08-31 Vincent Celier <celier@adacore.com>
371 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
372 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
373 (Check_Version_And_Help): New procedure in package Switch to process
374 switches --version and --help.
375 Use Check_Version_And_Help in GNAT tools
378 (Compile_Sources): Make sure that sources that are "excluded" are not
380 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
381 project file is used.
382 (Version_Switch): Remove, moved to Switch
383 (Help_Switch): Remove, moved to Switch
384 (Display_Version): Remove, moved to Switch
386 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
387 package Switch to process switches --version and --help.
388 (Display_Version): New procedure
390 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
392 2007-08-31 Javier Miranda <miranda@adacore.com>
394 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
397 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
399 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
400 (Mark_Non_Null): If the node for which we just generated an access check
401 is a reference to an *in* parameter and the reference appears in the
402 declarative part of a subprogram body, mark the node as known non null.
404 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
406 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
407 structure of E_Exception to reflect the new flag.
408 (Is_Raised, Set_Is_Raised): New inlined routines.
409 Update the usage of available flag to reflect the addition of Is_Raised.
410 (Is_Raised, Set_Is_Raised): Bodies of new routines.
411 (Write_Entity_Flags): Write the status of flag Is_Raised.
412 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
413 spurious ambiguities when integer literals appear in the context of an
414 address type that is a visible integer type.
416 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
417 exceptions never being raised.
418 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
421 2007-08-31 Javier Miranda <miranda@adacore.com>
423 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
424 statement when compiling under restriction No_Exceptions_Proparation.
426 2007-08-31 Ed Schonberg <schonberg@adacore.com>
428 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
429 initialization aggregate for the type, generate itype references for
430 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
432 2007-08-31 Gary Dismukes <dismukes@adacore.com>
434 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
435 library-level package renaming, pass the declaration associated with
436 the renaming's special debug variable to Qualify_Entity_Names to ensure
437 that its encoded name is properly qualified.
439 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
440 occurring in the list of entities to qualify, and do not attempt to
441 traverse an entity list in that case. Variables associated with
442 ` library-level package renamings can now occur in the table.
444 * exp_dbug.ads: Revise documentation of the encoding for renaming
447 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
449 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
450 access type points to an unconstrained array.
452 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
454 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
457 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
458 simple redundant qualifications. The check is performed whenever the
459 expression is a non-overloaded identifier.
460 (Resolve_Type_Conversion): Enchance the redundant type conversion check
461 to include loop parameters.
462 (Valid_Conversion): Avoid generation of spurious error message.
464 2007-08-31 Bob Duff <duff@adacore.com>
466 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
467 concatenations of string literals into a single literal, in order to
468 avoid very deep recursion in the front end, which was causing stack
471 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
472 string, and the right operand is a string literal (the case of "" &
473 "..."), optimize by avoiding copying the right operand -- just use the
474 value of the right operand directly.
476 * stringt.adb (Store_String_Chars): Optimize by growing the
477 String_Chars table all at once, rather than appending characters one by
479 (Write_String_Table_Entry): If the string to be printed is very long,
480 just print the first few characters, followed by the length. Otherwise,
481 doing "pn(n)" in the debugger can take an extremely long time.
483 * sem_prag.adb (Process_Interface_Name): Replace loop doing
484 Store_String_Char with Store_String_Chars.
486 2007-08-31 Vincent Celier <celier@adacore.com>
488 * prj-attr.adb: Add new attribute Excluded_Source_Files
490 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
491 Locally_Removed_Files.
493 * snames.ads, snames.adb: New standard name Excluded_Source_Files
495 2007-08-31 Ed Schonberg <schonberg@adacore.com>
497 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
498 clauses of subunits, ignore limited_with_clauses that are illegal and
499 have not been fully analyzed.
501 2007-08-31 Ed Schonberg <schonberg@adacore.com>
503 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
504 flag, for effiency. It is called when analyzing arithmetic operators
505 and also for actuals in calls that are universal_integers. The flag is
506 set for the predefined type address, and for any type or subtype
509 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
510 Universal_Integer, when the formal is a descendent of address and the
511 call appears in user code.
512 (Analyze_Selected_Component): if the prefix is a private extension, the
513 tag component is visible.
515 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
518 2007-08-31 Robert Dewar <dewar@adacore.com>
520 * s-fileio.adb (Open): Normalize file name to lower case in non-case
521 sensitive file name systems to avoid unexpected mismatch in Vista.
523 2007-08-31 Vincent Celier <celier@adacore.com>
525 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
527 2007-08-31 Vincent Celier <celier@adacore.com>
529 * symbols-vms.adb (Initialize): Read symbol files with continuation
531 (Finalize): If symbol is long, split the line
533 2007-08-31 Vincent Celier <celier@adacore.com>
535 * fmap.ads: Minor comment updates
537 2007-08-31 GNAT Script <nobody@adacore.com>
539 * Make-lang.in: Makefile automatically updated
541 2007-08-31 Bob Duff <duff@adacore.com>
543 * sinfo.ads: Minor comment fix.
545 2007-08-31 Thomas Quinot <quinot@adacore.com>
547 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
549 Documentation cleanup only.
551 2007-08-31 Sergey Rybin <rybin@adacore.com>
553 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
554 gnatpp '--separate-stmt-name' option.
555 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
558 * gnat_ugn.texi: Add description for the new gnatpp
559 '--separate-stmt-name' and '--use-on-new-line' options.
561 2007-08-31 Ben Elliston <bje@au.ibm.com>
563 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
564 when compiling for powerpc64-*-linux.
565 * system-linux-ppc64.ads: New file.
567 2007-08-22 Krister Walfridsson <cato@df.lth.se>
569 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
572 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
574 * misc.c (gnat_type_max_size): Constify.
576 2007-08-16 Gary Dismukes <dismukes@adacore.com>
578 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
579 associated with Standard_Debug_Renaming_Type, to be used as the type of
580 the special variables whose names provide debugger encodings for
581 renaming declarations.
583 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
584 (Set_Debug_Renaming_Link): Change to set Node25.
585 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
586 (Write_Field25_Name): Add case for E_Variable to output
587 "Debug_Renaming_Link".
588 (Write_Field23_Name): Correct the output string for "Limited_View".
590 * exp_dbug.adb: Add with and use of Tbuild.
591 (Debug_Renaming_Declaration): Replace creation of an enumeration type
592 and literal with creation of a variable of type
593 Standard_Debug_Renaming_Type whose name encodes both the renamed object
594 and the entity of the renaming declaration.
595 (Qualify_Entity_Name): Add the delayed qualification of the entity name
596 part of the name of a variable that has a Debug_Renaming_Link.
598 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
599 special type to be associated with variables that provide debugger
600 encodings for renaming declarations.
602 2007-08-16 Gary Dismukes <dismukes@adacore.com>
603 Ed Schonberg <schonberg@adacore.com>
604 Javier Miranda <miranda@adacore.com>
606 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
607 ancestor part given by an aggregate to test for an unchecked conversion,
608 since this can occur in some cases when the ancestor part is a function
609 call, and we don't want to fall into the recursive call to this
610 procedure in that case.
612 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
613 stream attributes on limited types to account for user-specified
614 attributes as well as whether Input (resp. Output) becomes available
615 due to Read (resp. Write) being available for the type. Change Boolean
616 variable to the more accurate name
617 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
618 double-"not" predicate at beginning of return statement to more
621 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
622 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
623 in a block statement and use that as the first statement of the
624 expanded return rather than incorrectly using the handled sequence as
627 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
628 operation, generate an explicit freeze node for it rather than
629 generating extra formals, to ensure that gigi has the proper order of
630 elaboration for anonymous subtypes in the signature of the subprograms.
631 (Build_In_Place_Formal): Move assertion to beginning of loop.
632 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
633 applied to a function call (occurs for some cases of 'Input).
634 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
635 applied to a function call (occurs for some cases of 'Input).
637 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
638 2005, generate an extended return statement enclosing the result object
641 * freeze.adb (Freeze_Record_Type): Extend the current management of
642 components that are access type with an allocator as default value: add
643 missing support to the use of qualified expressions of the
644 allocator (which also cause freezing of the designated type!)
645 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
646 dispatching operation, since extra formals may be needed by calls to
647 build-in-place functions (such as stream 'Input).
649 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
650 formals for 'Constrained and accessibility level in the case of a
651 predefined dispatching operation.
653 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
654 point, no need to find the parent node.
656 2007-08-16 Javier Miranda <miranda@adacore.com>
658 * exp_attr.adb (Attribute_Priority): Add missing support for entries
661 2007-08-16 Javier Miranda <miranda@adacore.com>
663 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
664 is not really required and can introduce regression with the debugger.
665 The original problem is fixed with the patch written for checks.adb.
667 2007-08-16 Thomas Quinot <quinot@adacore.com>
669 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
670 Range_Check on Allocated_Table.
672 2007-08-16 Vincent Celier <celier@adacore.com>
674 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
675 Including_Non_Switch set to False.
676 (Gnatmake): For the compiler, call Test_If_Relative_Path with
677 Including_Non_Switch set to False.
679 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
680 parameter Including_Non_Switch, defaulted to True. When
681 Including_Non_Switch is False, options that are not switches and
682 appear as relative path are not converted to absolute paths.
684 2007-08-16 Nicolas Roche <roche@adacore.com>
686 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
689 * Make-lang.in: Update dependencies
691 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
693 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
694 currently inspected is a selected component, retrieve the entity of
696 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
697 from the immediate ancestor of Main_Unit_Entity.
698 (Install_Limited_Withed_Unit): Do not install the limited view of
699 package P if P is reachable through an ancestor chain from package C
700 and C also has a with clause for P in its body.
701 (Has_Limited_With_Clause): New routine.
702 (Has_With_Clause): New routine.
704 2007-08-16 Ed Schonberg <schonberg@adacore.com>
706 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
707 generic for an enclosing instance is a global reference, even though
708 its scope is the enclosing instance.
710 2007-08-16 Gary Dismukes <dismukes@adacore.com>
711 Javier Miranda <miranda@adacore.com>
713 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
714 initialize a limited object.
715 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
717 Make sure Has_Complex_Representation is inherited by derived type.
719 2007-08-16 Robert Dewar <dewar@adacore.com>
721 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
724 2007-08-16 Ed Schonberg <schonberg@adacore.com>
726 * sem_disp.adb (Check_Dispatching_Operation): If the operation
727 implements an operation inherited from a progenitor interface, verify
728 that they are subtype-conformant.
730 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
731 Bob Duff <duff@adacore.com>
732 Nicolas Setton <setton@adacore.com>
734 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
735 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
736 the statement which is being resolved comes from a predefined library
737 unit, all non-predefined library interpretations are skipped.
738 (Resolve_Op_Concat): If string concatenation was folded in the parser,
739 but the "&" is user defined, give an error, because the folding would
742 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
743 the parser has folded a long sequence of concatenations of string
746 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
747 and "JMP_BUF" variables as artificial.
748 (N_String_Literal): Do not use alloca for very long string literals. Use
749 xmalloc/free instead. Otherwise the stack might overflow.
751 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
754 2007-08-16 Vincent Celier <celier@adacore.com>
756 * vms_conv.adb (Process_Argument): Ensure that project related options
757 are not put in the -cargs section when using GNAT COMPILE.
759 2007-08-16 Robert Dewar <dewar@adacore.com>
761 * gnat_ugn.texi: Add note on preprocessing (output file not written)
763 2007-08-16 Thomas Quinot <quinot@adacore.com>
765 * a-tags.adb: Minor reformatting.
767 2007-08-16 Bob Duff <duff@adacore.com>
769 * sem_type.ads, sem_ch4.adb: Minor reformatting.
771 2007-08-14 Thomas Quinot <quinot@adacore.com>
773 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
774 s-osinte-interix.ads, system-interix.ads: Removed.
776 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
778 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
779 calls to Check_Within_Time_Bounds.
780 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
781 (Difference): Account for possible rounding of the resulting difference
783 2007-08-14 Robert Dewar <dewar@adacore.com>
785 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
786 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
787 s-osinte-solaris.adb, s-osinte-solaris.ads,
788 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
790 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
791 switch -gnatyS. Enable -gnatyS in GNAT style check mode
793 2007-08-14 Robert Dewar <dewar@adacore.com>
794 Ed Schonberg <schonberg@adacore.com>
796 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
797 Suppress unmodified in-out parameter warning in some cases
798 This patch is a also fairly significant change to the way suppressible
801 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
802 needed for access to concurrent record types generated by the expander.
803 (Generate_Range_Check): When generating a temporary to capture the
804 value of a conversion that requires a range check, set the type of the
805 temporary before rewriting the node, so that the type is always
806 properly placed for back-end use.
807 (Apply_Float_Conversion_Check): Handle case where the conversion is
809 (Get_Discriminal): Code reformatting. Climb the scope stack looking
810 for a protected type in order to examine its discriminants.
812 2007-08-14 Robert Dewar <dewar@adacore.com>
813 Gary Dismukes <dismukes@adacore.com>
814 Ed Schonberg <schonberg@adacore.com>
815 Thomas Quinot <quinot@adacore.com>
817 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
818 a-stwisu.adb, a-strsup.adb: Fix warnings for range
821 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
822 (Get_Allocator_Final_List): For the case of an anonymous access type
823 that has a specified Associated_Final_Chain, do not go up to the
825 (Expand_N_Type_Conversion): Test for the case of renamings of access
826 parameters when deciding whether to apply a run-time accessibility
828 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
829 aggregate code before allocator, and ahead of declaration for
830 temporary, to prevent access before elaboration when the allocator is
831 an actual for an access parameter.
832 (Expand_N_Type_Conversion): On an access type conversion involving an
833 access parameter, do not apply an accessibility check when the
834 operand's original node was an attribute other than 'Access. We now
835 create access conversions for the expansion of 'Unchecked_Access and
836 'Unrestricted_Access in certain cases and clearly accessibility should
837 not be checked for those.
839 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
840 includes a type conversion of a packed component that has been expanded,
841 recover the original expression for the object, and use this expression
842 in the post-call assignment statement, so that the assignment is made
843 to the object and not to a back-end temporary.
844 (Freeze_Subprogram): In case of primitives of tagged types not defined
845 at the library level force generation of code to register the primitive
846 in the dispatch table. In addition some code reorganization has been
847 done to leave the implementation clear.
848 (Expand_Call): When expanding an inherited implicit conversion,
849 preserve the type of the inherited function after the intrinsic
850 operation has been expanded.
852 * exp_ch2.ads, exp_ch2.adb
853 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
854 of an entry formal appearing in an assignment statement does not assign
856 (Expand_Current_Value): Instead of calling a routine to determine
857 whether the prefix of an attribute reference should be optimized or
858 not, prevent the optimization of such prefixes all together.
860 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
861 component whose prefix is known to be of an access type is an implicit
862 dereference and does not assign to the prefix.
864 2007-08-14 Ed Schonberg <schonberg@adacore.com>
865 Robert Dewar <dewar@adacore.com>
867 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
868 itype is visited, make an entry into table to link associated node and
870 Add comments and correct harmless error in Build_NCT_Hash_Tables
871 (Array_Aggr_Subtype): Associate each itype created for an index type to
872 the corresponding range construct, and not to the aggregate itself. to
873 maintain a one-to-one correspondence between itype and its associated
874 node, to prevent errors when complex expression is copied.
875 Fix mishandling of multiple levels of parens
877 * sem_aggr.adb: Create a limited view of an incomplete type, to make
878 treatment of limited views uniform for all visible declarations in a
879 limited_withed package.
880 (New_Copy_Tree): If hash table is being used and itype is visited,
881 make an entry into table to link associated node and new itype.
882 (Resolve_Record_Aggregate): Do not add an others box association for a
883 discriminated record component that has only discriminants, when there
884 is a box association for the component itself.
886 * par-ch4.adb: Fix mishandling of multiple levels of parens
888 2007-08-14 Robert Dewar <dewar@adacore.com>
890 * comperr.adb: Fix problem with suppressing warning messages from gigi
892 * erroutc.ads, erroutc.adb, errout.ads,
893 errout.adb (Write_Eol): Remove trailing spaces before writing the line
894 (Write_Eol_Keep_Blanks): New procedure to write a line, including
895 possible trailing spaces.
896 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
897 Fix problem with suppressing warning messages from back end
898 Improve handling of deleted warnings
901 Fix problem with suppressing warning messages from back end
902 Handle setting of Static_Dispatch_Tables flag.
905 Fix problem with suppressing warning messages from back end
907 * exp_intr.adb: Improve handling of deleted warnings
909 2007-08-14 Robert Dewar <dewar@adacore.com>
911 * debug.adb: Improve -gnatdI to cover all cases of serialization
912 Add documentation of dZ, d.t
914 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
916 (Sprint_Node_Actual): Generate new output associated with implicit
917 importation and implicit exportation of object declarations.
919 2007-08-14 Ed Schonberg <schonberg@adacore.com>
920 Robert Dewar <dewar@adacore.com>
921 Javier Miranda <miranda@adacore.com>
922 Gary Dismukes <dismukes@adacore.com>
924 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
925 to make treatment of limited views uniform for all visible declarations
926 in a limited_withed package.
927 Improve warnings for in out parameters
928 (Set_Related_Interaface/Related_Interface): Allow the use of this
929 attribute with constants.
930 (Write_Field26_Name): Handle attribute Related_Interface in constants.
931 Warn on duplicate pragma Preelaborable_Initialialization
933 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
934 generation of a freezing node to ensure proper management of null
935 excluding access types in the backend.
936 (Create_Extra_Formals): Test base type of the formal when checking for
937 the need to add an extra accessibility-level formal. Pass the entity E
938 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
939 originally being done in a couple of cases), to ensure that the
940 Extra_Formals list gets set on the entity E when the first entity is
942 (Conforming_Types): Add missing calls to Base_Type to the code that
943 handles anonymous access types. This is required to handle the
944 general case because Process_Formals builds internal subtype entities
945 to handle null-excluding access types.
946 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
947 functions that need it, even when not marked Requires_Overriding.
948 Improve warnings for in out parameters
949 (Analyze_Function_Return): Warn for disallowed null return
950 Warn on return from procedure with unset out parameter
951 Ensure consistent use of # in error messages
952 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
953 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
954 the implicit conversion of the expression done for anonymous access
955 types. This is required to generate the code of the null excluding
958 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
959 A formal parameter is never publicly referenceable outside of its body.
960 (Check_References): For an unreferenced formal parameter in an accept
961 statement, use the same warning circuitry as for subprogram formal
963 (Warn_On_Unreferenced_Entity): New subprogram, taken from
964 Output_Unreferenced_Messages, containing the part of that routine that
965 is now reused for entry formals as described above.
966 (Goto_Spec_Entity): New function
967 (Check_References): Do not give IN OUT warning for dispatching operation
968 Improve warnings for in out parameters
969 (Test_Ref): Check that the entity is not undefinite before calling
970 Scope_Within, in order to avoid infinite loops.
971 Warn on return from procedure with unset out parameter
972 Improved warnings for unused variables
974 2007-08-14 Robert Dewar <dewar@adacore.com>
975 Javier Miranda <miranda@adacore.com>
976 Gary Dismukes <dismukes@adacore.com>
978 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
979 (Expand_N_Attribute_Reference): Further unify the handling of the
980 three forms of access attributes, using common code now for all three
981 cases. Add a test for the case of applying an access attribute to
982 an explicit dereference when the context is an access-to-interface
983 type. In that case we need to apply the conversion to the prefix
984 of the explicit dereference rather than the prefix of the attribute.
985 (Attribute_Version, UET_Address): Set entity as internal to ensure
986 proper dg output of implicit importation.
987 (Expand_Access_To_Type): Removed.
988 (Expand_N_Attribute_Reference): Merge the code from the three cases
989 of access attributes, since the processing is largely identical for
990 these cases. The substantive fix here is to process the case of a
991 type name prefix (current instance case) before handling the case
992 of interface prefixes.
994 2007-08-14 Thomas Quinot <quinot@adacore.com>
995 Ed Schonberg <schonberg@adacore.com>
996 Javier Miranda <miranda@adacore.com>
997 Robert Dewar <dewar@adacore.com>
999 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
1000 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
1001 type that is an anonymous access to controlled object, establish
1002 an associated finalization chain to avoid corrupting the global
1003 finalization list when a dynamically allocated object designated
1004 by such a component is deallocated.
1005 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
1006 functions that need it, even when not marked Requires_Overriding.
1007 (Initialize_Tag): Replace call to has_discriminants by call to
1008 Is_Variable_Size_Record in the circuitry that handles the
1009 initialization of secondary tags.
1010 (Is_Variable_Size_Record): New implementation.
1011 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
1012 Suppress_Initialization pragma for a derived type.
1013 (Is_Variable_Size_Record): New subprogram.
1014 (Build_Offset_To_Top_Functions): New implementation that simplifies the
1015 initial version of this routine and also fixes problems causing
1016 incomplete initialization of the table of interfaces.
1017 (Build_Init_Procedure): Improve the generation of code to initialize the
1018 the tag components of secondary dispatch tables.
1019 (Init_Secondary_Tags): New implementation that simplifies the previous
1020 version of this routine.
1021 (Make_DT): Add parameter to indicate when type has been frozen by an
1022 object declaration, for diagnostic purposes.
1023 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
1024 diagnose attemps to freeze a subprogram when some untagged type of its
1025 profile is a private type whose full view has not been analyzed yet.
1026 (Freeze_Array_Type): Generate init proc for packed array if either
1027 Initialize or Normalize_Scalars is set.
1028 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
1029 constructing the new profile, copy the null_exclusion indicator for each
1030 parameter, to ensure full conformance of the new body with the spec.
1032 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
1033 Create wrappers for constructor functions that need it, even when not
1034 marked Requires_Overriding.
1035 (Covers): Handle properly designated types of anonymous access types,
1036 whose non-limited views are themselves incomplete types.
1037 (Add_Entry): Use an entity to store the abstract operation which hides
1039 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
1040 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
1041 initialization aggregate.
1042 (Function_Interp_May_Be_Hidden): Rename to
1043 Function_Interp_Has_Abstract_Op.
1044 (Has_Compatible_Type): Remove machinery that skips interpretations if
1045 they are labeled as potentially hidden by an abstract operator.
1046 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
1047 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
1048 (Write_Overloads): Output the abstract operator if present.
1049 (Add_Entry): Before inserting a new entry into the interpretation table
1050 for a node, determine whether the entry will be disabled by an abstract
1052 (Binary_Op_Interp_May_Be_Hidden): New routine.
1053 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
1055 (Function_Interp_May_Be_Hidden): New routine.
1056 (Has_Compatible_Type): Do not consider interpretations hidden by
1057 abstract operators when trying to determine whether two types are
1059 (Has_Hidden_Interp): New routine.
1060 (Set_May_Be_Hidden_Interp): New routine.
1061 (Write_Overloads): Write the status of flag May_Be_Hidden.
1063 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1064 Javier Miranda <miranda@adacore.com>
1066 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
1067 types declared in the declarative part of a nested package body or in
1068 the proper body of a stub.
1069 (Set_All_DT_Position): Add missing check to avoid wrong assignation
1070 of the same dispatch table slot to renamed primitives.
1071 (Make_Select_Specific_Data_Table): Handle private types.
1072 (Tagged_Kind): Handle private types.
1073 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
1074 output of implicit importation and exportation.
1075 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
1076 first formal of the thunk is always associated with the controlling
1077 type. In addition perform the following code cleanup: remove formal
1078 Thunk_Alias which is no longer required, cleanup evaluation of the
1079 the controlling type, and update the documentation.
1080 Replace occurrence of Default_Prim_Op_Count by
1081 Max_Predef_Prims. Addition of compile-time check to verify
1082 that the value of Max_Predef_Prims is correct.
1083 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
1084 (Make_DT): Add parameter to indicate when type has been frozen by an
1085 object declaration, for diagnostic purposes.
1086 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
1087 construction of statically allocated dispatch tables.
1088 (Make_DT): In case of library-level tagged types export the declaration
1089 of the primary tag. Remove generation of tags (now done by Make_Tags).
1090 Additional modifications to handle non-static generation of dispatch
1091 tables. Take care of building tables for asynchronous interface types
1092 (Make_Tags): New subprogram that generates the entities associated with
1093 the primary and secondary tags of Typ and fills the contents of Access_
1094 Disp_Table. In case of library-level tagged types imports the forward
1095 declaration of the primary tag that will be declared later by Make_DT.
1096 (Expand_Interface_Conversion): In case of access types to interfaces
1097 replace an itype declaration by an explicit type declaration to avoid
1098 problems associated with the scope of such itype in transient blocks.
1100 2007-08-14 Robert Dewar <dewar@adacore.com>
1101 Ed Schonberg <schonberg@adacore.com>
1102 Javier Miranda <miranda@adacore.com>
1104 * exp_util.ads, exp_util.adb:
1105 This patch replaces a number of occurrences of explicit tests for N_Null
1106 with calls to Known_Null. This improves tracking of null values, since
1107 Known_Null also catches null constants, and variables currently known to
1108 be null, so we get better tracking.
1109 (Ensure_Defined): create an itype reference only in the scope of the
1111 (Side_Effect_Free): A selected component of an access type that
1112 denotes a component with a rep clause must be treated as not
1113 side-effect free, because if it is part of a linked structure its
1114 value may be affected by a renaming.
1115 (Expand_Subtype_From_Expr): For limited objects initialized with build
1116 in place function calls, do nothing; otherwise we prematurely introduce
1117 an N_Reference node in the expression initializing the object, which
1118 breaks the circuitry that detects and adds the additional arguments to
1119 the called function. Bug found working in the new patch for statically
1120 allocated dispatch tables.
1121 (Is_Library_Level_Tagged_Type): New subprogram.
1122 (Remove_Side_Effects): If the expression of an elementary type is an
1123 operator treat as a function call.
1124 (Make_Literal_Range): If the index type of the array is not integer, use
1125 attributes properly to compute the constraint on the resulting aggregate
1128 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
1129 class-wide type whose base type is an incomplete private type, leave
1130 class-wide type unfrozen so that freeze nodes can be generated
1131 properly at a later point.
1132 (Freeze_Entity, array case): Handle case of pragma Pack and component
1133 size attributre clause for same array.
1135 2007-08-14 Vincent Celier <celier@adacore.com>
1137 * prj.ads, prj.adb: Update Project Manager to new attribute names for
1139 Allow all valid declarations in configuration project files
1140 (Reset): Initialize all tables and hash tables in the project tree data
1141 Major update of the Project Manager and of the project aware tools,
1142 including gprmake, so that the same sources in the GNAT repository
1143 can be used by gprbuild.
1144 (Slash_Id): Change type to be Path_Name_Type
1145 (Slash): Return a Path_Name_Type instead of a File_Name_Type
1147 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
1149 Update Project Manager to new attribute names for ghprbuild
1150 Allow all valid declarations in configuration project files
1151 Major update of the Project Manager and of the project aware tools,
1152 including gprmake, so that the same sources in the GNAT repository
1153 can be used by gprbuild.
1156 Major update of the Project Manager and of the project aware tools,
1157 including gprmake, so that the same sources in the GNAT repository
1158 can be used by gprbuild.
1160 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
1161 insensitive flag for attributes with optional index.
1162 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
1163 array attribute, put the index in lower case.
1164 Update Project Manager to new attribute names for ghprbuild
1165 Allow all valid declarations in configuration project files
1166 Major update of the Project Manager and of the project aware tools,
1167 including gprmake, so that the same sources in the GNAT repository
1168 can be used by gprbuild.
1170 * prj-env.ads, prj-env.adb:
1171 Major update of the Project Manager and of the project aware tools,
1172 including gprmake, so that the same sources in the GNAT repository
1173 can be used by gprbuild.
1174 (Get_Reference): Change type of parameter Path to Path_Name_Type
1176 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
1177 removing '-' from the path to start with the first character of the
1179 Major update of the Project Manager and of the project aware tools,
1180 including gprmake, so that the same sources in the GNAT repository
1181 can be used by gprbuild.
1182 Major update of the Project Manager and of the project aware tools,
1183 including gprmake, so that the same sources in the GNAT repository
1184 can be used by gprbuild.
1186 * prj-nmsc.ads, prj-nmsc.adb:
1187 Update Project Manager to new attribute names for ghprbuild
1188 Allow all valid declarations in configuration project files
1189 (Search_Directories): Detect subunits that are specified with an
1190 attribute Body in package Naming. Do not replace a source/unit in the
1191 same project when the order of the source dirs are known. Detect
1192 duplicate sources/units in the same project when the order of the
1193 source dirs are not known.
1194 (Check_Ada_Name): Allow all identifiers that are not reserved words
1196 Major update of the Project Manager and of the project aware tools,
1197 including gprmake, so that the same sources in the GNAT repository
1198 can be used by gprbuild.
1199 (Look_For_Sources): If the list of sources is empty, set the object
1200 directory of non extending project to nil.
1201 Change type of path name variables to be Path_Name_Type
1202 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
1203 otherwise creating missing directories will fail.
1205 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
1206 prj-part.ads, prj-part.adb:
1207 Major update of the Project Manager and of the project aware tools,
1208 including gprmake, so that the same sources in the GNAT repository
1209 can be used by gprbuild.
1211 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
1212 insensitive flag for attributes with optional index.
1213 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
1214 array attribute, put the index in lower case.
1215 (Parse_Variable_Reference): Allow the current project name to be used in
1216 the prefix of an attribute reference.
1218 * prj-util.ads, prj-util.adb
1219 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
1220 defaulted to False. When True, always check against indexes in lower
1223 * snames.ads, snames.h, snames.adb:
1224 Update Project Manager to new attribute names for gprbuild
1225 Allow all valid declarations in configuration project files
1227 2007-08-14 Robert Dewar <dewar@adacore.com>
1228 Ed Schonberg <schonberg@adacore.com>
1230 * opt.ads: Warning for non-local exception propagation now off by
1232 New switch -gnatI to disable representation clauses
1233 Implement new pragma Implicit_Packing
1236 Warning for non-local exception propagation now off by default
1237 Add warning for unchecked conversion of pointers wi different
1239 New switch -gnatI to disable representation clauses
1241 * usage.adb: new switch -gnatyS
1243 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
1244 note that aggregates of anonymous array types are not flagged.
1245 -gnatwc now includes membership tests optimized away
1246 -gnatw.x warnings are now off by default
1247 Added conditional compilation Appendix
1248 Add documentation of -gnatI
1249 Add documentation for new -gnatyS style check
1250 Update documentation about SAL and auto-init on Windows.
1253 Add documentation for pragma Check_Name and 'Enabled attribute
1254 Document that Eliminate on dispatching operation is ignored
1255 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
1256 Document pragma Main
1257 Document pragma Implicit_Packing
1259 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
1260 different conventions
1261 New switch -gnatI to disable representation clauses
1263 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
1264 recognized, report the invalid characters including "-gnat" instead of
1265 just the first character in the switch.
1266 New switch -gnatI to disable representation clauses
1267 Set Warn_On_Object_Renames_Function true for -gnatg
1269 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
1270 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
1271 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
1272 to switch -aP (add directory to project search dir).
1274 * par-prag.adb: Implement new pragma Implicit_Packing
1276 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
1277 type as having a non-standard representation, to force expansion on
1278 conversion to related types.
1279 (Analyze_Pragma): Warn on misspelled pragma
1280 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
1281 Ensure consistent use of # in error messages
1282 Implement pragma Implicit_Packing
1284 2007-08-14 Olivier Hainque <hainque@adacore.com>
1285 Eric Botcazou <ebotcazou@adacore.com>
1287 * targtyps.c (get_target_maximum_default_alignment): New function.
1289 that the compiler might choose by default for a type or object.
1290 (get_target_default_allocator_alignment): New function. Alignment known
1291 to be honored by the target default allocator.
1292 (get_target_maximum_allowed_alignment): New function. Maximum alignment
1293 we might accept for any type or object on the target.
1294 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
1296 * gigi.h (get_target_maximum_default_alignment): Declare new function.
1297 (get_target_default_allocator_alignment): Likewise.
1298 (get_target_maximum_allowed_alignment): Likewise.
1301 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
1302 result of a function call, first try to use a stabilized reference for
1303 a constant renaming too.
1304 (validate_alignment): Use target_maximum_allowed_alignment instead of
1305 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
1306 (gnat_to_gnu_entity): Use common nodes directly.
1307 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
1308 alignment and size for the object.
1309 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
1310 and N_Procedure_Call_Statement.
1311 (takes_address): Rename to lvalue_required_p, add third parameter
1312 'aliased' and adjust recursive calls.
1313 <N_Indexed_Component>: Update 'aliased' from the array type.
1314 <N_Selected_Component>: New case.
1315 <N_Object_Renaming_Declaration>: New Likewise.
1316 (Identifier_to_gnu): Adjust for above changes.
1317 (maybe_stabilize_reference) <CONST_DECL>: New case.
1319 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
1320 between type variants.
1321 (build_simple_component_ref): Likewise.
1322 (build_call_alloc_dealloc): Use target_default_allocator_alignment
1323 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
1324 aligning type circuitry for allocations from the default storage pool.
1325 (build_allocator): Likewise.
1326 (build_simple_component_ref): Manually fold the reference for a
1327 constructor if the record type contains a template.
1329 * utils.c (value_zerop): Delete.
1330 (gnat_init_decl_processing): Emit debug info for common types.
1331 (rest_of_record_type_compilation): If a union contains a field
1332 with a non-constant qualifier, treat it as variable-sized.
1333 (finish_record_type): Give the stub TYPE_DECL a name.
1334 (rest_of_record_type_compilation): Likewise.
1335 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
1336 types are equivalent array types.
1337 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
1338 even if the type is not passed by reference.
1339 (static_ctors, static_dtors): Delete.
1340 (end_subprog_body): Do not record constructors and destructors.
1341 (build_global_cdtor): Delete.
1342 (gnat_write_global_declarations): Do not call build_global_cdtor.
1344 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
1345 -fRTS=rtp is specified.
1346 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
1349 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
1350 of the personality function with SJLJ exceptions.
1352 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
1353 the name of the personality function with SJLJ exceptions.
1355 2007-08-14 Robert Dewar <dewar@adacore.com>
1356 Ed Schonberg <schonberg@adacore.com>
1358 * par.ads, par.adb: Improve handling of extra right parens.
1359 (Par): Remove flag From_Limited_With_Clause.
1361 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
1362 Improve handling of extra right parens.
1364 2007-08-14 Robert Dewar <dewar@adacore.com>
1366 * par-tchk.adb (TF_Semicolon): Improve error recovery
1368 2007-08-14 Robert Dewar <dewar@adacore.com>
1369 Ed Schonberg <schonberg@adacore.com>
1371 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
1372 enumeration type, mark all literals as referenced.
1373 (Eval_Attribute, case 'Image): If the argument is an enumeration
1374 literal and names are available, constant-fold but mark nevertheless as
1376 Clean up function names.
1377 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
1379 (Requires_Simple_Name_Prefix): Removed.
1381 2007-08-14 Robert Dewar <dewar@adacore.com>
1382 Ed Schonberg <schonberg@adacore.com>
1384 * sem_ch11.adb: Improved warnings for unused variables
1386 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
1387 is a synchronized interface, the derived type is limited.
1388 (Analyze_Object_Declaration): Mark the potential coextensions in the
1389 definition and expression of an object declaration node.
1390 (Build_Derived_Type): For the completion of a private type declaration
1391 with a derived type declaration, chain the parent type's representation
1392 items to the last representation item of the derived type (not the
1393 first one) if they are not present already.
1394 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
1395 object declaration of forward references to tags.
1396 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
1397 subprogram types can appear as access discriminants of synchronized
1399 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
1400 given in prefixed form as a selected component.
1401 (Process_Discriminants): If not all discriminants have defaults, place
1402 error message on a default that is present.
1403 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
1404 extend a synchronized tagged type.
1405 Improved warnings for unused variables
1406 (Is_Visible_Component): Fix a visibility hole on a component inherited
1407 by a private extension when parent is itself declared as a private
1408 extension, and the derivation is in a child unit.
1409 (Find_Hidden_Interface): Move spec from the package body.
1411 2007-08-14 Robert Dewar <dewar@adacore.com>
1412 Ed Schonberg <schonberg@adacore.com>
1414 * sem_ch5.adb: Improve warnings on redundant assignments
1416 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
1418 (Is_Synchronized_Tagged_Type): New subprogram that returns true
1419 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
1420 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
1421 is set to False. Improves handling of Known_[Not_]Null.
1422 (Wrong_Type): Special case address arithmetic attempt
1423 (Collect_Abstract_Interfaces): Add new formal to allow collecting
1424 abstract interfaces just using the partial view of private types.
1425 (Has_Abstract_Interfaces): Add new formal to allow checking types
1426 covering interfaces using the partial view of private types.
1427 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
1428 component still needs to be defined in this case, but is never
1429 initialized as VMs are using other dispatching mechanisms.
1430 (Abstract_Interface_List): For a protected type, use base type to get
1432 Improve warnings on redundant assignments
1433 (Is_Variable): Handle properly an implicit dereference of a prefixed
1435 (Build_Actual_Subtype): If this is an actual subtype for an
1436 unconstrained formal parameter, use the sloc of the body for the new
1437 declaration, to prevent anomalises in the debugger.
1439 2007-08-14 Robert Dewar <dewar@adacore.com>
1441 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
1442 dispatching operation
1444 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1445 Gary Dismukes <dismukes@adacore.com>
1448 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
1449 expanded aggregate code before allocator, and ahead of declaration for
1450 temporary, to prevent access before elaboration when the allocator is
1451 an actual for an access parameter.
1452 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
1453 the TSD and the table of interfaces.
1454 (Convert_To_Assignments): Augment the test for delaying aggregate
1455 expansion for limited return statements to include the case of extended
1456 returns, to prevent creation of an unwanted transient scope.
1457 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
1458 (Expand_Array_Aggregate): Handle aggregates associated with
1459 statically allocated dispatch tables.
1460 (Expand_Record_Aggregate): Handle aggregates associated with
1461 statically allocated dispatch tables.
1462 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
1463 of anonymous access type.
1465 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1467 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
1468 is a variable that renames a slice, use the variable itself in the
1469 expannsion when the renamed expression itself may be modified between
1470 the declaration of the renaming and the array assignment.
1472 2007-08-14 Jerome Guitton <guitton@adacore.com>
1474 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
1475 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
1476 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
1477 New functions; dummy implementations.
1479 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
1480 functions, used to implement the multi-tasks mode routines on VxWorks.
1482 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
1484 binding to the VxWorks routines which have changed between VxWorks 5
1486 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
1487 which are not callable from a RTP.
1489 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
1490 implemented for the multi-tasks mode on VxWorks 5 and 6.
1492 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
1494 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
1497 2007-08-14 Vincent Celier <celier@adacore.com>
1499 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
1500 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
1501 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
1502 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
1503 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
1504 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
1505 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
1507 (Major_Id_Name): New function.
1508 mlib-tgt.ads/mlib.tgt.adb:
1509 (Library_Major_Minor_Id_Supported): New function, default returns True
1510 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
1511 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
1512 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
1513 Implementation of Library_Major_Minor_Id_Supported returns False
1515 (Clean_Library_Directory): If major/minor ids are supported, clean all
1517 Major update of the Project Manager and of the project aware tools,
1518 including gprmake, so that the same sources in the GNAT repository
1519 can be used by gprbuild.
1521 2007-08-14 Olivier Hainque <hainque@adacore.com>
1523 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
1524 (GCC_ZCX_Support): Switch to True.
1526 * s-intman-solaris.adb (Notify_Exception): Call
1527 Adjust_Context_For_Raise before raising, as expected for signal
1528 handlers in general.
1530 * s-intman-posix.adb (Notify_Exception): Remove declaration of
1531 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
1532 to other implementation bodies.
1534 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
1535 be visible by multiple implementation bodies.
1537 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
1538 only for conditions coming from hardware.
1539 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
1540 adjustments to signal context prior to exception raise from signal
1542 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
1544 Solaris section: (__gnat_adjust_context_for_raise): New function.
1545 Implementation of the machine context adjustments to perform prior to
1546 raise from a signal handler. Version for both sparc and x86.
1547 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
1548 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
1549 prior to raising as expected for any handler, before possible nested
1550 faults to make sure all the contexts in a chain have been adjusted by
1551 the time we propagate.
1553 2007-08-14 Pascal Obry <obry@adacore.com>
1555 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
1556 (SYSTEM_INFO): New record.
1557 (SetThreadIdealProcessor): New imported routine needed for supporting
1558 task_info pragma on Windows.
1560 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
1561 info can be applied to the current host.
1562 (Create_Task): Set the ideal processor if information is present.
1564 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
1565 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
1567 2007-08-14 Olivier Hainque <hainque@adacore.com>
1569 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
1570 stack size and initial stack pointer value for a given task.
1571 (Enter_Task): Get the stack attributes of the task we are entering and
1572 let the stack checking engine know about them.
1574 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
1575 Let the stack-checking engine know about the initial sp value and stack
1576 size associated with the current task.
1577 (Set_Stack_Info): If a stack base has been notified for the current
1578 task, honor it. Fallback to the previous less accurate method otherwise.
1580 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
1582 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1584 * sem_ch10.adb: Create a limited view of an incomplete type, to make
1585 treatment of limited views uniform for all visible declarations in a
1586 limited_withed package.
1587 Set flag indicating that a subprogram body for a child unit has a
1589 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
1590 separate declaration, remove the unit name from visibility after
1591 compilation, so that environment is clean for subsequent compilations.
1592 (Install_Limited_Context_Clauses): Do not install a
1593 limited_private_with_clause unless the current unit is a body or a
1595 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
1596 in the same fashion.
1597 (Install_Limited_Withed_Unit): Do not install a limited with clause if
1598 it applies to the declaration of the current package body.
1599 (Remove_Private_With_Clauses): If there is a regular with_clause for
1600 the unit, delete Private_With_Clause from context, to prevent improper
1601 hiding when processing subsequent nested packages and instantiations.
1603 2007-08-14 Jose Ruiz <ruiz@adacore.com>
1605 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
1606 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
1607 representing absolute path names.
1608 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
1610 * cstreams.c (__gnat_full_name for VxWorks): Use
1611 __gnat_is_absolute_path to detect whether we need to add the current
1612 directory to normalize the path.
1614 2007-08-14 Javier Miranda <miranda@adacore.com>
1617 a-tags.adb (Displace): Associate a message with the raised CE
1619 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
1620 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
1621 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
1623 (Default_Prim_Op_Count): Removed.
1624 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
1625 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
1626 Remove pragma Inline_Always.
1628 * rtsfind.ads (Default_Prim_Op_Count): Removed
1629 (Max_Predef_Prims): New entity
1630 (RE_Expanded_Name): Removed
1631 (RE_HT_Link): Removed
1632 (RE_Iface_Tag): Remmoved
1633 (RE_Ifaces_Table): Removed
1634 (RE_Interfaces_Array): Removed
1635 (RE_Interface_Data_Element): Removed
1636 (RE_Nb_Ifaces): Removed
1637 (RE_RC_Offset): Removed
1638 (RE_Static_Offset_To_Top): Removed
1640 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
1642 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
1643 Prim_Op_Count by Max_Predef_Prims.
1645 2007-08-14 Thomas Quinot <quinot@adacore.com>
1646 Vincent Celier <celier@adacore.com>
1648 * binde.adb (Elab_All_Links): Remove unnecessary call to
1649 Generic_Separately_Compiled (if a unit satisfies this predicate, there
1650 won't be an associated Afile).
1651 (Elab_All_Links): Fail if a referenced unit cannot be found
1654 Fix comments in bindgen regarding consistency checks done in Bcheck:
1655 the checks are made across units within a partition, not across several
1657 Fix generation of C binder file for VxWorks.
1659 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
1660 Generic_May_Lack_ALI, more descriptive of the current use of the
1661 predicate, and update documentation.
1663 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
1664 reorganization and documentation update for the case of predefined
1665 library generics (for which we do not reference an Afile).
1667 2007-08-14 Robert Dewar <dewar@adacore.com>
1669 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
1670 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
1671 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
1672 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
1673 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
1674 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
1675 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
1676 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
1677 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
1678 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
1679 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
1680 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
1681 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
1682 g-altcon.adb: Minor reformatting
1684 ada-tree.h: Delete empty line.
1686 ali.ads: Minor reformatting
1687 Clarification of comments.
1688 Minor spelling correction
1690 * exp_dbug.adb: Add Warnings Off to suppress new warning
1692 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
1695 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
1698 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
1700 * a-textio.ads: Reorder the standard input/output/error declarations
1703 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
1705 * par-ch2.adb: Recognize RM specially in errout
1706 Change 'R'M to RM in all error messages
1708 * scng.adb: Recognize RM specially in errout
1710 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
1711 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
1713 * s-direio.adb: Add missing routine header box.
1715 * sem_attr.ads: Add ??? comments
1717 * sem_eval.adb: Recognize RM specially in errout
1718 Change 'R'M to RM in all error messages
1720 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
1722 * s-tasinf.ads: Fix minor comment typo.
1724 * a-cihama.adb: Minor comment addition
1726 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
1729 * s-tasinf-tru64.ads: Fix minor comment typo.
1731 * itypes.ads: Comment update.
1733 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
1736 * argv.c: Added protection against null gnat_argv and gnat_envp.
1738 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
1739 warning message when Tolerate_Consistency_Errors is True.
1741 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
1742 Any_Id, as this subprogram is only applicable to *type* entities (it
1743 sets RM_Size). Instead initialize just Esize and Alignment.
1745 2007-08-14 Bob Duff <duff@adacore.com>
1747 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
1748 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
1749 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
1750 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
1751 a-coorse.ads (Next): Applied pragma Inline.
1752 Make all Containers packages Remote_Types (unless they are already
1754 (Previous): applied pragma Inline
1755 (Elements_Type): is now a record instead of an array
1757 2007-08-14 Thomas Quinot <quinot@adacore.com>
1759 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
1761 (Set_Item): When the new item is an element of the currently allocated
1762 table passed by reference, save a copy on the stack if we're going
1763 to reallocate. Also, in Table.Set_Item, make sure we test the proper
1764 variable to determine whether to call Set_Last.
1766 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
1767 symbols-vms.adb, symbols-processing-vms-alpha.adb,
1768 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
1769 some occurrences of the pattern
1771 T.Table (T.Last) := Value;
1772 with a cleaner call to
1775 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1776 Gary Dismukes <dismukes@adacore.com>
1777 Thomas Quinot <quinot@adacore.com>
1779 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
1780 derived type with interface progenitors use the analyzed formal as the
1781 parent of the actual, to create renamings for all the inherited
1782 operations in Derive_Subprograms.
1783 (Collect_Previous_Instances): new procedure within of
1784 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
1785 unit being loaded, to ensure that the generation of global symbols is
1786 consistent in different compilation modes.
1787 (Is_Tagged_Ancestor): New function testing the ancestor relation that
1788 takes progenitor types into account.
1789 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
1790 traversing over the primitives of the formal and actual types to locate
1791 any abstract subprograms of the actual type that correspond to a
1792 nonabstract subprogram of the formal type's ancestor type(s), and issue
1793 an error if such is found.
1794 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
1795 Instantiate_Package_Body, Instantiate_Subprogram_Body):
1796 Remove bogus guard around calls to Inherit_Context.
1797 (Reset_Entity): If the entity is the selector of a selected component
1798 that denotes a named number, propagate constant-folding to the generic
1799 template only if the named number is global to the generic unit.
1800 (Set_Instance_Env): Only reset the compilation switches when compiling
1801 a predefined or internal unit.
1803 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1805 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
1806 parameter to determine whether operation applies to the prefix.
1807 (Complete_Object_Operation): If actual has an access type and
1808 controlling formal is not an in_parameter, reject the actual if it is
1809 an access_to_constant type.
1810 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
1811 type, the candidate operations are found in the scope of declaration of
1812 the type, because the type has no primitive subprograms.
1813 (Analyze_Selected_Component): If prefix is class-wide, and root type is
1814 a private extension, only examine visible components before trying to
1815 analyze as a prefixed call.
1816 Change Entity_List to Type_To_Use, for better readability.
1817 (Has_Fixed_Op): Use base type when checking whether the type of an
1818 operator has a user-defined multiplication/division
1819 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
1820 user-defined operators are available for fixed-point types.
1822 2007-08-14 Thomas Quinot <quinot@adacore.com>
1823 Ed Schonberg <schonberg@adacore.com>
1825 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
1826 formal At_Any_Place indicating, when True, that we want to test for
1827 availability of the stream attribute at any place (as opposed to the
1828 current visibility context only).
1829 (Missing_Read_Write_Attributes): A stream attribute is missing for the
1830 purpose of enforcing E.2.2(8) only if it is not available at any place.
1831 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
1832 when checking the legality of an extension aggregate in a preelaborable
1833 package. Treat the literal null as a valid default expression in a
1834 component declaration for a type with preelaborable initialization.
1835 A limited interface is a legal progenitor for the designated type of a
1836 remote access to class-wide type.
1838 2007-08-14 Thomas Quinot <quinot@adacore.com>
1839 Ed Schonberg <schonberg@adacore.com>
1841 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
1842 reference): Use correct entity as denoted entity for the selector of
1844 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
1845 setting the Referenced_As_LHS flag for entities that are implicitly
1847 (Find_Type): If the type is an internally generated incomplete type,
1848 mark the full view as referenced, to prevent spurious warnings.
1849 (Find_Selected_Component, Has_Components): Handle properly non-limited
1850 views that are themselves incomplete types.
1851 Handle interfaces visible through limited-with clauses.
1852 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
1853 subprogram generic actual for which we have generated a renaming.
1854 Warn when the renaming introduces a homonym of
1855 the renamed entity, and the renamed entity is directly visible.
1857 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1858 Hristian Kirtchev <kirtchev@adacore.com>
1860 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
1861 appear in the subtree to the current allocator if it is not a static
1863 (Resolve_Allocator): Perform cleanup if resolution has determined that
1864 the allocator is not a coextension.
1865 (Resolve): Skip an interpretation hidden by an abstract operator only
1866 when the type of the interpretation matches that of the context.
1867 (Resolve): When looping through all possible interpretations of a node,
1868 do not consider those that are hidden by abstract operators.
1869 (Resolve_Actuals): When verifying that an access to class-wide object
1870 is an actual for a controlling formal, ignore anonymous access to
1871 subprograms whose return type is an access to class_wide type.
1872 (Resolve_Slice): If the prefix of the slice is a selected component
1873 whose type depends on discriminants, build its actual subtype before
1874 applying range checks on the bounds of the slice.
1875 (Valid_Conversion): In an instance or inlined body, compare root types,
1876 to prevent anomalies between private and public views.
1877 (Resolve): Improve error message for ambiguous fixed multiplication
1878 expressions that involve universal_fixed multiplying operations.
1880 2007-08-14 Javier Miranda <miranda@adacore.com>
1881 Hristian Kirtchev <kirtchev@adacore.com>
1883 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
1884 location to allow the correct generation of errors in case of
1885 restrictions applied to the expanded code.
1886 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
1887 function if the condition does not reference them.
1888 (Expand_Entry_Body_Declarations): Mark the index constant as having a
1891 2007-08-14 Thomas Quinot <quinot@adacore.com>
1893 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
1894 typecode parameters for a union (in a variant record), remove
1895 extraneous layer of Any wrapping for member label.
1896 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
1897 elabration statements, register the package with the name server
1898 at the beginning, not at the end, of the elaboration statements so
1899 that they can create remote access to subprogram values that designate
1900 remote subprograms from the package.
1902 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
1904 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
1905 values to compute the number of seconds since the Unix Epoc in order to
1906 account for Daylight Savings Time. Perform special processing for dates
1907 that are earlier than the Unix Epoc to obtain a negative number.
1909 2007-08-14 Emmanuel Briot <briot@adacore.com>
1911 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
1914 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
1916 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
1917 binder-generated file is not in Ada.
1918 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
1919 recorded in the ALI file.
1920 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
1922 2007-08-14 Vincent Celier <celier@adacore.com>
1924 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
1925 (Output_Source): Do nothing if parameter is No_Sdep_Id
1927 * make.adb (Gnatmake): Do not rebuild an archive simply because a
1928 shared library it imports has a later time stamp.
1929 (Check): Resolve the symbolic links in the path name of the object
1931 Check that the ALI file is in the correct object directory
1932 Check if a file name does not correspond to the mapping of units
1934 (Display_Version): New procedure
1935 (Initialize): Process switches --version and --help
1936 Use type Path_Name_Type for path name
1938 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
1940 * impunit.adb: Re-organize System.Random_Numbers and
1941 GNAT.Random_Numbers and add to builds.
1943 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
1945 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
1947 * a-assert.ads, a-assert.adb: New files.
1949 2007-08-14 Gary Dismukes <dismukes@adacore.com>
1951 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
1952 if AAMP_On_Target is True, then the size of the type encompasses two
1953 addresses (a static link and a subprogram address), except in the case
1954 of library-level access types.
1956 2007-08-14 Vincent Celier <celier@adacore.com>
1958 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
1960 (Write_Eol_Keep_Blanks): New procedure to write a line, including
1961 possible trailing spaces.
1962 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
1964 2007-08-14 Javier Miranda <miranda@adacore.com>
1966 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
1967 null-excluding access types.
1969 2007-08-14 Javier Miranda <miranda@adacore.com>
1971 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
1972 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
1973 of private types add missing check on matching interfaces in the
1974 partial and full declarations.
1975 (Analyze_Protected_Type): Code cleanup.
1976 (Analyze_Task_Type): Code cleanup.
1978 2007-08-14 Javier Miranda <miranda@adacore.com>
1980 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
1981 generated interface thunk.
1983 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1985 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
1986 obsolescent warning on application of 'Class to an incomplete type.
1988 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
1989 prevent obsolescent warning on application of 'Class to an incomplete
1992 2007-08-14 Pascal Obry <obry@adacore.com>
1994 * s-fileio.adb (Is_Open): Add check for usability of the underlying
1997 2007-08-14 Cyrille Comar <comar@adacore.com>
1999 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
2000 since it is potentially used in cases implying double finalization of
2003 2007-08-14 Jose Ruiz <ruiz@adacore.com>
2005 * s-tasini.adb (Get_Stack_Info): Move this function to
2006 System.Soft_Links.Tasking because it is common to the full and the
2007 restricted run times.
2008 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
2009 in SSL.Tasking.Init_Tasking_Soft_Links.
2011 * s-solita.adb (Get_Stack_Info): Function moved from
2012 System.Tasking.Initialization because it is common to the full and the
2013 restricted run times.
2014 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
2016 2007-08-14 Arnaud Charlet <charlet@adacore.com>
2018 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
2019 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
2020 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
2023 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
2026 2007-08-14 Gary Dismukes <dismukes@adacore.com>
2028 * s-veboop.adb (SU): New named number initialized to
2029 System.Storage_Unit.
2030 (True_Val): The initialization expression is revised to use SU (=
2031 Storage_Unit) rather than assuming 8 for the component size of an
2032 unpacked Boolean array.
2034 2007-08-14 Tristan Gingold <gingold@adacore.com>
2036 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
2038 * tb-ivms.c: New file.
2040 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
2042 2007-08-14 Geert Bosch <bosch@adacore.com>
2044 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
2045 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
2046 Add required linker pragmas for automatically linking with the gnalasup
2047 linear algebra support library, and the systems math library.
2048 Rename cdot to cdotu and zdot to zdotu.
2049 Update header comment to describe purpose of package.
2051 2007-08-14 Thomas Quinot <quinot@adacore.com>
2053 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
2054 an explicitly specified Associated_Final_Chain, use that list.
2055 (Expand_N_Package_Body): Build dispatch tables of library level tagged
2057 (Expand_N_Package_Declaration): Build dispatch tables of library level
2058 tagged types. Minor code cleanup.
2060 2007-08-14 Vincent Celier <celier@adacore.com>
2062 * gnatchop.adb (Terminate_Program): Remove exception and use
2063 Types.Terminate_Program instead.
2065 * osint.ads, osint.adb (Current_Exit_Status): New global variable
2066 (Find_Program_Name): Added protection against empty name.
2067 (OS_Exit_Through_Exception): New procedure
2069 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
2070 (OS_Exit_Default): New procedure that contains the previous
2071 implementation of procedure OS_Exit.
2072 (Final_Value): Remove obsolete Interix stuff.
2074 2007-08-14 Thomas Quinot <quinot@adacore.com>
2076 * g-socket.ads: Reorganize example code so that it also works on
2079 2007-08-14 Tristan Gingold <gingold@adacore.com>
2081 * g-trasym.ads: AIX now supports symbolic backtraces.
2083 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2085 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
2086 units being loaded to detect circularities. A circularity may be
2087 present even if the current chain of pending units to load starts from
2088 a limited_with_clause.
2090 * lib-load.ads: Change profile of Load_Unit to use a with_clause
2091 rather than a boolean flag, in order to detect circularities in
2094 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
2095 than propagating the From_Limited_With flag, in order to handle
2096 properly circularities involving with_clauses.
2098 2007-08-14 Nicolas Setton <setton@adacore.com>
2100 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
2103 2007-08-14 Arnaud Charlet <charlet@adacore.com>
2105 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
2106 to build for libgnala.
2107 libgnat: Add rules to build libgnala.a
2108 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
2109 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
2110 Add s-osinte-vxworks-kernel.adb to the target pairs of the
2111 kernel run-time lib for VxWorks 6, which would provide a different
2112 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
2113 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
2114 running ZCX by default.
2115 Add g-sttsne-locking to LynxOS version.
2116 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
2117 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
2119 * system-darwin-x86.ads: New file.
2121 * Make-lang.in: Delete files before copying onto them, so if they are
2122 read-only, the copy won't fail.
2125 2007-08-14 Pascal Obry <obry@adacore.com>
2127 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
2130 2007-08-14 Vincent Celier <celier@adacore.com>
2132 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
2133 (Gcc): Initialize Gcc_Name at the first call
2135 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2137 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
2138 with_clauses of the enclosing unit when analyzing the package
2139 specification of a nested instance.
2141 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
2143 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
2144 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
2145 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
2146 layout of N_Allocator.
2148 2007-08-14 Thomas Quinot <quinot@adacore.com>
2150 * rtsfind.adb (Check_RPC): Add PCS version check.
2152 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
2153 (Gnat_Free_Software): New function.
2155 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
2156 the PCS_Version value from s-parint, used to check that it is consistent
2157 with what exp_dist expects.
2159 * s-parint.ads (PCS_Version): New entity for checking consistency
2160 between exp_dist and PCS.
2162 * gen-soccon.c: (SO_REUSEPORT): New constant.
2164 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
2166 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
2167 variable Sub_Second to Duration in order to accomodate a larger range
2168 of arithmetic operations.
2170 2007-08-14 Bob Duff <duff@adacore.com>
2172 * g-sttsne-locking.ads: Move comments from spec to body.
2173 * g-sttsne-locking.adb: Move comments from spec to body.
2174 * g-sttsne-vxworks.ads: Removed.
2175 * g-sttsne-vxworks.adb: Removed.
2177 2007-08-11 Ian Lance Taylor <iant@google.com>
2179 * misc.c (gnat_get_alias_set): Change return type to
2182 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2184 * decl.c, utils2.c: Fix whitespace in last change.
2186 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2188 * decl.c (compare_field_bitpos): Constify.
2189 * utils2.c (compare_elmt_bitpos): Likewise.
2191 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
2193 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
2194 anonymous access type.
2195 (pthread_sigmask): Now take an access sigset_t.
2197 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
2199 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
2201 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
2203 PR tree-optimization/25737
2204 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
2206 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2208 * trans.c (Attribute_to_gnu): When subtracting an
2209 offset from a pointer, use POINTER_PLUS_EXPR with
2210 NEGATE_EXPR instead of MINUS_EXPR.
2211 (gnat_to_gnu): Likewise.
2212 * utils.c (convert): When converting between
2213 thin pointers, use POINTER_PLUS_EXPR and sizetype
2215 * utils2.c (known_alignment): POINTER_PLUS_EXPR
2216 have the same semantics as PLUS_EXPR for alignment.
2217 (build_binary_op): Add support for the semantics of
2218 POINTER_PLUS_EXPR's operands.
2219 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
2221 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
2223 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
2224 of get_signed_or_unsigned_type.
2225 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
2227 2007-06-11 Bob Duff <duff@adacore.com>
2228 Thomas Quinot <quinot@adacore.com>
2230 * g-stsifd-sockets.adb (Create): Work around strange behavior of
2231 'bind' on windows that causes 'connect' to fail intermittently, by
2232 retrying the 'bind'.
2233 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
2235 2007-06-10 Duncan Sands <baldrick@free.fr>
2237 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
2238 than to void, for the fields when making a new fat pointer type.
2239 (gnat_substitute_in_type): Now substitute_in_type.
2240 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
2241 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
2242 * utils.c (update_pointer_to): Update fat pointers by updating the
2243 dummy node pointers used for the fields.
2245 2007-06-06 Thomas Quinot <quinot@adacore.com>
2246 Bob Duff <duff@adacore.com>
2248 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
2249 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
2250 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
2251 constant Thread_Blocking_IO, always True by default, set False
2252 on a per-runtime basis.
2253 (Need_Netdb_Buffer): New constant.
2255 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
2256 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
2259 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
2260 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
2261 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
2262 child package Task_Safe_NetDB
2263 (Host_Error_Messages): Add stub body.
2264 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
2266 * g-soccon-mingw.ads: Add Windows-specific constants.
2267 (Need_Netdb_Buffer): New constant.
2268 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
2269 wrapper and import inet_addr(3) from the standard sockets library
2271 (In_Addr): Add alignment clause.
2272 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
2274 2007-06-06 Robert Dewar <dewar@adacore.com>
2276 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
2277 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
2278 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
2279 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
2280 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
2281 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
2282 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
2283 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
2284 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
2285 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
2286 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
2287 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
2288 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
2289 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
2290 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
2291 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
2292 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
2293 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
2294 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
2295 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
2296 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
2297 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
2298 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
2299 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
2300 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
2301 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
2302 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
2303 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
2304 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
2305 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
2306 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
2307 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
2308 Unchecked_* by Ada.Unchecked_*
2310 2007-06-06 Robert Dewar <dewar@adacore.com>
2312 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
2313 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
2314 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
2315 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
2316 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
2317 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
2319 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
2320 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
2321 s-tasloc.adb, s-tasloc.ads: New files.
2323 2007-06-06 Bob Duff <duff@adacore.com>
2326 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
2327 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
2328 (Send_Signal, Close): Raise Invalid_Process if the process id is
2330 (Pattern_Matcher_Access): Is now a general access type to be able to
2333 2007-06-06 Thomas Quinot <quinot@adacore.com>
2334 Arnaud Charlet <charlet@adacore.com>
2336 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
2337 (SIGEMT is now used instead of SIGTERM on AIX).
2339 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
2340 (Time_Slice_Supported): Set to True.
2341 Use SIGEMT instead of SIGTERM as SIGADAABORT.
2343 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
2345 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
2346 (Time, Time)): Use To_Relative_Time rather than manual calculation to
2347 express the bounds of Duration as Time. Raise Time_Error when the
2348 result is greater or equal to the higher bound of Duration (on the
2350 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
2352 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
2354 ("-" (Time, Time)): Reorder code.
2355 (All_Leap_Seconds): Removed.
2356 (Arithmetic_Operations.Add): Remove sign related kludge.
2357 (Arithmetic_Operations.Difference): Control the leaps seconds processing
2358 with flag Leap_Support.
2359 (Arithmetic_Operations.Subtract): Remove sign related kludge.
2360 (Check_Within_Time_Bounds): New procedure.
2361 (Clock): Control the leap seconds processing with flag Leap_Support.
2362 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
2363 (Formatting_Operations.Split): Control the leap seconds processing with
2365 (Formatting_Operations.Time_Of): Control the leaps seconds processing
2366 with flag Leap_Support. Adjust the year, month and day (if applicable)
2367 when the value of day seconds designates a new day.
2368 (Split): Use parameter associations for better readability. Integrate
2370 (Time_Of): Use parameter associations for better readability. Integrate
2373 * a-calfor.adb (Split): Use parameter associations for better
2374 readability. Integrate flag Is_Ada_05.
2375 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
2376 better readability. Integrate flag Is_Ada_05.
2378 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2380 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
2381 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
2382 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
2383 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
2384 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
2385 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
2386 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
2387 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
2388 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
2389 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
2390 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
2391 time when entering this routine to detect a backward clock setting
2392 (manual setting or DST adjustment), to avoid waiting for a longer delay
2394 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
2395 Remove handling of deferred priority change, and replace by setting the
2396 task priority directly, as required by AI-188.
2398 (Max_Task_Image_Length): New constant.
2399 Replace Warnings (Off) by Unreferenced pragma, cleaner.
2400 (Dynamic_Priority_Support): Removed, no longer needed.
2401 (Poll_Base_Priority_Change): Ditto.
2402 (Set_Ceiling): Add this procedure to change the ceiling priority
2403 associated to a lock. This is a dummy implementation because dynamic
2404 priority ceilings are not supported by the underlying system.
2406 * a-dynpri.adb (Set_Priority): Take into account case where Target is
2407 accepting a RV with its priority boosted.
2408 Remove handling of deferred priority change, and replace by setting the
2409 task priority directly, as required by AI-188.
2411 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
2413 Remove handling of deferred priority change, and replace by setting the
2414 task priority directly, as required by AI-188.
2415 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
2418 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
2419 (Poll_Base_Priority_Change): Removed.
2420 Code clean up: use SSL.Current_Target_Exception.
2422 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
2423 to run as this is a potentially dispatching point.
2424 (Call_Synchronous): Use Local_Defer_Abort.
2425 (Callable): Relax assertion.
2426 (Selective_Wait): Relax assertion in case abort is not allowed.
2427 Remove handling of deferred priority change, and replace by setting the
2428 task priority directly, as required by AI-188.
2430 * s-tasuti.adb (Make_Passive): Adjust assertions.
2431 Remove handling of deferred priority change, and replace by setting the
2432 task priority directly, as required by AI-188.
2434 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2436 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
2437 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
2438 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
2439 system-vxworks-mips.ads, system-vxworks-alpha.ads,
2440 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
2441 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
2442 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
2443 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
2444 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
2445 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
2446 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
2447 This patch changes the largest non-binary modulus from 2**31-1 to
2449 (Compiler_System_Version): Removed, no longer used.
2450 Clean up system files by removing flags only used on a single target.
2451 Also remove obsolete flags, only used during bootstrap from system.ads
2452 (Address): Add a pragma Preelaborable_Initialization.
2454 * system-aix.ads: Ditto.
2455 (GCC_ZCX_Support): Set to true.
2456 Update priority range on AIX and map Ada priorities to target
2457 priorities appropriately for different scheduling policies.
2459 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
2461 2007-06-06 Vincent Celier <celier@adacore.com>
2463 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
2464 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
2466 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
2467 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
2468 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
2469 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2470 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
2471 MLib.Tgt, containing the default versions of the exported subprograms.
2472 For each platform, create a specific version of the body of new child
2473 package MLib.Tgt.Specific that contains only the body of subprograms
2474 that are different from the default.
2475 (Archive_Builder_Append_Options): New function.
2477 2007-06-06 Matthew Gingell <gingell@adacore.com>
2479 * s-osinte-aix.adb: Map Ada priorities to target priorities
2480 appropriately for different scheduling policies.
2482 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2484 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
2486 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
2487 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
2489 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
2491 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
2492 Noop on VMS, added for interface commonality.
2494 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
2495 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2496 Olivier Hainque <hainque@adacore.com>
2498 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
2499 renamed expression of a full renaming at toplevel.
2500 (gnat_to_gnu_entity, case object): If not defining, do not look inside
2501 the values the constant is initialized to if it is an N_Allocator.
2502 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
2503 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
2504 (make_aligning_type): Accept an extra ROOM argument for storage to be
2505 made available before the aligned field, and an extra BASE_ALIGN
2506 argument for callers to pass the alignment guaranteed to be honored for
2507 the whole aligning object. Avoid call to finish_record_type, which only
2508 interferes with the sizes we want to set.
2509 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
2510 make_aligning_type for super-aligned objects on stack.
2511 (components_to_record): Pass the adjusted size of the type when creating
2512 fields in the qualified union for the variant part.
2513 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
2514 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
2516 (maybe_pad_type): Set TYPE_USER_ALIGN.
2517 (make_aligning_type): Likewise.
2518 ALIGN argument is unsigned int.
2519 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
2520 (gnat_to_gnu_param): Likewise, for parameters.
2521 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
2522 if it is constant and stems from a function call.
2523 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
2524 of the record is specified. Adjust accordingly.
2525 (adjust_packed): New static function.
2526 (gnat_to_gnu_field): Use it to adjust the packedness setting.
2527 (components_to_record): Likewise.
2528 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
2529 side-effects if the object is deemed constant.
2530 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
2531 type instead of merely finalizing it. Tidy.
2532 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
2533 <E_Access_Type>: Likewise.
2534 (defer_debug_incomplete_list): Rename to defer_finalize_list.
2535 (defer_debug_level): Delete.
2536 (gnat_to_gnu_entity) <debug_deferred>: Likewise
2537 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
2539 <E_Record_Type>: Do not explicitly defer finalizing the type.
2540 Adjust for write_record_type_debug_info renaming.
2541 <E_Subprogram_Type>: Likewise.
2542 Finalize deferred types right after deferred incomplete types are
2544 (rest_of_type_decl_compilation): New global function.
2545 (components_to_record): Rename defer_debug parameter to do_not_finalize.
2546 (components_to_record): Propagate the packedness to the fields of the
2547 qualified union type if there is a variant part.
2548 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
2549 instead of inline code to adjust the XUT field offsets.
2550 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
2551 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
2552 and write the debug info if the type derives from a discriminated one.
2553 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
2554 <E_Array_Subtype>: Likewise.
2555 <E_String_Literal_Subtype>: Likewise.
2556 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
2557 an alignment clause.
2558 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
2559 before giving warning.
2560 (prepend_one_attribute_to): New function, helper to prepend an attribute
2561 to an attribute list.
2562 (gnat_to_gnu_entity) <E_Procedure>: Use it.
2563 (prepend_attributes): Likewise.
2564 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
2565 <E_Array_Type>: Declare the padding type for the element type, if any.
2566 <E_Array_Subtype>: Likewise.
2567 (defer_limited_with): New variable.
2568 (Gigi_Equivalent_Type): New function.
2569 (gnat_to_gnu_entity): Use it at start and use result throughout.
2570 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
2571 Gigi_Equivalent_Type, support Limited_With, allow two levels of
2572 indirection, precompute if unconstrained array to simplify logic, and
2573 use defer_limited_with to defer elaboration of some types from limited
2575 (finalize_from_with_types): New function.
2577 2007-06-06 Gary Dismukes <dismukes@adacore.com>
2578 Eric Botcazou <ebotcazou@adacore.com>
2579 Tristan Gingold <gingold@adacore.com>
2580 Olivier Hainque <hainque@adacore.com>
2582 * trans.c (Identifier_to_gnu): Change test for deferred constant by
2583 adding guard that the entity is an E_Constant before testing presence
2584 of Full_view (and remove unnecessary test that entity is not a type).
2585 For a CONST_DECL used by reference, manually retrieve
2586 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
2587 (struct language_function): Move from utils.c to here.
2588 (struct parm_attr): New structure.
2589 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
2590 (f_parm_attr_cache): New macro.
2591 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
2592 expressions for the 'First, 'Last and 'Length attributes of the
2593 unconstrained array IN parameters.
2594 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
2595 Allocate the information structure for the function earlier, as well
2596 as the language-specific part.
2597 If the parameter attributes cache has been populated, evaluate the
2598 cached expressions on entry.
2599 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
2600 N_Procedure_Call_Statement and N_Indexed_Component.
2601 (Pragma_to_gnu): Translate inspection_point to an asm statement
2602 containaing a comment and a reference to the object (either its address
2603 for BLKmode or its value).
2604 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
2605 to go to DECL_INITIAL. Together with the size constraint relaxation
2606 in create_var_decl, enlarges the set of situations in which an
2607 identifier may be used as an initializer without implying elaboration
2609 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
2610 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
2612 (maybe_stabilize_reference): Remove lvalues_only parameter.
2613 (gnat_stabilize_reference): Adjust for above change.
2614 (gnat_to_gnu): Do not set location information on the result
2615 if it is a reference.
2616 (add_cleanup): Add gnat_node parameter and set the location of the
2618 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
2619 (Exception_Handler_to_gnu_zcx): Likewise.
2620 (gigi): Remove the cgraph node if the elaboration procedure is empty.
2621 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
2622 the former right after the latter.
2623 (start_stmt_group): Make global.
2624 (end_stmt_group): Likewise.
2625 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
2627 (gnu_program_error_label_stack): Likewise.
2628 (gigi): Initialize them.
2629 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
2630 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
2632 (push_exception_label_stack): New function.
2633 (takes_address): New function.
2635 * utils.c (struct language_function): Move to trans.c from here.
2636 (unchecked_convert): Do not wrap up integer constants in
2638 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
2639 the latter for aggregate types, unexpected by later passes, and relax an
2640 arbitrary size constraint on the former.
2641 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
2642 to compare the sizes.
2643 (convert_vms_descriptor): When converting to a fat pointer type, be
2644 prepared for a S descriptor at runtime in spite of a SB specification.
2645 (shift_unc_components_for_thin_pointers): New function.
2646 (write_record_type_debug_info): For variable-sized fields, cap the
2647 alignment of the pointer to the computed alignment.
2648 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
2649 If REP_LEVEL is 2, do not compute the sizes.
2650 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
2651 (build_unc_object_type): Likewise.
2652 (declare_debug_type): New function.
2654 * ada-tree.def: USE_STMT: removed (not emitted anymore).
2656 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
2657 no statement is expandable anymore.
2658 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
2659 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
2660 when the user requested it explicitely.
2661 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
2663 (get_alias_set): Return alias set 0 for a type if
2664 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
2666 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
2667 (DECL_FUNCTION_STUB): New accessor macro.
2668 (SET_DECL_FUNCTION_STUB): New setter macro.
2670 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
2672 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
2675 2007-06-06 Jose Ruiz <ruiz@adacore.com>
2677 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
2678 Rename to Abort_Task_Interrupt to be able to keep the same interface
2679 as the rest of the targets.
2681 * s-osinte-vxworks.ads s-osinte-vxworks.adb
2682 (To_VxWorks_Priority): Remove explicit "in" mode indicator
2684 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
2687 2007-06-06 Robert Dewar <dewar@adacore.com>
2689 * a-chahan.ads: Remove obsolescent pragmas
2691 * a-chlat1.ads: Minor reformatting
2693 2007-06-06 Robert Dewar <dewar@adacore.com>
2695 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
2698 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
2701 * errout.ads (Finalize): Changed interface
2702 (Output_Messages): New procedure
2703 (Compilation_Errors): New Interface
2705 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
2706 Finalize/Output_Messages interface for Errout
2707 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
2710 2007-06-06 Thomas Quinot <quinot@adacore.com>
2711 Olivier Hainque <hainque@adacore.com>
2712 Robert Dewar <dewar@adacore.com>
2714 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
2716 (Raise_Current_Excep): Call Debug_Raise_Exception just before
2717 propagation starts, to let debuggers know about the event in a reliable
2719 (Local_Raise): Moved to System.Exceptions
2720 More convenient to have this as a separate unit
2722 * s-except.adb, s-except.ads: New files.
2724 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
2725 Debug_Unhandled_Exception in System.Exceptions where it belongs
2726 together with a couple of other debug helpers.
2727 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
2728 the former Unhandled_Exception.
2730 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
2731 (Warn_No_Exception_Propagation): New procedure
2732 (Warn_If_No_Propagation): Rewritten for new warning generation
2733 (Expand_Exception_Handlers): New warning generation
2734 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
2735 (Add_Exception_Label): Use Special_Exception_Package_Used for test
2736 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
2737 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
2738 even if restriction is set (makes life easier in Check_Returns)
2739 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
2740 checking exception identities.
2741 (Expand_Local_Exception_Handlers): Do not optimize when all others case
2742 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
2743 block for handler (used by Check_Returns)
2744 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
2745 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
2746 remove all exception handlers when optimizing local raise statements.
2747 (Find_Local_Handler): Use Get_Renamed_Entity
2748 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
2749 marked analyzed after expanding exception handlers, do not generate
2750 redundant cleanup actions, because they have been constructed already.
2752 2007-06-06 Thomas Quinot <quinot@adacore.com>
2754 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
2755 presence of this categorization pragma is mandated by the language.
2756 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
2759 2007-06-06 Vincent Celier <celier@adacore.com>
2760 Robert Dewar <dewar@adacore.com>
2762 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
2763 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
2764 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
2765 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
2766 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
2767 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
2768 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
2769 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
2770 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
2771 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
2772 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
2774 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
2775 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
2776 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
2777 Use variables of types File_Name_Type and Unit_Name_Type in error
2779 (Get_Name): Add parameter Ignore_Special, and set it reading file name
2780 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
2782 Define flags Flag217-Flag230 with associated subprograms
2783 (Flag_Word5): New record type.
2784 (Flag_Word5_Ptr): New access type.
2785 (To_Flag_Word5): New unchecked conversion.
2786 (To_Flag_Word5_Ptr): Likewise.
2787 (Flag216): New function.
2788 (Set_Flag216): New procedure.
2790 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2792 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
2795 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
2797 2007-06-06 Javier Miranda <miranda@adacore.com>
2799 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
2801 (Object_Specific_Data_Array): This is now internal to the package.
2802 (Object_Specific_Data): This is now internal to the package.
2803 (Select_Specific_Data_Element): This is now internal to the package.
2804 (Select_Specific_Data_Array): This is now internal to the package.
2805 (Select_Specific_Data): This is now internal to the package.
2806 (Offset_To_Top_Function_Ptr): This is now public.
2807 (To_Offset_To_Top_Function_Ptr): Removed.
2808 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
2809 local to subprogram Offset_To_Top.
2810 (Predefined_DT): Removed.
2811 (Typeinfo_Ptr): Removed.
2812 (OSD): This function is now internal to this package.
2813 (SSD): This function is now internal to this package.
2814 (DT): New function that displaces the pointer to the table of primitives
2815 to get access to the enclosing wrapper record.
2816 (IW_Membership): Code cleanup.
2817 (Offset_To_Top): Code cleanup.
2818 (Predefined_DT): Removed.
2819 (Register_Interface_Tag): Removed.
2820 (Set_Interface_Table): Removed.
2821 (Set_Offset_Index): Removed.
2822 (Set_Offset_To_Top): Code cleanup.
2824 (Set_Signature): Removed.
2826 (Set_Tagged_Kind): Removed.
2827 (Typeinfo_Ptr): Removed.
2829 (Displace): Add missing check on null actual.
2831 * exp_disp.ads, exp_disp.adb
2832 (Select_Expansion_Utilities): Removed.
2833 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
2834 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
2835 the interface requires a new parameter.
2836 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
2837 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
2838 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
2839 Done to remove package Select_Expansion_Utilities.
2840 (Make_DT): New implementation for statically allocated dispatch tables.
2841 (Make_Secondary_DT): Moved to the scope of Make_DT.
2842 (Register_Primitive): Code cleanup plus incoporate the use of the new
2843 function DT_Address_Attribute.
2844 (Expand_Interface_Thunk): The profile of this subprogram has been
2845 changed to return the Thunk_Id and the corresponding code.
2846 (Fill_DT_Entry): Removed. Its functionality is now provided by
2847 subprogram Register_Primitive.
2848 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
2849 subprogram Register_Primitive.
2850 (Register_Primitive): New subprogram that incorporates the previous
2851 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
2852 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
2853 was only required to call Make_DT_Access_Action, which is now removed.
2854 (Ada_Actions): Removed
2855 (Action_Is_Proc): Removed
2856 (Action_Nb_Arg): Removed
2857 Replace all the calls to Make_DT_Access_Action by direct calls to
2858 Make_Procedure_Call_Statement or Make_Function_Call.
2859 (Set_DTC_Entity_Value): New subprogram.
2860 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
2861 (Expand_Interface_Thunk): Add missing support for primitives that are
2862 functions with a controlling result (case in which there is no need
2863 to generate the thunk).
2865 * exp_atag.ads, exp_atag.adb
2866 (Build_DT): New subprogram that displaces the pointer to reference the
2867 base of the wrapper record.
2868 (Build_Typeinfo_Offset): Removed.
2869 (RTE_Tag_Node): Removed.
2870 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
2871 (Build_Get_RC_Offset): Removed.
2872 (Build_Inherit_Predefined_Prims): Removed.
2873 (Build_Inherit_TSD: Removed.
2874 (Build_New_TSD): Removed.
2875 (Build_Set_External_Tag): Removed.
2876 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
2877 (Build_Set_Prim_Op_Address): Add documentation.
2878 (Build_Set_TSD): Removed.
2880 * rtsfind.ads, rtsfind.adb
2881 (Load_Fail): If load fails and we are not in configurable run-time
2882 mode, then raise Unrecoverable_Error.
2883 (Text_IO_Kludge): Generate an error message if a run-time library is
2884 not available in a given run-time (ie. zfp run-time).
2885 (RTE_Record_Component): Add code to check that the component we search
2886 for is not found in two records in the given run-time package.
2887 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
2888 (RE_DT_Predef_Prims_Offset): New entity
2889 (RE_Static_Offset_To_Top): New entity
2890 (RE_HT_Link): New entity.
2891 (System_Address_Image): Addition of this run-time package.
2892 (RE_Address_Image): New entity.
2893 (RE_Abstract_Interface): Removed.
2894 (RE_Default_Prim_Op_Count): Removed.
2895 (RE_DT_Entry_Size): Removed.
2896 (RE_DT_Min_Prologue_Size): Removed.
2897 (RE_DT_Prologue_Size): Removed.
2898 (RE_Ifaces_Table_Ptr): Removed.
2899 (RE_Interface_Data_Ptr): Removed.
2900 (RE_Type_Specific_Data): Removed.
2901 (RE_Primary_DT): Removed.
2902 (RE_Register_Interface_Tag): Removed.
2903 (RE_Set_Offset_Index): Removed.
2904 (RE_Set_OSD): Removed.
2905 (RE_Set_SSD): Removed.
2906 (RE_Set_Signature): Removed.
2907 (RE_Set_Tagged_Kind): Removed.
2908 (RE_Address_Array): New entity.
2909 (RE_DT): New entity.
2910 (RE_Iface_Tag): New entity.
2911 (RE_Interfaces_Table): New entity.
2912 (RE_No_Dispatch_Table): New entity.
2913 (RE_NDT_Prims_Ptr): New entity.
2914 (RE_NDT_TSD): New entity.
2915 (RE_Num_Prims): New entity.
2916 (RE_Offset_To_Top_Function_Ptr): New entity.
2917 (RE_OSD_Table): New entity.
2918 (RE_OSD_Num_Prims): New entity.
2919 (RE_Predef_Prims): New entity
2920 (RE_Predef_Prims_Table_Ptr): New entity.
2921 (RE_Primary_DT): New entity.
2922 (RE_Signature): New entity.
2923 (RE_SSD): New entity.
2924 (RE_TSD): New entity.
2925 (RE_Type_Specific_Data): New entity.
2926 (RE_Tag_Kind): New entity.
2928 2007-06-06 Thomas Quinot <quinot@adacore.com>
2930 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
2931 C imported variable.
2932 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
2935 2007-06-06 Robert Dewar <dewar@adacore.com>
2937 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
2940 2007-06-06 Vincent Celier <celier@adacore.com>
2942 * a-tifiio.adb (Put, internal): For negative numbers, check that there
2943 is room for at least one digit and the minus sign.
2944 (Put.Put_Character): Never put a character outside of the range of
2947 2007-06-06 Olivier Hainque <hainque@adacore.com>
2948 Eric Botcazou <ebotcazou@adacore.com>
2950 * utils2.c (build_allocator): Provide the extra arguments to
2951 make_aligning_type for super-aligned objects allocated from the default
2952 pool. Leave enough room for a pointer before the aligning field, and
2953 store the system's allocator return value there.
2954 (build_call_alloc_dealloc): When releasing a super-aligned object,
2955 retrieve the system's allocator return value from where build_allocator
2956 has stored it, just ahead of the adjusted address we are passed.
2957 (build_call_raise): Handle properly the generation of line numbers when
2958 the node is marked No_Location.
2959 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
2960 by using DECL_UID on ties.
2961 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
2963 (build_call_raise): Handle converting exception into goto; support new
2965 (build_component_ref): Add new arg to build_call_raise.
2967 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
2969 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
2970 "." in the case of nnn.xxx when nnn terminates with an underscore.
2971 Parse the remaining "#" or ":" in the case of nnn#.xxx#
2973 2007-06-06 Robert Dewar <dewar@adacore.com>
2975 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
2977 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2978 Vincent Celier <celier@adacore.com>
2979 Robert Dewar <dewar@adacore.com>
2981 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
2983 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
2984 ((destructor)) for adafinal, even when switch -a is used.
2985 Do not issue pragma Linker_Destructor for adafinal when switch -a is
2987 (Gen_Object_Files_Options): Add formatting of Linker Options, when
2988 Output_Linker_Option_List is set. Suppress this formatting when
2989 Zero_Formatting is set.
2990 Add case for CLI_Target.
2991 (System_Restrictions_Used): New flag, used to avoid generating with of
2992 System_Restrictions and initialization of the data unless there is
2993 some use of System.Restrictions in the partition.
2994 (Check_System_Restrictions_Used): New procedure
2996 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
2997 since we only with this unit in the binder file if it is used elsewhere
3000 2007-06-06 Vincent Celier <celier@adacore.com>
3002 * bindusg.adb: Add line for @<response file>
3003 Add lines for new switches -R and -Z
3005 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
3006 hierarchy in the list of files of the closure when -R is used
3007 (Gnatbind): Accept arguments starting with '@' to indicate response
3008 files and take the arguments from the response files.
3009 If List_Closure is set, display the referenced files
3011 2007-06-06 Javier Miranda <miranda@adacore.com>
3012 Robert Dewar <dewar@adacore.com>
3013 Ed Schonberg <schonberg@adacore.com>
3015 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
3016 which the address-clause is applied to in-mode actuals (allowed by
3018 (Apply_Discriminant_Check): Do not generate a check if the type is
3019 constrained by a current instance.
3020 (Activate_Division_Check): New procedure
3021 (Activate_Overflow_Check): New procedure
3022 (Activate_Range_Check): New procedure
3023 Call these new Activate procedures instead of setting flags directly
3024 (Apply_Array_Size_Check): Removed, no longer needed.
3025 Code clean up: remove obsolete code related to GCC 2.
3026 (Get_E_Length): Protect against bomb in case scope is standard
3027 (Selected_Range_Checks): If the node to be checked is a conversion to
3028 an unconstrained array type, and the expression is a slice, use the
3029 bounds of the slice to construct the required constraint checks.
3030 Improve NOT NULL error messages
3031 (Apply_Constraint_Check): If the context is a null-excluding access
3032 type, diagnose properly the literal null.
3034 2007-06-06 Pascal Obry <obry@adacore.com>
3036 * clean.adb (Clean_Archive): Use untouched casing for the archive name
3037 and the corresponding .deps file.
3038 (Clean_Interface_Copy_Directory): Use untouched casing for the library
3039 src directory. Minor code-clean-up. Use untouched casing for files
3040 read into the library src dir.
3041 (Clean_Library_Directory): Idem.
3042 (Parse_Cmd_Line): Accept new switch -aP
3044 2007-06-06 Javier Miranda <miranda@adacore.com>
3045 Ed Schonberg <schonberg@adacore.com>
3046 Robert Dewar <dewar@adacore.com>
3047 Eric Botcazou <ebotcazou@adacore.com>
3048 Arnaud Charlet <charlet@adacore.com>
3050 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
3051 applicable to types that have the With_Type flag set. Returns the
3052 non-limited view of the type, if available, otherwise the type itself.
3053 For class-wide types, there is no direct link in the tree, so we have
3054 to retrieve the class-wide type of the non-limited view of the Etype.
3055 New attributes Static_Initialization and Static_Elaboration_Desired.
3056 Remove the pragma Thread_Body, and the associated flag
3057 Is_Thread_Body in entities, and all related code.
3058 (Suppress_Value_Tracking_On_Call): New flag
3059 E_Exception has Esize and Alignment fields
3060 (Universal_Aliasing): New function.
3061 (Set_Universal_Aliasing): New procedure.
3062 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
3063 (Check_Nested_Access): New procedure.
3064 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
3065 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
3066 (Related_Interface): New attribute. Present in dispatch table pointer
3067 components of records. Set to point to the entity of the corresponding
3069 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
3070 (Original_Access_Type): Remove, not needed.
3071 (Root_Type): Handle properly subtypes of class-wide-types.
3074 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
3075 class-wide types visible through limited-with clauses.
3076 (Try_Primitive_Operation): When examining all primitive operations of a
3077 tagged type, do not consider subprograms labeled as hidden unless they
3078 belong to a private generic type with a tagged parent.
3079 (Try_Object_Operation): Extensive rewriting, to handle properly various
3080 overloading cases, when several ancestors may have class-wide operations
3081 that are possible candidates, and when the overloaded functions return
3082 array types and have defaulted parameters so that the call may be
3083 interpreted as an indexing.
3084 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
3085 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
3086 successive actuals before analyzing the call itself.
3087 (Try_Primitive_Operation): A primitive operation is compatible with the
3088 prefix if the prefix has a synchronized type and the type of the formal
3089 is its corresponding record, as can be the case when the primitive
3090 operation is declared outside of the body of the type.
3091 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
3092 perform homonym traversal, looking for class-wide operation matches
3093 (formerly done in statements of Try_Class_Wide_Operation). Matches on
3094 access parameters are now restricted to anonymous access types.
3095 (Mark_Allocator): An allocator with a discriminant association parent is
3097 (Try_One_Prefix_Interpretation): If the type of the object is
3098 incomplete, as can be happen when it is a limited view obtained through
3099 a limited_with_clause, the selected component is not part of a prefixed
3101 (Complete_Object_Operation): Diagnose properly an object that is not
3102 aliased when the corresponding controlling formal is an access
3104 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
3105 ambiguous calls in prefixed notation, where two primitives differ only
3106 in that the controlling argument of one is an access parameter.
3108 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
3109 whether a function that returns an unconstrained type can be inlined.
3110 (Process_Formals): Diagnose properly the illegal use of an incomplete
3111 type in the profile of an access_to_subprogram declaration.
3112 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
3113 operations are attached to the corresponding record.
3114 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
3115 When processing a primitive of a concurrent type which implements an
3116 interface change the type of all controlling formals to that of the
3117 corresponding record type.
3118 (Check_Synchronized_Overriding): Relax the conditional logic when trying
3119 to determine the tagged type to which a primitive belongs.
3120 (Check_Conventions): Capture condition to ignore a primitive operation
3121 (which is shared between the loop in Check_Conventions and the one in
3122 Check_Convention) in a new local function Skip_Check.
3123 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
3124 confusion with Check_Conventions' own Prim_Op local variable.
3125 (Create_Extra_Formals): Test for a tagged result type rather than a
3126 controlling result when determining whether to add a BIP_Alloc_Form
3127 formal and a BIP_Final_List formal to the function.
3128 (Check_Conformance); For parameters that are anonymous access types,
3129 subtype conformance requires that the not null and the constant
3130 indicators must match
3131 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
3132 to retrieve the appropriate type when processing a concurrent type
3133 declared within a generic. Minor comment reformatting. Change invocation
3134 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
3136 (Analyze_Subprogram_Body): If the return type of a function is an
3137 anonymous access to the limited view of a class-wide type, and the
3138 non-limited view of the type is available, update the type of the
3139 function so that code can be generated.
3140 (Process_Formals): In case of access-subtype itype whose designated
3141 type is also an itype (situation that happens now with access to
3142 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
3143 attribute to avoid backend problems.
3144 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
3145 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
3146 anonymous types' designated types are same before testing
3147 Subtypes_Statically_Match.
3148 (Create_Extra_Formals): Test for a named access parameter that is a
3149 controlling formal as an additional condition for adding an
3150 accessibility level formal. This can occur in the subp type created for
3151 dispatching calls in Expand_Dispatching_Call, and allows calling
3152 Create_Extra_Formals from that procedure rather than special-casing the
3153 extra formals there.
3154 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
3155 when the function has a controlling result.
3156 (Check_Returns): Add much more knowledge of the optimization of local
3157 raise statements to gotos, to retain proper warnings in this case.
3158 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
3159 nodes when looking for last statement.
3161 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
3162 class-wide types visible through limited with clauses.
3163 (Add_One_Interp): If the operands are anonymous access types, the
3164 predefined operator on universal_access is immediately visibles
3165 (Find_Unique_Type): Handle anonymous access to subprogram types just as
3166 other anonymous access types.
3167 (Disambiguate): Take into account CIL convention.
3168 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
3170 2007-06-06 Robert Dewar <dewar@adacore.com>
3172 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
3173 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
3174 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
3175 Fix lower bound of tables.
3178 * nlists.adb: Ditto.
3179 (Prev_Node, Next_Node): Change index type to Int so that it properly
3180 covers the range First_Node_Id - 1 up.
3182 2007-06-06 Javier Miranda <miranda@adacore.com>
3183 Ed Schonberg <schonberg@adacore.com>
3184 Bob Duff <duff@adacore.com>
3185 Hristian Kirtchev <kirtchev@adacore.com>
3187 * exp_aggr.ads, exp_aggr.adb:
3188 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
3189 in extension aggregates.
3190 (Flatten): Other conditions being met, an aggregate is static if the
3191 low bound given by component associations is different from the low
3192 bound of the base index type.
3193 (Packed_Array_Aggregate_Handled): If the component type is itself a
3194 packed array or record, the front-end must expand into assignments.
3195 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
3196 Init_Pr, instead of Ancestor_Is_Expression.
3197 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
3198 coextension chain root, either generate a list controller or use the
3199 already existing one.
3200 (Static_Array_Aggregate): New procedure to construct a positional
3201 aggregate that can be handled by the backend, when all bounds and
3202 components are compile-time known constants.
3203 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
3204 types covering interface types into assignments.
3205 (Replace_Type): move to Build_Record_Aggr_Code.
3206 (Expand_Record_Aggr_Code): if the target of the aggregate is an
3207 interface type, convert to the definite type of the aggregate itself,
3208 so that needed components are visible.
3209 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
3210 components and the context is an extended return statement do not
3211 create a transient block for it, to prevent premature finalization
3212 before the return is executed.
3213 (Gen_Assign): Do not generate a call to deep adjust routine if the
3214 component type is itself an array of controlled (sub)-components
3215 initialized with an inner aggregate.
3216 (Component_Check): New name for Static_Check. This name is now more
3217 appropriate, and documentation is added which was missing.
3218 (Component_Check): Add test for bit aligned component value
3219 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
3220 Tagged_Comps, name is more appropriate given added function below.
3221 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
3223 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
3224 Javier Miranda <miranda@adacore.com>
3225 Robert Dewar <dewar@adacore.com>
3227 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
3228 Terminated: Add unchecked type conversion from System.Address to
3229 System.Tasking.Task_Id when calling the predefined primitive
3231 Disable new Ada 05 accessibility check for JVM.NET targets, which
3232 cannot be implemented in a practical way.
3233 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
3234 the sources always references the tag of the actual object. Therefore,
3235 if 'Tag is applied in the sources to class-wide interface objects we
3236 generate code that displaces "this" to reference the base of the object.
3237 (Expand_N_Attribute_Reference, case Size): Return specified size if
3239 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
3240 has code that displaces the pointer of the object to manage interface
3241 types. However this code must not be executed when the prefix is a
3242 subprogram. This bug caused the wrong expansion of the internally
3243 generated assignment that fills the dispatch table when the primitive
3244 is a function returning a class-wide interface type.
3245 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
3246 Set_Attribute_Name for Name_Unaligned_Valid.
3248 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3249 Gary Dismukes <dismukes@adacore.com>
3251 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
3252 If the initialization is the equivalent aggregate of the initialization
3253 procedure of the type, do not remove it.
3254 (Expand_N_Attribute_Definition_Clause): Exclude access variables
3255 initialized to null from having their expression reset to empty and
3256 note this exception in the comment.
3258 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
3259 Robert Dewar <dewar@adacore.com>
3260 Ed Schonberg <schonberg@adacore.com>
3261 Gary Dismukes <dismukes@adacore.com>
3263 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
3264 Add "with" and "use" clauses for Sem_Attr.
3265 (Expand_Current_Value): Do not replace occurences of attribute
3266 references where the prefix must be a simple name.
3268 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
3269 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
3270 Attribute_Requires_Simple_Name_Prefix.
3271 (Name_Modifies_Prefix): Body of new function.
3272 (Requires_Simple_Name_Prefix): Body of new function.
3273 (Resolve_Attribute, case Access): Improve error message for case of
3274 mismatched conventions.
3275 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
3277 (Analyze_Attribute, case 'Access): If the type of the prefix is a
3278 constrained subtype for a nominal unconstrained type, use its base type
3279 to check for conformance with the context.
3280 (Resolve_Attribute): Remove test of the access type being associated
3281 with a return statement from condition for performing accessibility
3282 checks on access attributes, since this case is now captured by
3283 Is_Local_Anonymous_Access.
3284 (Analyze_Access_Attribute): Set Address_Taken on entity
3285 (Analyze_Attribute, case Address): Set Address_Taken on entity
3286 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
3287 validating an access attribute whose prefix is a current instance.
3288 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
3289 applied to dispatching operations, if freezing is required then we set
3290 the attribute Has_Delayed_Freeze in the prefix's entity.
3291 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
3292 current scope if access of local subprogram taken
3293 (Analyze_Access_Attribute): Check legality of self-reference even if the
3294 expression comes from source, as when a single component association in
3295 an aggregate has a box association.
3296 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
3297 the prefix if it is a protected operation and the attribute is
3298 Unrestricted_Access.
3299 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
3300 reference to the base type of the context, to force a constraint check
3301 when the context is an access subtype with an explicit constraint.
3302 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
3303 node is rewritten as an interface conversion. leave unanalyzed after
3304 resolution, to ensure that type checking against the context will take
3307 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3308 Javier Miranda <miranda@adacore.com>
3309 Robert Dewar <dewar@adacore.com>
3311 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
3312 wrapper when the full view of the controlling type of an inherited
3313 function that dispatches on result implements interfaces.
3314 (Expand_N_Object_Declaration): In cases where the type of the
3315 declaration is anonymous access, create finalization list for it.
3316 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
3317 if the object has no explicit initialization, to match description of
3318 functionality of pragam Persistent_BSS.
3319 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
3320 new function to build static aggregates, to replace initialization call
3321 when static initialization is desired.
3322 (Freeze_Type): Generate a list controller for an access type whenever
3323 its designated type has controlled anonymous access discriminants.
3324 (Build_Equivalent_Aggregate): New procedure to compute a static
3325 aggregate to be used as default initialization for composite types,
3326 instead of a generating a call to the initialization procedure for the
3328 (Build_Initialization_Call): When available, replace a call to the
3329 initialization procedure with a copy of the equivalent static aggregate
3331 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
3332 declarations for objects of a class-wide interface type, rather than
3333 just identifiers, to prevent visibility problems.
3334 (Expand_N_Object_Declaration): When expanding the declaration for an
3335 object of a class-wide interface type, preserve the homonym chain of
3336 the original entity before exchanging it with that of the generated
3337 renaming declaration.
3338 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
3339 active, because there is no way to handle the exception.
3340 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
3341 to do a minimum decoration of the Access_Disp_Table list.
3342 (Expand_Record_Controller): Avoid the addition of the controller between
3343 the component containing the tag of a secondary dispatch table and its
3344 adjacent component that stores the offset to the base of the object.
3345 This latter component is only generated when the parent type has
3346 discriminants ---documented in Add_Interface_Tag_Components).
3347 (Apply_Array_Size_Check): Removed, no longer needed.
3348 (Expand_N_Full_Type_Declaration): If the type has anonymous access
3349 components, create a Master_Entity for it only if it contains tasks.
3350 (Build_Init_Procedure): Suppress the tag assignment compiling under
3352 (Freeze_Record_Type): Remove code associated with creation of dispatch
3354 (Init_Secondary_Tags): Update type of actuals when generating calls to
3355 Ada.Tags.Set_Offset_To_Top
3356 (Stream_Operation_OK): Disable use of streams compiling under no
3358 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
3359 if Has_Init_Expression set.
3360 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
3361 Register_Primitive, which provides the same functionality.
3362 (Requires_Init_Proc): Return false in case of interface types.
3363 (Add_Secondary_Tables): Use the new attribute Related_Interface to
3365 (Predefined_Primitive_Freeze): Do not assume that an internal entity
3366 is always associated with a predefined primitive because the internal
3367 entities associated with interface types are not predefined primitives.
3368 Therefore, the call to Is_Internal is replaced by a call to the
3369 function Is_Predefined_Dispatching_Operation.
3370 (Make_Eq_If): When generating the list of comparisons for the
3371 components of a given variant, omit the controller component that is
3372 present if the variant has controlled components.
3374 2007-06-06 Javier Miranda <miranda@adacore.com>
3375 Hristian Kirtchev <kirtchev@adacore.com>
3376 Bob Duff <duff@adacore.com>
3378 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
3379 handle the creation of finalization lists and calls for nested
3380 coextensions when the root of the chains is part of a return statement.
3381 (Inside_A_Return_Statement): New function inside Complete_Coextension_
3383 (Expand_Record_Equality): Skip components that are interface types.
3384 (Displace_Allocator_Pointer): Add missing support for interface subtypes
3385 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
3386 with Rewrite_Coextension. Change the condition for detecting coextension
3388 (Is_Local_Access_Discriminant): Removed.
3389 (Rewrite_Coextension): New routine which rewrites a static coextension
3390 as a temporary and uses its unrestricted access in the construction of
3392 (Complete_Coextension_Finalization): New routine. Generate finalization
3393 attachment calls to all delayed coextensions.
3394 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
3395 the allocator is not a coextension itself and has delayed coextensions.
3396 If the current allocator is controlled, but also a coextension, delay
3397 the generation of the finalization attachment call.
3398 Rename local variable "Node" to "Nod" in order to avoid confusion with
3400 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
3401 limited types that are not inherently limited. Such an allocator is
3402 illegal, but is generated by the expander for a return statement, to
3403 copy the result onto the secondary stack. This is the only case where a
3404 limited object can be copied. Generate code to displace the pointer
3405 to the object if the qualified expression is a class-wide interface
3406 object. Such displacement was missing and hence the copy of the object
3408 (Apply_Accessibility_Check): Handle allocated objects initialized in
3410 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
3411 and Expand_Allocator_Expression. Allocating class-wide interface objects
3412 this routine displaces the pointer to the allocated object to reference
3413 the component referencing the corresponding secondary dispatch table.
3414 Expand_Allocator_Expression): Add missing support to allocate class-wide
3415 interface objects initialized with a qualified expression.
3416 (Get_Allocator_Final_List): Test for an anonymous access type that is a
3417 function result type, and use the finalization list associated with the
3418 function scope in that case (such an anonymous type should not be
3419 treated like an access parameter's type).
3421 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3422 Gary Dismukes <dismukes@adacore.com>
3423 Javier Miranda <miranda@adacore.com>
3425 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
3426 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
3427 required exception handler.
3428 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
3429 properly the case of a function whose return type is a limited
3430 class-wide interface type. Modify the code of the accessibility
3431 check to handle class-wide interface objects. In this case we need to
3432 displace "this" to reference the primary dispatch table to get access
3433 to the TSD of the object (to evaluate its accessibility level).
3434 (Expand_N_Extended_Return_Statement): Test for a tagged result type
3435 rather than a controlling result as one of the conditions for
3436 generating tests of the implicit BIP_Alloc_Form formal. The
3437 initialization assignment is also handled according to whether the
3438 result is tagged instead of controlling.
3439 In the case where the init assignment is inserted in the "then" part of
3440 the allocation conditional, rewrite the target to be a dereference of
3441 the implicit BIP_Object_Access formal.
3442 If the returned value is unconstrained and created on the secondary
3443 stack, mark the enclosing block and function so that the secondary
3444 stack is not reclaimed on return.
3445 Treat returns from functions with controlling results similarly to
3446 returns from functions with unconstrained result subtypes.
3447 If the object returned is unconstrained, and an allocator must be
3448 created for it, analyze the allocator once the block for the extended
3449 return is installed, to ensure that finalizable components
3450 of the expression use the proper finalization list. Guard the call to
3451 Move_Final_List with a check that there is something to finalize.
3452 (Make_Tag_Ctrl_Assignment): Use "old" handling
3453 of controlled type assignment for virtual machines, since new code uses
3454 unsupported features (such as direct access to bytes in memory).
3456 2007-06-06 Gary Dismukes <dismukes@adacore.com>
3457 Ed Schonberg <schonberg@adacore.com>
3459 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
3460 accessibility actual, check for the case of an aliased object that has
3461 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
3462 we fall into processing for the attribute rather than the name of the
3464 (Expand_Inline_Call): If an actual is a literal, and the corresponding
3465 formal has its address taken in the body, create a temporary to capture
3466 value. If the return type is a limited interface, do not treat the
3467 return value as Controlled.
3468 (Is_In_Place_Function): If the return type is a limited interface,
3469 treat as returning in place. The actual returned object may not always
3470 be limited, but the caller has to assume that it is returned in place.
3471 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
3472 context of an allocator, use the correct finalization chain (that is,
3473 the chain belonging to the access type, rather than the chain belonging
3474 to the current scope).
3475 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
3476 result type rather than a controlling result as a precondition for
3477 adding an allocation form actual to a build-in-place call.
3478 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
3479 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
3480 primitive in the dispatch tables. This work is now done by Make_DT when
3482 (Register_Predefined_DT_Entry): Removed.
3483 (Add_Return): If end label is not present, use sloc of last statement
3484 for generated return statement in procedure, for better gdb behavior
3486 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
3487 object address nodes to ensure proper processing by routines like
3489 (Expand_Call): Fix generation of validity check for parameter
3490 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
3491 the allocation form parameter if the result subtype is constrained,
3492 except when the function has a controlling result.
3493 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
3494 rather than Is_Controlled and Has_Controlled_Component, since we want to
3495 include class-wide result types in this treatment. Also test for a
3496 controlling result, since that also requires passing a finalization
3498 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
3499 even when the result subtype is constrained, to handle calls involving
3500 controlling results.
3501 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
3502 is now called even when the result subtype is constrained, to handle
3503 calls involving controlling results.
3504 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
3505 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
3506 now performs the test).
3507 (Make_Build_In_Place_Call_In_Object_Declaration):
3508 Add_Alloc_Form_Actual_* is now called even when the result subtype is
3509 constrained, to handle calls involving controlling results.
3510 (Add_Return): Accomodate rewritten pattern from local raise to goto
3511 transformation, so that we still recognize an transfer statement
3512 and do the right thing here in that case.
3513 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
3514 and end of subprogram code.
3515 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
3516 support for primitives that are functions (without formals) with a
3518 (Inherited_From_Formal): If the actual subtype has not generic parent
3519 type, it is not an actual for a formal derived type, and there is no
3520 operation to inherit from the formal.
3522 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3523 Thomas Quinot <quinot@adacore.com>
3525 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
3526 inserted cleanup code appropriately for GDB use.
3527 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
3528 exception handler for Deep_Adjust or Deep_Finalize.
3529 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
3530 Raise_From_Controlled_Operation is available, use a call to that
3531 subprogram instead of a plain "raise Program_Error" node to raise
3532 Program_Error if an exception is propagated from an Adjust or Finalize
3534 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
3535 appears in the optional statement list of a triggering alternative, the
3536 scope actions can be inserted directly there, and not in the list that
3537 includes the asynchronous select itself.
3539 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3540 Robert Dewar <dewar@adacore.com>
3541 Hristian Kirtchev <kirtchev@adacore.com>
3543 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
3544 generated exception handler appropriately when debugging generated code.
3545 Deal properly with No_Exception_Propagation restriction mode.
3546 (Expand_N_Abort_Statement): Add an unchecked type conversion from
3547 System.Address to System.Tasking.Task_Id when processing the result of
3548 the predefined primitive _disp_get_task_id.
3549 (Expand_N_Asynchronous_Select): Clarify comment.
3550 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
3551 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
3552 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
3553 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
3554 privals and for generated call to Complete_Entry_Body, for better gdb
3556 (Copy_Result_Type): Utility to construct a parameter and result profile
3557 for protected functions whose return type is an anonymous access to
3559 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
3561 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
3562 point when the local-raise-to-goto transformation has taken place.
3564 2007-06-06 Javier Miranda <miranda@adacore.com>
3565 Nicolas Setton <setton@adacore.com>
3567 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
3568 functionality when the backend is generating code.
3569 Otherwise any serious error
3570 reported by the backend calling the frontend routine Error_Msg
3571 changes the Compilation_Mode to Check_Semantics, disables the
3572 functionality of this routine and causes the generation of
3573 spureous additional errors.
3575 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
3576 debugging information now generated by the compiler for fat-pointer
3578 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
3580 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
3582 2007-06-06 Thomas Quinot <quinot@adacore.com>
3584 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
3585 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
3586 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
3587 For a remote call to a function with a classwide return type, apply an
3588 E.4(18) check to the returned value.
3589 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
3590 stream attributes of the designated type of an RACW, as they are not
3591 dispatching primitive operations.
3593 2007-06-06 Geert Bosch <bosch@adacore.com>
3595 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
3597 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
3599 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
3600 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
3602 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
3604 2007-06-06 Javier Miranda <miranda@adacore.com>
3606 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
3607 attribute compiling package Ada.Tags under No_Run_Time_Mode.
3609 2007-06-06 Javier Miranda <miranda@adacore.com>
3611 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
3612 deallocation of class-wide interface objects.
3613 (Expand_Dispatching_Constructor_Call): Take into account that if the
3614 result of the dispatching constructor is an interface type, the
3615 function returns a class-wide interface type; otherwise the returned
3616 object would be actual. The frontend previously accepted returning
3617 interface types because Expand_Interface_Actuals silently performed
3618 the management of the returned type "as if" it were a class-wide
3620 (Expand_Dispatching_Constructor_Call): Replace call to
3621 Make_DT_Access_Action by direct call to Make_Function_Call.
3623 2007-06-06 Robert Dewar <dewar@adacore.com>
3624 Ed Schonberg <schonberg@adacore.com>
3626 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
3627 compute masking constant, since we now set Esize properly to the
3629 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
3630 to match the alignment.
3631 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
3632 packed arrays of 8 bits or less.
3634 * freeze.adb (Freeze_Entity): When freezing the formals of a
3635 subprogram, freeze the designated type of a parameter of an access type
3636 only if it is an access parameter.
3637 Increase size of C convention enumeration object
3638 (Freeze_Entity, array type case): Make sure Esize value is properly
3639 adjusted for the alignment if it is known.
3640 (Freeze_Entity, array type case): When checking bit packed arrays for
3641 the size being incorrect, check RM_Size, not Esize.
3642 (Freeze_Record_Type): Check for bad discriminated record convention
3643 (In_Exp_Body): Return true if the body is generated for a subprogram
3644 renaming, either an attribute renaming or a renaming as body.
3645 (Check_Itype): If the designated type of an anonymous access component
3646 is a non-protected subprogram type, indicate that it is frozen, to
3647 prevent out-of-scope freeze node at some subsequent call.
3648 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
3649 only if the subprogram is neither imported nor exported, as well as the
3650 NCA descriptor class if the subprogram is exported.
3652 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3653 Arnaud Charlet <charlet@adacore.com>
3654 Robert Dewar <dewar@adacore.com>
3655 Gary Dismukes <dismukes@adacore.com>
3657 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
3658 default initialization on an imported object, when there is no
3659 initialization call generated for it.
3660 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
3663 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
3664 Static_Elaboration_Desired.
3665 Remove pragma Thread_Body.
3666 Implement a new pragma No_Body
3667 Removes the Explicit_Overriding pragma
3668 Remove Optional_Overriding pragma
3669 (Prag): Deal with Universal_Aliasing.
3670 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
3671 Pragma_CIL_Constructor): New names.
3673 * sem_cat.adb (Validate_Object_Declaration): An initialization that
3674 uses the equivalent aggregate of a type must be treated as an implicit
3676 (Get_Categorization): Check a unit for pragma Preelaborate only if it
3677 has none of the other categories.
3678 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
3679 to apply Import to an object renaming declaration.
3681 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
3682 from a C++ class should be declared as limited and that it will be
3683 considererd limited.
3684 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
3685 should be declared as limited and that it will be considererd limited.
3686 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
3687 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
3688 (Analyze_Pragma): Deal with Universal_Aliasing.
3689 (Sig_Flags): Likewise.
3690 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
3691 (Overflow_Checks_Unsuppressed): New flag.
3692 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
3693 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
3694 case of JVM or .NET targets, and compiling user code.
3695 Add debugging convenience routine rv
3697 2007-06-06 Robert Dewar <dewar@adacore.com>
3699 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
3701 (Build_Elementary_Input_Call): For floating-point use right type in the
3702 absence of strange size or stream size clauses.
3703 (Build_Elementary_Write_Call): Same fix
3704 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
3705 set to value that does not match base type size.
3707 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3709 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
3710 object of a limited type can be initialized with a call to a function
3711 that returns in place. If the limited type has unknown discriminants,
3712 and the underlying type is a constrained composite type, build an actual
3713 subtype from the function call, as is done for private types.
3714 (Side_Effect_Free): An expression that is the renaming of an object or
3715 whose prefix is the renaming of a object, is not side-effect free
3716 because it may be assigned through the renaming and its value must be
3717 captured in a temporary.
3718 (Has_Controlled_Coextensions): New routine.
3719 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
3720 as is done for other limited types.
3721 (Non_Limited_Designated_Type): new predicate.
3722 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
3724 Remove all handling of with_type clauses.
3726 * par-ch10.adb: Remove all handling of with_type clauses.
3728 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
3729 checksum if the main source could not be parsed.
3730 (Loat_Unit): When processing a child unit, determine properly whether
3731 the parent unit is a renaming when the parent is itself a child unit.
3732 Remove handling of with_type clauses.
3734 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
3735 (Set_Is_Static_Coextension): New procedure.
3736 (Has_Local_Raise): New function
3737 (Set_Has_Local_Raise): New procedure
3738 (Renaming_Exception): New field
3739 (Has_Init_Expression): New flag
3740 (Delay_Finalize_Attach): Remove because flag is obsolete.
3741 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
3742 Remove all handling of with_type clauses.
3743 (Exception_Junk): Can now be set in N_Block_Statement
3745 2007-06-06 Vincent Celier <celier@adacore.com>
3746 Robert Dewar <dewar@adacore.com>
3748 * frontend.adb (Frontend): Return immediately if the main source could
3749 not be parsed, because of preprocessing errors.
3751 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
3752 (Gnat1drv): Exit with errors if the main source could not be parsed,
3753 because of preprocessing errors.
3754 (Check_Rep_Info): New procedure
3756 2007-06-06 Robert Dewar <dewar@adacore.com>
3758 * g-hesorg.ads, g-heasor.ads,
3759 g-busorg.ads, g-bubsor.ads: Update documentation
3760 GNAT.Heap/Bubble_Sort_G is now pure
3762 2007-06-06 Robert Dewar <dewar@adacore.com>
3764 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
3766 2007-06-06 Robert Dewar <dewar@adacore.com>
3767 Ed Schonberg <schonberg@adacore.com>
3769 * g-comlin.ads, g-comlin.adb:
3770 Add new warning for renaming of function return objects
3772 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
3773 (Tree_Read): Use size of object instead of type'object_size, since the
3774 latter is incorrect for packed array types.
3775 (Tree_Write): Same fix
3777 * opt.ads: Add new warning for renaming of function return objects
3778 (Generating_Code): New boolean variable used to indicate that the
3779 frontend as finished its work and has called the backend to process
3780 the tree and generate the object file.
3781 (GCC_Version): Is now private
3782 (Static_Dispatch_Tables): New constant declaration.
3783 (Overflow_Checks_Unsuppressed): New flag.
3784 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
3785 (List_Closure): New flag for gnatbind (-R)
3786 Zero_Formatting: New flag for gnatbind (-Z)
3787 (Special_Exception_Package_Used): New flag.
3788 (Warn_On_Unrepped_Components): New flag.
3790 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
3791 unit is a compilation unit, rather than relying on its scope, so that
3792 Standard can be renamed.
3793 (Analyze_Object_Renaming): Add new warning for renaming of function
3795 Also reject attempt to rename function return object in Ada 83 mode.
3796 (Attribute_Renaming): In case of tagged types, add the body of the
3797 generated function to the freezing actions of the type.
3798 (Find_Type): A protected type is visible right after the reserved word
3799 "is" is encountered in its type declaration. Set the entity and type
3800 rather than emitting an error message.
3801 (New_Scope): Properly propagate Discard_Names to inner scopes
3802 (Check_Nested_Access): New procedure.
3803 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
3804 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
3806 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
3807 Add new warning for renaming of function return objects
3808 (Check_References): Suppress warnings for objects whose type or
3809 base type has Warnings suppressed.
3810 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
3811 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
3813 2007-06-06 Vincent Celier <celier@adacore.com>
3814 Emmanuel Briot <briot@adacore.com>
3815 Olivier Hainque <hainque@adacore.com>
3817 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
3818 absolute value of Header.Block_Size when displaying the freed physical
3820 (Allocate): Compute Storage_Address using Integer_Address, not
3821 Storage_Offset, because the range of Storage_Offset may not be large
3823 (Configure): New parameter Low_Level_Traces
3824 (Allocate, Deallocation, Free_Physically): Added low-level traces
3825 (Configure): new parameter Errors_To_Stdout.
3826 (Output_File): new subprogram
3827 (Deallocate, Dereference): Send error messages to the proper stream
3828 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
3829 documented. Previous code would send it to the current output file
3830 defined in GNAT.IO, which might not be stdout
3831 (Is_Valid): Adjust comment to mention that a positive reply means that
3832 Header_Of may be used to retrieve the allocation header associated with
3833 the subprogram Storage address argument. Return False early if this
3834 address argument is misaligned.
3836 2007-06-06 Vincent Celier <celier@adacore.com>
3838 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
3840 (ASIS_Main): New global variable
3841 (Get_Closure): New procedure
3842 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
3843 check, metric or pretty. Call Get_Closure in this case.
3844 (Check_Files): For GNAT LIST, check all sources of all projects when
3845 All_Projects is True.
3846 (GNATCmd): Accept -U for GNAT LIST
3848 2007-06-06 Vincent Celier <celier@adacore.com>
3850 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
3852 Correct error message when invocation of the linker fails
3853 Add explicit size clause for the C imported variables
3854 Object_List_File_Supported and Using_GNU_Linker to emphasize that
3855 we expect char size.
3856 Read target parameters earlier, since this is needed to set
3857 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
3860 2007-06-06 Vincent Celier <celier@adacore.com>
3863 Add 3 spaces before the default project directory when displaying
3864 the project search path.
3865 Add new command line switch '-l' to display license information.
3867 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
3869 * gmem.c: Add support for timestamps on memory operations.
3871 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
3872 operations (not used currently, just foundation for future
3873 enhancements). Add possibility to perform full dump of gmem.out file.
3874 (Print_Back_Traces): Declare accesses to root arrays constants since
3875 they aren't modified.
3876 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
3878 2007-06-06 Vincent Celier <celier@adacore.com>
3880 * gnatsym.adb: Update Copyright notice
3881 (Parse_Cmd_Line): Accept new switch -D
3882 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
3885 * prj.ads (Policy): New policy Direct
3886 (Yes_No_Unknown): New enumeration type
3887 (Project_Data): New component Libgnarl_Needed
3889 * prj-nmsc.adb (Check_For_Source): When recording a source file make
3890 use the untouched pathname casing.
3891 (Get_Directories): Ensure that the Display_Exec_Directory is using the
3892 proper casing on non case-sensitive platforms like Windows.
3893 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
3894 on all platforms, as it is not possible to know which one is allowed
3895 before processing the project files.
3896 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
3897 specified when symbol policy is Direct. Check that when there is a
3898 symbol file defined (either by default or with attribute
3899 Library_Symbol_File) it is not the same as the reference symbol file.
3900 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
3901 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
3903 (Record_Ada_Source): Record a source that has been locally removed in an
3906 * symbols.ads (Policy): New policy Direct
3908 * symbols-vms.adb (Initialize): Take new policy Direct in case
3911 2007-06-06 Vincent Celier <celier@adacore.com>
3913 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
3914 Correct obvious bug (return Dir; instead of return Directory;).
3915 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
3917 2007-06-06 Thomas Quinot <quinot@adacore.com>
3919 * g-pehage.adb (Produce): Open output files in Binary mode, so that
3920 they have UNIX line endings (LF only) even on Windows, and thus pass
3921 all GNAT style checks.
3923 2007-06-06 Emmanuel Briot <briot@adacore.com>
3925 * g-regpat.adb (Quote): Fix improper quoting of '.'
3927 2007-06-06 Thomas Quinot <quinot@adacore.com>
3929 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
3930 default, set False on a per-runtime basis.
3931 (Need_Netdb_Buffer): New constant.
3933 * g-socket.ads, g-socket.adb: Import new package
3934 GNAT.Sockets.Thin.Task_Safe_NetDB.
3935 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
3936 binding to obtain proper message.
3937 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
3938 Replace various occurrences of Arry (Arry'First)'Address with the
3939 equivalent Arry'Address (GNAT always follows implementation advice from
3941 (Get_Host_By_Address, Get_Host_By_Name,
3942 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
3943 instead, rely on platform-specific task safe netdb operations provided
3946 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
3947 parameter Process_Blocking_IO.
3948 (Host_Error_Messages): Add stub body.
3949 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
3950 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
3951 Safe_Getservbyport): Move functions into new child package
3953 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
3954 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
3955 (In_Addr): Add alignment clause.
3957 2007-06-06 Robert Dewar <dewar@adacore.com>
3959 * g-trasym.ads, g-traceb.ads: Update list of supported targets
3960 Add note about symbolic traceback
3962 2007-06-06 Pascal Obry <obry@adacore.com>
3964 * hostparm.ads (Normalized_CWD): Use the host directory separator
3965 instead of the hardcoded forward slash which is not the proper
3966 character on Windows for example.
3969 2007-06-06 Vincent Celier <celier@adacore.com>
3970 Arnaud Charlet <charlet@adacore.com>
3972 * a-clrefi.adb, a-clrefi.ads: New files
3974 * impunit.adb: Add s-os_lib in the list of user visible units.
3975 (Non_Imp_File_Names_95): Add a-clrefi to this list
3976 Remove obsolete run-time entries.
3977 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
3978 "a-exetim" -- Ada.Execution_Time
3979 "a-extiti" -- Ada.Execution_Time.Timers
3981 * mlib-prj.ads, mlib-prj.adb
3982 (Build_Library): Use untouched object dir and library dir. At the
3983 same time makes sure that the checks are done using the canonical
3984 form. Removes hard-coded directory separator and use the proper host
3986 (Process_Project): Do not look in object directory to check if libgnarl
3987 is needed for a library, if there is no object directory.
3988 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
3990 (Build_Library): When invoking gnatbind, use a response file if the
3991 total size of the arguments is too large.
3993 * Makefile.rtl: (g-sttsne): New object file.
3994 Add entry for a-clrefi, s-utf_32, System.Exceptions
3996 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
3997 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
3998 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
3999 Change g-string to s-string, g-os_lib to s-os_lib
4000 Change all g-utf_32 references to s-utf_32
4002 2007-06-06 Tristan Gingold <gingold@adacore.com>
4003 Olivier Hainque <hainque@adacore.com>
4005 * init.c: Do not adjust IP of an imported VMS exception of ia64.
4006 LIB$STOP is called to raise an exception and the IP of the exception
4007 is the instruction right after the call.
4008 (__gnat_adjust_context_for_raise, AIX): Implement.
4009 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
4010 adjust_context_for_raise before Raise_From_Signal_Hanler.
4011 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
4012 siginfo is passed to the handler, necessary to let the zcx propagation
4013 engine unwind past it.
4015 2007-06-06 Olivier Hainque <hainque@adacore.com>
4017 * initialize.c (__gnat_initialize for vxworks): Update documentation
4018 on the ZCX support, using different sets of crtstuff objects than with
4021 2007-06-06 Robert Dewar <dewar@adacore.com>
4023 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
4025 (Layout_Type): Fix recomputation of size from alignment.
4027 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4028 Javier Miranda <miranda@adacore.com>
4030 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
4031 association in an instance.
4032 (Copy_Generic_Node): If the node is a string literal, no need to copy
4034 (Is_Generic_Formal): For a formal subprogram, the declaration is the
4035 grandparent of the entity.
4036 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
4037 to simplify handling of formal interfaces that derive from other formal
4039 (Instantiate_Subprogram_Body): The defining unit name of the body of
4040 the instance should be a defining identifier.
4041 (Install_Formal_Packages): make global to the package, for use in
4042 instantiations of child units.
4043 (Analyze_Package_Instantiation): Do not attempt to set information on an
4044 enclosing master of an entry when expansion is disabled.
4045 (Instantiate_Type): If the actual is a tagged synchronized type and the
4046 generic ancestor is an interface, create a generic actual for the
4047 corresponding record.
4048 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
4049 declaration, to ensure that the interface list is processed correctly.
4050 (Inline_Instance_Body): If enclosing scope is an instance body, remove
4051 its entities from visibiility as well.
4052 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
4053 given with a named association, analyze the expression only, not the
4054 discriminant association itself.
4055 (Reset_Entity): If the analysis of a selected component is transformed
4056 into an expanded name in the prefix of a call with parameters, do not
4057 transform the original node into an expanded name, to prevent visibility
4058 errors in the case of nested generics.
4059 (Check_Private_View): For an array type, check whether the index types
4060 may need exchanging.
4062 2007-06-06 Arnaud Charlet <charlet@adacore.com>
4063 Vincent Celier <celier@adacore.com>
4065 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
4066 since both are separated.
4067 Add support for imported CIL packages.
4068 Add further special handling of "value_type" for CIL.
4069 Add special handling of pragma Import for CIL.
4071 * make.ads, make.adb: When switch -eS is used, direct all outputs to
4072 standard output instead of standard error, except errors.
4073 (Absolute_Path): Use untouched casing for the parent directory.
4074 (Add_Library_Search_Dir): Use the untouched directory name.
4075 (Add_Source_Search_Dir): Idem.
4076 (Change_To_Object_Directory): Update output to use proper casing.
4077 (Create_Binder_Mapping_File): Use the untouched filename to set
4079 (Gnatmake): Use untouched library and executable directory names.
4080 (Insert_Project_Sources): Use untouched filename for spec and body.
4081 (Is_In_Object_Directory): Use untouched object directory.
4082 (Mark_Directory): Idem.
4083 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
4084 contains the non-canonical filename in all cases.
4085 (Change_To_Object_Directory): In verbose mode, display the name of the
4086 object directory we're changing to.
4087 (Compile_Sources): Make sure, when a project file is used, to compile
4088 the body of the unit, when there is one, even when only the spec is
4089 recorded in an ALI file.
4090 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
4092 (Report_Compilation_Failed): New procedure
4093 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
4094 procedures moved from the spec to the body.
4095 (Extract_Failure): Removed, not used
4096 Replace explicit raises of exception Bind_Failed and Link_Failed with
4097 calls to Make_Failed with the proper message.
4098 Replace explicit raises of exception Compilation_Failed with calls to
4099 procedure Report_Compilation_Failed.
4100 (Initialize): Create mapping files unconditionally when using project
4103 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
4104 Pragma_CIL_Constructor): New names.
4106 * targparm.ads, targparm.adb
4107 (Compiler_System_Version): Removed, no longer used.
4108 (Get_Target_Parameters): Relax checks on system.ads validity. Add
4109 handling of two new system flags: JVM and CLI.
4111 2007-06-06 Jose Ruiz <ruiz@adacore.com>
4112 Arnaud Charlet <charlet@adacore.com>
4114 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
4115 time, use the default s-interr body that provides interrupt support
4117 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
4118 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
4119 g-soccon.ads, and s-taprop.adb for the marte run time.
4120 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
4121 timers are supported on marte.
4122 (EH_MECHANISM for marte): Do not use ZCX.
4123 (THREADSLIB for marte): Use -lmarte.
4124 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
4125 Add mlib-tgt-specific.o to gnatmake objects
4126 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
4128 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
4129 6, either kernel or rtp, use a specialized version of s-osinte.ads.
4131 2007-06-06 Pascal Obry <obry@adacore.com>
4133 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
4135 2007-06-06 Vincent Celier <celier@adacore.com>
4137 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
4138 separator, use instead the proper host directory separator.
4139 (Copy_ALI_Files): Make sure that an already existing ALI file in the
4140 ALI copy dir is writable, before doing the copy.
4142 * mlib-utl.ads, mlib-utl.adb:
4143 (Gcc): If length of command line is too long, put the list of object
4144 files in a response file, if this is supported by the platform.
4145 (Ar): If invocation of the archive builder is allowed to be done in
4146 chunks and building it in one shot would go above an OS dependent
4147 limit on the number of characters on the command line, build the archive
4150 2007-06-06 Vincent Celier <celier@adacore.com>
4152 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
4153 of specified object file is not equal to base name of source.
4155 2007-06-06 Javier Miranda <miranda@adacore.com>
4156 Hristian Kirtchev <kirtchev@adacore.com>
4157 Ed Schonberg <schonberg@adacore.com>
4159 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
4160 the full type declaration.
4161 (Analyze_Component_Declaration): Add local variable E to capture the
4162 initialization expression of the declaration. Replace the occurences of
4163 Expression (N) with E.
4164 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
4165 limited interface object with a function call.
4166 (Array_Type_Declaration): If the declaration lacks subtype marks for
4167 indices, create a simple index list to prevent cascaded errors.
4168 (Is_Null_Extension): Ignore internal components created for secondary
4169 tags when checking whether a record extension is a null extension.
4170 (Check_Abstract_Interfaces): Add missing support for interface subtypes
4171 and generic formals.
4172 (Derived_Type_Declaration): Add missing support for interface subtypes
4173 and generic formals.
4174 (Analyze_Object_Declaration): If an initialization expression is
4175 present, traverse its subtree and mark all allocators as static
4177 (Add_Interface_Tag_Component): When looking for components that may be
4178 secondary tags, ignore pragmas that can appear within a record
4180 (Check_Abstract_Overriding): an inherited function that dispatches on
4181 result does not need to be overriden if the controlling type is a null
4183 (Mentions_T): Handle properly a 'class attribute in an anonymous access
4184 component declaration, when the prefix is an expanded name.
4185 (Inherit_Component): If the derivation is for a private extension,
4186 inherited components remain visible and their ekind should not be set
4188 (Find_Type_Of_Object): In the case of an access definition, always set
4189 Is_Local_Anonymous_Access. We were previously not marking the anonymous
4190 access type of a return object as a local anonymous type.
4191 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
4192 range with character literal bounds.
4193 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
4194 (Access_Subprogram_Declaration): Indicate that the type declaration
4195 depends on an incomplete type only if the incomplete type is declared
4197 (Analyze_Subtype_Declaration): Handle properly subtypes of
4198 synchronized types that are tagged, and that may appear as generic
4200 (Access_Subprogram_Declaration): An anonymous access to subprogram can
4201 appear as an access discriminant in a private type declaration.
4202 (Add_Interface_Tag_Components): Complete decoration of the component
4203 containing the tag of a secondary dispatch table and the component
4204 containing the offset to the base of the object (this latter component
4205 is only generated when the parent type has discriminants --as documented
4207 (Inherit_Components): Use the new decoration of the tag components to
4208 improve the condition that avoids inheriting the components associated
4209 with secondary tags of the parent.
4210 (Build_Discriminanted_Subtype): Indicate to the backend that the
4211 size of record types associated with dispatch tables is known at
4213 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
4214 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
4215 to include task, protected, and synchronized interfaces as limited
4217 (Process_Discriminants): Remove the setting of
4218 Is_Local_Anonymous_Access on the type of (anonymous) access
4219 discriminants of nonlimited types.
4220 (Analyze_Interface_Type_Declaration): Complete the decoration of the
4221 class-wide entity it is is already present. This situation occurs if
4222 the limited-view has been previously built.
4223 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
4225 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
4228 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4230 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
4231 of the type that specify the position of interface tags when the type
4232 inherits discriminated array components from the parent type.
4233 If a component is initialized with a box, check for the presence of a
4234 default expression in its declaration before using its default
4235 initialization procedure.
4236 (Resolve_Record_Aggregate): If a component is box-initialized, and the
4237 component type has a discriminants, create a partial aggregate for it
4238 by copying the discriminants of the component subtype.
4239 Reject attempt to initialize a discriminant with a box.
4240 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
4241 associated with dispatch tables is known at compile time.
4242 (Get_Value): If an association in a record aggregate has a box
4243 association, and the corresponding record component has a default
4244 expression, always copy the default expression, even when the
4245 association has a single choice, in order to create a proper
4246 association for the expanded aggregate.
4248 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4249 Robert Dewar <dewar@adacore.com>
4251 * par-ch12.adb (P_Generic_Associations): The source position of an
4252 Others association is that of the others keyword, not that of the token
4253 that follows the box.
4254 (P_Formal_Type_Definition): Handle formal access types that carry a
4257 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
4258 multiple identifier are present, save Scan_State before scanning the
4259 colon, to ensure that separate trees are constructed for each
4261 (P_Identifier_Declarations): For object declaration, set new flag
4262 Has_Init_Expression if initialization expression present.
4263 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
4264 Improve NOT NULL error messages
4266 2007-06-06 Robert Dewar <dewar@adacore.com>
4268 * par-ch4.adb: (P_Name): Recover from literal used as name
4270 2007-06-06 Vincent Celier <celier@adacore.com>
4272 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
4274 In the "not" case, recursive call with Complemented set to True.
4275 Do not allow "or" or "and" operators when Complemented is True.
4277 2007-06-06 Vincent Celier <celier@adacore.com>
4279 * prj.adb (Project_Empty): Gives default value for new component
4282 * prj-attr.ads: Minor reformatting
4284 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
4285 directory using the untouched casing.
4286 (For_All_Source_Dirs): Idem.
4288 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
4289 directories specified with switches -aP.
4290 (Add_Search_Project_Directory): New procedure
4291 (Initialize_Project_Path): Put the directories in table
4292 Search_Directories in the project search path.
4293 (Initialize_Project_Path): For VMS, transform into canonical form the
4296 2007-06-06 Arnaud Charlet <charlet@adacore.com>
4298 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
4299 true if configurable run-time or No_Run_Time is set.
4300 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
4301 processing an unit which is not the one being compiled.
4303 2007-06-06 Arnaud Charlet <charlet@adacore.com>
4305 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
4306 Replace UC by Ada.UC
4308 * s-bitops.adb: Get rid of System.Pure_Exceptions.
4309 Replace UC by Ada.UC
4311 2007-06-06 Robert Dewar <dewar@adacore.com>
4313 * scng.adb: (Check_End_Of_Line): Deal with very long lines
4315 2007-06-06 Robert Dewar <dewar@adacore.com>
4317 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
4318 Remove no longer used nodes.
4320 2007-06-06 Javier Miranda <miranda@adacore.com>
4321 Ed Schonberg <schonberg@adacore.com>
4322 Robert Dewar <dewar@adacore.com>
4324 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
4325 on obsolescent withed unit in case of limited-withed units.
4326 (Analyze_Compilation_Unit): Add guard to code that removed an
4327 instantiation from visibility, to prevent compiler aborts when
4328 instantiation is abandoned early on.
4329 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
4330 current unit being analyzed, and Distinguish local incomplete types
4331 from limited views of types declared elsewhere.
4332 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
4333 to state that the class-wide entity is shared by the limited-view
4335 (Analyze_With_Clause): Improve placement of flag for case of
4337 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
4338 manner similar to GNAT.Current_Exception. This is a violation of
4339 restriction (No_Exception_Propagation), and also inhibits the
4340 optimization of local raise to goto.
4341 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
4342 and if so set Most_Recent_Exception_Used flag in Opt, and also check
4343 for violation of restriction No_Exception_Propagation.
4345 2007-06-06 Javier Miranda <miranda@adacore.com>
4346 Hristian Kirtchev <kirtchev@adacore.com>
4347 Gary Dismukes <dismukes@adacore.com>
4349 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
4350 use of entity Exception_Occurrence if it is not available in the
4353 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
4354 concurrent types are declared within an Ada 2005 generic, build their
4355 corresponding record types since they are needed for overriding-related
4357 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
4358 protected type does not implement a task interface or a nonlimited
4360 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
4361 type does not implement a protected interface or a nonlimited interface.
4362 (Single_Task_Declaration, Single_Protected_Declaration): use original
4363 entity for variable declaration, to ensure that debugging information
4364 is correcty generated.
4365 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
4366 routines if the expander is not active.
4367 (Analyze_Task_Body): Mark all handlers to stop optimization of local
4368 raise, since special things happen for task exception handlers.
4370 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
4371 concurrent types declared within a generic.
4372 (Check_Dispatching_Operation): Do not emit warning about late interface
4373 operations in the context of an instance.
4374 (Check_Dispatching_Call): Remove restriction against calling a
4375 dispatching operation with a limited controlling result.
4376 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
4377 Register_Interface_DT_Entry by calls to Register_Primitive.
4378 (Check_Dispatching_Formals): Handle properly a function with a
4379 controlling access result.
4381 2007-06-06 Robert Dewar <dewar@adacore.com>
4382 Arnaud Charlet <charlet@adacore.com>
4384 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
4385 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
4386 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
4387 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
4388 message when using a VM, since this attribute is not supported.
4389 (Analyze_Record_Representation_Clause): Give unrepped component warnings
4391 * usage.adb: Add new warning for renaming of function return objects
4392 Indicate that -gnatwp and -gnatwP concern front-end inlining
4393 Add line for -gnatyg
4394 Add usage information for -gnatw.c/C
4396 2007-06-06 Robert Dewar <dewar@adacore.com>
4397 Ed Schonberg <schonberg@adacore.com>
4400 (Find_Var): Do not consider function call in test for infinite loop
4401 warning if warnings set off for function entity.
4402 (One_Bound): Do not create a temporary for a loop bound if it is a
4404 (Analyze_Assignment): Traverse the right hand side of an assignment and
4405 mark all allocators as static coextensions.
4406 (Analyze_Assignment): Exempt assignments involving a dispatching call
4407 to a function with a controlling access result from the check requiring
4408 the target to be class-wide.
4410 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
4411 Ed Schonberg <schonberg@adacore.com>
4412 Robert Dewar <dewar@adacore.com>
4413 Javier Miranda <miranda@adacore.com>
4415 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
4416 chain of coextensions when an allocator serves as the root of such a
4418 (Propagate_Coextensions): Remove the test for the root being an
4420 (Resolve_Allocator): Add condition to ensure that all future decoration
4421 occurs on an allocator node. Add processing and cleanup for static
4423 (Valid_Conversion): If the operand type is the limited view of a
4424 class-wide type, use the non-limited view is available to determine
4425 legality of operation.
4426 (Ambiguous_Character): move to spec, for use elsewhere.
4427 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
4428 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
4430 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
4431 Do_Division_Check flag explicitly.
4432 (Resolve_Actuals): If the actual is of a synchronized type, and the
4433 formal is of the corresponding record type, this is a call to a
4434 primitive operation of the type, that is declared outside of the type;
4435 the actual must be unchecked-converted to the type of the actual
4436 (Resolve_Call): Kill all current values for any subprogram call if
4437 flag Suppress_Value_Tracking_On_Call is set.
4438 (Resolve_Type_Conversion): Generate error message the the operand
4439 or target of interface conversions come from a limited view.
4440 (Check_Infinite_Recursion): Ignore generated calls
4441 (Check_Allocator_Discrim_Accessibility): New procedure for checking
4442 that an expression that constrains an access discriminant in an
4443 allocator does not denote an object with a deeper level than the
4444 allocator's access type.
4445 (Resolve_Allocator): In the case of an allocator initialized by an
4446 aggregate of a discriminated type, check that associations for any
4447 access discriminants satisfy accessibility requirements by calling
4448 Check_Allocator_Discrim_Accessibility.
4449 (Resolve_Equality_Op): Handle comparisons of anonymous access to
4450 subprogram types in the same fashion as other anonymous access types.
4451 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
4452 message that is not a continuation message.
4453 (Resolve_Type_Conversion): Add missing support for conversion to
4455 (Resolve_Actuals): Introduce a transient scope around the call if an
4456 actual is a call to a function returning a limited type, because the
4457 resulting value must be finalized after the call.
4458 (Resolve_Actuals): If the call was given in prefix notations, check
4459 whether an implicit 'Access reference or implicit dereference must be
4460 added to make the actual conform to the controlling formal.
4462 2007-06-06 Robert Dewar <dewar@adacore.com>
4463 Javier Miranda <miranda@adacore.com>
4465 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
4466 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
4467 overriding of an inherited private subprogram now there is no need to
4468 inherit its dispatching slot and reduce the size of the dispatch table.
4469 Set_All_DT_Position now ensures that the same slot is now assigned to
4470 both entities. This is required to statically build the dispatch table.
4471 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
4472 of calling Set_All_DT_Position to re-evaluate the position of the
4473 entries in the dispatch table. Such reevaluation is not desired if
4474 the tagged type is already frozen.
4476 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
4477 Gary Dismukes <dismukes@adacore.com>
4478 Robert Dewar <dewar@adacore.com>
4479 Javier Miranda <miranda@adacore.com>
4481 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
4482 reference acts as an lvalue when the attribute name modifies the prefix
4483 (Is_Coextension_Root): New routine.
4484 (Mark_Static_Coextensions): New routine.
4485 (Type_Access_Level): Revise code for checking the level of the
4486 anonymous access type of a return object.
4487 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
4488 (Matches_Prefixed_View_Profile): Remove the no longer necessary
4489 retrieval of the corresponding controlling record type.
4490 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
4491 concurrent types declared within a generic as well as class wide types.
4492 Emit a mode incompatibility error whenever a protected entry or routine
4493 override an interface routine whose first parameter is not of mode
4494 "out", "in out" or access to variable.
4495 (Overrides_Synchronized_Primitive): Rename to
4496 Find_Overridden_Synchronized_Primitive.
4497 (Collect_Interface_Components): New subprogram that collects all the
4498 components of a tagged record containing tags of secondary dispatch
4500 (Add_Global_Declaration): New procedure
4501 (Abstract_Interface_List): Handle properly the case of a subtype of a
4503 (Type_Access_Level): In the case of a type whose parent scope is a
4504 return statement, call Type_Access_Level recursively on the enclosing
4505 function's result type to determine the level of the return object's
4507 (Build_Elaboration_Entity): Build name of elaboration entity from the
4508 scope chain of the entity, rather than the unit name of the file name.
4509 (Check_Nested_Access): New procedure.
4510 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
4511 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
4512 (Get_Renamed_Entity): Utility routine for performing common operation
4513 of chasing the Renamed_Entity field of an entity.
4515 2007-06-06 Robert Dewar <dewar@adacore.com>
4517 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
4519 (Check_A_Call): Add check for entry call which was causing blowup
4521 2007-06-06 Olivier Hainque <hainque@adacore.com>
4523 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
4524 special code on ia64-vms to handle major incompatibilities between the
4525 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
4526 this routine with a very different set of arguments and expectations on
4529 2007-06-06 Thomas Quinot <quinot@adacore.com>
4531 * socket.c (__gnat_close_signalling_fd): New function.
4532 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
4533 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
4534 New supporting functions for task safe Netdb operations.
4536 2007-06-06 Thomas Quinot <quinot@adacore.com>
4537 Olivier Hainque <hainque@adacore.com>
4539 * a-except-2005.ads, a-except-2005.adb
4540 (Raise_From_Controlled_Operation): New procedure in
4541 (private part of) Ada.Exceptions (standard runtime version). Used to
4542 provide informational exception message when Program_Error is raised as
4543 a result of an Adjust or Finalize operation propagating an exception.
4544 (Rmsg_28): Fix description for E.4(18) check.
4545 (Raise_Current_Excep): Call Debug_Raise_Exception just before
4546 propagation starts, to let debuggers know about the event in a reliable
4548 Take the address of E and dereference to make sure it is homed on stack
4549 and prevent the stores from being deleted, necessary for proper
4550 debugger behavior on "break exception" hits.
4551 (Local_Raise): Moved to System.Exceptions
4553 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
4554 exception message from the current occurrence and raise Program_Error
4555 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
4557 2007-06-06 Jose Ruiz <ruiz@adacore.com>
4558 Arnaud Charlet <charlet@adacore.com>
4560 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
4563 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
4564 priority associated to a lock.
4566 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
4567 assertion to take into account case of no abort restriction.
4568 (Initialize_Protection_Entries): Add initialization for the field
4569 New_Ceiling associated to the protected object.
4570 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
4573 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
4574 since this function needs to be set consistently with Update_Exception.
4576 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
4577 since this function needs to be set consistently with Update_Exception.
4579 * s-taskin.ads: Update comments on
4580 Interrupt_Server_Blocked_On_Event_Flag.
4581 (Unbind_Handler): Fix handling of server_task wakeup
4582 (Server_Task): Set self's state so that Unbind_Handler can take
4583 appropriate actions.
4584 (Common_ATCB): Now use a constant from System.Parameters to determine
4585 the max size of the Task_Image field.
4587 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
4588 Initialize_Analyzer function.
4589 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
4590 take into account case of no abort restriction.
4591 ([Vulnerable_]Complete_Master): Modify assertion.
4593 * s-tataat.adb (Finalize): Use the nestable versions of
4594 Defer/Undefer_Abort.
4596 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
4598 * s-tpobop.ads: Update comments.
4600 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
4601 of locking the object manually, to avoid inconsistencies between
4602 Lock/Unlock_Entry assertions.
4604 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
4606 application and System.Parameters.No_Abort is True.
4607 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
4608 (Unbind_Handler): Fix handling of server_task wakeup
4609 (Server_Task): Set self's state so that Unbind_Handler can take
4610 appropriate actions.
4612 2007-06-06 Thomas Quinot <quinot@adacore.com>
4614 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
4615 declarations instead of an explicit null body, for conciseness.
4617 2007-06-06 Robert Dewar <dewar@adacore.com>
4619 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
4620 illegal aggregate and the type is still Any_Composite.
4621 (Subtypes_Statically_Match): Fix problem of empty discriminant list
4623 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4625 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
4626 to prevent subsequent expansion.
4628 2007-06-06 Robert Dewar <dewar@adacore.com>
4630 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
4632 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4633 Robert Dewar <dewar@adacore.com>
4635 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
4637 (Write_Itype): Handle case of string literal subtype, which
4638 comes up in this context.
4639 (Update_Itype): when debugging expanded code, update sloc of itypes
4640 associated with defining_identifiers and ranges, for gdb use.
4641 (Sprint_Node_Actual): Add static keyword to object or exception
4642 declaration output if Is_Statically_Allocated is True.
4643 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
4644 or task body, so that the tree carries the proper Sloc information for
4646 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
4648 2007-06-06 Arnaud Charlet <charlet@adacore.com>
4650 * s-secsta.adb (Chunk): Ensure this object has a static size known at
4651 compile time, to avoid dynamic memory allocation
4652 (Elaboration code): Only use dynamic memory allocation when needed.
4654 2007-06-06 Quentin Ochem <ochem@adacore.com>
4656 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
4658 (Stack_Analyzer): Added field "Overflow_Guard"
4659 (Task_Result): Added field "Overflow_Guard".
4660 (Index_Str): New constant.
4661 (Task_Name_Str): New constant.
4662 (Actual_Size_Str): New constant.
4663 (Pattern_Array_Element_Size): New constant.
4664 (Get_Usage_Range): New subprogram.
4665 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
4666 Now align the output.
4668 (Initialize): Added value for Overflow_Guard.
4669 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
4670 Update the value of the overflow guard according to the actual
4671 beginning of the pattern array.
4672 (Initialize_Analyzer): Added parameter Overflow_Guard.
4673 Take this parameter into accound when computing the max size.
4674 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
4675 (Report_Result): Removed extra useless procedure.
4676 Updated call to Output_Result.
4677 Moved full computation of the Task_Result here.
4679 2007-06-06 Thomas Quinot <quinot@adacore.com>
4681 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
4682 Thread_Blocking_IO, always True by default, set False on a per-runtime
4684 Add Windows-specific constants
4685 Add new constant Need_Netdb_Buffer.
4686 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
4687 not, whether to use getXXXbyYYY_r.
4689 * gsocket.h: Add new constant Need_Netdb_Buffer.
4690 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
4691 not, whether to use getXXXbyYYY_r.
4693 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
4695 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
4696 than their first call.
4697 Add type Dummy_Communication_Block used in the generation of the pre-
4698 defined dispatching primitive _disp_asynchronous_select.
4699 (Storage_Element): Put Pragma Universal_Aliasing on it.
4701 2007-06-06 Vincent Celier <celier@adacore.com>
4703 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
4706 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
4707 letter if it is not followed by a '/' or a '\'.
4708 (Windows): New Boolean function
4710 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
4712 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
4714 (Containing_Directory): Raise Use_Error when the directory is a root
4716 (Extension): When returning the result, use a conversion to Result_Type,
4717 not a qualification.
4719 2007-06-06 Robert Dewar <dewar@adacore.com>
4721 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
4722 (Set_Style_Check_Options): Recognize new -gnatyg style switch
4724 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
4725 Warn_On_Non_Local_Exception to False, to turn off warnings for
4726 No_Exception_Propagation in ZFP runtime.
4727 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
4729 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
4731 2007-06-06 Vincent Celier <celier@adacore.com>
4733 * switch-b.adb (Scan_Binder_Switches): Add processing for new
4736 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
4737 (Scan_Make_Switches): Recognize new switch -aP
4739 2007-06-06 Matthew Gingell <gingell@adacore.com>
4740 Jose Ruiz <ruiz@adacore.com>
4742 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
4743 VxWorks task descriptor in the Ada run time, call a C subprogram
4744 (__gnat_get_stack_info) that extracts the required information.
4746 * sysdep.c: Back out temporary lynxos workaround.
4747 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
4748 time the stack information associated to the currently executing task.
4749 Only VxWorks systems require this function.
4751 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
4753 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
4754 add the stack bias if the offset is computed from a frame address.
4755 (__gnat_backtrace): Adjust for above change.
4757 2007-06-06 Thomas Quinot <quinot@adacore.com>
4759 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
4760 PE_Non_Transportable_Actual.
4761 (By_Descriptor_Last): New constant.
4762 (By_Copy_Return): Likewise.
4764 2007-06-06 Vincent Celier <celier@adacore.com>
4766 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
4769 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
4770 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
4771 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
4772 Add missing comment for /OPTIMIZE=SPACE
4773 Add entry for OPTIMIZE=SPACE
4774 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
4775 Add documentation for new qualifiers corresponding to -gnatw.c/.C
4777 2007-06-06 Vincent Celier <celier@adacore.com>
4778 Robert Dewar <dewar@adacore.com>
4780 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
4783 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
4784 Document gnatbind switch -a
4785 (case Constructions): Document that variables declarations are allowed
4786 for previously declared variables.
4787 Fix external lib project example
4788 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
4789 Indicate that "#if not X or Y then" is not allowed in input files to
4791 Document gnatw.x and gnatw.X warning flags
4792 Mention -Winline switch to activate warnings when back-end inlining is
4794 Add gnatcheck rule descriptions
4795 Describe how to use the GNAT driver to call a tool on a closure.
4796 Describe how to run project-wide checks or metrics.
4797 Document gnatbind's -R option
4798 Updated to account for Ada 2005 support
4800 * gnat_rm.texi (Case Construction): Allow variable declarations for
4801 previously declared variables.
4802 (Representation Clauses and Pragmas): Lift restriction on alignment
4803 clauses for record types.
4804 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
4805 Document No_Exception_Propagation restriction
4806 Document No_Body pragma
4807 Updated to account for Ada 2005 support; corrected some typos
4808 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
4810 * gnat-style.texi: Make it clear that we never use mode IN for
4811 procedures or functions
4813 * ug_words: Add entries for -gnatw.x and -gnatw.X
4814 Add entries for -gnatw.c/.C
4816 2007-06-06 Pascal Obry <obry@adacore.com>
4817 Vincent Celier <celier@adacore.com>
4819 * makegpr.adb (Add_Archive_Path): Use untouched object and library
4820 dirs and library name.
4821 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
4823 (Build_Library): Idem.
4824 (Compile_Individual_Sources): Idem.
4825 (Compile_Link_With_Gnatmake): Idem.
4826 (Compile_Sources): Idem.
4827 (Get_Imported_Directories): Idem.
4828 (Link_Executables): Idem. Same change for the executable dir.
4829 (Check_Compilation_Needed): C_Source_Path new variable containing
4830 the canonical form of Source_Path to check against the source names
4831 in the dependency file.
4832 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
4833 verbose mode, display the name of the object directory we're changing
4835 (Saved_Switches): New name of table X_Switches
4836 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
4837 (Usage): New line for switch -aP
4838 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
4839 testing if a directory should be added to the search path.
4841 2007-06-06 Javier Miranda <miranda@adacore.com>
4843 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
4844 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
4845 declaration after freezing point of all its associated tagged types;
4846 otherwise such types are frozen too early.
4848 2007-06-06 Robert Dewar <dewar@adacore.com>
4850 * a-reatim.adb: Documentation addition
4852 * g-cgideb.adb: Minor code reorganization
4854 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
4855 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
4856 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
4858 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
4859 function. Change name New_Scope to Push_Scope
4860 (Get_Debug_Flag_K): Remove unused obsolete function.
4862 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
4865 * makeusg.adb: Update Copyright notice
4866 Add line for switch -aP
4868 * makeusg.adb: Fix wording of some usage messages
4870 * s-assert.adb (Raise_Assert_Failure): Add call to
4871 Debug_Raise_Assert_Failure.
4873 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
4874 (2, Standard'Alignment) for compatibility with AAMP (where alignment
4875 is restricted to 1).
4877 * s-wchjis.adb: Remove use of System.Pure_Exceptions
4879 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
4880 node location to No_Location when we're not debugging the expanded
4883 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
4885 * misc.c (enumerate_modes): Consider log2_b to always be one.
4887 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
4889 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
4891 2007-05-02 Pascal Obry <obry@adacore.com>
4893 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
4894 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
4895 encoding support of Stream_IO.
4898 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
4899 filename and corresponding encoding to match the OS requirement.
4900 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
4901 routine will fail on specific devices like CON: AUX: ...
4903 PR ada/29856: Add missing braces
4905 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
4908 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
4910 2007-04-21 Jan Hubicka <jh@suse.cz>
4912 * misc.c (gnat_expand_body): Don't call target for destructors,
4913 avoid redundant check on syntax errors.
4915 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
4917 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
4918 instead of checking GIMPLE_STMT_P in chain_next.
4920 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
4923 * system-linux-alpha.ads: Disable constant condition warning for the
4924 Default_Bit_Order variable.
4925 * system-linux-s390.ads: Likewise.
4926 * system-linux-s390x.ads: Likewise.
4927 * system-linux-sparc.ads: Likewise.
4929 2007-04-06 Javier Miranda <miranda@adacore.com>
4930 Matt Heaney <heaney@adacore.com>
4931 Robert Dewar <dewar@adacore.com>
4933 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
4934 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
4935 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
4936 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
4937 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
4938 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
4939 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
4940 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
4941 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
4942 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
4943 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
4944 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
4945 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
4946 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
4947 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
4948 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
4949 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
4950 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
4951 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
4952 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
4953 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
4954 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
4955 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
4956 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
4957 s-taprop-tru64.adb, s-taprop-irix.adb,
4958 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
4959 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
4960 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
4961 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
4962 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
4963 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
4964 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
4965 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
4966 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
4967 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
4968 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
4969 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
4970 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
4971 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
4972 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
4973 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
4974 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
4975 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
4976 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
4977 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
4979 Update documentation.
4982 2007-04-06 Robert Dewar <dewar@adacore.com>
4984 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
4985 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
4986 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
4987 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
4988 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
4989 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
4990 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
4991 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
4992 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
4993 system-hpux-ia64.ads, targparm.adb,
4994 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
4996 * system.ads: Move Functions_Return_By_DSP to obsolete section,
4997 kept for bootstrap purposes only.
4999 2007-04-06 Arnaud Charlet <charlet@adacore.com>
5001 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
5002 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
5003 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
5004 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
5006 2007-04-06 Robert Dewar <dewar@adacore.com>
5008 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
5009 (Local_Raise): New dummy procedure called when a raise is converted
5010 to a local goto. Used for debugger to detect that the exception
5013 * debug.adb: Document new d.g flag (expand local raise statements to
5014 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
5016 * exp_sel.adb: Use Make_Implicit_Exception_Handler
5018 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
5019 suppress warnings for unused handlers.
5020 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
5021 warnings for raise statements not handled locally.
5022 (Get_RT_Exception_Entity): New function
5023 (Get_Local_Call_Entity): New function
5024 (Find_Local_Handler): New function
5025 (Warn_If_No_Propagation): New procedure
5026 (Expand_At_End_Handler): Call Make_Implicit_Handler
5027 (Expand_Exception_Handlers): Major additions to deal with local handlers
5028 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
5029 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
5032 * exp_ch11.ads (Get_RT_Exception_Entity): New function
5033 (Get_Local_Call_Entity): New function
5035 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
5036 of restrictions that the binder will never suggest adding.
5038 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
5041 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
5042 be with'ed in the presence of pragma Restriction
5043 (No_Exception_Propagation).
5045 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
5047 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
5048 parameter, then the handler is not a suitable target for a local raise,
5049 and this is a violation of restriction No_Exception_Propagation.
5050 (Analyze_Handled_Statements): Analyze choice parameters in exception
5051 handlers before analyzing statement sequence (needed for proper
5052 detection of local raise statements).
5053 (Analyze_Raise_Statement): Reraise statement is a violation of the
5054 No_Exception_Propagation restriction.
5056 * s-rident.ads: Add new restriction No_Exception_Propagation
5058 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
5059 function, like Make_Exception_Handler but sets Local_Raise_Statements
5061 (Add_Unique_Serial_Number): Deal with case where this is called during
5062 processing of configuration pragmas.
5064 2007-04-06 Thomas Quinot <quinot@adacore.com>
5065 Pat Rogers <rogers@adacore.com>
5066 Pascal Obry <obry@adacore.com>
5068 * g-stsifd-sockets.adb: New file.
5070 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
5071 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
5072 g-socthi-vms.adb: Move signalling
5073 fd management to a nested package, so that they can conveniently be
5074 moved to a subunit that is shared across Windows, VMS, and VxWorks
5075 (Ada implementation) or completed with imported bodies from socket.c
5077 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
5079 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
5080 the signalling file descriptor.
5081 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
5082 signalling file descriptor.
5083 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
5084 instead of creating a pair of sockets for signalling here.
5086 * g-socthi.adb: Ditto.
5087 Set the runtime process to ignore SIGPIPEs on platforms that support
5088 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
5090 * g-socthi-mingw.adb: Ditto.
5091 (WS_Version): Use Windows 2.2.
5092 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
5094 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
5095 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
5097 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
5098 added GNAT byte swapping facility
5099 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
5101 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
5103 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
5105 (__gnat_create_signalling_fds): New subprogram.
5106 Set the runtime process to ignore SIGPIPEs on platforms that support
5107 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
5109 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
5110 Vincent Celier <celier@adacore.com>
5112 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
5113 New version of Ada.Calendar which supports the new upper bound of Ada
5114 time (2399-12-31 86_399.999999999).
5115 The following modifications have been made to the package:
5116 - New representation of time as count of nanoseconds since the start of
5117 Ada time (1901-1-1 0.0).
5118 - Target independent Split and Time_Of routines which service both
5119 Ada 95 and Ada 2005 code.
5120 - Target independent interface to the Ada 2005 children of Calendar.
5121 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
5122 - Handling of non-leap centenial years.
5123 - Updated clock function.
5124 - Updated arithmetic and comparison operators.
5126 * a-caldel.adb (To_Duration): Add call to target independent routine in
5127 Ada.Calendar to handle the conversion of time to duration.
5129 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
5131 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
5133 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
5134 targets do not have a natural time zone, GMT is used as a default.
5135 (__gnat_get_task_options): New.
5137 * a-direct.adb (Modification_Time): Add with and use clauses for
5138 Ada.Calendar and Ada.
5139 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
5140 since it is no longer needed.
5141 (Duration_To_Time): Removed.
5142 (OS_Time_To_Long_Integer): Removed.
5143 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
5144 Formatting Time_Of routines which automatically handle time zones,
5145 buffer periods and leap seconds.
5147 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
5148 target independent routines in Ada.Calendar.
5150 * a-calfor.ads, a-calfor.adb:
5151 Code cleanup and addition of validity checks in various routines.
5152 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
5155 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
5156 independent routine in Ada.Calendar.
5158 2007-04-06 Olivier Hainque <hainque@adacore.com>
5161 (convert_addresses): Adjust prototype and dummy definition to expect an
5162 extra file_name argument.
5164 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
5165 filling the now expected file_name argument with the appropriate
5167 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
5168 (tracebk): Array of void * instead of char *, corresponding to what
5169 convert_addresses expects.
5170 (exename): New static global, to hold the executable file name to be
5171 used in all convert_addresses invocations.
5172 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
5174 (__gnat_gmem_a2l_initialize): Resolve exename.
5175 (__gnat_convert_addresses): Use exename as the convert_addresses
5178 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
5179 "convert_addresses", now expecting a filename argument. Import the
5180 necessary entities to compute the filename to use and pass it to
5183 2007-04-06 Matt Gingell <gingell@adacore.com>
5185 * system-aix.ads: Back out previous change.
5186 (Functions_Return_By_DSP): Removed
5188 2007-04-06 Pascal Obry <obry@adacore.com>
5190 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
5191 or the monotonic used by Ada.Real_Time) to compute the sleep duration
5194 2007-04-06 Jose Ruiz <ruiz@adacore.com>
5196 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
5197 function. Its value changes in different VxWorks versions, and it is
5198 now handled by the function __gnat_get_task_options.
5200 * s-taprop-vxworks.adb (Create_Task): Call the function
5201 __gnat_get_task_options to get the required options for creating a task.
5203 2007-04-06 Pascal Obry <obry@adacore.com>
5204 Thomas Quinot <quinot@adacore.com>
5206 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
5207 dealing with filename.
5208 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
5209 filename from a standard string to a wide-string depending on the
5211 (__gnat_freopen): Idem.
5212 (__gnat_current_time): New function (wrapper for time(3) standard C
5215 * g-os_lib.ads (Current_Time): New function. Returns the current
5216 system time as an OS_Time value.
5218 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
5219 (Monotonic_Clock): Same.
5221 2007-04-06 Quentin Ochem <ochem@adacore.com>
5223 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
5225 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
5227 2007-04-06 Jose Ruiz <ruiz@adacore.com>
5229 * a-retide.adb: Add elaboration code to ensure that the tasking run
5230 time is initialized when using delay operations even when no task is
5233 2007-04-06 Javier Miranda <miranda@adacore.com>
5235 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
5236 component Num_Prim_Ops.
5237 (Set_Num_Prim_Ops): Removed.
5238 Remove all the assertions because all the routines of this
5239 package are inline always.
5240 (Get_Offset_Index): Add support to primary dispatch tables.
5241 Move the documentation about the dispatch table to a-tags.ads
5242 (Set_External_Tag): Removed
5243 (Inherit_TSD): Removed.
5244 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
5246 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
5247 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
5248 of the TSD field "Table" because this field has been renamed to
5250 (Inherit_CPP_DT): Removed.
5251 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
5252 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
5253 declarations have been moved to a-tags.ads
5254 (Check_Size): Removed.
5255 (Expanded_Name): Updated to get access to the new field of TSD
5256 containing the address of the expanded name.
5257 (Get_Access_Level/Set_Access_Level): Removed.
5258 (Get_Predefined_Prim_Op_Address): Removed.
5259 (Set_Predefined_Prim_Op_Address): Removed.
5260 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
5261 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
5262 (Set_Expanded_Name): Removed.
5263 (Inherit_DT): Removed.
5264 (Inherit_CPP_DT): Removed.
5265 (Set_RC_Offset): Removed.
5267 (Base_Address): New function that displaces "this" to point to the base
5268 of the object (that is, to point to the primary tag of the object).
5270 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5271 Javier Miranda <miranda@adacore.com>
5273 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
5274 anonymous access component, do not create a master_id if type already
5275 has one, as may happen if the type is a subcomponent of a packed array
5277 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
5278 Initialize_Tag): Remove code associated with the old CPP pragmas.
5279 CPP_Virtual and CPP_Vtable are no longer supported.
5280 (Build_Offset_To_Top_Internal): Add support for concurrent record types
5281 (Build_Offset_To_Top_Functions): Add support for concurrent record types
5282 (Freeze_Record_Type): Remove call to
5283 Init_Predefined_Interface_Primitives.
5284 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
5285 code required to initialize the tags of the secondary dispatch tables.
5286 This leaves the algoritm more clear.
5287 (Init_Secondary_Tags): Add support for concurrent record types
5288 (Make_Predefined_Primitive_Specs): Code cleanup.
5289 (Predefined_Primitive_Bodies): Code cleanup.
5290 (Build_Master_Renaming): New local subprogram.
5291 (Expand_N_Full_Type_Declaration): Build the master_id associated with
5292 anonymous access to task type components.
5293 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
5294 subtype indication are resolved during analysis, and must not be done
5296 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
5298 2007-04-06 Geert Bosch <bosch@adacore.com>
5299 Ed Schonberg <schonberg@adacore.com>
5300 Javier Miranda <miranda@adacore.com>
5301 Bob Duff <duff@adacore.com>
5303 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
5304 for conversion of a Float_Type'Truncation to integer.
5306 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
5307 check if a node is an attribute that can be handled directly by the
5309 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
5310 attributes that can be handled directly by the back end.
5311 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
5312 use new predicate Is_Access_Protected_Subprogram_Type.
5313 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
5314 and Unchecked_Union if it is generated as part of the default Output
5315 procedure for a type with default discriminants.
5316 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
5317 if we are compiling under restriction No_Dispatching_Calls.
5318 (Constrained): Use Underlying_Type, in case the type is private without
5319 discriminants, but the full type has discriminants.
5320 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
5321 call to Build_Get_Access_Level.
5322 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
5323 interface objects requires a call to the run-time subprogram that
5324 returns the base address of the object.
5325 (Valid_Conversion): Improve error message on illegal attempt to store
5326 an anonymous access to subprogram value into a record component.
5328 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
5330 (Simplify_Type_Conversion): New procedure that performs simplification
5331 of Int_Type (Float_Type'Truncation (X)).
5332 (Resolve_Type_Conversion): Call above procedure after resolving operand
5333 and before performing checks. This replaces the existing ineffective
5335 (Set_String_Literal_Subtype): When creating the internal static lower
5336 bound subtype for a string literal, use a newly created copy of the
5337 subtree representing the lower bound.
5338 (Resolve_Call): Exclude build-in-place function calls from transient
5339 scope treatment. Update comments to describe this exception.
5340 (Resolve_Equality_Op): In case of dispatching call check violation of
5341 restriction No_Dispatching_Calls.
5342 (Resolve_Call): If the call returns an array, the context imposes the
5343 component type of the array, and the function has one non-defaulted
5344 parameter, rewrite the call as the indexing of a call with a single
5345 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
5347 (Resolve_Actuals): If an actual is an allocator for an access parameter,
5348 the master of the created object is the innermost enclosing statement.
5349 (Remove_Conversions): For a binary operator, check if type of second
5350 formal is numeric, to check if an abstract interpretation is present
5351 in the case of exponentiation as well.
5353 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5354 Bob Duff <duff@adacore.com>
5356 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
5357 copying a parameter list in a call, set properly the First_Named_Formal
5358 and Next_Named_Formal fields in the new list and in the enclosing call.
5359 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
5360 names, to ease typing in the debugger. Improve comments.
5361 (Watch_Node): New variable, intended to be set in the debugger.
5362 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
5363 called when the watched node is created.
5364 (New_Node_Debugging_Output): Combined version of local procedures
5365 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
5366 with a parameter so that conditional breakpoints like "if Node = 12345"
5368 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
5371 2007-04-06 Thomas Quinot <quinot@adacore.com>
5372 Ed Schonberg <schonberg@adacore.com>
5373 Gary Dismukes <dismukes@adacore.com>
5375 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
5376 required for a conversion between two access-to-unconstrained-array
5378 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
5379 to discriminant constraints on discriminant objects. This rule must
5380 apply as well to discriminants of protected types in private components.
5381 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
5382 object of a null-excluding access type then don't require the
5383 the object declaration to have an expression and don't emit a
5386 2007-04-06 Arnaud Charlet <charlet@adacore.com>
5387 Eric Botcazou <botcazou@adacore.com>
5389 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
5392 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
5393 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
5396 * fe.h (Compiler_Abort): Add third parameter.
5398 * misc.c (internal_error_function): Build third argument from current
5399 input location and pass it to Compiler_Abort.
5401 2007-04-06 Gary Dismukes <dismukes@adacore.com>
5403 * cstand.adb (Create_Standard): When the target's storage unit size is
5404 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
5407 2007-04-06 Nicolas Roche <roche@adacore.com>
5409 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
5410 absolute path can have the following form: device:/a/b. In this case
5411 '/' should be inserted between the path and the filename.
5413 2007-04-06 Olivier Hainque <hainque@adacore.com>
5414 Eric Botcazou <botcazou@adacore.com>
5416 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
5417 VAR_DECL to a CONST_DECL we make for a public constant when we know the
5418 corresponding definition has created the so made visible variable.
5419 Handle anonymous access to protected subprogram.
5420 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
5421 object with an address clause volatile. Re-enable original fix.
5422 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
5424 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
5425 associated with either the Equivalent or Root type, instead of the
5427 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
5428 subtree for every field of a global record type.
5429 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
5430 discriminants, invoke again variable_size on its newly computed sizes.
5432 2007-04-06 Robert Dewar <dewar@adacore.com>
5433 Thomas Quinot <quinot@adacore.com>
5434 Ed Schonberg <schonberg@adacore.com>
5435 Bob Duff <duff@adacore.com>
5437 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
5438 (Next_Component_Or_Discriminant): New function and procedure
5439 (First_Index, First_Literal, Master_Id,
5440 Set_First_Index, Set_First_Literal, Set_Master_Id):
5441 Add missing Ekind assertions.
5442 (Is_Access_Protected_Subprogram_Type): New predicate.
5443 (Has_RACW): New entity flag, set on package entities to indicate that
5444 the package contains the declaration of a remote accecss-to-classwide
5446 (E_Return_Statement): This node type has the Finalization_Chain_Entity
5447 attribute, in case the result type has controlled parts.
5448 (Requires_Overriding): Add this new flag, because "requires
5449 overriding" is subtly different from "is abstract" (see AI-228).
5450 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
5451 Is_Abstract_Type. Make sure these are called only when appropriate.
5452 (Has_Pragma_Unreferenced_Objects): New flag
5454 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
5455 class-wide, the tag of the right-hand side must be an exact match, not
5456 an ancestor of that of the object on left-hand side.
5457 (Move_Activation_Chain): New procedure to create the call to
5458 System.Tasking.Stages.Move_Activation_Chain.
5459 (Expand_N_Extended_Return_Statement): Generate code to call
5460 System.Finalization_Implementation.Move_Final_List at the end of a
5461 return statement if the function's result type has controlled parts.
5462 Move asserts to Build_In_Place_Formal.
5463 (Move_Final_List): New function to create the call statement.
5464 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
5465 tagged type, replace generation of call to the run-time subprogram
5466 CW_Membership by call to Build_CW_Membership.
5467 (Expand_N_Return_Statement): Replace generation of call to the run-time
5468 subprogram Get_Access_Level by call to Build_Get_Access_Level.
5469 (Expand_N_Simple_Function_Return): Replace generation of call to the
5470 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
5472 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
5473 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
5474 access to protected operations.
5475 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
5476 master and chain actual parameters to a build-in-place function call
5478 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
5480 (Make_Build_In_Place_Call_In_Allocator,
5481 Make_Build_In_Place_Call_In_Anonymous_Context,
5482 Make_Build_In_Place_Call_In_Assignment,
5483 Make_Build_In_Place_Call_In_Object_Declaration): Call
5484 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
5485 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
5486 stubbed procedure with a null body, replace the call with a null
5487 statement without using the full inlining machinery, for efficiency
5488 and to avoid invalid values in source file table entries.
5490 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
5491 renamings of calls to build-in-place functions.
5493 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
5494 provides the functionality of RTE_Available to record components.
5495 (RTU_Entity): The function Entity has been renamed to RTU_Entity
5496 to avoid undesired overloading.
5497 (Entity): New subprogram that returns the entity for the referened
5498 unit. If this unit has not been loaded, it returns Empty.
5499 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
5500 Remove no longer used entities.
5501 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
5502 (RE_Type_Specific_Data): New entity.
5503 (RE_Move_Any_Value): New entity.
5504 (RE_TA_A, RE_Get_Any_Type): New entities.
5505 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
5506 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
5507 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
5508 (Entity): New subprogram that returns the entity for the referened
5509 unit. If this unit has not been loaded, it returns Empty.
5510 (RTE): Addition of a new formal that extends the search to the scopes
5511 of the record types found in the chain of the package.
5513 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
5514 "abstract subprograms must be visible" message, whether or not the type
5515 is an interface; that is, remove the special case for interface types.
5516 (Analyze_Function_Return): Remove error message "return of task objects
5517 is not yet implemented" because this is now implemented.
5518 (Create_Extra_Formals): Add the extra master and activation chain
5519 formals in case the result type has tasks.
5520 Remove error message "return of limited controlled objects is not yet
5522 (Create_Extra_Formals): Add the extra caller's finalization list formal
5523 in case the result type has controlled parts.
5524 (Process_Formals): In case of access formal types there is no need
5525 to continue with the analysis of the formals if we already notified
5527 (Check_Overriding_Indicator): Add code to check overriding of predefined
5529 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
5530 flags for formals that do not require them,.
5531 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
5532 hidden entity is use visible or directly visible.
5533 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
5534 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
5535 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
5536 New_Overloaded_Entity): Split Is_Abstract flag into
5537 Is_Abstract_Subprogram and Is_Abstract_Type.
5539 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
5540 a return statement's finalization list to the caller's list, used for
5541 build-in-place functions with result type with controlled parts.
5542 Remove no longer used entities.
5544 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
5545 longer needed, because the full type is now limited, and therefore a
5546 pass-by-reference type.
5547 (Foreign_Task_Level): New constant.
5549 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
5550 move tasks from the activation chain belonging to a return statement to
5551 the one passed in by the caller, and update the master to the one
5552 passed in by the caller.
5553 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
5554 of unactivated tasks, so we don't kill the ones that are being returned
5555 by a build-in-place function.
5556 (Create_Task): Ignore AI-280 for foreign threads.
5558 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5559 Robert Dewar <dewar@adacore.com>
5560 Bob Duff <duff@adacore.com>
5561 Gary Dismukes <dismukes@adacore.com>
5563 * errout.adb (Unwind_Internal_Type): Use predicate
5564 Is_Access__Protected_Subprogram_Type.
5566 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
5567 (Freeze_Entity, packed array case): Do not override explicitly set
5568 alignment and size clauses.
5569 (Freeze_Entity): An entity declared in an outer scope can be frozen if
5570 the enclosing subprogram is a child unit body that acts as a spec.
5571 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
5572 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
5573 Remove all code for DSP option
5575 * layout.adb (Layout_Record_Type): Use First/
5576 Next_Component_Or_Discriminant
5577 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
5578 to handle properly the anonymous access case.
5580 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
5581 for all access attributes, because overload resolution should work the
5582 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
5583 causes the error message for the ambiguous "X'Access = Y'Access" and
5584 "X'Unrestricted_Access = Y'Access" and so forth to match.
5585 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
5586 now that anonymous access to protected operations have their own kind.
5587 (Resolve_Attribute): In case of dispatching call check the violation of
5588 restriction No_Dispatching_Calls.
5589 (Check_Array_Type): Check new -gnatyA array index style option
5591 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
5592 attempt to derive from a synchronized tagged type.
5593 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
5594 type, inherit the class-wide type already created, because it may
5595 already have been used in a self-referential anonymous access component.
5596 (Mentions_T): Recognize self-referential anonymous access components
5597 that use (a subtype of) the class-wide type of the enclosing type.
5598 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
5599 Derived_Type for Prev formal on call to
5600 Check_Anonymous_Access_Components rather than Empty.
5601 (Make_Incomplete_Type_Declaration): Add test for case where the type has
5602 a record extension in deciding whether to create a class-wide type,
5603 rather than just checking Tagged_Present.
5604 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
5605 to stand-alone object declarations as well as component declarations.
5606 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
5607 prevent accidental overwriting when enclosing package appears in
5608 a limited_with_clause.
5609 (Array_Type_Declaration): If the component type is an anonymous access,
5610 the associated_node for the itype is the type declaration itself.
5611 (Add_Interface_Tag_Components): Modified to support concurrent
5612 types with abstract interfaces.
5613 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
5614 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
5615 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
5616 to complete the decoration of synchronized interface types. Add also
5617 a call to Check_Abstract_Interfaces to verify the ARM rules.
5618 (Derive_Interface_Subprograms): Modified to support concurrent types
5619 with abstract interfaces.
5620 (Analyze_Subtype_Indication): Resolve the range with the given subtype
5621 mark, rather than delaying the full resolution depending on context.
5622 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
5623 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
5624 Array_Type_Declaration,Build_Derived_Record_Type,
5625 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
5626 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
5627 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
5628 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
5629 called only when appropriate.
5630 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
5632 (Analyze_Subtype_Declaration): For an access subtype declaration, create
5633 an itype reference for the anonymous designated subtype, to prevent
5634 scope anonmalies in gigi.
5635 (Build_Itype_Reference): New utility, to simplify construction of such
5638 2007-04-06 Vincent Celier <celier@adacore.com>
5640 * errutil.adb (Initialize): Initialize warnings table, if all warnings
5641 are suppressed, supply an initial dummy entry covering all possible
5644 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
5645 and start with only one, such as "-RTS=none".
5646 (Collect_Arguments): Do not check for sources outside of projects.
5647 Do not collect arguments if project is externally built.
5648 (Compile_Sources): Do nothing, not even check if the source is up to
5649 date, if its project is externally built.
5650 (Compile): When compiling a predefined source, add -gnatpg
5651 as the second switch, after -c.
5652 (Compile_Sources): Allow compilation of Annex J renames without -a
5653 (Is_In_Object_Directory): Check if the ALI file is in the object
5654 even if there is no project extension.
5655 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
5656 gnatbind if the ALI file effectively exists.
5657 (Initialize): Add the directory where gnatmake is invoked in front of
5658 the path if it is invoked from a bin directory, even without directory
5659 information, so that the correct GNAT tools will be used when spawned
5660 without directory information.
5662 * makeusg.adb: Change switch -S to -eS
5663 Add lines for new switches -we, -wn and -ws
5664 Add line for new switch -p
5666 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
5667 Treat_As_Error and there are warnings.
5669 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
5670 -gnatww Change gnatmake switch -S to -eS
5671 (Scan_Make_Switches): Code reorganisation. Process separately multi
5672 character switches and single character switches.
5673 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
5674 False when switch is not recognized by gnatmake.
5675 (Scan_Make_Switches): Set Setup_Projects True when -p or
5676 --create-missing-dirs is specified.
5678 * fname.adb (Is_Predefined_File_Name): Return True for annex J
5679 renamings Calendar, Machine_Code, Unchecked_Conversion and
5680 Unchecked_Deallocation only when Renamings_Included is True.
5682 * par.adb: Allow library units Calendar, Machine_Code,
5683 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
5684 when -gnatg is not specified.
5685 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
5686 there is no need to generate always a record_definition_node in case
5687 of synchronized interface types.
5688 (SIS_Entry_Active): Initialize global variable to False
5689 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
5690 indicate cases where AI-447 says "not null" is legal.
5692 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
5694 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
5695 files with with several lines starting with the object fileb name.
5696 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
5698 (Initialize): Add the directory where gprmake is invoked in front of the
5699 path, if it is invoked from a bin directory or with directory
5700 information, so that the correct GNAT tools will be used when invoked
5702 (Check_Compilation_Needed): Process correctly backslashes on Windows.
5704 * vms_data.ads: Update switches/qualifiers
5706 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5707 Thomas Quinot <quinot@adacore.com>
5710 If the array component is a discriminated record, the array aggregate
5711 is non-static even if the component is given by an aggregate with
5713 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
5714 (Convert_Aggr_In_Allocator): If the allocator is for an access
5715 discriminant and the type is controlled. do not place on a finalization
5716 list at this point. The proper list will be determined from the
5718 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
5719 initialize record controller if needed, before the components, to ensure
5720 that they are properly finalized.
5721 (Build_Record_Aggr_Code): For the case of an array component that has a
5722 corresponding array aggregate in the record aggregate, perform sliding
5725 2007-04-06 Javier Miranda <miranda@adacore.com>
5726 Gary Dismukes <dismukes@adacore.com>
5727 Ed Schonberg <schonberg@adacore.com>
5729 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
5730 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
5732 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
5733 accessibility on class-wide allocators if the allocator occurs at the
5734 same scope level as the allocator's type. The check is guaranteed to
5735 succeed in that case, even when the expression originates from a
5736 parameter of the containing subprogram.
5737 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
5738 under No_Dispatching_Calls restriction. During the semantic analysis
5739 we already notified such violation.
5740 (Tagged_Membership): Constant folding. There is no need to check
5741 the tag at run-time if the type of the right operand is non
5742 class-wide abstract.
5743 Replace call to Is_Ancestor by call to Is_Parent
5744 to support concurrent types with interface types.
5745 (Expand_N_Allocator): Add an assertion associated with the generation
5747 (Expand_N_Slice): Do not enable range check to nodes associated
5748 with the frontend expansion of the dispatch table.
5749 (Is_Local_Access_Discriminant): Subsidiary function to
5751 (Tagged_Membership): Replace generation of call to the run-time
5752 subprogram CW_Membership by call to Build_CW_Membership.
5753 (Expand_Allocator_Expression): Replace generation of call to the
5754 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
5756 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
5757 initialize most the TSD components by means of an aggregate.
5758 Modify the declaration of the object containing the TSD
5759 because we now expand code that has a higher level of abstraction.
5760 The TSD has a discriminant containing the Inheritance Depth Level,
5761 value that is used in the membership test but also to fix the size
5762 of the table of ancestors.
5763 (Expand_Interface_Conversion): Insert function body at the closest place
5764 to the conversion expression, to prevent access-before-elaboration
5765 errors in the backend.
5766 Code improved to reduce the size of the dispatch table if
5767 compiling under restriction No_Dispatching_Calls plus code cleanup.
5768 Code reorganization plus removal of calls to Set_Num_Prim_Ops
5769 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
5770 (Expand_Dispatching_Call): Minor code reorganization plus addition of
5771 code to return immediately if compiling under No_Dispatching_Calls
5773 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
5774 CPP_Virtual and CPP_Vtable are no longer supported.
5775 (Expand_Interface_Conversion): Add missing support for interface type
5777 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
5778 Is_Parent to support concurrent types with interfaces.
5779 (Init_Predefined_Interface_Primitives): Removed.
5780 (Make_Secondary_DT): Modified to support concurrent record types.
5781 (Set_All_DT_Position): Modified to support concurrent record types.
5782 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
5783 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
5784 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
5786 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
5787 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
5788 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
5789 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
5790 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
5791 (Expand_Dispatching_Call): Replace generation of call to the run-time
5792 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
5793 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
5795 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
5796 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
5797 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
5798 Build_Set_Prim_Op_Address.
5799 (Get_Remotely_Callable): Subprogram removed.
5800 (Init_Predefined_Interface_Primitives): Replace generation of call to
5801 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
5804 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
5805 First (Parameter_Associations ()) with the call to First_Actual that
5806 returns an actual parameter expression for both named and positional
5809 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
5810 check violation of restriction No_Dispatching_Calls.
5811 (Check_Controlling_Type): A formal of a tagged incomplete type is a
5812 controlling argument.
5814 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
5815 First/Next_Component_Or_Discriminant
5816 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
5817 (Find_Implemented_Interface): Removed. All the calls to this subprogram
5818 specify Any_Limited_Interface, and this functionality is already
5819 provided by the function Has_Abstract_Interfaces.
5820 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
5821 support concurrent types implementing interfaces.
5822 (Find_Implemented_Interface): Removed. All the calls to this subprogram
5823 specify kind Any_Limited_Interface, and this functionality is already
5824 provided by the function Has_Abstract_Interfaces.
5825 (Remove_Side_Effects): replace Controlled_Type by
5826 CW_Or_Controlled_Type whenever the issue is related to
5827 using or not the secondary stack.
5829 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
5830 P_Interface_Type_Definition to fulfill the new interface (the formal
5831 Is_Synchronized is no longer required).
5833 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
5834 Update dependencies.
5836 * exp_atag.ads, exp_atag.adb: New file
5838 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5839 Bob Duff <duff@adacore.com>
5840 Cyrille Comar <comar@adacore.com>
5842 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
5843 anonymous, use finalization list of enclosing dynamic scope.
5844 (Expand_N_Package_Declaration): For a library package declaration
5845 without a corresponding body, generate RACW subprogram bodies in the
5846 spec (just as we do for the task activation call).
5847 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
5848 Is_Abstract_Type. Make sure these are called only when appropriate.
5849 Remove all code for DSP option
5850 (CW_Or_Controlled_Type): new subprogram.
5852 2007-04-06 Eric Botcazou <botcazou@adacore.com>
5853 Ed Schonberg <schonberg@adacore.com>
5854 Gary Dismukes <dismukes@adacore.com>
5856 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
5857 parameter. If it is set to true, return a result capped according to
5858 the global upper bound for the index of an entry family.
5859 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
5860 (Build_Find_Body_Index): Adjust for above change.
5861 (Entry_Index_Expression): Likewise.
5862 (Is_Potentially_Large_Family): New function extracted from...
5863 (Collect_Entry_Families): ...here. Call it to detect whether the family
5864 is potentially large.
5865 (Build_Entry_Count_Expression): If the family is potentially large, call
5866 Family_Size with 'Cap' set to true.
5867 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
5868 a protected version of an operation declared in the private part of
5869 a protected object, because they may be invoked through a callback.
5870 (Set_Privals): If the type of a private component is an anonymous access
5871 type, do not create a new itype for each protected body.
5872 If the body of a protected operation creates
5873 controlled types (including allocators for class-widetypes), the
5874 body of the corresponding protected subprogram must include a
5876 (Build_Activation_Chain_Entity): Build the chain entity for extended
5878 (Type_Conformant_Parameters): Use common predicate Conforming_Types
5879 to determine whether operation overrides an inherited primitive.
5880 (Build_Wrapper_Spec): Add code to examine the parents while looking
5881 for a possible overriding candidate.
5882 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
5883 hold an actual parameter value since its initialization is separated
5884 from the the declaration. Prevents errors on null-excluding access
5887 2007-04-06 Thomas Quinot <quinot@adacore.com>
5889 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
5890 Do an Unchecked_Conversion to handle the passage from the Underlying
5891 Type to the Base Type when calling Build_To_Any_Call and
5892 Build_From_Any_Call.
5893 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
5894 E_Constant, depending upon Variable formal.
5895 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
5896 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
5897 parameter that requires an extra constrained parameter, declare
5898 temporary for actual as a variable, not a constant.
5899 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
5900 the unit being compiled is the one that contains the stub type.
5901 Change primitive operation name for the RACW associated with a RAS
5902 from Call to _Call so it cannot clash with any legal identifier.
5903 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
5905 (Append_RACW_Bodies): New subprogram.
5906 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
5907 Add_Receiving_Stubs_To_Declarations functions.
5908 When expanding a package body, this list correspond to the
5909 statements in the HSS at the end of the pacakge.
5910 When expanding a package spec, this list correspond to the
5912 (Add_Receiving_Stubs_To_Declarations): Append the function
5913 registering the receiving stubs at the end of the 'Stmts' list.
5914 (RCI_Package_Locator): Pass the new Version generic formal when
5915 instantiating a RCI_Locator package.
5916 (Build_From_Any_Function): To compute the High bound for an
5917 unconstrained array actual, we add the Low bound with the length.
5918 Thus we must convert the low bound and the length to an appropriate
5919 type before doing the sum.
5920 (Build_Subprogram_Receiving_Stubs, PolyORB):
5921 * Retrieve the extra formals parameters at the
5922 end of the parameter stream.
5923 * Use Move_Any_Value to write back out parameters
5924 after executing the request as it is more efficient
5925 than Copy_Any_Value.
5926 * Build the any containing Extra Formals with the
5927 appropriate typecode.
5928 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
5929 empty Component_List.
5930 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
5931 the tree the declaration for an object that serves as actual parameter
5932 in server-side stubs.
5933 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
5934 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
5935 Use Build_Actual_Object_Declaration to prepare the actuals.
5936 (Add_Parameter_To_NVList): Set the parameter mode to In for
5937 Extra Constrained Parameters.
5938 (Build_General_Calling_Stubs): Set the parameter type to boolean for
5939 Extra Constrained parameters.
5940 (Build_To_Any_Function, Build_From_Any_Function,
5941 Built_TypeCode_Function): When Typ is implicit, call the correct
5942 function with the first not implicit parent type.
5943 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
5944 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
5945 typecode from the Etype. Therefore we retrieve the correct typecode
5946 with a call to Get_Any_Type.
5947 (Copy_Specification): Do controlling formal type substitution based on
5948 Is_Controlling_Formal flag, instead of caller-provided object type.
5949 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
5950 a RACW primitive operation, we might get a subprogram declaration for an
5951 ancestor of the RACW designated type (not for the designated type
5952 itself), in the case where this operation is inherited. In this case we
5953 have no easy means of determining the original tagged type for which
5954 the primitive was declared, so instead we now rely on
5955 Copy_Specification to use the Is_Controlling_Formal flag to determine
5956 which formals require type substitution.
5958 2007-04-06 Robert Dewar <dewar@adacore.com>
5959 Ed Schonberg <schonberg@adacore.com>
5961 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
5962 GNAT.Current_Exception are not allowed if pragma Restrictions
5963 (No_Exception_Propagation) is set and in any case make the associated
5964 handler unsuitable as a target for a local raise statement.
5965 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
5966 run-time subprogram CW_Membership by call to Build_CW_Membership.
5967 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
5968 by a function call, a temporary must be created before expanding the
5969 Constructor_Call itself, to prevent out-of-order elaboration in the
5970 back-end when stack checking is enabled..
5972 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5974 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
5975 result are the bounds of the left operand, not the right.
5977 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5980 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
5981 discriminant defaults.
5982 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
5983 (Make_Component_List_Attributes): Ditto.
5985 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5986 Bob Duff <duff@adacore.com>
5988 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
5989 an association with a box as providing a value even though the
5990 initialization procedure for the type is not available.
5991 (Resolve_Record_Aggregate): Check that a choice of an association with a
5992 box corresponds to a component of the type.
5993 (Resolve_Record_Aggregate): Split Is_Abstract flag into
5994 Is_Abstract_Subprogram and Is_Abstract_Type.
5996 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
5999 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
6000 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
6001 called only when appropriate.
6003 2007-04-06 Olivier Hainque <hainque@adacore.com>
6005 * g-alleve.ads (Low Level Vector type definitions): Map each to the
6006 associated vector view instead of all to the unsigned char view.
6008 * g-altcon.adb (Generic_Conversions): New internal generic package,
6009 offering facilities for all the Vector/View conversion routines
6010 implemented by this unit.
6011 (To_View/To_Vector - all versions): Reimplemented in a systematic
6012 manner, using the internal Generic_Conversions facilities.
6014 2007-04-06 Pascal Obry <obry@adacore.com>
6016 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
6018 (Create): Free the source string before storing the new one.
6020 2007-04-06 Vincent Celier <celier@adacore.com>
6022 * g-debpoo.adb (Validity): New package with a complete new
6023 implementation of subprograms Is_Valid and Set_Valid.
6024 (Is_Valid): Move to local package Validity
6025 (Set_Valid): Move to local package Validity
6027 2007-04-06 Arnaud Charlet <charlet@adacore.com>
6029 * g-expect.adb (Get_Command_Output): When expanding the output buffer
6030 we must ensure that there is enough place for the new data we are going
6033 2007-04-06 Thomas Quinot <quinot@adacore.com>
6035 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
6038 2007-04-06 Jose Ruiz <ruiz@adacore.com>
6039 Vincent Celier <celier@adacore.com>
6041 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
6042 (Stack_String): Add this String that contains the name of the Stack
6043 package in the project file.
6044 (Packages_To_Check_By_Stack): Add this list that contains the packages
6045 to be checked by gnatstack, which are the naming and the stack packages.
6046 (Check_Files): If no .ci files were specified for gnatstack we add all
6047 the .ci files belonging to the projects, including binder generated
6049 (Non_VMS_Usage): Document that gnatstack accept project file switches.
6050 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
6051 Add gnatstack to the list of commands that use project file related
6052 switches, and get the single attribute Switches from the stack package
6053 in a project file when calling gnatstack. Parse the -U flag for
6054 processing files belonging to all projects in the project tree.
6055 Remove all processing for command Setup
6057 * prj-attr.adb: Add new package Stack with single attribute Switches
6059 * vms_conv.ads (Command_Type): Add command Stack.
6060 Move to body declarations that are only used in the body: types Item_Id,
6061 Translation_Type, Item_Ptr, Item and its subtypes.
6063 * vms_conv.adb: (Initialize): Add data for new command Stack.
6064 Add declarations moved from the spec: types Item_Id, Translation_Type,
6065 Item_Ptr, Item and its subtypes.
6066 (Cargs_Buffer): New table
6067 (Cargs): New Boolean global variable
6068 (Process_Buffer): New procedure to create arguments
6069 (Place): Put character in table Buffer or Cargs_Buffer depending on the
6071 (Process_Argument): Set Cargs when processing qualifiers for GNAT
6073 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
6074 empty, for table Cargs_Buffer.
6075 (Initialize): Remove component Setup in Command_List
6077 2007-04-06 Vincent Celier <celier@adacore.com>
6079 * gprep.adb (Process_Files.Process_One_File): Use full file name when
6080 issuing pragma Source_Reference.
6082 2007-04-06 Emmanuel Briot <briot@adacore.com>
6084 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
6085 [[:xdigit:]] character class.
6086 Also raise an exception when an invalid character class is used.
6088 2007-04-06 Pascal Obry <obry@adacore.com>
6090 * i-cstrea.ads: (fopen): Add encoding parameter.
6092 Change reference from a-sysdep.c to sysdep.c in comment.
6093 Update copyright notice.
6094 This set of patch add support for the encoding form parameter.
6096 * mingw32.h (S2WSU): New macro to convert from a string to a
6097 wide-string using the UTF-8 encoding. The S2WS macro supports now only
6098 standard 8bits encoding.
6099 (WS2SU): As above but converting from wide-sring to string.
6100 This is needed as it is necessary to have access to both versions in the
6101 runtime for the form parameter encoding support.
6102 This set of patch add support for the encoding form parameter.
6103 (S2WS): Improve implementation to handle cases where the filename is not
6104 UTF-8 encoded. In this case we default to using the current code page
6107 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
6108 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
6109 the constants defined in adaint.h.
6110 (fopen): Add encoding parameter.
6113 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
6114 encoding. This is needed for the Reset routine (freopen low level-call).
6116 * s-fileio.adb (Open): Decode encoding form parameter and set the
6117 corresponding encoding value into AFCB structure.
6118 (Reset): Pass the encoding value to freopen.
6119 (Close): Move the call to Lock_Task to the beginning of the procedure.
6121 2007-04-06 Geert Bosch <bosch@adacore.com>
6122 Robert Dewar <dewar@adacore.com>
6124 * i-fortra.ads: Add Double_Complex type.
6126 * impunit.adb: (Is_Known_Unit): New function
6127 Add Gnat.Byte_Swapping
6129 Add new Ada 2005 units
6130 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
6131 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
6132 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
6133 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
6135 * impunit.ads (Is_Known_Unit): New function
6137 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
6138 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
6139 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
6140 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
6141 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
6142 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
6145 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
6147 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
6149 2007-04-06 Eric Botcazou <botcazou@adacore.com>
6150 Arnaud Charlet <charlet@adacore.com>
6152 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
6153 __gnat_adjust_context_for_raise.
6154 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
6155 implementation of floating point operations as native x86 targets.
6156 So the FPU should be initialized in the same way using finit. Fix
6157 floating point operations accuracy issues.
6158 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
6159 member in struct sigaction, so as to avoid warning for incompatible
6162 2007-04-06 Serguei Rybin <rybin@adacore.com>
6164 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
6165 switches from previously loaded tree
6167 2007-04-06 Thomas Quinot <quinot@adacore.com>
6169 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
6170 cases where a given dependency has a body or not.
6171 (Write_With_File_Names): New subprogram, common code for the two cases
6174 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6175 Javier Miranda <miranda@adacore.com>
6177 * lib-xref.ads, lib-xref.adb:
6178 Modify the loop that collects type references, to include interface
6179 types that the type implements. List each of these interfaces when
6180 building the entry for the type.
6181 (Generate_Definition): Initialize component Def and Typ of new entry
6182 in table Xrefs, to avoid to have these components unitialized.
6183 (Output_References): Split Is_Abstract flag into
6184 Is_Abstract_Subprogram and Is_Abstract_Type.
6185 (Generate_Reference): Add barrier to do not generate the warning
6186 associated with Ada 2005 entities with entities generated by the
6189 2007-04-06 Robert Dewar <dewar@adacore.com>
6190 Arnaud Charlet <charlet@adacore.com>
6191 Vincent Celier <celier@adacore.com>
6193 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
6194 Update 'Exception Handling Control' chapter which was outdated.
6195 Minor fix to documentation of -gnatwq
6196 Remove section "Adapting the Run Time to a New C++ Compiler" because
6198 Add passage on need of -nostart-files in some non-ada-main cases.
6199 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
6200 Update documentation about Interfacing with C++
6201 Add documentation for new gnatmake switch -p
6202 Add missing protocol part in URLs.
6204 Document pragma Compile_Time_Error
6205 Add documentation for Object_Size indicating that stand alone
6206 objects can have a larger size in some cases.
6207 Add node for GNAT.Byte_Swapping, GNAT.SHA1
6208 Update reference to the Ravenscar profile.
6209 Document pragma Unreferenced_Objects
6211 * gnat-style.texi: Fix typo
6213 2007-04-06 Vincent Celier <celier@adacore.com>
6215 * mlib.adb (Building_Library): Only output "building a library..." in
6218 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
6219 files in verbose mode.
6221 * mlib-utl.adb (Ar): Only output the first object files when not in
6223 (Gcc): Do not display all the object files if not in verbose mode, only
6226 2007-04-06 Robert Dewar <dewar@adacore.com>
6228 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
6229 it no longer destroys the contents of Name_Buffer or Name_Len and
6230 non-standard and invalid names are handled better.
6231 (Get_Decoded_Name_String): Improve performance by using
6232 Name_Has_No_Encodings flag in the name table.
6233 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
6234 Used for debugging printouts.
6236 2007-04-06 Robert Dewar <dewar@adacore.com>
6237 Javier Miranda <miranda@adacore.com>
6238 Bob Duff <duff@adacore.com>
6240 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
6241 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
6242 there is no need to generate always a record_definition_node in case
6243 of synchronized interface types.
6244 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
6245 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
6246 illegal in Ada 95, in cases where it is legal. Change the warnings to
6247 errors in other cases. Don't give the error unless the "not null"
6248 parses properly. Correct the source position at which the error occurs.
6249 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
6250 P_Null_Exclusion, to suppress "not null" warnings.
6251 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
6252 associated goto statements.
6254 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
6257 * scans.ads (Type_Token_Location): New flag
6259 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
6260 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
6261 P_Null_Exclusion, to suppress "not null" warnings.
6263 2007-04-06 Robert Dewar <dewar@adacore.com>
6264 Javier Miranda <miranda@adacore.com>
6265 Bob Duff <duff@adacore.com>
6266 Vincent Celier <celier@adacore.com>
6268 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
6269 (Extensions_Allowed): No longer sets Ada_Version
6270 Entry for pragma Unreferenced_Objects
6272 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
6273 system.tasking if pragma priority used in a procedure
6274 (Analyze_Pragma, case Warning): Handle dot warning switches
6275 (Process_Compile_Time_Warning_Or_Error): New procedure
6276 (Analyze_Pragma): Add processing for Compile_Time_Error
6277 Add support for extra arguments External_Name and Link_Name.
6278 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
6279 (Process_Import_Or_Interface): Add support for the use of pragma Import
6281 (Extensions_Allowed): No longer affects Ada_Version
6282 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
6283 Is_Abstract_Type. Make sure these are called only when appropriate.
6284 Add processing for pragma Unreferenced_Objects
6286 * snames.h, snames.ads, snames.adb: Add entry for pragma
6288 Add new standard name Minimum_Binder_Options for new gprmake
6289 Add new standard names for gprmake: Archive_Suffix,
6290 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
6291 Library_Support, Library_Version_Options,
6292 Shared_Library_Minimum_Options,
6293 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
6294 Change Name_Call to Name_uCall so that it cannot clash with a legal
6296 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
6297 Append C_Plus_Plus to convention identifiers as synonym for CPP
6298 Add new standard names Stack and Builder_Switches
6299 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
6300 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
6301 Run_Path_Option, Toolchain_Version.
6302 Entry for pragma Unreferenced_Objects
6304 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
6305 switches, without repetition of "eD". Make sure that last character of
6306 -gnatep= switch is not taken as -gnat switch character.
6307 Complete rewrite of circuit for handling saving compilation options
6308 Occasioned by need to support dot switchs for -gnatw, but cleans up
6310 -gnatX does not affect Ada_Version
6311 Include -gnatyA in -gnatg style switches
6313 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
6314 warnings on return objects.
6315 (Warn_On_Useless_Assignment): Exclude warnings on return objects
6316 (Set_Dot_Warning_Switch): New procedure
6317 (Check_References): Add missing case of test for
6318 Has_Pragma_Unreferenced_Objects
6319 (Output_Unreferenced_Messages): Implement effect of new pragma
6320 Unreferenced_Objects, remove special casing of limited controlled
6323 2007-04-06 Vincent Celier <celier@adacore.com>
6325 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
6326 the default project path, initially done during elaboration of the
6328 If the prefix returned by Sdefault is null, get the prefix from a call
6329 to Executable_Prefix_Path.
6330 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
6333 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
6334 canonical directory name to open the directory from which files are
6336 (Record_Other_Sources): Idem.
6337 (Locate_Directory): Add the possibility to create automatically missing
6338 directories when Setup_Projects is True.
6339 Call Locate_Directory so that the directory will be created when
6340 Setup_Projects is True, for object dir, library dir, library ALI dir,
6341 library source copy dir and exec dir.
6343 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
6346 2007-04-06 Robert Dewar <dewar@adacore.com>
6348 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
6349 Use First/Next_Component_Or_Discriminant
6350 (Analyze_Record_Representation_Clause):
6351 Use First/Next_Component_Or_Discriminant
6352 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
6353 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
6354 definition if type is unconstrained.
6355 (Adjust_Record_For_Reverse_Bit_Order): New procedure
6356 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
6357 Is_Abstract_Subprogram and Is_Abstract_Type.
6358 (Adjust_Record_For_Reverse_Bit_Order): New procedure
6360 * repinfo.adb (List_Record_Info): Use First/
6361 Next_Component_Or_Discriminant.
6363 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
6366 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
6367 Include -gnatyA in default switches
6369 * opt.ads: (Warn_On_Non_Local_Exception): New flag
6370 (Warn_On_Reverse_Bit_Order): New flag
6371 (Extensions_Allowed): Update the documentation.
6372 (Warn_On_Questionable_Missing_Parens): Now on by default
6374 * usage.adb: Add documentation of -gnatw.x/X switches
6375 Document new -gnatyA style switch
6376 -gnatq warnings are on by default
6378 2007-04-06 Ed Falis <falis@adacore.com>
6380 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
6381 full word is no longer compared twice.
6383 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6385 * sem_ch10.adb (Install_Limited_Context_Clauses.
6386 Expand_Limited_With_Clause): Use a new copy of selector name in the
6387 call to Make_With_Clause. This fixes the tree structure for ASIS
6388 purposes. Nothing is changed in the compiler behaviour.
6389 (Process_Body_Clauses): Handle properly use clauses whose prefix is
6391 (Install_Limited_With_Clauses): Do not install non-limited view when it
6392 is still incomplete.
6394 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6395 Gary Dismukes <dismukes@adacore.com>
6397 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
6398 when capturing size information, instead of base type, which for a
6399 formal array type will be the unconstrained type.
6400 (Analyze_Formal_Object_Declaration): Add check for illegal default
6401 expressions for a formal in object of a limited type.
6402 (Instantiate_Object): Ditto.
6403 (Check_Formal_Package_Instance): Skip entities that are formal objects,
6404 because they were defaulted in the formal package and no check applies
6406 (Check_Formal_Package_Instance): Extend conformance check to other
6407 discrete types beyond Integer.
6408 (Process_Default): Copy directly the unmatched formal. A generic copy
6409 has already been performed in Analyze_Formal_Package.
6410 (Analyze_Associations): If a formal subprogram has no match, check for
6411 partial parametrization before looking for a default, to prevent
6413 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
6414 not set the instantiation environment before analyzing the actuals.
6415 Fixes regression on 8515-003 with implementation of AI-133.
6416 Set_Instance_Env checks whether the generic unit is a predefined
6417 unit, in which case the instance must be analyzed with the latest Ada
6418 mode. This setting must take place after analysis of the actuals,
6419 because the actuals must be analyzed and frozen in the Ada mode extant
6420 outside of the current instantiation.
6421 (Save_Env, Restore_Env): Preserve and restore the configuration
6422 parameters so that predefined units can be compiled in the proper Ada
6424 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
6425 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
6426 and Is_Abstract_Type.
6427 (Analyze_Formal_Package): For better error recovery, Add exception
6428 handler to catch Instantion_Error, which can be raised in
6429 Analyze_Associations
6431 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6432 Bob Duff <duff@adacore.com>
6433 Gary Dismukes <dismukes@adacore.com>
6435 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
6436 prefix type is a discriminated subtype of the type of the formal.
6437 (Analyze_Allocator): Collect all coextensions regardless of the context.
6438 Whether they can be allocated statically is determined in exp_ch4.
6439 (Analyze_Selected_Component): If the prefix is a limited view and the
6440 non-limited view is available, use the non-limited one.
6441 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
6442 therefore illegal), suggest a qualified expression rather than a type
6443 conversion, because a type conversion would be illegal in this context.
6444 (Anayze_Allocator): Trace recursively all nested allocators so that all
6445 coextensions are on the corresponding list for the root. Do no mark
6446 coextensions if the root allocator is within a declaration for a stack-
6447 allocated object, because the access discriminants will be allocated on
6449 (Analyze_Call): Remove restriction on calls to limited functions for the
6450 cases of generic actuals for formal objects, defaults for formal objects
6451 and defaults for record components.
6452 (Analyze_Allocator): Before analysis, chain coextensions on the proper
6453 element list. Their expansion is delayed until the enclosing allocator
6454 is processed and its finalization list constructed.
6455 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
6456 for an operation with the given name among the primitive operations of
6457 the corresponding record type.
6458 (Analyze_Selected_Component): If the prefix is a task type that
6459 implements an interface, and there is no entry with the given name,
6460 check whether there is another primitive operation (e.g. a function)
6462 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
6463 properly the indexing of a function call written in prefix form, where
6464 the function returns an array type, and all parameters of the function
6465 except the first have defaults.
6466 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
6467 the original operands, rather than relocating them, for efficiency and
6468 to work properly when an operand is overloaded.
6469 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
6470 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
6471 (Analyze_Selected_Component): If the prefix is a private extension, only
6472 scan the visible components, not those of the full view.
6473 (Try_Primitive_Operation): If the operation is a procedure, collect all
6474 possible interpretations, as for a function, because in the presence of
6475 classwide parameters several primitive operations of the type can match
6476 the given arguments.
6478 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6479 Robert Dewar <dewar@adacore.com>
6481 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
6482 tag-indeterminate call to an abstract function, when the left-hand side
6484 (Analyze_Loop_Statement): Improve detection of infinite loops
6486 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6487 Thomas Quinot <quinot@adacore.com>
6489 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
6490 out of Analyze_Package_Declaration, because processing must be applied
6491 to package bodies as well, for deferred constants completed by pragmas.
6492 (Analyze_Package_Declaration): When the package declaration being
6493 analyzed does not require an explicit body, call Check_Completion.
6494 (May_Need_Implicit_Body): An implicit body is required when a package
6495 spec contains the declaration of a remote access-to-classwide type.
6496 (Analyze_Package_Body): If the package contains RACWs, append the
6497 pending subprogram bodies generated by exp_dist at the end of the body.
6498 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
6499 Is_Abstract_Subprogram and Is_Abstract_Type.
6500 (Preserve_Full_Attributes): The full entity list is not an attribute
6501 that must be preserved from full to partial view.
6503 * sem_dist.adb (Add_RAS_Dereference_TSS):
6504 Change primitive name to _Call so it cannot clash with any legal
6505 identifier, and be special-cased in Check_Completion.
6506 Mark the full view of the designated type for the RACW associated with
6507 a RAS as Comes_From_Source to get proper view switching when installing
6508 private declarations.
6509 Provite a placeholder nested package body along with the nested spec
6510 to have a place for Append_RACW_Bodies to generate the calling stubs
6511 and stream attributes.
6513 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6514 Robert Dewar <dewar@adacore.com>
6516 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
6517 that is a limited view, check the non-limited view if available.
6518 (Undefined): Refine error message for missing with of Text_IO
6519 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
6520 to distinguish real missing with cases.
6521 Fix format of all missing with messages
6522 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
6523 renaming as body when renamed entity is abstract.
6525 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6526 Javier Miranda <miranda@adacore.com>
6528 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
6529 predicate recursive, to handle complex expressions on literals whose
6530 spurious ambiguity comes from the abstract interpretation of some
6532 (Interface_Present_In_Ancestor): Add support to concurrent record
6534 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
6535 Is_Abstract_Subprogram and Is_Abstract_Type.
6537 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6538 Javier Miranda <miranda@adacore.com>
6540 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
6541 dereference of a local object R created as a reference to another
6542 object O, use the access level of O.
6543 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
6544 rather than local Same_Formal_Type, to check whether protected operation
6545 overrides an inherited one.
6546 (Same_Formal_Type): New predicate, used when matching signatures of
6547 overriding synchronized operations, to handle the case when a formal
6548 has a type that is a generic actual.
6549 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
6550 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
6551 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
6552 syntactic ambiguities involving indexing of function calls that return
6554 (Abstract_Interface_List): New subprogram that returns the list of
6555 abstract interfaces associated with a concurrent type or a
6556 concurrent record type.
6557 (Interface_Present_In_Parent): New subprogram used to check if a
6558 given type or some of its parents implement a given interface.
6559 (Collect_Abstract_Interfaces): Add support for concurrent types
6560 with interface types.
6561 (Has_Abstract_Interfaces): Add support for concurrent types with
6563 (Is_Parent): New subprogram that determines whether E1 is a parent
6564 of E2. For a concurrent type its parent is the first element of its
6565 list of interface types; for other types this function provides the
6566 same result than Is_Ancestor.
6567 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
6568 (Collect_Synchronized_Interfaces): Removed because the subprogram
6569 Collect_Abstract_Interfaces provides this functionality.
6570 (Collect_Abstract_Interfaces): Minor update to give support to
6571 concurrent types and thus avoid undesired code duplication.
6572 (Get_Subprogram_Entity): Handle entry calls.
6573 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
6575 (Enter_Name): Do not give -gnatwh hiding warning for record component
6576 entities, they never result in hiding.
6578 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6579 Robert Dewar <dewar@adacore.com>
6581 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
6582 to chain nested components that are allocators for access discriminants
6583 of the enclosing object.
6584 Add N_Push and N_Pop nodes
6585 New field Exception_Label added
6586 (Local_Raise_Statements): New field in N_Exception_Handler_Node
6587 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
6588 (Is_Coextension): New flag for allocators, to mark allocators that
6589 correspond to access discriminants of dynamically allocated objects.
6590 (N_Block_Statement): Document the fact that the corresponding entity
6591 can be an E_Return_Statement.
6592 (Is_Coextension): New flag for allocators.
6593 Remove all code for DSP option
6595 * sprint.ads, sprint.adb: Display basic information for class_wide
6596 subtypes. Add handling of N_Push and N_Pop nodes
6598 2007-04-06 Arnaud Charlet <charlet@adacore.com>
6600 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
6601 before propagating exception.
6603 2007-04-06 Olivier Hainque <hainque@adacore.com>
6605 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
6606 an address always within the call instruction from a return address.
6608 2007-04-06 Olivier Hainque <hainque@adacore.com>
6609 Eric Botcazou <botcazou@adacore.com>
6611 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
6612 expression with a COMPOUND_EXPR including the call instead of emitting
6613 the call directly here.
6614 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
6615 high bound is constant and the slice is empty. Tidy.
6616 (tree_transform, case N_Op_Not): Handle properly the case where the
6617 operation applies to a private type whose full view is a modular type.
6618 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
6619 Address_Clause, use the associated Expression as the GNAT tree
6620 representing the choice value to ensure the corresponding GCC tree is
6622 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
6623 instead of just the operands, as the base GCC stabilize_reference does.
6624 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
6625 requested; otherwise fail.
6626 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
6628 2007-04-06 Thomas Quinot <quinot@adacore.com>
6630 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
6631 implementation of UI_Div.
6632 (UI_Div): Reimplement as a call to UI_Div_Rem.
6633 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
6634 remainder, avoiding the cost of a multiplication and a subtraction.
6635 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
6636 provides both quotient and remainder in a single computation.
6637 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
6639 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
6640 is undefined if the given n is not inversible.
6642 2007-04-06 Olivier Hainque <hainque@adacore.com>
6644 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
6645 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
6648 2007-04-06 Eric Botcazou <botcazou@adacore.com>
6649 Olivier Hainque <hainque@adacore.com>
6651 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
6652 when updating the contents of the old pointer to an unconstrained array.
6653 (end_subprog_body): Set error_gnat_node to Empty.
6654 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
6655 (unchecked_convert): For subtype to base type conversions, require that
6656 the source be a subtype if it is an integer type.
6657 (builtin_decls): New global, vector of available builtin functions.
6658 (gnat_pushdecl): Add global builtin function declaration nodes to the
6660 (gnat_install_builtins): Adjust comments.
6661 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
6662 calling gnat_pushdecl, so that it knows when it handed a builtin
6663 function declaration node.
6664 (builtin_decl_for): Search the builtin_decls list.
6666 2007-04-06 Eric Botcazou <botcazou@adacore.com>
6668 * s-stchop-vxworks.adb:
6669 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
6671 2007-04-06 Robert Dewar <dewar@adacore.com>
6672 Arnaud Charlet <charlet@adacore.com>
6674 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
6676 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
6678 Add mention of -Sev (set initialize_scalars option from environment
6679 variable at run time) in gnatbind usage message.
6681 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
6683 * fname-uf.ads: Minor comment fix
6685 * osint.ads: Change pragma Elaborate to Elaborate_All
6687 * par-load.adb: Add documentation.
6689 * sem_cat.ads, sem_cat.adb: Minor code reorganization
6691 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
6693 * s-secsta.ads: Extra comments
6695 * s-soflin.ads: Minor comment fixes
6697 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
6699 * s-wchcon.ads: Minor comment addition
6701 * treepr.adb: Minor change in message
6702 (Print_Name,Print_Node): Make these debug printouts more robust: print
6703 "no such..." instead of crashing on bad input.
6705 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
6707 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
6708 instead of gnat_signed_or_unsigned_type.
6709 * utils.c (gnat_signed_or_unsigned_type): Remove.
6710 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
6711 * gigi.h (gnat_signed_or_unsigned_type): Remove
6713 2007-03-09 Roger Sayle <roger@eyesopen.com>
6715 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
6716 fold with the result of buildN.
6717 * decl.c (gnat_to_gnu_entity): Likewise.
6718 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
6719 * utils.c (finish_record_type, merge_sizes, max_size, convert):
6721 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
6722 nonbinary_modular_operation, build_binary_op, build_unary_op,
6723 build_cond_expr): Likewise.
6725 * utils.c (convert): Use fold_build1 when casting values to void.
6726 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
6727 fold_convert instead of convert when appropriate.
6729 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
6731 * Make-lang.in: Add install-pdf target as copied from
6732 automake v1.10 rules.
6734 2007-02-28 Andreas Schwab <schwab@suse.de>
6736 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
6737 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
6738 (doc/gnat-style.info): Likewise.
6740 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
6742 * gnat-style.texi: Standardize title page.
6743 * gnat_rm.texi: Likewise.
6744 * gnat_ugn.texi: Likewise.
6746 2007-02-25 Mark Mitchell <mark@codesourcery.com>
6748 * decl.c (annotate_value): Adjust for refactoring of tree_map
6751 2007-02-24 Mark Mitchell <mark@codesourcery.com>
6753 * decl.c (annotate_value): Adjust for refactoring of tree_map
6756 2007-02-21 Ed Schonberg <schonberg@adacore.com>
6759 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
6760 untagged derived type, add hidden components to keep discriminant
6761 layout consistent, when a given discriminant of the derived type
6762 constraints several discriminants of the parent type.
6764 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
6765 Sandra Loosemore <sandra@codesourcery.com>
6767 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
6768 build the call expression.
6769 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
6770 * utils.c (max_size) <tcc_exceptional>: Delete.
6771 <tcc_vl_exp>: New case.
6772 <tcc_expression>: Delete CALL_EXPR subcase.
6773 (build_global_cdtor): Use build_call_nary instead of build3.
6774 * utils2.c (build_call_1_expr): Likewise.
6775 (build_call_2_expr): Likewise.
6776 (build_call_0_expr): Likewise.
6777 (build_call_alloc_dealloc): Likewise.
6779 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
6781 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
6782 get_action_description_for): Replace _Unwind_Word with _uleb128_t
6783 and _Unwind_SWord with _sleb128_t.
6785 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
6787 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
6788 * decl.c: Include gt-ada-decl.h.
6789 (annotate_value_cache): New.
6790 (annotate_value): Use it instead of TREE_COMPLEXITY.
6792 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
6794 * misc.c, utils2.c: Fix comment typos.
6796 2007-01-24 Roger Sayle <roger@eyesopen.com>
6798 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
6799 TREE_CONSTANT_OVERFLOW.
6800 (allocatable_size_p, annotate_value): Likewise.
6801 * trans.c (gnat_to_gnu): Likewise.
6802 * utils.c (unchecked_convert): Likewise.
6803 * utils2.c (build_simple_component_ref): Likewise.
6805 2007-01-23 Richard Guenther <rguenther@suse.de>
6808 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
6809 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
6810 (gnatboot3): Likewise.
6811 (GNATBIND): Do not define.
6812 * Makefile.in (GNATBIND): Do not define.
6814 2007-01-08 Richard Guenther <rguenther@suse.de>
6816 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
6817 * trans.c (gnat_to_gnu): Likewise.
6819 2006-12-07 Geoffrey Keating <geoffk@apple.com>
6821 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
6822 * adaint.c: Likewise.
6824 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
6826 Merge from gimple-tuples-branch:
6827 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
6829 * ada-tree.h (lang_tree_node): Handle gimple tuples.
6830 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
6833 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
6835 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
6836 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
6839 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
6842 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
6843 if the initializer takes into account the padding.
6845 2006-11-11 Richard Guenther <rguenther@suse.de>
6847 * trans.c (maybe_stabilize_reference): Remove handling of
6848 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
6850 2006-11-05 Arnaud Charlet <charlet@adacore.com>
6853 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
6854 (To_Target_Priority): New function.
6856 2006-10-31 Robert Dewar <dewar@adacore.com>
6858 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
6859 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
6860 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
6861 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
6862 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
6863 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
6864 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
6865 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
6866 a-szbzha.adb: Minor reformatting. Fix header.
6868 * a-numaux-x86.adb: Add parentheses for use of unary minus
6869 * a-ngcefu.adb: Supply missing parentheses for unary minus
6870 * a-ngcoty.adb: Add parens for use of unary minus
6871 * a-ngelfu.adb: Add missing parens for unary minus
6872 * a-tifiio.adb: Add parentheses for uses of unary minus
6874 2006-10-31 Robert Dewar <dewar@adacore.com>
6875 Bob Duff <duff@adacore.com>
6876 Ed Schonberg <schonberg@adacore.com>
6878 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
6879 with multiplying operator.
6880 (Expected_Type_Is_Any_Real): New function to determine from the Parent
6881 pointer whether the context expects "any real type".
6882 (Resolve_Arithmetic_Op): Do not give an error on calls to the
6883 universal_fixed "*" and "/" operators when they are used in a context
6884 that expects any real type. Also set the type of the node to
6885 Universal_Real in this case, because downstream processing requires it
6886 (mainly static expression evaluation).
6887 Reword some continuation messages
6888 Add some \\ sequences to continuation messages
6889 (Resolve_Call): Refine infinite recursion case. The test has been
6890 sharpened to eliminate some false positives.
6891 Check for Current_Task usage now includes entry barrier, and is now a
6892 warning, not an error.
6893 (Resolve): If the call is ambiguous, indicate whether an interpretation
6894 is an inherited operation.
6895 (Check_Aggr): When resolving aggregates, skip associations with a box,
6896 which are priori correct, and will be replaced by an actual default
6897 expression in the course of expansion.
6898 (Resolve_Type_Conversion): Add missing support for conversion from
6899 a class-wide interface to a tagged type. Minor code cleanup.
6900 (Valid_Tagged_Converion): Add support for abstact interface type
6902 (Resolve_Selected_Component): Call Generate_Reference here rather than
6903 during analysis, and use May_Be_Lvalue to distinguish read/write.
6904 (Valid_Array_Conversion): New procedure, abstracted from
6905 Valid_Conversion, to incorporate accessibility checks for arrays of
6906 anonymous access types.
6907 (Valid_Conversion): For a conversion to a numeric type occurring in an
6908 instance or inlined body, no need to check that the operand type is
6909 numeric, since this has been checked during analysis of the template.
6910 Remove legacy test for scope name Unchecked_Conversion.
6912 * sem_res.ads: Minor reformatting
6914 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
6915 (PE_Current_Task_In_Entry_Body): New exception code
6916 (SE_Restriction_Violation): Removed, not used
6918 * a-except.ads: Update comments.
6920 * types.h, types.ads: Add definition for Validity_Check
6921 (PE_Current_Task_In_Entry_Body): New exception code
6922 (SE_Restriction_Violation): Removed, not used
6924 2006-10-31 Thomas Quinot <quinot@adacore.com>
6926 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
6929 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
6930 Jose Ruiz <ruiz@adacore.com>
6932 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
6933 part of Ada.Calendar: all subprogram raise Unimplemented.
6934 (Split_W_Offset): Temp function body, raising Unimplemented
6936 * a-calend.ads, a-calend-vms.ads:
6937 Add imported variable Invalid_TZ_Offset used to designate targets unable
6938 to support time zones.
6939 (Unimplemented): Temporary function raised by the body of new
6941 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
6942 unit provides handling of leap seconds and is used by the new Ada 2005
6943 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
6944 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
6945 version returns an extra value which is the offset to UTC.
6947 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
6948 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
6949 (Split_W_Offset): New function body.
6950 (Time_Of): When a date is close to UNIX epoch, compute the time for
6951 that date plus one day (that amount is later substracted after
6952 executing mktime) so there are no problems with time zone adjustments.
6954 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
6956 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
6957 a-catizo.ads, a-catizo.adb: New files.
6959 * impunit.adb: Add new Ada 2005 entries
6961 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
6962 Rename all occurences of "__gnat_localtime_r" to
6963 "__gnat_localtime_tzoff".
6964 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
6965 zone data and calculate the GMT offset.
6966 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
6967 Use the field "tm_gmtoff" to extract the GMT offset.
6968 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
6969 the external variable "timezone" to calculate the GMT offset.
6971 2006-10-31 Arnaud Charlet <charlet@adacore.com>
6972 Jose Ruiz <ruiz@adacore.com>
6974 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
6975 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
6976 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
6977 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
6978 System.Any_Priority to a POSIX priority on the target.
6980 * system-linux-ia64.ads:
6981 Extend range of Priority types on Linux to use the whole range made
6982 available by the system.
6984 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
6985 function maps from System.Any_Priority to a POSIX priority on the
6987 (PTHREAD_PRIO_PROTECT): Set real value.
6988 (PTHREAD_PRIO_INHERIT): Now a function.
6989 (SIGCPUFAIL): New signal.
6990 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
6991 are documented as reserved by the OS.
6993 * system-aix.ads: Use the full range of priorities provided by the
6996 * s-taprop-posix.adb: Call new function To_Target_Priority.
6997 (Set_Priority): Take into account Task_Dispatching_Policy and
6998 Priority_Specific_Dispatching pragmas when determining if Round Robin
6999 must be used for scheduling the task.
7001 * system-linux-x86_64.ads, system-linux-x86.ads,
7002 system-linux-ppc.ads: Extend range of Priority types on Linux to use
7003 the whole range made available by the system.
7005 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
7006 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
7007 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
7008 when deallocating the TCB in order to avoid potential references to
7010 (Set_Priority): Take into account Task_Dispatching_Policy and
7011 Priority_Specific_Dispatching pragmas when determining if Round Robin
7012 or FIFO within priorities must be used for scheduling the task.
7014 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
7015 the Thread field (to be used internally by the run-time system) and the
7016 kernel-level task id in the LWP field (to be used by the debugger).
7017 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
7018 instance, and propagate the current task options to the spawned task.
7019 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
7020 (Initialize): Set Round Robin dispatching when the corresponding pragma
7023 2006-10-31 Robert Dewar <dewar@adacore.com>
7025 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7026 system-linux-hppa.ads, system-hpux-ia64.ads,
7027 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
7028 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7029 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7030 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
7031 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7032 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7033 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
7034 Default_Bit_Order) to kill constant condition warnings for references
7037 2006-10-31 Vincent Celier <celier@adacore.com>
7038 Eric Botcazou <ebotcazou@adacore.com>
7040 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
7041 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
7042 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
7043 Ext_To, when building the library file name
7045 * mlib-tgt-vxworks.adb: ditto.
7046 (Get_Target_Suffix): Add support for x86 targets.
7048 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
7050 * mlib-tgt-darwin.adb:
7051 Use Append_To, instead of Ext_To, when building the library file name
7052 (Flat_Namespace): New global variable.
7053 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
7054 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
7055 (Link_Shared_Libgcc): Delete.
7056 (Build_Dynamic_Library): Adjust for above changes.
7058 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
7060 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
7062 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
7063 (Initialize): Add type conversions required by above change.
7065 2006-10-31 Jose Ruiz <ruiz@adacore.com>
7067 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
7068 (getpid): New body for this function that uses the underlying taskIdSelf
7069 function for VxWorks 5 and VxWorks 6 in kernel mode.
7070 (unsigned_int): New type, modular to allow logical bit operations.
7071 (taskOptionsGet): New imported function.
7073 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
7074 field to be compliant with the type used by the corresponding operating
7077 2006-10-31 Pascal Obry <obry@adacore.com>
7078 Eric Botcazou <ebotcazou@adacore.com>
7079 Vincent Celier <celier@adacore.com>
7081 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
7082 ASCII version of the registry API. This is needed as the GNAT runtime
7083 is now UNICODE by default.
7085 (get_gcc_version): Do not hardcode the return value.
7086 (__gnat_file_time_name): On Windows properly set the default returned
7087 value to -1 which corresponds to Invalid_Time.
7088 (__gnat_fopen): New routine. A simple wrapper on all plateforms
7089 except on Windows where it does conversion for unicode support.
7090 (__gnat_freopen): Idem.
7091 (__gnat_locate_exec_on_path): If environment variable PATH does not
7092 exist, return a NULL pointer
7094 * adaint.h: (__gnat_fopen): Declare.
7095 (__gnat_freopen): Likewise.
7097 * mingw32.h (_tfreopen): Define this macro here for older MingW
7099 Activate the unicode support on platforms using a MingW runtime
7100 version 3.9 or newer.
7102 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
7103 This is needed for proper unicode support on Windows.
7106 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
7107 Nicolas Setton <setton@adacore.com>
7108 Olivier Hainque <hainque@adacore.com>
7109 Gary Dismukes <dismukes@adacore.com>
7111 * gigi.h: (tree_code_for_record_type): Declare.
7112 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
7113 (get_global_renaming_pointers): Rename to
7114 invalidate_global_renaming_pointers.
7115 (static_ctors): Delete.
7116 (static_dtors): Likewise.
7117 (gnat_write_global_declarations): Declare.
7118 (create_var_decl): Adjust descriptive comment to indicate that the
7119 subprogram may return a CONST_DECL node.
7120 (create_true_var_decl): Declare new function, similar to
7121 create_var_decl but forcing the creation of a VAR_DECL node.
7122 (get_global_renaming_pointers): Declare.
7123 (add_global_renaming_pointer): Likewise.
7125 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
7127 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
7128 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
7130 (gnat_to_gnu_entity): Remove From_With_Type from computation for
7132 <E_Access_Type>: Use the Non_Limited_View as the full view of the
7133 designated type if the pointer comes from a limited_with clause. Make
7134 incomplete designated type if it is in the main unit and has a freeze
7136 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
7137 Underlying_Full_View similarly. Return earlier if the full view already
7138 has an associated tree.
7139 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
7140 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
7141 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
7142 reference type built for objects with an address clause.
7143 Use create_true_var_decl with const_flag set for
7144 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
7146 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
7147 for Character and Wide_Character types. This info is read by the
7148 dwarf-2 writer, and is needed to be able to use the command "ptype
7149 character" in the debugger.
7150 (gnat_to_gnu_entity): When generating a type representing
7151 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
7152 so that debug writers can distinguish it from ordinary integers.
7153 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
7154 addition to TREE_READONLY to assert the constantness of variables for
7155 elaboration purposes.
7156 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
7157 parameters to call new Einfo function First_Formal_With_Extras.
7158 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
7159 protected type with its corresponding discriminant, to obtain a usable
7161 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
7162 for a multiple elaboration of the "equivalent" type.
7163 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
7164 into record_global_renaming_pointer.
7165 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
7166 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
7167 <E_Array_Subtype>: Likewise.
7168 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
7169 incomplete subtypes and incomplete subtypes of incomplete types visible
7170 through a limited with clause.
7171 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
7172 the base index type for the maximum size of the array only if they are
7174 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
7175 expression into a SAVE_EXPR if stabilization failed.
7177 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
7178 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
7179 by lower level compilation passes.
7180 (gnat_genericize): New function, lowering a function body to GENERIC.
7181 Turn the type of RESULT_DECL into a real reference type if the decl
7182 has been marked DECL_BY_REFERENCE, and adjust references to the latter
7184 (gnat_genericize_r): New function. Tree walking callback for
7186 (convert_from_reference, is_byref_result): New functions. Helpers for
7188 (create_type_decl): Call gnat_pushdecl before calling
7189 rest_of_decl_compilation, to make sure that field TYPE_NAME of
7190 type_decl is properly set before calling the debug information writers.
7191 (write_record_type_debug_info): The heuristics which compute the
7192 alignment of a field in a variant record might not be accurate. Add a
7193 safety test to make sure no alignment is set to a smaller value than
7194 the alignment of the field type.
7195 (make_dummy_type): Use the Non_Limited_View as the underlying type if
7196 the type comes from a limited_with clause. Do not loop on the full view.
7197 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
7198 (dummy_node_table): New global variable, moved from decl.c.
7199 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
7200 (save_gnu_tree): Use above macros.
7201 (get_gnu_tree): Likewise.
7202 (present_gnu_tree): Likewise.
7203 (init_dummy_type): New function, moved from decl.c. Use above macros.
7204 (make_dummy_type): Likewise.
7205 (tree_code_for_record_type): New function extracted from make_dummy_type
7206 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
7207 (static_ctors): Change it to a vector, make static.
7208 (static_dtors): Likewise.
7209 (end_subprog_body): Adjust for above change.
7210 (build_global_cdtor): Moved from trans.c.
7211 (gnat_write_global_declarations): Emit global constructor and
7212 destructor, and call cgraph_optimize before emitting debug info for
7213 global declarations.
7214 (global_decls): New global variable.
7215 (gnat_pushdecl): Store the global declarations in global_decls, for
7217 (gnat_write_global_declarations): Emit debug information for global
7219 (create_var_decl_1): Former create_var_decl, with an extra argument to
7220 state whether the creation of a CONST_DECL is allowed.
7221 (create_var_decl): Behavior unchanged. Now a wrapper around
7222 create_var_decl_1 allowing CONST_DECL creation.
7223 (create_true_var_decl): New function, similar to create_var_decl but
7224 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
7225 (create_field_decl): Do not always mark the field as addressable
7226 if its type is an aggregate.
7227 (global_renaming_pointers): New static variable.
7228 (add_global_renaming_pointer): New function.
7229 (get_global_renaming_pointers): Likewise.
7231 * misc.c (gnat_dwarf_name): New function.
7232 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
7233 (gnat_post_options): Add comment about structural alias analysis.
7234 (gnat_parse_file): Do not call cgraph_optimize here.
7235 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
7237 * trans.c (process_freeze_entity): Don't abort if we already have a
7238 non dummy GCC tree for a Concurrent_Record_Type, as it might
7239 legitimately have been elaborated while processing the associated
7240 Concurrent_Type prior to this explicit freeze node.
7241 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
7242 exception handler volatile if it is of variable size.
7243 (process_type): Remove bypass for types coming from a limited_with
7245 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
7246 actual, convert the corresponding gnu_actual to the real destination
7247 type when necessary.
7248 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
7249 originally TREE_READONLY but whose elaboration cannot be performed
7251 Part of fix for F504-021.
7252 (tree_transform, subprogram cases): Change loops on formal parameters to
7253 call new Einfo function First_Formal_With_Extras.
7254 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
7255 stemming from type conversion for the lhs.
7256 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
7257 number of bits per unit for components of records.
7258 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
7259 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
7260 with At_End_Proc after the SJLJ EH cleanup.
7261 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
7263 (elaborate_all_entities): Do not retest type_annotate_only.
7264 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
7265 result type of an abstract subprogram, which may be an itype associated
7266 with an anonymous access result (related to AI-318-02).
7267 (build_global_cdtor): Move to utils.c.
7268 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
7269 this choice is not a null tree nor an integer constant.
7270 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
7271 on the body of elaboration routines instead of mark_unvisited.
7272 (add_stmt): Do not mark the tree.
7273 (add_decl_expr): Tweak comment.
7274 (mark_unvisited): Delete.
7275 (unshare_save_expr): New static function.
7276 (call_to_gnu): Issue an error when making a temporary around a
7277 procedure call because of non-addressable actual parameter if the
7278 type of the formal is by_reference.
7279 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
7280 after building the elaboration routine.
7282 2006-10-31 Bob Duff <duff@adacore.com>
7284 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
7285 as finalization-started, so we can raise Program_Error on 'new'.
7287 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
7288 collection has already started.
7290 * s-finimp.ads (Collection_Finalization_Started): Added new special
7291 flag value for indicating that a collection's finalization has started.
7293 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
7294 create a task whose master has already waited for dependent tasks.
7296 2006-10-31 Robert Dewar <dewar@adacore.com>
7298 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
7300 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
7301 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
7302 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
7303 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
7304 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
7305 a-except-2005.ads: Add pragma Preelaborable_Warning
7307 2006-10-31 Robert Dewar <dewar@adacore.com>
7308 Jose Ruiz <ruiz@adacore.com>
7310 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
7312 * ali.adb (Get_Name): Properly handle scanning of wide character names
7313 encoded with brackets notation.
7314 (Known_ALI_Lines): Add S lines to this list.
7315 (Scan_ALI): Acquire S (priority specific dispatching) lines.
7316 New flag Elaborate_All_Desirable in unit table
7318 * ali.ads (Priority_Specific_Dispatching): Add this range of
7319 identifiers to be used for Priority_Specific_Dispatching table entries.
7320 (ALIs_Record): Add First_Specific_Dispatching and
7321 Last_Specific_Dispatching that point to the first and last entries
7322 respectively in the priority specific dispatching table for this unit.
7323 (Specific_Dispatching): Add this table for storing each S (priority
7324 specific dispatching) line encountered in the input ALI file.
7325 New flag Elaborate_All_Desirable in unit table
7327 * bcheck.adb: (Check_Configuration_Consistency): Add call to
7328 Check_Consistent_Dispatching_Policy.
7329 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
7330 verifying that the use of Priority_Specific_Dispatching,
7331 Task_Dispatching_Policy, and Locking_Policy is consistent across the
7334 * bindgen.adb: (Public_Version_Warning): function removed.
7335 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
7336 required information from ALI files in order to initialize the table
7337 containing the specific dispatching policy.
7338 (Gen_Adainit_Ada): Generate the variables required for priority specific
7339 dispatching entries (__gl_priority_specific_dispatching and
7340 __gl_num_specific_dispatching).
7341 (Gen_Adainit_C): Generate the variables required for priority specific
7342 dispatching entries (__gl_priority_specific_dispatching and
7343 __gl_num_specific_dispatching).
7344 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
7346 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
7347 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
7349 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
7350 a call to gnat_set_globals.
7351 Generate a string containing settings from
7352 Priority_Specific_Dispatching pragma entries.
7353 (Gen_Object_Files_Options): Do not include the runtime libraries when
7354 pragma No_Run_Time is specified.
7356 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
7357 consistency with s-intman-posix.adb.
7358 (__gnat_error_handler, case FreeBSD): Account for the fact that the
7359 handler is installed with SA_SIGINFO.
7360 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
7361 FreeBSD ZCX support, copied from Linux version.
7362 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
7363 sigfillset, and sigemptyset so the routines defined by MaRTE.
7364 (__gl_priority_specific_dispatching): Add this variable that stores the
7365 string containing priority specific dispatching policies in the
7367 (__gl_num_specific_dispatching): Add this variable that indicates the
7368 highest priority for which a priority specific dispatching pragma
7370 (__gnat_get_specific_dispatching): Add this routine that returns the
7371 priority specific dispatching policy, as set by a
7372 Priority_Specific_Dispatching pragma appearing anywhere in the current
7373 partition. The input argument is the priority number, and the result
7374 is the upper case first character of the policy name.
7375 (__gnat_set_globals): Now a dummy function.
7376 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
7377 mechargs instead of sigargs, as the latter can be retrieved from the
7378 former and sigargs is not what we want on ia64.
7379 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
7381 (__gnat_adjust_context_for_raise, ia64-vms): New function.
7382 (tasking_error): Remove unused symbol.
7383 (_abort_signal): Move this symbol to the IRIX specific part since this
7384 is the only target that uses this definition.
7385 (Check_Abort_Status): Move this symbol to the IRIX specific part since
7386 this is the only target that uses this definition.
7387 (Lock_Task): Remove unused symbol.
7388 (Unlock_Task): Remove unused symbol.
7390 * lib-writ.adb (Write_ALI): Output new S lines for
7391 Priority_Specific_Dispatching pragmas.
7392 Implement new flag BD for elaborate body desirable
7394 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
7395 (Specific_Dispatching): Add this table for storing the entries
7396 corresponding to Priority_Specific_Dispatching pragmas.
7397 Document new BD flag for elaborate body desirable
7399 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
7402 2006-10-31 Javier Miranda <miranda@adacore.com>
7404 * a-tags.ads, a-tags.adb:
7405 (Predefined_DT): New function that improves readability of the code.
7406 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
7407 Inherit_DT): Use the new function Predefined_DT to improve code
7409 (Register_Interface_Tag): Update assertion.
7410 (Set_Interface_Table): Update assertion.
7411 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
7412 determining progenitor interfaces in Tags.
7413 (Inherit_CPP_DT): New subprogram.
7415 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
7416 analysis of the thunk code.
7417 (Expand_Interface_Conversion): Handle run-time conversion of
7418 access to class wide types.
7419 (Expand_Dispatching_Call): When generating the profile for the
7420 subprogram itype for a dispatching operation, properly terminate the
7421 formal parameters chaind list (set the Next_Entity of the last formal
7423 (Collect_All_Interfaces): Removed. This routine has been moved to
7424 sem_util and renamed as Collect_All_Abstract_Interfaces.
7425 (Set_All_DT_Position): Hidden entities associated with abstract
7426 interface primitives are not taken into account in the check for
7427 3.9.3(10); this check is done with the aliased entity.
7428 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
7429 interfacing with CPP by default.
7430 (Expand_Interface_Conversion): Add missing support for static conversion
7431 from an interface to a tagged type.
7432 (Collect_All_Interfaces): Add new out formal containing the list of
7433 abstract interface types to cleanup the subprogram Make_DT.
7434 (Make_DT): Update the code to generate the table of interfaces in case
7435 of abstract interface types.
7436 (Is_Predefined_Dispatching_Alias): New function that returns true if
7437 a primitive is not a predefined dispatching primitive but it is an
7438 alias of a predefined dispatching primitive.
7439 (Make_DT): If the ancestor of the type is a CPP_Class and we are
7440 compiling under full ABI compatibility mode we avoid the generation of
7441 calls to run-time services that fill the dispatch tables because under
7442 this mode we currently inherit the dispatch tables in the IP subprogram.
7443 (Write_DT): Emit an "is null" indication for a null procedure primitive.
7444 (Expand_Interface_Conversion): Use an address as the type of the formal
7445 of the internally built function that handles the case in which the
7446 target type is an access type.
7448 2006-10-31 Robert Dewar <dewar@adacore.com>
7450 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
7452 2006-10-31 Robert Dewar <dewar@adacore.com>
7454 * bindusg.ads, bindusg.adb:
7455 Change to package and rename procedure as Display, which
7456 now ensures that it only outputs usage information once.
7458 2006-10-31 Jose Ruiz <ruiz@adacore.com>
7460 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
7463 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
7466 2006-10-31 Robert Dewar <dewar@adacore.com>
7467 Ed Schonberg <schonberg@adacore.com>
7469 * treepr.adb: Use new subtype N_Membership_Test
7471 * checks.ads, checks.adb: Add definition for Validity_Check
7472 (Range_Or_Validity_Checks_Suppressed): New function
7473 (Ensure_Valid): Test Validity_Check suppressed
7474 (Insert_Valid_Check): Test Validity_Check suppressed
7475 (Insert_Valid_Check): Preserve Do_Range_Check flag
7476 (Validity_Check_Range): New procedure
7477 (Expr_Known_Valid): Result of membership test is always valid
7478 (Selected_Range_Checks): Range checks cannot be applied to discriminants
7479 by themselves. Disabling those checks must also be done for task types,
7480 where discriminants may be used for the bounds of entry families.
7481 (Apply_Address_Clause_Check): Remove side-effects if address expression
7482 is non-static and is not the name of a declared constant.
7483 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
7484 Code cleanup and new error messages.
7485 (Enable_Range_Check): Test for some cases of suppressed checks
7486 (Generate_Index_Checks): Suppress index checks if index checks are
7487 suppressed for array object or array type.
7488 (Apply_Selected_Length_Checks): Give warning for compile-time detected
7489 length check failure, even if checks are off.
7490 (Ensure_Valid): Do not generate a check on an indexed component whose
7491 prefix is a packed boolean array.
7492 * checks.adb: (Alignment_Checks_Suppressed): New function
7493 (Apply_Address_Clause_Check): New procedure, this is a completely
7494 rewritten replacement for Apply_Alignment_Check
7495 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
7496 we request a discriminal value only in case of discriminants.
7497 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
7498 assignments where the target subtype is unconstrained and the target
7499 object is a parameter or dereference (other aliased cases are known
7500 to be unconstrained).
7502 2006-10-31 Robert Dewar <dewar@adacore.com>
7504 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
7505 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
7506 vms_conv.adb: Fix bad table increment values (much too small)
7508 * table.adb (Realloc): Make sure we get at least some new elements
7509 Defends against silly small values for table increment
7511 2006-10-31 Robert Dewar <dewar@adacore.com>
7512 Ed Schonberg <schonberg@adacore.com>
7513 Bob Duff <duff@adacore.com>
7515 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
7516 entities. Move other fields around to make this possible
7517 (Is_Derived_Type): Add missing call to Is_Type.
7518 (Extra_Formals): New function for subprograms, entries, subprogram
7520 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
7521 (First_Formal_With_Extras): New function for subprogs, entries, subp
7523 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
7524 Add node information for E_Return_Statement.
7525 (Elaborate_Body_Desirable): New flag
7526 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
7527 to be Is_Inherently_Limited_Type, because return-by-reference has
7528 no meaning in Ada 2005.
7529 (E_Return_Statement): New entity kind.
7530 (Return_Applies_To): Field of E_Return_Statement.
7531 (Is_Return_Object): New flag in object entities.
7532 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
7533 (Must_Have_Preelab_Init): New flag
7534 (Known_To_Have_Preelab_Init): New flag
7535 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
7536 (Is_Visible_Formal): New flag on entities in formal packages.
7537 (Low_Bound_Known): New flag
7538 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
7540 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
7541 output when Id is an incomplete subtype.
7543 2006-10-31 Robert Dewar <dewar@adacore.com>
7545 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
7546 Avoid abbreviation Creat
7547 (Finalize): List all sources in extended mail source if -gnatl
7549 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
7550 (Finalize): Implement new -gnatl=xxx switch to output listing to file
7551 (Set_Specific_Warning_On): New procedure
7552 (Set_Specific_Warning_Off): New procedure
7553 Add implementation of new insertion \\
7554 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
7555 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
7557 (Error_Msg_Internal): Make sure that we set Last_Killed to
7558 True when a message from another package is suppressed.
7559 Implement insertion character ~ (insert string)
7560 (First_Node): Minor adjustments to get better placement.
7563 Implement new -gnatl=xxx switch to output listing to file
7566 Implement new -gnatl=xxx switch to output listing to file
7568 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
7569 (Commands_To_Stdout): New flag
7570 Implement new -gnatl=xxx switch to output listing to file
7571 New switch Dump_Source_Text
7572 (Warn_On_Deleted_Code): New warning flag for -gnatwt
7573 Define Error_Msg_Line_Length
7574 (Warn_On_Assumed_Low_Bound): New switch
7576 * osint.ads, osint.adb
7577 (Normalize_Directory_Name): Fix bug.
7578 Implement new -gnatl=xxx switch to output listing to file
7579 (Concat): Removed, replaced by real concatenation
7580 Make use of concatenation now allowed in compiler
7581 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
7582 we find the 'lib' or 'bin' directory even when the tool has been
7583 invoked with a relative path.
7584 (Executable_Name): New function taking string parameters.
7586 * osint-c.ads, osint-c.adb:
7587 Implement new -gnatl=xxx switch to output listing to file
7589 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
7592 Implement new -gnatl=xxx switch to output listing to file
7593 Recognize new -gnatL switch
7594 (no longer keep in old warning about old style usage)
7595 Use concatenation to simplify code
7596 Recognize -gnatjnn switch
7597 (Scan_Front_End_Switches): Clean up handling of -gnatW
7598 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
7600 2006-10-31 Robert Dewar <dewar@adacore.com>
7602 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
7603 (Set_Specific_Warning_Off): New procedure
7604 (Warning_Specifically_Suppressed): New function
7605 (Validate_Specific_Warnings): New procedure
7606 (Output_Msg_Text): Complete rewrite to support -gnatjnn
7608 * err_vars.ads: Implement insertion character ~ (insert string)
7610 2006-10-31 Bob Duff <duff@adacore.com>
7611 Ed Schonberg <schonberg@adacore.com>
7613 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
7614 the parent part is a build-in-place function call, generate assignments.
7615 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
7616 are build-in-place function calls.
7617 (Replace_Self_Reference): New subsidiary of
7618 Make_OK_Assignment_Statement, to replace an access attribute that is a
7619 self-reference into an access to the appropriate component of the
7620 target object. Generalizes previous mechanism to handle self-references
7621 nested at any level.
7622 (Is_Self_Referential_Init): Remove, not needed.
7623 (Is_Self_Referential_Init): New predicate to simplify handling of self
7624 referential components in record aggregates.
7625 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
7626 check for presence of entity before checking for self-reference.
7627 (Has_Default_Init_Comps): Return True if a component association is a
7628 self-reference to the enclosing type, which can only come from a
7629 default initialization.
7630 (Make_OK_Assignment_Statement): If the expression is of the form
7631 Typ'Acc, where Acc is an access attribute, the expression comes from a
7632 default initialized self-referential component.
7633 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
7634 that has been derived from several abstract interfaces we must also
7635 initialize the tags of the secondary dispatch tables.
7637 2006-10-31 Ed Schonberg <schonberg@adacore.com>
7638 Thomas Quinot <quinot@adacore.com>
7639 Javier Miranda <miranda@adacore.com>
7640 Robert Dewar <dewar@adacore.com>
7643 (Expand_Access_To_Protected_Op): If the context indicates that an access
7644 to a local operation may be transfered outside of the object, create an
7645 access to the wrapper operation that must be used in an external call.
7646 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
7647 target, pass the Valid attribute applied to a floating-point prefix on
7648 to the back end without expansion.
7649 (Storage_Size): Use the new run-time function Storage_Size to retrieve
7650 the allocated storage when it is specified by a per-object expression.
7651 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
7652 Nothing to do here, the attribute has been rewritten during semantic
7654 (Expand_Attribute_Reference): Handle expansion of the new Priority
7656 (Find_Fat_Info): Handle case of universal real
7657 (Expand_Access_To_Protected_Op): Fix use of access to protected
7658 subprogram from inside the body of a protected entry.
7659 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
7660 'Access and 'Unrestricted_Access, to transform the attribute reference
7662 (Is_Constrained_Aliased_View): New predicate to help determine whether a
7663 subcomponent's enclosing variable is aliased with a constrained subtype.
7664 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
7665 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
7666 an aliased prefix must be known to be constrained in order to use True
7667 for the attribute value, and now it's possible for some aliased views
7668 to be unconstrained.
7670 2006-10-31 Robert Dewar <dewar@adacore.com>
7672 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
7673 (Expand_Entity_Reference): Correct error of not handling subprogram
7674 formals in current_value processing.
7676 2006-10-31 Javier Miranda <miranda@adacore.com>
7677 Robert Dewar <dewar@adacore.com>
7678 Ed Schonberg <schonberg@adacore.com>
7679 Gary Dismukes <dismukes@adacore.com>
7681 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
7682 register in the final list objects containing class-wide interfaces;
7683 otherwise we incorrectly register the tag of the interface in the final
7685 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
7686 generate the wrapper if the parent primitive is abstract. This is
7687 required to report the correct error message.
7688 (Expand_N_Subtype_Indication): Do validity checks on range
7689 (Clean_Task_Names): If an initialization procedure includes a call to
7690 initialize a task (sub)component, indicate that the procedure will use
7691 the secondary stack.
7692 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
7693 compatibility for interfacing with CPP by default.
7694 (Expand_N_Object_Declaration): Only build an Adjust call when the
7695 object's type is a nonlimited controlled type.
7696 * exp_ch3.adb: Add with and use of Exp_Ch6.
7697 (Expand_N_Object_Declaration): Check for object initialization that is a
7698 call to build-in-place function and apply Make_Build_In_Place_Call_In_
7699 Object_Declaration to the call.
7700 (Freeze_Type): When the designated type of an RACW was not frozen at the
7701 point where the RACW was declared, validate the primitive operations
7702 with respect to E.2.2(14) when it finally is frozen.
7703 (Build_Initialization_Call,Expand_Record_Controller): Rename
7704 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
7705 return-by-reference has no meaning in Ada 2005.
7706 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
7707 to register tag of the immediate ancestor interfaces in the
7709 (Init_Secondary_Tags): Moved to the specification to allow the
7710 initialization of extension aggregates with abstract interfaces.
7711 (Build_Master_Renaming): Make public, for use by function declarations
7712 whose return type is an anonymous access type.
7713 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
7714 Insert_List_Before_And_Analyze after the generation of the specs
7715 associated with null procedures.
7716 (Expand_Tagged_Root): Update documentation in its specification.
7717 (Init_Secondary_Tags): Update documentation.
7718 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
7719 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
7720 then generate code to inherit the contents of the dispatch table
7721 directly from the ancestor.
7722 (Expand_Record_Controller): Insert controller component after tags of
7723 implemented interfaces.
7724 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
7725 create null procedure overridings when null procedures are inherited
7727 (Make_Null_Procedure_Specs): New procedure to generate null procedure
7728 declarations for overriding null primitives inherited from interfaces.
7729 (Is_Null_Interface_Procedure): New function in
7730 Make_Null_Procedure_Specs.
7731 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
7732 immediate ancestor of a tagged type is an abstract interface type we
7733 must generate the specification of the predefined primitives associated
7734 with controlled types (because the dispatch table of the ancestor is
7735 null and hence these entries cannot be inherited). This is required to
7736 elaborate well the dispatch table.
7738 2006-10-31 Javier Miranda <miranda@adacore.com>
7739 Ed Schonberg <schonberg@adacore.com>
7740 Bob Duff <duff@adacore.com>
7741 Gary Dismukes <dismukes@adacore.com>
7742 Robert Dewar <dewar@adacore.com>
7744 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
7746 (Expand_N_In): Do validity checks on range
7747 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
7748 (Expand_N_Allocator): For "new T", if the object is constrained by
7749 discriminant defaults, allocate the right amount of memory, rather than
7750 the maximum for type T.
7751 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
7752 when the allocator is initialized by a build-in-place call, since the
7753 allocator is already rewritten as a reference to the function result,
7754 and this prevents an unwanted duplication of the function call.
7755 Add with and use of Exp_Ch6.
7756 (Expand_Allocator_Expresssion): Check for an allocator whose expression
7757 is a call to build-in-place function and apply
7758 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
7759 untagged designated types).
7760 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
7761 optimization if source or target is biased.
7762 (Expand_N_Allocator): Add comments for case of an allocator within a
7763 function that returns an anonymous access type designating tasks.
7764 (Expand_N_Allocator): apply discriminant checks for access
7765 discriminants of anonymous access types (AI-402, AI-416)
7767 2006-10-31 Bob Duff <duff@adacore.com>
7768 Robert Dewar <dewar@adacore.com>
7769 Gary Dismukes <dismukes@adacore.com>
7770 Ed Schonberg <schonberg@adacore.com>
7772 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
7774 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
7775 (Expand_N_Assignment_Statement): Call
7776 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
7777 build-in-place function call. Currently, this can happen only for
7778 assignments that come from aggregates.
7779 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
7780 in order to alleviate the upward compatibility introduced by AI-318.
7781 (Expand_N_Extended_Return_Statement): Add support for handling the
7782 return object as a build-in-place result.
7783 (Expand_Non_Function_Return): Implement simple return statements nested
7784 within an extended return.
7785 (Enable_New_Return_Processing): Turn on the new processing of return
7787 (Expand_Non_Function_Return): For a return within an extended return,
7788 don't raise Program_Error, because Sem_Ch6 now gives a warning.
7789 (Expand_N_Extended_Return_Statement): Implement AI-318
7790 (Expand_Simple_Function_Return): Ditto.
7791 (Expand_N_If_Statement): Handle new -gnatwt warning
7792 (Expand_N_Case_Statement): Handle new -gnatwt warning
7793 (Expand_N_Assignment): Handle assignment to the Priority attribute of
7795 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
7796 validity checking of assignments to elementary record components.
7797 (Expand_N_Return_Statement): return Class Wide types on the secondary
7798 stack independantly of their controlled status since with HIE runtimes,
7799 class wide types are not potentially controlled anymore.
7801 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
7804 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
7805 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
7806 it expects a block, procedure, or task. The return statement will get
7807 turned into a block, and Expand_Cleanup_Actions will happen then.
7809 2006-10-31 Robert Dewar <dewar@adacore.com>
7810 Ed Schonberg <schonberg@adacore.com>
7811 Bob Duff <duff@adacore.com>
7812 Gary Dismukes <dismukes@adacore.com>
7814 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
7816 (Expand_Inlined_Call): Tagged types are by-reference types, and
7817 therefore should be replaced by a renaming declaration in the expanded
7818 body, as is done for limited types.
7819 (Expand_Call): If this is a call to a function with dispatching access
7820 result, propagate tag from context.
7821 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
7823 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
7824 build-in-place when the right-hand side of an assignment is a
7825 build-in-place function call.
7826 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
7827 of the explicit dereference of the allocator to the result subtype of
7828 the build-in-place function. This is needed to satisfy type checking
7829 in cases where the caller's return object is created by an allocator for
7830 a class-wide access type and the type named in the allocator is a
7832 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
7833 conversion of the reference to the declared object to the result subtype
7834 of the build-in-place function. This is needed to satisfy type checking
7835 in cases where the declared object has a class-wide type. Also, in the
7836 class-wide case, change the type of the object entity to the specific
7837 result subtype of the function, to avoid passing a class-wide object
7838 without explicit initialization to the back end.
7839 (Register_Interface_DT_Entry): Moved outside the body of
7840 Freeze_Subprogram because this routine is now public; it is called from
7841 Check_Dispatching_Overriding to handle late overriding of abstract
7842 interface primitives.
7843 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
7844 adding an implicit access actual on a call to a build-in-place function.
7845 (Expand_Actuals): Test for an actual parameter that is a call to a
7846 build-in-place function and apply
7847 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
7848 (Is_Build_In_Place_Function): New function to determine whether an
7849 entity is a function whose calls should be handled as build-in-place.
7850 (Is_Build_In_Place_Function_Call): New function to determine whether an
7851 expression is a function call that should handled as build-in-place.
7852 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
7853 calls to build-in-place functions as the initialization of an allocator.
7854 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
7855 handling calls to build-in-place functions in contexts that do not
7856 involve init of a separate object (for example, actuals of subprogram
7858 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
7859 handling calls to build-in-place functions as the initialization of an
7861 (Detect_Infinite_Recursion): Add explicit parameter Process to
7862 instantiation of Traverse_Body to avoid unreferenced warning.
7863 (Check_Overriding_Inherited_Interfaces): Removed.
7864 (Register_Interface_DT_Entry): Code cleanup.
7865 (Register_Predefined_DT_Entry): Code cleanup.
7866 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
7867 inlined statements if within a transient scope.
7868 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
7869 formal parameters with occurrences of actuals in inlined body, establish
7870 visibility on the proper view of the actual's subtype for the body's
7872 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
7873 compatibility mode and we have an imported CPP subprogram because
7874 for now we assume that imported CPP primitives correspond with
7875 objects whose constructor is in the CPP side (and therefore we
7876 don't need to generate code to register them in the dispatch table).
7877 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
7878 aligned selected component.
7879 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
7880 the actual of an in-mode parameter is a type conversion.
7881 (Expand_Actuals): If the call does not come from source and the actual
7882 is potentially misaligned, let gigi handle it rather than rejecting the
7883 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
7884 Class Wide types as returning by reference independantly of their
7885 controlled status since with HIE runtimes class wide types are not
7886 potentially controlled anymore.
7888 2006-10-31 Ed Schonberg <schonberg@adacore.com>
7890 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
7891 references that are private components of the protected object.
7892 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
7893 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
7894 instantiation to deal with warnings.
7895 (Initialize_Protection): If expression for priority is non-static, use
7896 System_Priority as its expected type, in case the expression has not
7899 2006-10-31 Robert Dewar <dewar@adacore.com>
7901 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
7902 initialization of Homonym_Len.
7903 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
7904 names from fully qualified name. Fixes problem of duplicate
7905 external names differing only in the presence of such a block name.
7907 2006-10-31 Thomas Quinot <quinot@adacore.com>
7908 Pablo Oliveira <oliveira@adacore.com>
7910 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
7911 subprogram Ids, even if they are not yet assigned.
7912 (Build_Subprogram_Id): It is now this function that will take care of
7913 calling Assign_Subprogram_Ids if necessary.
7914 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
7915 should be done only once they are assigned.
7916 (Build_From_Any_Function, case of tagged types): Add missing call to
7918 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
7919 type for an RACW type.
7920 (Add_RACW_Features): When processing an RACW declaration for which the
7921 designated type is already frozen, enforce E.2.2(14) rules immediately.
7922 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
7923 special reordering of controlling formals.
7925 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
7926 associated stub type for an RACW type.
7928 2006-10-31 Ed Schonberg <schonberg@adacore.com>
7930 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
7931 fixed-point operations in an integer context, i.e. as operands of a
7932 conversion to an integer type, indicate that result must be rounded.
7934 2006-10-31 Robert Dewar <dewar@adacore.com>
7936 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
7937 cases, pass the encoding method, since it is now required by the run
7940 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
7941 assumption that Str'First = 1.
7942 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
7943 it on to the Value_Wide_Wide_Character call.
7944 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
7945 properly handles a string of the form quote-encoded_wide_char-quote.
7947 * s-wchcnv.adb: Minor reformatting
7949 2006-10-31 Javier Miranda <miranda@adacore.com>
7951 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
7952 run-time membership test to ensure that the constructed object
7953 implements the target abstract interface.
7955 2006-10-31 Robert Dewar <dewar@adacore.com>
7957 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
7958 Machine_Attribute pragma internally to implement the user pragma.
7959 Add processing for pragma Interface so that it is now completely
7960 equivalent to pragma Import.
7962 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
7963 so that it can be applied to all entities, including record components
7964 and enumeration literals.
7965 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
7966 priority ranges are correct, verify compatibility against task
7967 dispatching and locking policies, and if everything is correct an entry
7968 is added to the table containing priority specific dispatching entries
7969 for this compilation unit.
7970 (Delay_Config_Pragma_Analyze): Delay processing
7971 Priority_Specific_Dispatching pragmas because when processing the
7972 pragma we need to access run-time data, such as the range of
7973 System.Any_Priority.
7974 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
7975 Allow pragma Unreferenced as a context item
7976 Add pragma Preelaborable_Initialization
7977 (Analyze_Pragma, case Interface): Interface is extended so that it is
7978 now syntactically and semantically equivalent to Import.
7979 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
7980 insertion characters.
7981 Add handling for Pragma_Wide_Character_Encoding
7982 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
7983 never supercedes a real restriction, and that a real restriction
7984 always supercedes a warning.
7985 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
7988 2006-10-31 Bob Duff <duff@adacore.com>
7989 Ed Schonberg <schonberg@adacore.com>
7990 Robert Dewar <dewar@adacore.com>
7992 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
7993 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
7994 Is_Inherently_Limited_Type, because return-by-reference has no meaning
7996 (Find_Node_To_Be_Wrapped): Use new method of determining the result
7997 type of the function containing a return statement, because the
7998 Return_Type field was removed. We now use the Return_Applies_To field.
8000 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
8001 (Build_Task_Image_Decl): If procedure is not called from an
8002 initialization procedure, indicate that function that builds task name
8003 uses the sec. stack. Otherwise the enclosing initialization procedure
8004 will carry the indication.
8005 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
8006 N_Object_Declaration instead.
8007 (Kill_Dead_Code): New interface to implement -gnatwt warning for
8008 conditional dead code killed, and change implementation accordingly.
8009 (Insert_Actions): Add N_Return_Object_Declaration case.
8010 Correct comment to mention N_Extension_Aggregate node.
8011 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
8012 attempts to save information for global variables which cannot be
8014 (Get_Current_Value_Condition): Handle conditions the other way round
8015 (constant on left). Also handle right operand of AND and AND THEN
8016 (Set_Current_Value_Condition): Corresponding changes
8017 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
8018 (Get_Current_Value_Condition): Handle simple boolean operands
8019 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
8020 (Get_Current_Value_Condition): If the variable reference is within an
8021 if-statement, does not appear in the list of then_statments, and does
8022 not come from source, treat it as being at unknown location.
8023 (Get_Current_Value_Condition): Enhance to allow while statements to be
8024 processed as well as if statements.
8025 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
8027 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
8028 of loop. This is safe now that we fixed Kill_Current_Values.
8029 (OK_To_Do_Constant_Replacement): Check whether current scope is
8030 Standard, before examining outer scopes.
8032 2006-10-31 Vincent Celier <celier@adacore.com>
8034 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
8035 When True, apply VMS treatment to children of packages A, G, I and S.
8038 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
8040 2006-10-31 Robert Dewar <dewar@adacore.com>
8041 Ed Schonberg <schonberg@adacore.com>
8043 * freeze.adb: Add handling of Last_Assignment field
8044 (Warn_Overlay): Supply missing continuation marks in error msgs
8045 (Freeze_Entity): Add check for Preelaborable_Initialization
8047 * g-comlin.adb: Add Warnings (Off) to prevent new warning
8049 * g-expect.adb: Add Warnings (Off) to prevent new warning
8051 * lib-xref.adb: Add handling of Last_Assignment field
8052 (Generate_Reference): Centralize handling of pragma Obsolescent here
8053 (Generate_Reference): Accept an implicit reference generated for a
8054 default in an instance.
8055 (Generate_Reference): Accept a reference for a node that is not in the
8056 main unit, if it is the generic body corresponding to an subprogram
8059 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
8061 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
8063 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
8065 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
8066 use clauses, to avoid messages on packages used to qualify, and also
8067 to avoid messages from obsolescent units.
8068 (Warn_On_Useless_Assignments): Don't generate messages for imported
8069 and exported variables.
8070 (Warn_On_Useless_Assignments): New procedure
8071 (Output_Obsolescent_Entity_Warnings): New procedure
8072 (Check_Code_Statement): New procedure
8074 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
8075 Change name Is_Ada_2005 to Is_Ada_2005_Only
8076 (Last_Assignment): New field for useless assignment warning
8078 2006-10-31 Olivier Hainque <hainque@adacore.com>
8080 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
8081 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
8083 2006-10-31 Bob Duff <duff@adacore.com>
8084 Robert Dewar <dewar@adacore.com>
8085 Ed Schonberg <schonberg@adacore.com>
8087 * g-awk.adb (Default_Session, Current_Session): Compile this file in
8088 Ada 95 mode, because it violates the new rules for AI-318.
8090 * g-awk.ads: Use overloaded subprograms in every case where we used to
8091 have a default of Current_Session. This makes the code closer to be
8092 correct for both Ada 95 and 2005.
8094 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
8095 code, relying on the fact that the compiler generates a warning
8096 instead of an error in -gnatg mode.
8098 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
8099 E_Return_Statement entity kind.
8100 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
8102 * par.adb (P_Interface_Type_Definition): Addition of one formal to
8103 report an error if the reserved word abstract has been previously found.
8104 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
8106 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
8107 parenthesized range attribute usage
8108 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
8110 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
8111 in the syntax for extended_return_statement. This is not in the latest
8112 RM, but the ARG is expected to issue an AI allowing this.
8113 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
8114 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
8115 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
8116 P_Return_Statement): Parse the new syntax for extended_return_statement.
8118 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
8119 Output_End_Missing): Add error-recovery code for the new
8120 extended_return_statement syntax; that is, the new E_Return entry on
8123 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
8124 limited to nonlimited, because otherwise we violate the new Ada 2005
8125 rules about returning limited types in function Create_AST_Handler in
8128 * sem.adb (Analyze): Add cases for new node kinds
8129 N_Extended_Return_Statement and N_Return_Object_Declaration.
8131 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
8132 type is in the same category as type of context before applying check,
8133 to prevent anomalies in instantiations.
8134 (Resolve_Aggregate): Remove test for limited components in aggregates.
8135 It's unnecessary in Ada 95, because if it has limited components, then
8136 it must be limited. It's wrong in Ada 2005, because limited aggregates
8138 (Resolve_Record_Aggregate): Move check for limited types later, because
8139 OK_For_Limited_Init requires its argument to have been resolved.
8140 (Get_Value): When copying the component default expression for a
8141 defaulted association in an aggregate, use the sloc of the aggregate
8142 and not that of the original expression, to prevent spurious
8143 elaboration errors, when the expression includes function calls.
8144 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
8145 were missing. We also didn't handle qualified expressions. Now also
8146 allow function calls. Use new common routine OK_For_Limited_Init.
8147 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
8148 with space can upper case letter).
8150 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
8151 Has_Static_Discriminants flag
8152 (Record_Type_Declaration): Diagnose an attempt to declare an interface
8153 type with discriminants.
8154 (Process_Range_Expr_In_Decl): Do validity checks on range
8155 (Build_Discriminant_Constraints): Use updated form of
8156 Denotes_Discriminant.
8157 (Process_Subtype): If the subtype is a private subtype whose full view
8158 is a concurrent subtype, introduce an itype reference to prevent scope
8160 (Build_Derived_Record_Type, Collect_Interface_Primitives,
8161 Record_Type_Declaration): The functionality of the subprograms
8162 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
8163 is now performed by a single routine.
8164 (Build_Derived_Record_Type): If the type definition includes an explicit
8165 indication of limitedness, then the type must be marked as limited here
8166 to ensure that any access discriminants will not be treated as having
8167 a local anonymous access type.
8168 (Check_Abstract_Overriding): Issue a detailed error message when an
8169 abstract subprogram was not overridden due to incorrect mode of its
8171 (Analyze_Private_Extension_Declaration): Add support for the analysis of
8172 synchronized private extension declarations. Verify that the ancestor is
8173 a limited or synchronized interface or in the generic case, the ancestor
8174 is a tagged limited type or synchronized interface and all progenitors
8175 are either limited or synchronized interfaces.
8176 Derived_Type_Declaration): Check for presence of private extension when
8177 dealing with synchronized formal derived types.
8178 Process_Full_View): Enchance the check done on the usage of "limited" by
8179 testing whether the private view is synchronized.
8180 Verify that a synchronized private view is completed by a protected or
8182 (OK_For_Limited_Init_In_05): New function.
8183 (Analyze_Object_Declaration): Move check for limited types later,
8184 because OK_For_Limited_Init requires its argument to have been resolved.
8185 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
8186 in order to alleviate the upward compatibility introduced by AI-318.
8187 (Constrain_Corresponding_Record): If the constraint is for a component
8188 subtype, mark the itype as frozen, to avoid out-of-scope references to
8189 discriminants in the back-end.
8190 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
8191 this subprogram against wrong sources.
8192 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
8193 discriminant of limited type completed with a protected type, when the
8194 discriminant is used to constrain a private component of the type, and
8195 expansion is disabled.
8196 (Find_Type_Of_Object): Do not treat a return subtype that is an
8197 anonymous subtype as a local_anonymous_type, because its accessibility
8198 level is the return type of the enclosing function.
8199 (Check_Initialization): In -gnatg mode, turn the error "cannot
8200 initialize entities of limited type" into a warning.
8201 (OK_For_Limited_Init): Return true for generated nodes, since it
8202 sometimes violates the legality rules.
8203 (Make_Incomplete_Declaration): If the type for which an incomplete
8204 declaration is created happens to be the currently visible entity,
8205 preserve the homonym chain when removing it from visibility.
8206 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
8207 inherited subprograms.
8208 (Access_Definition): If this is an access to function that is the return
8209 type of an access_to_function definition, context is a type declaration
8210 and the scope of the anonymous type is the current one.
8211 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
8212 incomplete subtype to the set of private dependents of the original
8214 (Constrain_Discriminated_Type): Emit an error message whenever an
8215 incomplete subtype is being constrained.
8216 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
8217 corresponding subtype of the full view of the original incomplete type.
8218 (Check_Incomplete): Properly detect invalid usage of incomplete types
8221 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
8223 * g-catiio.ads, g-catiio.adb (Value): New function.
8224 Given an input String, try and parse a valid Time value.
8226 2006-10-31 Vincent Celier <celier@adacore.com>
8228 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
8229 Integer_Address arithmetic, as in Set_Valid.
8231 2006-10-31 Arnaud Charlet <charlet@adacore.com>
8232 Robert Dewar <dewar@adacore.com>
8234 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
8235 handling executable extension manually and duplicating code.
8237 * make.adb: Implement new -S switch
8238 (Gnatmake): Use new function Osint.Executable_Name instead
8239 of handling executable extension manually.
8241 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
8242 is specified, the executable name ends with this suffix.
8243 Take advantage of Osint.Executable_Name instead of duplicating code.
8245 * switch-m.adb: Recognize new gnatmake -S switch
8247 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
8249 (Get_Target_Parameters): Set Executable_Extension_On_Target if
8252 * makeusg.adb: Add line for gnatmake -S switch
8254 2006-10-31 Vincent Celier <celier@adacore.com>
8256 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
8257 call it with -static-libgcc, as there are some platforms, such as
8258 Darwin, where one of these two switches is compulsory to link.
8260 2006-10-31 Vincent Celier <celier@adacore.com>
8262 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
8263 instead of ADA_PROJECT_PATH, for the project path.
8264 (Gnatls): When displaying the project path directories, use host dir
8267 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
8268 names in the project path, as absolute paths may correspond to
8269 multi-valued VMS logical names.
8271 2006-10-31 Vincent Celier <celier@adacore.com>
8273 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
8275 (Locate_Regular_File): Ditto
8276 (Change_Dir): Remove, no longer used
8277 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
8278 on Windows. Get it calling Get_Current_Dir.
8279 (OpenVMS): Remove imported boolean, no longer needed.
8280 (Normalize_Pathname)[VMS]: Do not resolve directory names.
8281 (Pid_To_Integer): New function to convert a Process_Id to Integer
8283 2006-10-31 Thomas Quinot <quinot@adacore.com>
8285 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
8286 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
8288 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
8291 2006-10-31 Robert Dewar <dewar@adacore.com>
8293 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
8294 initial letter o as a zero.
8296 2006-10-31 Robert Dewar <dewar@adacore.com>
8298 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
8300 2006-10-31 Robert Dewar <dewar@adacore.com>
8302 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
8304 (Layout_Variant_Record): Retrieve the discriminants from the entity
8305 rather than from the type definition, because in the case of a full
8306 type for a private type we need to take the discriminants from the
8308 (Layout_Component_List): When applying the Max operator to variants with
8309 a nonstatic size, check whether either operand is static and scale that
8310 operand from bits to storage units before applying Max.
8311 (Layout_Type): In VMS, if a C-convention access type has no explicit
8312 size clause (and does not inherit one in the case of a derived type),
8313 then the size is reset to 32 from 64.
8315 2006-10-31 Vincent Celier <celier@adacore.com>
8317 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
8318 its file has already been loaded, according to the unit being loaded,
8319 not to the current value of Multiple_Unit_Index.
8321 2006-10-31 Thomas Quinot <quinot@adacore.com>
8322 Eric Botcazou <ebotcazou@adacore.com>
8323 Arnaud Charlet <charlet@adacore.com>
8325 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
8326 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
8328 (a-except.o): Pass it to the compiler.
8329 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
8330 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
8331 a-calend-mingw.adb version.
8333 * Makefile.rtl: Added s-dsaser.
8334 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
8335 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
8336 Ada.Dispatching.Round_Robin.
8337 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
8339 * Make-lang.in: Remove all references to gt-ada-decl.h.
8340 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
8342 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
8343 Update dependencies.
8345 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
8347 2006-10-31 Vincent Celier <celier@adacore.com>
8349 * mlib-utl.adb (Initialized): Remove, no longer used
8350 (Initialize): Remove, no longer used
8351 (Ar): If Ar_Exec is null, get the location of the archive builder and,
8352 if there is one, the archive indexer. Fail if the archive builder cannot
8354 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
8357 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8359 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
8360 Process_Body_Clauses): If the context of a body includes a use clause
8361 for P.Q then a with_clause for P in the same body is not redundant,
8362 even if the spec also has a with_clause on P.
8363 Add missing continuation mark to error msg
8364 (Build_Limited_Views): A limited view of a type is tagged if its
8365 declaration includes a record extension.
8366 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
8367 node, even if the subunit has errors. This avoids malfunction by
8368 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
8369 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
8370 generation of obsolescent messages for with statements (cannot do
8371 this too early, or we cannot implement avoiding the messages in the
8372 case of obsolescent units withing obsolescent units).
8373 (Install_Siblings): If the with_clause is on a remote descendant of
8374 an ancestor of the current compilation unit, find whether there is
8375 a sibling child unit that is immediately visible.
8376 (Remove_Private_With_Clauses): New procedure, invoked after completing
8377 the analysis of the private part of a nested package, to remove from
8378 visibility the private with_clauses of the enclosing package
8380 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
8381 now centralized in Generate_Reference.
8382 (Install_Limited_Context_Clauses): Remove superfluous error
8383 message associated with unlimited view visible through use
8384 and renamings. In addition, at the point in which the error
8385 is reported, we add the backslash to the text of the error
8386 to ensure that it is reported as a single error message.
8387 Use new // insertion for some continuation messages
8388 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
8389 to create implicit with_clause for parent unit mentioned in original
8390 limited_with_clause.
8391 (Install_Limited_With_Unit): Set entity of parent identifiers if the
8392 unit is a child unit. For ASIS queries.
8393 (Analyze_Subunit): If the subunit appears within a child unit, make all
8394 ancestor child units directly visible again.
8396 2006-10-31 Robert Dewar <dewar@adacore.com>
8398 * par-ch10.adb (P_Context_Clause): Minor error message fix
8400 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
8401 Javier Miranda <miranda@adacore.com>
8403 * par-ch12.adb: Grammar update and cleanup.
8404 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
8405 support for synchronized derived type definitions.
8406 Add the new actual Abstract_Present to every call to
8407 P_Interface_Type_Definition.
8408 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
8409 a formal object declaration with an access definition or a subtype mark
8410 with a null exclusion.
8411 (P_Generic_Association): Handle association with box, and others_choice
8412 with box, to support Ada 2005 partially parametrized formal packages.
8414 2006-10-31 Robert Dewar <dewar@adacore.com>
8415 Javier Miranda <miranda@adacore.com>
8417 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
8418 (P_Type_Declaration): Remove barrier against the reserved word "limited"
8419 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
8420 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
8422 (P_Type_Declaration): Add the new actual Abstract_Present to every call
8423 to P_Interface_Type_Definition.
8424 (P_Interface_Type_Definition): Addition of one formal to report an error
8425 if the reserved word abstract has been previously found.
8426 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
8427 object renaming declaration with an access definition or subtype mark
8428 with a possible null exclusion.
8430 * par-ch9.adb: Minor error msg fix
8432 * par-load.adb: Add missing continuation mark to error msg
8434 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
8436 2006-10-31 Vincent Celier <celier@adacore.com>
8438 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
8439 unknown attribute in unknown package or in package that does not need
8441 (Parse_Package_Declaration): Do not issue warning for unknown package in
8444 2006-10-31 Vincent Celier <celier@adacore.com>
8446 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
8447 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
8450 2006-10-31 Vincent Celier <celier@adacore.com>
8452 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
8453 on VMS, change "__" to '.' before checking the name.
8454 (Record_Ada_Source): Always add the source file name in the list of
8455 of sources, even if it is not the first time, as it is for another
8457 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
8458 dot, instead of replacing only the first '_'.
8460 * prj-part.adb (Parse): Convert project file path to canonical form
8462 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
8463 extended, the project id of the project extending it is recorded in its
8464 data, even when it has already been processed as an imported project.
8466 2006-10-31 Robert Dewar <dewar@adacore.com>
8468 * repinfo.adb (List_Entities): Don't list entities from renaming
8471 2006-10-31 Arnaud Charlet <charlet@adacore.com>
8472 Robert Dewar <dewar@adacore.com>
8474 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
8475 only a restriction warning is active for the given restriction. This is
8476 desirable because we do not want to modify code in the case where only
8478 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
8479 causes overriding of real restrictions.
8480 Take advantage of new No_Restrictions constant.
8482 * raise.h: (__gnat_set_globals): Change profile.
8484 2006-10-31 Arnaud Charlet <charlet@adacore.com>
8486 * rtsfind.adb: Remove s-polint from comment as it exists no more.
8489 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
8490 Move all the entities in obsolete package System.PolyORB_Interface to
8491 System.Partition_Interface.
8492 (RE_Storage_Size): New function in System.Tasking.
8493 (RE_Get_Ceiling): New entity.
8494 (RE_Set_Ceiling): New entity.
8495 (RO_PE_Get_Ceiling): New entity.
8496 (RO_RE_Set_Ceiling): New entity.
8497 (Inherit_CPP_DT): New entity
8499 2006-10-31 Robert Dewar <dewar@adacore.com>
8501 * scng.adb (Scan, case of numeric literal): Better msg for identifier
8502 starting with a digit.
8504 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8505 Thomas Quinot <quinot@adacore.com>
8506 Javier Miranda <miranda@adacore.com>
8507 Gary Dismukes <dismukes@adacore.com>
8509 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
8510 properly an attempt to apply Unchecked_Access to a protected operation.
8511 (OK_Self_Reference): New subprogram to check the legality of an access
8512 attribute whose prefix is the type of an enclosing aggregate.
8513 Generalizes previous mechanism to handle attribute references nested
8514 arbitrarily deep within the aggregate.
8515 (Analyze_Access_Attribute): An access attribute whose prefix is a type
8516 can appear in an aggregate if this is a default-initialized aggregate
8517 for a self-referential type.
8518 (Resolve_Attribute, case Access): Ditto.
8519 Add support for new implementation defined attribute Stub_Type.
8520 (Eval_Attribute, case Attribute_Stub_Type): New case.
8521 (Analyze_Attribute, case Attribute_Stub_Type): New case.
8522 (Stream_Attribute_Available): Implement using new subprogram from
8523 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
8524 Has_Specified_Stream_Attribute flag.
8525 Disallow Storage_Size and Storage_Pool for access to subprogram
8526 (Resolve_Attribute, case 'Access et al): Take into account anonymous
8527 access types of return subtypes in extended return statements. Remove
8528 accessibility checks on anonymous access types when Unchecked_Access is
8530 (Analyze_Attribute): Add support for the use of 'Class to convert
8531 a class-wide interface to a tagged type.
8532 Add support for the attribute Priority.
8533 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
8534 whether the designated type is discriminated with a constrained partial
8535 view and require static matching in that case.
8536 Add local variable Des_Btyp. The Designated_Type
8537 of an access to incomplete subtype is either its non-limited view if
8538 coming from a limited with or its etype if regular incomplete subtype.
8540 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
8541 Fix predicate to identify and allow cases of (expander-generated)
8542 references to tag of designated object of a RACW.
8543 (Validate_Static_Object_Name): In Ada 2005, a formal object is
8544 non-static, and therefore cannot appear as a primary in a preelaborable
8546 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
8547 Has_Read_Write_Attributes.
8548 (Has_Read_Write_Attributes): Reimplement in termes of
8549 Has_Stream_Attribute_Definition.
8550 (Missing_Read_Write_Attributes): When checking component types in a
8551 record, unconditionally call Missing_Read_Write_Attributes recursively
8552 (remove guard checking for Is_Record_Type / Is_Access_Type).
8554 2006-10-31 Robert Dewar <dewar@adacore.com>
8556 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
8557 useless assignments here and conditionalize it on absence of exception
8559 (Analyze_Exception_Handlers): Small code reorganization of error
8560 detection code, for new handling of formal packages.
8562 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8563 Hristian Kirtchev <kirtchev@adacore.com>
8565 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
8566 that has been constant-folded, preserve information of original tree,
8568 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
8569 generated private extension declaration if the formal derived type is
8570 synchronized. Carry synchronized present over to the generated private
8572 (Validate_Derived_Type_Instance): Ensure that the actual of a
8573 synchronized formal derived type is a synchronized tagged type.
8574 (Instantiate_Formal_Package): When creating the instantiation used to
8575 validate the actual package of a formal declared without a box, check
8576 whether the formal itself depends on a prior actual.
8577 (Instantiate_Formal_Subprogram): Create new entities for the defining
8578 identifiers of the formals in the renaming declaration, for ASIS use.
8579 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
8580 a renaming declaration or a subtype declaration for an actual in an
8581 instance, capture location information of declaration in generic, for
8583 (Instantiate_Formal_Package): Add comments on needed additional tests.
8584 AI-317 (partial parametrization) is fully implemented.
8585 (Validate_Private_Type_Instance): Add check for actual which
8586 must have preelaborable initialization
8587 Use new // insertion for some continuation messages
8588 (Analyze_Formal_Object_Declaration): Change usage of Expression to
8589 Default_Expression. Add type retrieval when the declaration has an
8590 access definition. Update premature usage of incomplete type check.
8591 (Check_Access_Definition): New subsidiary routine. Check whether the
8592 current compilation version is Ada 05 and the supplied node has an
8594 (Instantiate object): Alphabetize local variables. Handle the creation
8595 of new renaming declarations with respect to the kind of definition
8596 used - either an access definition or a subtype mark. Guard against
8597 unnecessary error message in the context of anonymous access types after
8598 they have been resolved. Add check for required null exclusion in a
8599 formal object declaration.
8600 (Switch_View): A private subtype of a non-private type needs to be
8601 switched (the base type can have been switched without its private
8602 dependents because of the last branch of Check_Private_View.
8603 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
8605 (Instantiate_Type): Emit an error message whenever a class-wide type of
8606 a tagged incomplete type is used as a generic actual.
8607 (Find_Actual_Type): Extend routine to handle a component type in a child
8608 unit that is imported from a formal package in a parent.
8609 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
8610 agree on constrainedness, rather than checking against ultimate ancestor
8611 (Instantiate_Subprogram_Body): Create a cross-reference link to the
8612 generic body, for navigation purposes.
8614 2006-10-31 Robert Dewar <dewar@adacore.com>
8615 Thomas Quinot <quinot@adacore.com>
8617 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
8619 (New_Stream_Subprogram): When processing an attribute definition clause
8620 for a stream-oriented subprogram, record an entity node occurring at
8621 the point of clause to use for checking the visibility of the clause,
8622 as defined by 8.3(23) as amended by AI-195.
8623 (New_Stream_Subprogram): New procedure, factoring behaviour from both
8624 New_Stream_Function and New_Stream_Procedure.
8625 (New_Stream_Function, New_Stream_Procedure): Removed.
8626 (Analyze_Attribute_Definition_Clause, case Address): Check new
8627 Alignment_Check check
8629 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8630 Javier Miranda <miranda@adacore.com>
8631 Robert Dewar <dewar@adacore.com>
8633 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
8634 generate the same errors compiling under -gnatc.
8635 (Try_Object_Operation): If no candidate interpretation succeeds, but
8636 there is at least one primitive operation with the right name, report
8637 error in call rather than on a malformed selected component.
8638 (Analyze_Selected_Component): If the prefix is an incomplete type from
8639 a limited view, and the full view is available, use the full view to
8640 determine whether this is a prefixed call to a primitive operation.
8641 (Operator_Check): Verify that a candidate interpretation is a binary
8642 operation before checking the type of its second formal.
8643 (Analyze_Call): Add additional warnings for function call contexts not
8645 (Analyze_Allocator): Move the check for "initialization not allowed for
8646 limited types" after analyzing the expression. This is necessary,
8647 because OK_For_Limited_Init looks at the structure of the expression.
8648 Before analysis, we don't necessarily know what sort of expression it
8649 is. For example, we don't know whether F(X) is a function call or an
8650 indexed component; the former is legal in Ada 2005; the latter is not.
8651 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
8652 were missing. We also didn't handle qualified expressions. Now also
8653 allow function calls. Use new common routine OK_For_Limited_Init.
8654 (Analyze_Type_Conversion): Do not perform some legality checks in an
8655 instance, because the error message will be redundant or spurious.
8656 (Analyze_Overloaded_Selected_Component): Do not do style check when
8657 setting an entity, since we do not know it is the right entity yet.
8658 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
8659 (Analyze_Overloaded_Selected_Component): Same change
8660 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
8661 since regular incomplete subtypes are transformed into corresponding
8662 subtypes of their full views.
8663 (Complete_Object_Operation): Treat name of transformed subprogram call
8664 as coming from source, for browsing purposes.
8665 (Try_Primitive_Operation): If formal is an access parameter, compare
8666 with base type of object to determine whether it is a primitive
8668 (Operator_Check): If no interpretation of the operator matches, check
8669 whether a use clause on any candidate might make the operation legal.
8670 (Try_Class_Wide_Operation): Check whether the first parameter is an
8671 access type whose designated type is class-wide.
8673 2006-10-31 Robert Dewar <dewar@adacore.com>
8674 Ed Schonberg <schonberg@adacore.com>
8675 Gary Dismukes <dismukes@adacore.com>
8677 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
8678 warn on infinite loops.
8679 Add \\ to some continuation messages
8680 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
8681 (Process_Bounds): If the bounds are integer literals that result from
8682 constant-folding, and they carry a user-defined type, preserve that type
8683 rather than treating this as an integer range.
8684 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
8685 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
8686 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
8687 left hand side of assignment.
8688 (Analyze_Assignment): Add suport to manage assigments to the attribute
8689 priority of a protected object.
8690 (Check_Possible_Current_Value_Condition): Allow fully qualified names
8691 not just identifiers.
8692 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
8693 or AND THEN for possible tracking.
8694 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
8695 case of while loops so we can track values in the loop body.
8697 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8698 Hristian Kirtchev <kirtchev@adacore.com>
8699 Bob Duff <duff@adacore.com>
8701 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
8702 procedure cannot be a protected operation (it is a basic_declaration,
8703 not a subprogram_declaration).
8704 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
8705 Subp. Add logic for entry processing.
8706 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
8707 Determine whether an entry or subprogram of a protected or task type
8708 override an inherited primitive of an implemented interface.
8709 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
8710 Update the actual used in calls to Check_Overriding_Indicator.
8711 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
8712 generate the proper reference to the parent unit, for cross-reference.
8713 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
8715 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
8716 (Add_Extra_Formal): Revise procedure to allow passing in associated
8717 entity, scope, and name suffix, and handle setting of the new
8718 Extra_Formals field.
8719 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
8720 pass new parameters. Add support for adding the new extra access formal
8721 for functions whose calls are treated as build-in-place.
8722 (Analyze_A_Return_Statement): Correct casing in error message.
8723 Move Pop_Scope to after Analyze_Function_Return, because an extended
8724 return statement really is a full-fledged scope. Otherwise, visibility
8725 doesn't work right. Correct use of "\" for continuation messages.
8726 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
8727 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
8728 the node doesn't get properly marked as analyzed.
8729 (Analyze_Subprogram_Body): If subprogram is a function that returns
8730 an anonymous access type that denotes a task, build a Master Entity
8732 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
8733 proper usage of null exclusion in a result definition.
8734 (Process_Formals): Code cleanup and new error message.
8735 (Process_Formals): Detect incorrect application of null exclusion to
8737 (Conforming_Types): Handle conformance between [sub]types and itypes
8738 generated for entities that have null exclusions applied to them.
8739 (Maybe_Primitive_Operation): Add an additional type retrieval when the
8740 base type is an access subtype. This case arrises with null exclusions.
8741 (New_Overloaded_Entity): Do not remove the overriden entity from the
8742 homonym chain if it corresponds with an abstract interface primitive.
8743 (Process_Formals): Replace membership test agains Incomplete_Kind with a
8744 call to the synthesized predicate Is_Incomplete_Type.
8745 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
8747 (Analyze_Subprogram_Declaration): Check that abstract interface
8748 primitives are abstract or null.
8749 (Analyze_Subprogram_Specification): Remove previous check for abstract
8750 interfaces because it was not complete.
8751 (Has_Interface_Formals): Removed.
8753 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8754 Javier Miranda <miranda@adacore.com>
8756 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
8757 of Analyze_Package_Body, to create Itype references for anonymous
8758 access types created in the package declaration, whose designated types
8759 may have only a limited view.
8760 (Analyze_Package_Specification): For the private part of a nested
8761 package, install private_with_clauses of enclosing compilation unit if
8762 we are in its visible part.
8763 (Declare_Inherited_Private_Subprograms): Complete barrier
8764 to ensure that the primitive operation has an alias to some parent
8765 primitive. This is now required because, after the changes done for the
8766 implementation of abstract interfaces, the contents of the list of
8767 primitives has entities whose alias attribute references entities of
8768 such list of primitives.
8769 (Analyze_Package_Specification): Simplify code that handles parent units
8770 of instances and formal packages.
8771 (Uninstall_Declarations): Check the convention consistency among
8772 primitive overriding operations of a tagged record type.
8774 2006-10-31 Robert Dewar <dewar@adacore.com>
8775 Hristian Kirtchev <kirtchev@adacore.com>
8776 Javier Miranda <miranda@adacore.com>
8777 Ed Schonberg <schonberg@adacore.com>
8779 * sem_ch8.adb: Minor error msg rewording
8780 (Undefined): When checking for misspellings, invert arguments (to get
8781 expected and found set right)
8782 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
8783 (Analyze_Generic_Renaming): Same fix
8784 (Use_One_Package): Do not take into account the internal entities of
8785 abstract interfaces during the analysis of entities that are marked
8786 as potentially use-visible.
8787 (Find_Type): Handle the case of an attribute reference for
8788 implementation defined attribute Stub_Type (simply let the analysis of
8789 the attribute reference rewrite it).
8790 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
8791 type that appears in a Use_Type clause.
8792 (Analyze_Object_Renaming): Add support for renaming of the Priority
8794 (Find_Type): In Ada 2005, a task type can be used within its own body,
8795 when it appears in an access definition.
8796 (Analyze_Object_Renaming): Remove warning on null_exclusion.
8797 (Analyze_Object_Renaming): Introduce checks for required null exclusion
8798 in a formal object declaration or in a subtype declaration.
8799 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
8800 (Check_Null_Exclusion): New local routine to
8801 Analyze_Subprogram_Renaming. Check whether the formals and return
8802 profile of a renamed subprogram have required null exclusions when
8803 their counterparts of the renaming already impose them.
8804 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
8805 Determine whether an entity is inside a generic scope.
8806 (In_Open_Scope): First pass of documentation update.
8807 (Find_Expanded_Name): Add support for shadow entities associated with
8808 limited withed packages. This is required to handle nested packages.
8809 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
8810 that makes a renaming of a limited withed package illegal.
8812 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
8813 Ed Schonberg <schonberg@adacore.com>
8815 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
8816 Check_Overriding_Indicator.
8817 (Analyze_Task_Definition): Ditto.
8818 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
8819 (Check_Overriding_Indicator): To find overridden interface operation,
8820 examine only homonyms that have an explicit subprogram declaration, not
8821 inherited operations created by an unrelated type derivation.
8822 (Check_Overriding_Indicator): When checking for the presence of "null"
8823 in a procedure, ensure that the queried node is a procedure
8825 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
8826 type when the formal is an access to variable.
8827 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
8828 (Analyze_Task_Type): Same addition
8829 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
8830 provide navigation capabilities for entries.
8832 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
8833 Ed Schonberg <schonberg@adacore.com>
8834 Javier Miranda <miranda@adacore.com>
8835 Gary Dismukes <dismukes@adacore.com>
8837 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
8838 inherited from an interface ancestor by another interface in the
8839 context of an instance as 'late'.
8840 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
8841 of a call to a function that dispatches on access result.
8842 (Check_Dispatching_Operation): In case of late overriding of a primitive
8843 that covers abstract interface subprograms we register it in all the
8844 secondary dispatch tables associated with abstract interfaces.
8845 (Check_Dispatching_Call): Add check that a dispatching call is not made
8846 to a function with a controlling result of a limited type. This is a
8847 current implementation restriction.
8848 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
8849 (Check_Dispatching_Operation): Do no emit a warning if the controlling
8850 argument is an interface type that is a generic formal.
8851 (Is_Interface_Subprogram): Removed.
8852 (Check_Dispatching_Operation): If the subprogram is not a dispatching
8853 operation, check the formals to handle the case in which it is
8854 associated with an abstract interface type.
8856 2006-10-31 Robert Dewar <dewar@adacore.com>
8857 Ed Schonberg <schonberg@adacore.com>
8859 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
8860 Add new calls to this procedure during traversal
8861 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
8862 another unit if expansion is disabled.
8864 2006-10-31 Robert Dewar <dewar@adacore.com>
8866 * sem_eval.adb (Compile_Time_Compare): Make use of information from
8867 Current_Value in the conditional case, to evaluate additional
8868 comparisons at compile time.
8870 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8871 Hristian Kirtchev <kirtchev@adacore.com>
8872 Javier Miranda <miranda@adacore.com>
8874 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
8875 subprogram type to provide better diagnostics in case of ambiguity.
8876 (Covers): Handle coverage of formal and actual anonymous access types in
8877 the context of generic instantiation.
8878 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
8879 abstract interface types; this is required to handle concurrent types
8880 with discriminants and abstract interface types.
8881 (Covers): Include type coverage of both regular incomplete subtypes and
8882 incomplete subtypes of incomplete type visibles through a limited with
8885 2006-10-31 Robert Dewar <dewar@adacore.com>
8886 Hristian Kirtchev <kirtchev@adacore.com>
8887 Ed Schonberg <schonberg@adacore.com>
8889 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
8890 messages for entities in packages which are not used.
8891 (Collect_Synchronized_Interfaces): New procedure.
8892 (Overrides_Synchronized_Primitive): New function.
8893 (Denotes_Discriminant): Extend predicate to apply to task types.
8894 Add missing continuation marks in error msgs
8895 (Unqualify): New function for removing zero or more levels of
8896 qualification from an expression. There are numerous places where this
8897 ought to be used, but we currently only deal properly with zero or one
8899 (In_Instance); The analysis of the actuals in the instantiation of a
8900 child unit is not within an instantiation, even though the parent
8901 instance is on the scope stack.
8902 (Safe_To_Capture_Value): Exclude the case of variables that are
8904 (Check_Obsolescent): Removed
8905 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
8906 is an aliased view, even when rewritten as a reference to the target
8907 object in an assignment.
8908 (Get_Subprogram_Entity): New function
8909 (Known_To_Be_Assigned): New function
8910 (Type_Access_Level): Compute properly the access level of a return
8911 subtype that is an anonymous access type.
8912 (Explain_Limited_Type): Correct use of "\" for continuation messages.
8913 (Is_Transfer): The new extended_return_statement causes a transfer of
8915 (Has_Preelaborable_Initialization): New function
8916 (Has_Null_Exclusion): New function. Given a node N, determine whether it
8917 has a null exclusion depending on its Nkind.
8918 Change Is_Lvalue to May_Be_Lvalue
8919 (May_Be_Lvalue): Extensive additional code to deal with subprogram
8920 arguments (IN parameters are not Lvalues, IN OUT parameters are).
8921 (Safe_To_Capture_Value): Extend functionality so it can be used for
8922 the current value condition case.
8923 (Has_Compatible_Alignment): New function
8924 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
8925 objects to handle the Ada 2005 case, where aliasedness no longer implies
8926 that the object is constrained. In particular, for dereferenced names,
8927 the designated object must be assumed to be unconstrained.
8928 (Kill_Current_Values): Properly deal with the case where we encounter
8929 a loop in the scope chain.
8930 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
8932 (Compile_Time_Constraint_Error): Improve error message in error case
8934 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
8935 associated with entities of abstract interface primitives.
8936 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
8938 2006-10-31 Robert Dewar <dewar@adacore.com>
8940 * s-osinte-tru64.adb:
8941 Mark Asm statements Volatile to prevent warnings (seems a
8942 reasonable change anyway)
8945 * s-mastop-irix.adb: Add Volatile to Asm statements
8946 Suppresses warning, and seems appropriate in any case
8948 * s-osinte-vms.adb: Add Volatile to Asm statement
8950 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
8952 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
8954 Add call to Check_Code_Statement
8956 2006-10-31 Robert Dewar <dewar@adacore.com>
8957 Ed Schonberg <schonberg@adacore.com>
8958 Bob Duff <duff@adacore.com>
8960 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
8961 Synchronized_Present): Add Formal_Derived_Type_Definition and
8962 Private_Extension_Declaration to the list of assertions.
8963 (Is_Entry_Barrier_Function): New flag
8964 (Has_Self_Reference): New flag on aggregates, to indicate that they
8965 contain a reference to the enclosing type, inserted through a default
8967 (Next_Rep_Item): Move from Node4 to Node5.
8968 (Entity): Add this field for N_Attribute_Definition_Clause.
8969 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
8970 (N_Return_Object_Declaration): Remove this node kind. We now use
8971 N_Object_Declaration instead.
8972 (Actual_Designated_Subtype): Move to a different place to make room in
8973 N_Extended_Return_Statement.
8974 (Procedure_To_Call): Move to a different place to make room in
8975 N_Extended_Return_Statement.
8976 (Return_Type): Removed this field to make room in return statements
8978 (Return_Statement_Entity): New field in return statements, in part to
8979 replace Return_Type, and in part to support the fact that return
8980 statements are now pushed on the scope stack during semantic analysis.
8981 (Return_Object_Declarations): New field to support extended return
8983 (N_Extended_Return_Statement): New node for extended_return_statement
8985 (N_Return_Object_Declaration): New node for part of
8986 extended_return_statement nonterminal. Needed because all the necessary
8987 fields won't fit in N_Extended_Return_Statement.
8988 Generic_associations now carry the Box_Present flag, to indicate a
8989 default for an actual in a partially parametrized formal package.
8991 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
8992 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
8993 and for the new predefined dispatching policies: EDF_Across_Priorities,
8994 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
8995 Introduce new name Stub_Type for implementation defined attribute.
8996 Add pragma Preelaborable_Initialization
8997 Add entry for Priority attribute.
8998 Add Pragma_Wide_Character_Encoding
8999 (Get_Convention_Name): Given a convention id, this function returns the
9000 corresponding name id from the names table.
9002 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9003 Robert Dewar <dewar@adacore.com>
9004 Bob Duff <duff@adacore.com>
9006 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
9007 print null exclusion twice in the case of an access definition,
9008 Implement new -gnatL switch
9009 Remove N_Return_Object_Declaration. We now use
9010 N_Object_Declaration instead. Implement the case for
9011 N_Extended_Return_Statement. Alphabetize the cases.
9012 Add cases for new nodes N_Extended_Return_Statement and
9013 N_Return_Object_Declaration. The code is not yet written.
9014 Update the output for N_Formal_Object_Declaration
9015 and N_Object_Renaming_Declaration.
9016 (Write_Itype): Account for the case of a modular integer subtype whose
9017 base type is private.
9019 2006-10-31 Arnaud Charlet <charlet@adacore.com>
9021 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
9022 Remove elaboration code, now done in the binder.
9024 * s-rident.ads: Make this unit Preelaborate.
9025 (No_Restrictions): New constant used to clean up code and follow
9026 preelaborate constraints.
9029 Add System.Restrictions dependence, referenced directly from the
9030 binder generated file.
9032 2006-10-31 Gary Dismukes <dismukes@adacore.com>
9034 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
9035 True when AAMP extended floating-point is in use (48-bit). Change type
9036 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
9037 the two byte array types on AFloat. Change type of IV_Ilf overlay
9038 variable from Byte8 to ByteLF. Add appropriate initializations of
9039 floating-point overlays for AAMP cases.
9041 2006-10-31 Javier Miranda <miranda@adacore.com>
9043 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
9044 (Get_Ceiling): New subprogram that returns
9045 the ceiling priority of the protected object.
9046 (Set_Ceiling): New subprogram that sets the new ceiling priority of
9047 the protected object.
9049 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
9051 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
9053 2006-10-31 Jose Ruiz <ruiz@adacore.com>
9055 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
9056 requeuing to the same protected object to give higher priority tasks
9057 the opportunity to execute.
9059 2006-10-31 Robert Dewar <dewar@adacore.com>
9061 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
9062 add more precise check for the character sequence that follows '[' to
9063 avoid possible confusion in case if '[' is the last character of a
9065 (Scan_Wide): Always allow brackets encoding
9067 2006-10-31 Olivier Hainque <hainque@adacore.com>
9069 * s-stchop.ads: make this unit preelaborate. This is desirable in
9070 general and made mandatory by the use of this unit by s-taprop which
9071 is itself preelaborate.
9073 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
9074 Td_Events component.
9076 2006-10-31 Vincent Celier <celier@adacore.com>
9078 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
9081 2006-10-31 Vincent Celier <celier@adacore.com>
9083 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
9085 2006-10-31 Vincent Celier <celier@adacore.com>
9087 * makegpr.adb (Check_Compilation_Needed): Take into account path names
9089 (Check_Compilation_Needed): When checking a C or C++ source, do not
9090 resolve symbolic links.
9091 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
9092 When not in verbose mode and Ellipse is True, display "..." for the
9093 first argument with Display set to False.
9094 (Build_Global_Archive): Always set Display True for the first object
9095 file. Call Display_Command with Ellipse set to True.
9097 2006-10-31 Matt Heaney <heaney@adacore.com>
9099 * a-crbtgo.ads: Commented each subprogram
9101 * a-crbtgo.adb: Added reference to book from which algorithms were
9104 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
9105 indicate which child.
9106 (Generic_Conditional_Insert): changed parameter name from "Success" to
9108 (Generic_Unconditional_Insert_With_Hint): improved algorithm
9110 * a-coorse.adb (Replace_Element): changed parameter name in call to
9111 conditional insert operation.
9113 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
9115 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
9118 * a-ciorse.adb (Replace_Element): changed parameter name in call to
9119 conditional insert operation.
9121 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
9124 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
9125 instead of mode inout.
9127 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
9129 (Generic_Read): preserve existing buckets array if possible
9130 (Generic_Write): don't send buckets array length anymore
9132 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
9133 instead of mode inout.
9135 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
9136 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
9138 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
9139 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
9140 (Replace_Element): local operation is now an instantiation
9142 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
9143 check current length.
9144 (Generic_Replace_Element): new operation
9146 2006-10-31 Doug Rupp <rupp@adacore.com>
9148 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
9149 Call TBK$SYMBOLIZE without omitting parameters.
9151 2006-10-31 Vincent Celier <celier@adacore.com>
9153 * symbols-processing-vms-ia64.adb,
9154 symbols-processing-vms-alpha.adb (Process): Do not include symbols
9155 that come from generic instantiations in bodies.
9157 2006-10-31 Pat Rogers <rogers@adacore.com>
9159 * a-rttiev.ads, a-rttiev.adb:
9160 This is a significant redesign primarily for the sake of automatic
9161 timer task termination but also to fix a design flaw.
9162 Therefore we are now using an RTS lock, instead of a protected
9163 object, to provide mutual exclusion to the queue of pending events
9164 and the type Timing_Event is no longer a protected type.
9166 2006-10-31 Robert Dewar <dewar@adacore.com>
9167 Cyrille Comar <comar@adacore.com>
9168 Ben Brosgol <brosgol@adacore.com>
9170 * debug.adb: Update flags documentation
9172 * gnat_ugn.texi: Add documentation for new -gnatwq switch
9173 Clean up documentation for several other warning switches
9174 Clarify how task stack size can be specified with various
9175 versions of Windows.
9176 Add note that -gnatVo includes ranges including loops
9177 Add documentation for -gnatL switch
9178 Add note on elaboration warning for initializing variables
9179 Add documentation for new -gnatwt warning switch
9180 Document new form of pragma Warnings (On|Off, string)
9181 Add comment on use of pragma Warnings to control warnings
9182 Add documentation for -gnatjnn switch
9183 Modify section on interfacing with C for VMS 64-bit.
9184 Add doc for -gnatVe/E
9185 Add documentation of new warning flags -gnatww/-gnatwW
9186 Add warnings about address clause overlays to list of warnings
9187 (Exception Handling Control): Document that the option --RTS must be
9188 used consistently for gcc and gnatbind.
9189 Clarify that inlining is not always possible
9190 Update documentation on pragma Unchecked_Union.
9193 Add documentation for new extended version of pragma Obsolescent
9194 Add documentation for implementation defined attribute 'Stub_Type.
9195 Add note on use of Volatile in asm statements
9196 Add documentation on use of pragma Unreferenced in context clause
9197 Document new form of pragma Warnings (On|Off, pattern)
9198 Document pragma Wide_Character_Encoding
9199 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
9200 enforced if code generation is active.
9201 Add section on pragma Suppress to document GNAT specific check
9203 Clarify difference between No_Dispatching_Calls & No_Dispatch.
9204 Add documentation for pragma Restrictions (No_Elaboration_Code)
9207 Add comments on layout of subprogram local variables in the
9208 presence of nested subprograms.
9212 * elists.ads: Minor reformatting
9213 Node returns Node_Or_Entity_Id (doc change only)
9215 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
9217 * g-arrspl.ads (Create): Update comments.
9219 * sem.ads: Add details on the handling of the scope stack.
9221 * usage.adb: Update documentation.
9223 * validsw.ads, validsw.adb:
9224 Add definition of Validity_Check_Components and implement -gnatVe/E
9226 * vms_data.ads: Add missing VMS qualifiers.
9228 * s-addope.ads: Add documentation on overflow and divide by zero
9230 2006-10-31 Robert Dewar <dewar@adacore.com>
9231 Thomas Quinot <quinot@adacore.com>
9232 Arnaud Charlet <charlet@adacore.com>
9234 * fmap.adb: Put routines in alpha order
9236 * g-boumai.ads: Remove redundant 'in' keywords
9238 * g-cgi.adb: Minor reformatting
9240 * g-cgi.ads: Remove redundant 'in' keywords
9242 * get_targ.adb: Put routines in alpha order
9244 * prj-attr.ads: Minor reformatting
9246 * s-atacco.ads: Minor reformatting
9248 * scn.adb: Put routines in alpha order
9250 * sinput-l.adb: Minor comment fix
9252 * sinput-p.adb: Minor comment fix
9254 * s-maccod.ads: Minor reformatting
9256 * s-memory.adb: Minor reformatting
9258 * s-htable.adb: Fix typo in comment.
9260 * s-secsta.adb: Minor comment update.
9262 * s-soflin.adb: Minor reformatting
9265 Add comment about odd qualification in Storage_Offset declaration
9268 Remove unnecessary 'in' keywords for formal parameters.
9270 * treeprs.adt: Minor reformatting
9272 * urealp.adb: Put routines in alpha order
9274 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
9277 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
9279 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
9281 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
9282 workaround as on other platforms.
9284 * g-eacodu-vms.adb: Remove redundant 'in' keywords
9285 * g-expect-vms.adb: Remove redundant 'in' keywords
9287 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
9288 clear error message if the list-of-files file cannot be opened.
9290 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
9291 equality operator is always visible.
9293 * lang.opt: Woverlength-strings: New option.
9296 Update copyright, since nmake.ads and nmake.adb have changed.
9298 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
9299 (Binder_Output_Time_Stamps_Set): removed.
9300 (Old_Binder_Output_Time_Stamp): idem.
9301 (New_Binder_Output_Time_Stamp): idem.
9302 (Recording_Time_From_Last_Bind): idem.
9303 (Recording_Time_From_Last_Bind): Make constant.
9305 * output.ads, output.adb (Write_Str): Allow LF characters
9306 (Write_Spaces): New procedure
9308 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
9310 * inline.adb: Minor reformatting
9312 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
9314 * s-mastop-vms.adb: Remove redundant 'in' keywords
9316 * s-osprim-vms.adb: Remove redundant 'in' keywords
9318 * s-trafor-default.adb: Remove redundant 'in' keywords
9320 * 9drpc.adb: Remove redundant 'in' keywords
9322 * s-osinte-mingw.ads: Minor reformatting
9324 * s-inmaop-posix.adb: Minor reformatting
9326 * a-direio.ads: Remove quotes from Compile_Time_Warning message
9328 * a-exexda.adb: Minor code reorganization
9330 * a-filico.adb: Minor reformatting
9332 * a-finali.adb: Minor reformatting
9334 * a-nudira.ads: Remove quote from Compile_Time_Warning message
9336 * a-numeri.ads: Minor reformatting
9338 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
9340 * exp_pakd.ads: Fix obsolete comment
9342 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
9343 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
9344 Probably not a bug, but certainly neater and more efficient.
9346 * a-tienio.adb: Minor reformatting
9348 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
9349 Avoid assuming low bound of string is 1.
9351 * gnatbind.adb: Change Bindusg to package and rename procedure as
9352 Display, which now ensures that it only outputs usage information once.
9353 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
9355 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
9358 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
9360 (Match): Add pragma Assert to ensure that Matches'First is zero
9362 * g-regpat.ads (Match): Document that Matches lower bound must be zero
9364 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
9365 documented preconditions (also kills warnings about bad indexes).
9367 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
9369 (Build_Import_Library): Ditto;
9371 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
9373 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
9375 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
9376 lower bound of choice table is 1.
9378 * sem_case.ads (Analyze_Choices): Document that lower bound of
9381 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
9384 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
9385 and add appropriate Assert pragma to suppress warnings.
9387 * atree.h, atree.ads, atree.adb
9388 Change Elist24 to Elist25
9389 Add definitions of Field28 and Node28
9390 (Traverse_Field): Use new syntactic parent table in sinfo.
9392 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
9394 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
9396 * exp_tss.adb: Put routines in alpha order
9398 * fe.h: Remove redundant declarations.
9400 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
9402 * utils.c (builtin_function): Rename to gnat_builtin_function.
9403 Move common code to add_builtin_function.
9404 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
9405 gnat_builtin_function.
9406 * gigi.h (builtin_function): Rename to gnat_builtin_function.
9407 Change the signature.
9409 2006-10-16 Brooks Moses <bmoses@stanford.edu>
9411 * Makefile.in: Add TEXI2PDF definition.
9412 * Make-lang.in: Add "ada.pdf" target.
9414 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
9416 * decl.c, utils.c: Fix comment typos.
9417 * utils.c: Fix a typo.
9419 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
9421 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
9422 on "pure" Ada subprograms if SJLJ exceptions are used.
9423 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
9424 on the declaration node of JMPBUF_SAVE.
9425 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
9426 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
9427 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
9429 2006-08-20 Laurent GUERBY <laurent@guerby.net>
9432 g-socket.adb (Bind_Socket): Call Set_Address.
9434 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
9437 * decl.c (same_discriminant_p): New static function.
9438 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
9439 subtype and we have discriminants, fix up the COMPONENT_REFs
9440 for the discriminants to make them reference the corresponding
9441 fields of the parent subtype after it has been built.
9443 2006-09-15 Roger Sayle <roger@eyesopen.com>
9446 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
9447 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
9449 2006-09-13 Olivier Hainque <hainque@adacore.com>
9452 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
9453 of a SAVE_EXPR, just make the operand addressable/not-readonly and
9454 let the common gimplifier code make and propagate a temporary copy.
9455 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
9456 out/in-out actuals and defer setting the addressable/readonly bits
9459 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
9462 * decl.c (components_to_record): Defer emitting debug info for the
9463 record type associated with the variant until after we are sure to
9466 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
9469 * gigi.h (gnat_internal_attribute_table): Declare.
9470 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
9471 * utils.c (gnat_internal_attribute_table): New global variable.
9472 (builtin_function): Always call decl_attributes on the builtin.
9473 (handle_const_attribute): New static function.
9474 (handle_nothrow_attribute): Likewise.
9476 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
9478 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
9480 2006-06-23 Olivier Hainque <hainque@adacore.com>
9482 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
9483 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
9485 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
9486 Eric Botcazou <ebotcazou@adacore.com>
9489 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
9490 check-gnat into check-acats.
9492 2006-06-17 Karl Berry <karl@gnu.org>
9494 * gnat-style.texi (@dircategory): Use "Software development"
9495 instead of "Programming", following the Free Software Directory.
9497 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9500 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
9502 2006-06-06 Laurent GUERBY <laurent@guerby.net>
9505 mlib-utl.adb: Use Program_Name.
9507 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
9509 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
9510 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
9511 trans.c, utils.c: Fix comment typos. Follow spelling
9513 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
9516 2006-05-19 Nicolas Setton <setton@adacore.com>
9518 * misc.c (gnat_dwarf_name): New function.
9519 (LANG_HOOKS_DWARF_NAME): Define to it.
9521 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
9523 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
9524 (ada/misc.o): Likewise.
9525 (ada/utils.o): Likewise.
9527 2006-04-08 Aurelien Jarno <aurel32@debian.org>
9529 * Makefile.in: Add Ada support for GNU/kFreeBSD.
9530 * s-osinte-kfreebsd-gnu.ads: New file.
9532 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
9534 * Make-lang.in: Rename docdir to gcc_docdir.
9536 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
9538 * gigi.h (get_ada_base_type): Delete.
9539 * utils2.c (get_ada_base_type): Likewise.
9540 * trans.c (convert_with_check): Operate in the real base type.
9542 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9544 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
9546 2006-03-02 Richard Sandiford <richard@codesourcery.com>
9548 * utils.c (create_var_decl): Use have_global_bss_p when deciding
9549 whether to make the decl common.
9551 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
9553 * Make-lang.in (Ada): Remove.
9554 (.PHONY): Remove Ada
9556 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9558 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
9559 aggregate, check the interpretations of the other operand to find one
9560 that may be a boolean array.
9562 (Analyze_Selected_Component): Fix flow-of-control typo in case where
9563 the prefix is a private extension.
9565 2006-02-17 Eric Botcazou <botcazou@adacore.com>
9568 * utils2.c (find_common_type): If both input types are BLKmode and
9569 have the same constant size, keep using the first one.
9571 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
9573 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
9575 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
9577 2006-02-17 Jose Ruiz <ruiz@adacore.com>
9579 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
9580 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9581 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
9582 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
9583 Abort_Defer/Undefer pairs to avoid the possibility of a task being
9584 aborted while owning a lock.
9586 2006-02-17 Javier Miranda <miranda@adacore.com>
9587 Robert Dewar <dewar@adacore.com>
9589 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
9590 through an access to class-wide interface we force the displacement of
9591 the pointer to the allocated object to reference the corresponding
9592 secondary dispatch table.
9593 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
9594 if Long_Shifts are supported on the target, even if 64 bit divides
9595 are not supported (configurable run time mode).
9596 (Expand_N_Type_Conversion): Do validity check if validity checks on
9597 operands are enabled.
9598 (Expand_N_Qualified_Expression): Do validity check if validity checks
9599 on operands are enabled.
9601 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9603 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
9604 must be materialized when the renamed expression is an explicit
9607 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9609 * freeze.adb (Statically_Discriminated_Components): Return false if
9610 the bounds of the type of the discriminant are not static expressions.
9612 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
9613 the bounds of the discriminant type are not static.
9615 2006-02-17 Robert Dewar <dewar@adacore.com>
9617 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
9618 then we close To if it is valid.
9620 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
9622 * init.c (facility_resignal_table): new array
9623 (__gnat_default_resignal_p): enhance default predicate to resignal if
9624 VMS condition has one of the predefined facility codes.
9626 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
9628 * Makefile.in: Use VMS64 specialized versions of several units in
9629 Interfaces.C hierarchy to be compatible with HP C default size choices.
9630 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
9632 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9634 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
9635 instantiation, the corresponding entity is the related_instance of the
9636 wrapper package created for the instance.
9638 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9640 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
9641 the current instance is nested within another instance in a child unit.
9643 2006-02-17 Javier Miranda <miranda@adacore.com>
9644 Ed Schonberg <schonberg@adacore.com>
9646 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
9647 type we cannot inherit the primitive operations; we inherit the
9648 Corresponding_Record_Type (which has the list of primitive operations).
9649 (Check_Anonymous_Access_Types): When creating anonymous access types for
9650 access components, use Rewrite in order to preserve the tree structure,
9652 (Analyze_Object_Declaration): For limited types with access
9653 discriminants with defaults initialized by an aggregate, obtain
9654 subtype from aggregate as for other mutable types.
9655 (Derived_Type_Declaration): If the derived type is a limited interface,
9656 set the corresponding flag (Is_Limited_Record is not sufficient).
9658 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9660 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
9661 to inline a function that returns an unconstrained type, the return
9662 expression must be the first variable declared in the body of the
9665 2006-02-17 Javier Miranda <miranda@adacore.com>
9667 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
9668 abstract interface type, the static analysis is not enough to know if
9669 the interface is implemented or not by the source tagged type. Hence
9670 we must pass the work to the expander to generate the required code to
9671 evaluate the conversion at run-time.
9672 (Resolve_Equality_Op): Do not apply previous
9673 transformation if expansion is disasbled, to prevent anomalies when
9674 locating global references in a generic unit.
9676 2006-02-17 Vincent Celier <celier@adacore.com>
9678 * snames.ads, snames.adb: New standard names for new project attributes:
9679 archive_builder, archive_indexer, compiler_pic_option,
9680 config_body_file_name, config_body_file_name_pattern,
9681 config_file_switches, config_file_unique, config_spec_file_name,
9682 config_spec_file_name_pattern, default_builder_switches,
9683 default_global_compiler_switches, default_language,
9684 dependency_file_kind, global_compiler_switches, include_path,
9685 include_path_file, language_kind, linker_executable_option,
9686 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
9687 roots, runtime_project.
9689 2006-02-17 Matthew Heaney <heaney@adacore.com>
9691 * a-convec.ads, a-convec.adb:
9692 (operator "&"): handle potential overflow for large index types
9693 (Insert): removed Contraint_Error when using large index types
9694 (Insert_Space): removed Constraint_Error for large index types
9695 (Length): moved constraint check from Length to Insert
9697 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
9699 Explicit raise statements now include an exception message.
9700 (operator "&"): handle potential overflow for large index types
9701 (Insert): removed Contraint_Error when using large index types
9702 (Insert_Space): removed Constraint_Error for large index types
9703 (Length): moved constraint check from Length to Insert
9705 2006-02-17 Robert Dewar <dewar@adacore.com>
9707 * s-wchcnv.adb: Document handling of [ on output (we do not change
9708 this to ["5B"] and the new comments say why not.
9711 Add note for -gnatVo that this now includes the cases of type
9712 conversions and qualified expressions.
9713 Add comments on handling of brackets encoding for Text_IO
9715 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
9716 Thomas Quinot <quinot@adacore.com>
9717 Robert Dewar <dewar@adacore.com>
9718 Javier Miranda <miranda@adacore.com>
9720 * expander.adb: Fix typo in comment
9722 * exp_pakd.adb: Fix typo
9723 Minor comment reformatting.
9725 * g-dyntab.adb: Minor reformatting
9727 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
9728 aliased subprograms to look for the abstract interface subprogram.
9730 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
9732 * env.c (__gnat_setenv): Use size_t.
9733 (__gnat_unsetenv): Likewise.
9734 (__gnat_clearenv): Likewise.
9736 2006-02-16 Arnaud Charlet <charlet@adacore.com>
9738 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
9740 2006-02-13 Arnaud Charlet <charlet@adacore.com>
9742 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
9743 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
9744 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
9745 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
9746 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
9747 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
9748 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
9749 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
9750 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
9753 2006-02-13 Jose Ruiz <ruiz@adacore.com>
9755 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
9756 protection against race conditions is not needed.
9757 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
9759 (Set_Specific_Handler): Add mutual exclusive access to the specific
9761 (Specific_Handler): Add mutual exclusive access for retrieving the
9764 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
9767 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
9768 Fall_Back_Handler and Specific_Handler.
9770 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
9771 termination handlers.
9772 Set two different owerflow depending on the maximal stack size.
9774 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
9775 protection against race conditions is not needed when executing the
9776 task termination handler.
9778 2006-02-13 Robert Dewar <dewar@adacore.com>
9780 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
9781 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
9782 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
9783 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
9784 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
9785 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
9786 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
9787 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
9788 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
9789 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
9790 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
9791 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
9792 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
9793 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
9794 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
9795 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
9796 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
9797 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
9798 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
9799 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
9800 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
9801 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
9802 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
9803 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
9804 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
9805 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
9806 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
9807 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
9808 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
9809 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
9810 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
9811 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
9812 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
9813 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
9816 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
9818 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
9819 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
9820 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
9821 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
9822 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
9823 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
9824 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
9825 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
9826 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
9828 2006-02-13 Arnaud Charlet <charlet@adacore.com>
9830 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
9831 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
9832 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
9833 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
9834 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
9835 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
9836 replaced by anonymous access type.
9837 (pthread_sigmask): Now take an access sigset_t
9839 * s-osinte-hpux.ads: Ditto.
9840 (pthread_mutex_t, pthread_cond_t): Update definitions to support
9841 properly 32 and 64 bit ABIs.
9843 2006-02-13 Pascal Obry <obry@adacore.com>
9845 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
9846 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
9847 s-taprop-linux.adb, s-taprop-solaris.adb,
9848 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
9849 adjustement is already done when calling this routine.
9851 2006-02-13 Pascal Obry <obry@adacore.com>
9853 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
9854 table to take advantage of the 16 priority levels available on Windows
9855 2000 and XP. On NT4 there are only 7 priority levels, this is properly
9856 supported by this new mapping.
9858 2006-02-13 Nicolas Setton <setton@adacore.com>
9860 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
9861 (get_encoding): New subprogram. Extracts the encodings from an encoded
9864 2006-02-13 Pascal Obry <obry@adacore.com>
9865 Nicolas Roche <roche@adacore.com>
9866 Arnaud Charlet <charlet@adacore.com>
9868 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
9870 (__gnat_try_lock): Add unicode support by using a specific section on
9872 (__gnat_get_current_dir): Idem.
9873 (__gnat_open_read): Idem.
9874 (__gnat_open_rw): Idem.
9875 (__gnat_open_create): Idem.
9876 (__gnat_create_output_file): Idem.
9877 (__gnat_open_append): Idem.
9878 (__gnat_open_new): Idem.
9879 (__gnat_file_time_name): Idem.
9880 (__gnat_set_file_time_name): Idem.
9881 (__gnat_stat): Idem.
9882 (win32_no_block_spawn): Idem.
9883 (__gnat_locate_exec_on_path): Idem.
9884 (__gnat_opendir): New routine.
9885 (__gnat_closedir): Idem.
9886 (__gnat_readdir): Add new parameter length (pointer to int). Update
9887 implementation to use it and add specific Win32 code for Unicode
9889 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
9890 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
9891 (convert_addresses): Do not define this dummy routine on VMS.
9893 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
9894 runtime Unicode support will be activated.
9895 (S2WS): String to Wide-String conversion. This version just copy a
9896 string in non Unicode version.
9897 (WS2S): Wide-String to String conversion. This version just copy a
9898 string in non Unicode version.
9900 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
9901 (Open): Now import __gnat_opendir from adaint.c.
9902 (Read): Change the implementation to support unicode characters. It is
9903 not possible to use strlen() on Windows as this version supports only
9904 standard ASCII characters. So the length of the directory entry is now
9905 returned from the imported __gnat_readdir routine.
9906 Update copyright notice.
9908 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
9909 (opendir): Moved to adaint.c.
9911 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
9912 (Get_Directory): Fix wrong indexing.
9913 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
9914 __gnat_getenv from env.c
9915 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
9918 * env.h, env.c: New file.
9920 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
9921 adaint.c by __gnat_getenv from env.c
9923 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
9924 adaint.c by __gnat_getenv from env.c
9926 * Make-lang.in: Add env.o in the list of C object needed by gnat1
9928 Update dependencies.
9930 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9931 Olivier Hainque <hainque@adacore.com>
9932 Eric Botcazou <ebotcazou@adacore.com>
9934 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
9936 * gigi.h (value_factor_p): Add prototype and description, now public.
9938 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
9939 promotion for field with rep clause if the associated size was proven
9941 Expand comments describing attempts to use a packable type.
9942 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
9943 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
9944 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
9945 necessary since these are not different types and pointers may
9946 actually designate any subtype in this hierarchy.
9947 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
9948 discriminants but put them into record only if not Unchecked_Union;
9949 pass flag to components_to_record showing Unchecked_Union.
9950 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
9951 components before variants; don't set TYPE_UNCHECKED_UNION_P.
9952 (components_to_record): New argument UNCHECKED_UNION.
9953 Remove special case code for Unchecked_Union and instead use main code
9957 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
9958 variable with the expression being built, only its inner field.
9960 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
9961 emit_sequence_entry_statements.
9962 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
9963 (establish_gnat_vms_condition_handler): Move before
9964 Subprogram_Body_to_gnu.
9965 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
9966 for a subprogram if it has a foreign convention or is exported.
9967 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
9968 substituted for a CONST_DECL.
9969 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
9970 Etype to assoc_to_constructor.
9971 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
9972 discriminants of Unchecked_Union.
9973 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
9974 don't need cluttering preprocessor directives.
9975 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
9976 condition handler as current in the compiled function.
9977 (body_with_handlers_p): New function. Tell whether a given sequence of
9978 statements node is attached to a package or subprogram body and involves
9979 exception handlers possibly nested within inner block statements.
9980 (emit_sequence_entry_statements): New function, to emit special
9981 statements on entry of sequences when necessary. Establish GNAT
9982 condition handler in the proper cases for VMS.
9983 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
9984 emit_sequence_entry_statements.
9986 * utils2.c (find_common_type): If both input types are BLKmode and
9987 have a constant size, use the smaller one.
9988 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
9991 * utils.c (value_factor_p): Make public, to allow uses from other gigi
9993 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
9994 (convert, case UNION_TYPE): Remove special treatment for unchecked
9998 (update_pointer_to): Update variants of pointer types to unconstrained
9999 arrays by attaching the list of fields of the main variant.
10001 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10002 Robert Dewar <dewar@adacore.com>
10004 * a-exexpr.adb, a-exexpr-gcc.adb
10005 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
10006 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
10007 Remove code unused for exception propagation for the compiler itself
10008 from a-except.adb and update to still share separate packages.
10010 * a-except.ads, a-except.adb: Ditto.
10011 Add comments that this version is now used only by the compiler and
10012 other basic tools. The full version that includes the Ada 2005 stuff
10013 is in separate files a-except-2005.ads/adb. The reason is that we do
10014 not want to cause bootstrap problems with compilers not recognizing
10016 Add exception reason code PE_Implicit_Return
10017 Add new exception reason code (Null Exception_Id)
10019 * a-except-2005.adb, a-except-2005.ads: New files.
10021 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
10023 * s-wchcon.adb: New file.
10025 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
10026 (traceback.o deps): Likewise.
10027 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
10028 Activate build of GMEM instrumentation library on VMS targets.
10029 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
10030 Use a-except-2005.ads/adb for all run-time library builds unless
10031 specified otherwise.
10032 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
10033 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
10034 Use s-parame.adb on all native platforms.
10035 Use s-parame-vxworks.adb on all vxworks platforms.
10036 Add env.c env.h in LIBGNAT_SRCS
10037 Add env.o in LIBGNAT_OBJS
10038 (GNATMAKE_OBJS): Remove ctrl_c.o object.
10039 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
10040 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
10041 supports VxWorks 6 RTPs.
10042 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
10043 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
10045 * types.h, types.ads (Terminate_Program): New exception
10046 Add comment on modifying multiple versions of a-except.adb when the
10047 table of exception reasons is modified.
10048 Add exception reason code PE_Implicit_Return
10049 Add new exception reason code (Null Exception_Id)
10051 * clean.adb (Initialize): Get the target parameters before checking
10052 if target is OpenVMS. Move the OpenVMS specific code here from package
10053 body elaboration code.
10055 2006-02-13 Thomas Quinot <quinot@adacore.com>
10056 Vincent Celier <celier@adacore.com>
10057 Robert Dewar <dewar@adacore.com>
10059 * ali-util.adb (Get_File_Checksum): Update to account for change in
10060 profile of Initialize_Scanner.
10062 * gprep.adb (Gnatprep): Update to account for change in profile of
10063 Initialize_Scanner.
10064 (Process_One_File): Same.
10066 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
10067 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
10068 that behaviour using the new Unit information recorded in the source
10069 files table, rather than going through all units every time.
10070 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
10071 (Get_Source_Unit): Same.
10073 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
10074 change in profile of Initialize_Scanner.
10075 (Prepare_To_Preprocess): Same.
10077 * lib.ads: Fix typo in comment (templace -> template).
10079 * prj-part.adb (Parse_Single_Project): Update to account for change in
10080 profile of Initialize_Scanner.
10082 * scn.adb (Initialize_Scanner): Account for change in profile of
10083 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
10084 Also record the association of the given Source_File_Index to the
10085 corresponding Unit_Number_Type.
10087 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
10089 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
10090 Remove Unit formal for generic scanner: this formal
10091 is only relevant to Scn (the scanner instance used to parse Ada source
10092 files), not to other instances. Update comment accordingly.
10093 (Scan): Use new function Snames.Is_Keyword_Name.
10095 * sinfo-cn.adb: Fix typo in comment.
10097 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
10100 * sinput.ads (Source_File_Record): New component Unit, used to capture
10101 the unit identifier (if any) associated to a source file.
10103 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
10104 Unit in Source_File_Record.
10106 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
10107 in profile of Initialize_Scanner.
10109 * scans.adb (Initialize_Ada_Keywords): New procedure
10111 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
10112 Ada keywords in the Namet table, without the need to call
10113 Initialize_Scanner.
10115 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
10116 (Is_Keyword_Name): New function
10118 * snames.ads: Add subtype Configuration_Pragma_Names
10119 Add pragma Ada_2005 (synonym for Ada_05)
10120 (Is_Keyword_Name): New function
10122 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
10124 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10126 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
10129 * a-stwima.adb (To_Set): Add extra check when N = 0.
10131 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
10133 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10135 * s-parame-mingw.adb, s-parame-linux.adb,
10136 s-parame-solaris.adb: Removed, replaced by s-parame.adb
10138 * s-parame-vxworks.ads: Fix typo.
10140 * s-parame-vxworks.adb: New file.
10142 * s-parame.adb: Version now used by all native platforms.
10143 (Default_Stack_Size): Use 2 megs for default stack size and use
10144 __gl_default_stack_size when available.
10145 (Minimum_Stack_Size): Use 12K.
10147 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
10148 (Create_Task): Refine implementation taking advantage of the XP stack
10149 size support. On XP, we now create the thread using the flag
10150 STACK_SIZE_PARAM_IS_A_RESERVATION.
10152 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
10154 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
10155 XP and 0 on older Windows versions.
10157 * interfac-vms.ads: Removed, no longer used.
10159 2006-02-13 Matthew Heaney <heaney@adacore.com>
10161 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
10162 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
10163 a-cohase.adb: All explicit raise statements now include an exception
10166 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
10167 (Update_Element_Preserving_Key): renamed op to just Update_Element.
10168 Explicit raise statements now include an exception message
10170 * a-cihase.ads, a-cohase.ads: Removed comment.
10172 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
10173 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
10174 a-szbzha.adb, a-szfzha.ads: New files.
10176 2006-02-13 Matthew Heaney <heaney@adacore.com>
10178 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
10181 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
10183 * lang.opt: Wvariadic-macros: New option.
10184 Wold-style-definition: Likewise.
10185 Wmissing-format-attribute: Likewise.
10187 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
10188 -Wold-style-definition and -Wmissing-format-attribute.
10190 2006-02-13 Robert Dewar <dewar@adacore.com>
10192 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
10194 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
10196 2006-02-13 Nicolas Roche <roche@adacore.com>
10198 * a-envvar.adb, a-envvar.ads: New files.
10200 2006-02-13 Douglas Rupp <rupp@adacore.com>
10202 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
10204 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
10206 2006-02-13 Pat Rogers <rogers@adacore.com>
10208 * a-rttiev.adb, a-rttiev.ads: New files.
10210 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
10212 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
10213 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
10215 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
10217 2006-02-13 Robert Dewar <dewar@adacore.com>
10219 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
10220 sem_case.adb: Minor code reorganization (not Present should be No)
10222 2006-02-13 Geert Bosch <bosch@adacore.com>
10223 Gary Dismukes <dismukes@adacore.com>
10225 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
10226 0, since the lower bound of the actual string may be greater than one.
10229 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
10230 layout is requested.
10232 2006-02-13 Vincent Celier <celier@adacore.com>
10234 * back_end.adb (Scan_Compiler_Arguments): Check if
10235 Search_Directory_Present is True and, if it is, add the argument in
10236 the source search directory path.
10238 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
10239 Search_Directory_Present to True.
10241 2006-02-13 Joel Brobecker <brobecke@adacore.com>
10243 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
10244 volatile, to tell the compiler to preserve this variable at any level
10246 (Gen_Versions_Ada): Temporarily work around codegen bug.
10248 2006-02-13 Vincent Celier <celier@adacore.com>
10250 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
10251 gcc to link with option -shared-libgcc.
10252 (Gnatlink): Remove duplicate switches -shared-libgcc
10254 2006-02-13 Robert Dewar <dewar@adacore.com>
10256 * gnatvsn.ads (Current_Year): New constant, used to easily update
10257 copyright on all GNAT tools.
10259 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
10262 2006-02-13 Robert Dewar <dewar@adacore.com>
10264 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
10265 after hyphen (small aesthetic change useful for a range of numbers
10267 Suppress range checks for a couple of assignments which otherwise
10268 cause validity checks with validity checking turned on.
10270 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
10271 Improvement in error message for object.
10272 (Rep_Item_Too_Late): Remove '!' in warning message.
10274 2006-02-13 Robert Dewar <dewar@adacore.com>
10275 Eric Botcazou <ebotcazou@adacore.com>
10277 * err_vars.ads: Suppress range checks for a couple of assignments
10278 which otherwise cause validity checks with validity checking turned on.
10281 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
10282 Make message unconditional if it is a warning.
10283 (Error_Msg_NEL): Always output warning messages.
10284 Suppress range checks for a couple of assignments which otherwise
10285 cause validity checks with validity checking turned on.
10287 * errout.ads (Message Insertion Characters): Document that '!' is
10288 implied by '?' in error messages.
10290 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
10291 (Gnat1drv): Use a goto to end of main subprogram instead of
10292 Exit_Program (E_Success) so that finalization can occur normally.
10294 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
10296 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
10299 2006-02-13 Vincent Celier <celier@adacore.com>
10301 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
10302 Unchecked_Conversion functions.
10303 (Modification_Time): Use direct conversion of OS_Time to Calendar time
10304 when OpenVMS returns False.
10306 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
10307 a-dirval.adb (OpenVMS): New Boolean function
10309 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10310 Thomas Quinot <quinot@adacore.com>
10312 * checks.adb (Build_Discriminant_Checks): If the expression being
10313 checks is an aggregate retrieve the values of its discriminants to
10314 generate the check, rather than creating a temporary and a reference
10316 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
10317 (Install_Null_Excluding_Check): Ditto
10318 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
10319 not for the renamed object, so that the actual itype is attached in the
10322 2006-02-13 Robert Dewar <dewar@adacore.com>
10323 Vincent Celier <celier@adacore.com>
10325 * debug.adb: Eliminate numeric switches for binder/gnatmake
10327 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
10328 switches for the compiler.
10329 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
10330 (Scan_Make_Switches): When failing with an illegal switch, output an
10331 error message with the full switch.
10332 Eliminate numeric switches for binder/gnatmake
10334 * switch.ads, switch.adb (Bad_Switch): New procedure
10336 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
10337 Remove 0-9 as debug flag character possibilities
10338 -d is now controlling the primary stack size when its value is a
10339 positive. Also add checks against invalid values, and support for kb,
10340 mb. Ditto for -D switch.
10342 2006-02-13 Robert Dewar <dewar@adacore.com>
10343 Serguei Rybin <rybin@adacore.com>
10345 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
10346 save/restore routines.
10347 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
10348 were not always properly handled previously.
10349 Since we are changing the tree format anyway, also get rid of the
10350 junk obsolete Immediate_Errors flag.
10351 (Tree_Read): Change the way of reading Tree_Version_String - now we
10352 read the version string from the tree even if its length is not the
10353 same as the length of the version string computed from Gnatvsn.
10354 (Search_Directory_Present): New Boolean flag for the compiler.
10355 Define Tree_Version_String as a dynamic string.
10356 (Default_Stack_Size): new variable, used to handle switch -d.
10359 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
10360 only for main unit.
10361 Add pragma Ada_2005 (synonym for Ada_05)
10362 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
10363 were not always properly handled previously.
10365 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
10366 explicit Ada_95 to Ada_2005.
10368 2006-02-13 Javier Miranda <miranda@adacore.com>
10369 Robert Dewar <dewar@adacore.com>
10370 Ed Schonberg <schonberg@adacore.com>
10372 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
10373 against errors in the source program: a private types for which the
10374 corresponding full type declaration is missing and pragma CPP_Virtual
10376 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
10377 (Is_Known_Null): New flag
10378 (Has_Pragma_Pure): New flag
10379 (No_Return): Present in all entities, set only for procedures
10380 (Is_Limited_Type): A type whose ancestor is an interface is limited if
10381 explicitly declared limited.
10382 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
10383 entities. Only used for component marked Is_Tag. If present it stores
10384 the Offset_To_Top function used to provide this value in tagged types
10385 whose ancestor has discriminants.
10387 * exp_ch2.adb: Update status of new Is_Known_Null flag
10389 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
10391 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
10392 the categorization sense if Is_Pure was set by pragma Pure_Function.
10394 2006-02-13 Quentin Ochem <ochem@adacore.com>
10395 Olivier Hainque <hainque@adacore.com>
10397 * bindusg.adb: Updated documentation for -d and -D switches.
10399 * raise.h (__gnat_set_globals): added new parameter for
10400 Default_Stack_Size.
10402 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
10403 (__gnat_handle_vms_condition): Adjust context before raise.
10404 (__gnat_install_handler): Restore the global vector setup for GCC
10405 versions before 3.4, as the frame based circtuitry is not available
10407 (__gnat_set_globals): added a parameter default_stack_size
10408 (__gl_default_stack_size): new variable.
10410 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10412 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
10413 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
10414 does not exist in the Ada RM.
10415 (Compatible_Int_Bounds): Determine whether two integer range bounds
10416 are of equal length and have the same start and end values.
10417 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
10418 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
10419 aggregate when it is part of an object declaration.
10420 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
10421 constrains discriminants of its parent, add explicitly the discriminant
10422 constraints of the ancestor by retrieving them from the
10423 stored_constraint of the parent.
10425 2006-02-13 Robert Dewar <dewar@adacore.com>
10427 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
10428 attribute Mechanism_Code is applied to renamed subprogram, modify
10429 prefix to point to base subprogram.
10430 Max/Min attributes now violate Restriction No_Implicit_Conditionals
10432 * sinfo.ads: Document that Mechanism_Code cannot be applied to
10433 renamed subprograms so that the front-end must replace the prefix
10436 2006-02-13 Javier Miranda <miranda@adacore.com>
10437 Gary Dismukes <dismukes@adacore.com>
10439 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
10440 availability of RE_Interface_Tag.
10441 (Build_Initialization_Call): Fix wrong access to the discriminant value.
10442 (Freeze_Record_Type): Do not generate the tables associated with
10443 timed and conditional dispatching calls through synchronized
10444 interfaces if compiling under No_Dispatching_Calls restriction.
10445 When compiling for Ada 2005, for a nonabstract
10446 type with a null extension, call Make_Controlling_Function_Wrappers
10447 and insert the wrapper function declarations and bodies (the latter
10448 being appended as freeze actions).
10449 (Predefined_Primitive_Bodies): Do not generate the bodies of the
10450 predefined primitives associated with timed and conditional
10451 dispatching calls through synchronized interfaces if we are
10452 compiling under No_Dispatching_Calls.
10453 (Build_Init_Procedure): Use RTE_Available to check if a run-time
10454 service is available before generating a call.
10455 (Make_Controlling_Function_Wrappers): New procedure.
10456 (Expand_N_Full_Type_Declaration): Create a class-wide master for
10457 access-to-limited-interfaces because they can be used to reference
10458 tasks that implement such limited interface.
10459 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
10460 procedure spec and body of the Offset_To_Top function that is generated
10461 when the parent of a type with discriminants has secondary dispatch
10463 (Init_Secondary_Tags): Handle the case in which the parent of the type
10464 containing secondary dispatch tables has discriminants to generate the
10465 correct arguments to call Set_Offset_To_Top.
10466 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
10468 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
10469 Add Wide_[Wide_]Expanded_Name.
10470 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
10471 the same functionality of Get_Prim_Op_Address but applied to predefined
10472 primitive operations because the pointers to the predefined primitives
10473 are now saved in a separate table.
10474 (Parent_Size): Modified to get access to the separate table of primitive
10475 operations or the parent type.
10476 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
10477 functionality of Set_Prim_Op_Address but applied to predefined primitive
10479 (Set_Signature): New subprogram used to store the signature of a DT.
10480 (Displace): If the Offset_To_Top value is not static then call the
10481 function generated by the expander to get such value; otherwise use
10482 the value stored in the table of interfaces.
10483 (Offset_To_Top): The type of the actual has been changed to Address to
10484 give the correct support to tagged types with discriminants. In this
10485 case this value is stored just immediately after the tag field.
10486 (Set_Offset_To_Top): Two new formals have been added to indicate if the
10487 offset_to_top value is static and hence pass this value to the run-time
10488 to store it in the table of interfaces, or else if this value is dynamic
10489 and then pass to the run-time the address of a function that is
10490 generated by the expander to provide this value for each object of the
10493 * rtsfind.ads (Default_Prin_Op_Count): Removed.
10494 (Default_Prim_Op_Count): New entity
10495 (Get_Predefined_Prim_Op_Address): New entity
10496 (Set_Predefined_Prim_Op_Address): New entity
10497 (RE_Set_Signature): New entity
10499 2006-02-13 Thomas Quinot <quinot@adacore.com>
10500 Ed Schonberg <schonberg@adacore.com>
10502 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
10503 Make_Adjust_Call done for a newly-allocated object.
10505 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
10506 in a subprogram are wrapped in a cleanup block, indicate that the
10507 subprogram contains an inner block with an exception handler.
10508 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
10509 Adjust call is for a newly-allocated object. In that case we must not
10510 assume that the finalization list chain pointers are correct (since they
10511 come from a bit-for-bit copy of the original object's pointers) so if
10512 the attach level would otherwise be zero (no change), we set it to 4
10513 instead to cause the pointers to be reset to null.
10515 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
10516 reset chain pointers to null.
10518 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10520 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
10521 string, and the context requires a loop for the assignment (e.g.
10522 because the left-hand side is packed), generate a unique name for the
10523 temporary that holds the string, to prevent spurious name clashes.
10525 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10526 Javier Miranda <miranda@adacore.com>
10527 Robert Dewar <dewar@adacore.com>
10528 Gary Dismukes <dismukes@adacore.com>
10530 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
10531 return unconstrained arrays.
10533 (Expand_Call): An indirect call through an access parameter of a
10534 protected operation is not a protected call.
10535 Add circuit to raise CE in Ada 2005 mode following call
10536 to Raise_Exception.
10537 (Register_DT_Entry): Do nothing if
10538 the run-time does not give support to abstract interfaces.
10539 (Freeze_Subprogram): In case of dispatching operations, do not generate
10540 code to register the operation in the dispatch table if the source
10541 is compiled with No_Dispatching_Calls.
10542 (Register_Predefined_DT_Entry): Generate code that calls the new
10543 run-time subprogram Set_Predefined_Prim_Op_Address instead of
10544 Set_Prim_Op_Address.
10546 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
10547 on array assignments if the right-hand side is a function call that has
10548 been inlined. Check is performed on the assignment in the block.
10549 (Process_Bounds): If bounds and range are overloaded, apply preference
10550 rule for root operations to disambiguate, and diagnose true ambiguity.
10551 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
10552 a tag-indeterminate right-hand side even when Expander_Active is True.
10553 Needed to ensure that dispatching calls to T'Input are allowed and
10554 get the tag of the target class-wide object.
10556 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
10557 an inherited primitive operation that already overrides several
10558 abstract interface primitives. For transitivity, the new entity must
10559 also override all the abstract interface primitives covered by the
10560 inherited overriden primitive.
10561 Emit warning if new entity differs from homograph in same scope only in
10562 that one has an access parameter and the other one has a parameter of
10563 a general access type with the same designated type, at the same
10564 position in the signature.
10565 (Make_Inequality_Operator): Use source locations of parameters and
10566 subtype marks from corresponding equality operator when creating the
10567 tree structure for the implicit declaration of "/=". This does not
10568 change anything in behaviour except that the decoration of the
10569 components of the subtree created for "/=" allows ASIS to get the
10570 string images of the corresponding identifiers.
10571 (Analyze_Return_Statement): Remove '!' in warning message.
10572 (Check_Statement_Sequence): Likewise.
10573 (Analyze_Subprogram_Body): For an access parameter whose designated type
10574 is an incomplete type imported through a limited_with clause, use the
10575 type of the corresponding formal in the body.
10576 (Check_Returns): Implicit return in No_Return procedure now raises
10577 Program_Error with a compile time warning, instead of beging illegal.
10578 (Has_Single_Return): Function returning unconstrained type cannot be
10579 inlined if expression in unique return statement is not an identifier.
10580 (Build_Body_To_Inline): It is possible to inline a function call that
10581 returns an unconstrained type if all return statements in the function
10582 return the same local variable. Subsidiary procedure Has_Single_Return
10583 verifies that the body conforms to this restriction.
10585 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
10586 same type, and one of them is of an anonymous access type, convert
10587 the other operand to it, so that this is a valid binary operation for
10589 (Resolve_Type_Conversion): Handle subtypes of protected types and
10590 task types when accessing to the corresponding record type.
10591 (Resolve_Allocator): Add '\' in 2-line warning message.
10592 Remove '!' in warning message.
10593 (Resolve_Call): Add '\' in 2-line warning message.
10594 (Valid_Conversion): Likewise.
10595 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
10596 resulting type may be an access type with an implicit dereference.
10597 Obtain the proper component from the designated type.
10598 (Make_Call_Into_Operator): Handle properly a call to predefined equality
10599 given by an expanded name with prefix Standard, when the operands are
10600 of an anonymous access type.
10601 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
10602 Explicit_Dereference and Resolve_Selected_Component, to verify that the
10603 prefix of the expression is not of an incomplete type. Allows full
10604 diagnoses of all semantic errors.
10605 (Resolve_Actuals): If the actual is an allocator whose directly
10606 designated type is a class-wide interface we build an anonymous
10607 access type to use it as the type of the allocator. Later, when
10608 the subprogram call is expanded, if the interface has a secondary
10609 dispatch table the expander will add a type conversion to force
10610 the displacement of the pointer.
10611 (Resolve_Call): If a function that returns an unconstrained type is
10612 marked Inlined_Always and inlined, the call will be inlined and does
10613 not require the creation of a transient scope.
10614 (Check_Direct_Boolean_Op): Removed
10615 (Resolve_Comparison_Op): Remove call to above
10616 (Resolve_Equality_Op): Remove call to above
10617 (Resolve_Logical_Op): Inline above, since this is only call.
10618 (Valid_Conversion): Handle properly conversions between arrays of
10619 convertible anonymous access types.
10622 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
10623 the literal in an unchecked conversion, because GCC 4.x needs a static
10624 value for a string bound.
10626 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10627 Hristian Kirtchev <kirtchev@adacore.com>
10629 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
10630 components of the corresponding record, take into account component
10631 definitions that are access definitions.
10632 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
10633 procedure is not considered a dispatching call and will be expanded
10636 2006-02-13 Javier Miranda <miranda@adacore.com>
10638 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
10639 controlling argument of the dispatching call is an abstract interface
10640 class-wide type then we use it directly.
10641 Check No_Dispatching_Calls restriction.
10642 (Default_Prim_Op_Position): Remove the code that looks for the last
10643 entity in the list of aliased subprograms. This code was wrong in
10645 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
10646 when the source is compiled with the No_Dispatching_Calls restriction.
10647 (Init_Predefined_Interface_Primitives): No need to inherit primitives
10648 if we are compiling with restriction No_Dispatching_Calls.
10649 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
10650 subprograms if we are compiling under No_Dispatching_Calls restriction.
10651 (Make_DT): Generate a dispatch table with a single dummy entry if
10652 we are compiling with the No_Dispatching_Calls restriction. In
10653 addition, in this case we don't generate code that calls to the
10654 following run-time subprograms: Set_Type_Kind, Inherit_DT.
10655 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
10656 of this subprogram if compiling with the No_Dispatching_Calls
10658 (Expand_Type_Conversion): Instead of using the actual parameter,
10659 the argument passed as parameter to the conversion function was
10660 erroneously referenced by the expander.
10661 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
10662 Set_Predefined_Primitive_Op_Address and Set_Signature.
10663 (Expand_Dispatching_Call): Generate call to
10664 Get_Predefined_Prim_Op_Address for predefined primitives.
10665 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
10666 predefined primitives.
10667 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
10668 primitives we reserve one dummy entry to ensure that the tag does not
10669 point to some memory that is associated with some other object. In
10670 addition, remove all the old code that generated the assignments
10671 associated with the signature of the dispatch table and replace them
10672 by a call to the new subprogram Set_Signature.
10673 (Set_All_DT_Position): Change the algorithm because now we have a
10674 separate dispatch table associated with predefined primitive operations.
10675 (Expand_Interface_Conversion): In case of non-static offset_to_top
10676 add explicit dereference to get access to the object after the call
10677 to displace the pointer to the object.
10678 (Expand_Interface_Thunk): Modify the generation of the actual used
10679 in the calls to the run-time function Offset_To_Top to fulfil its
10681 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
10683 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10685 * exp_dist.adb (Copy_Specification): For access parameters, copy
10686 Null_Exclusion flag, which will have been set for stream subprograms
10689 2006-02-13 Pascal Obry <obry@adacore.com>
10691 * expect.c (__gnat_expect_portable_execvp): New implementation. The
10692 previous implementation was using the C runtime spawnve routine but
10693 the corresponding wait was using directly the Win32 API. This was
10694 causing some times a lock when waiting for an event using
10695 WaitForSingleObject in __gnat_waitpid. This new implementation uses
10696 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
10697 API fixes this problem.
10699 2006-02-13 Robert Dewar <dewar@adacore.com>
10701 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
10704 2006-02-13 Thomas Quinot <quinot@adacore.com>
10706 * exp_pakd.ads: Fix typos in comments.
10708 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
10709 array reference that is an explicit dereference, mark the converted
10710 (packed) array reference as analyzed to prevent a forthcoming
10711 reanalysis from resetting its type to the original (non-packed) array
10714 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10715 Javier Miranda <miranda@adacore.com>
10716 Eric Botcazou <ebotcazou@adacore.com>
10718 * exp_util.ads, exp_util.adb (Find_Prim_Op,
10719 Is_Predefined_Primitive_Operation): When
10720 searching for the predefined equality operator, verify that operands
10721 have the same type.
10722 (Is_Predefined_Dispatching_Operation): Remove the code that looks
10723 for the last entity in the list of aliased subprograms. This code
10724 was wrong in case of renamings.
10725 (Set_Renamed_Subprogram): New procedure
10726 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
10727 Exp_Type constant computed when entering this subprogram.
10728 (Known_Null): New function
10729 (OK_To_Do_Constant_Replacement): New function
10730 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
10731 (Side_Effect_Free): An attribute reference 'Input is not free of
10732 side effect, unlike other attributes that are functions. (from code
10734 (Remove_Side_Effects): Expressions that involve packed arrays or records
10735 are copied at the point of reference, and therefore must be marked as
10736 renamings of objects.
10737 (Is_Predefined_Dispatching_Operation): Return false if the operation is
10738 not a dispatching operation.
10741 (Remove_Side_Effects): Lift enclosing type conversion nodes for
10742 elementary types in all cases.
10744 2006-02-13 Javier Miranda <miranda@adacore.com>
10746 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
10747 task types when accessing to the corresponding record type.
10748 Remove '!' in warning message.
10750 2006-02-13 Olivier Hainque <hainque@adacore.com>
10752 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
10753 to avoid useless and space inefficient overalignments on targets where
10754 Max_Alignment is larger than 16.
10756 2006-02-13 Pascal Obry <obry@adacore.com>
10758 * g-catiio.adb (Sec_Number): New type used to compute the number of
10759 seconds since 1-1-1970.
10760 (Image) [Natural]: The parameter was an Integer, as we can't deal with
10761 negative numbers (years, months...) it is better to have a Natural here.
10763 (Image) [Number]: Change parameter from Long_Integer to Number.
10764 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
10765 overflow for dates past year 2038.
10767 2006-02-13 Matthew Heaney <heaney@adacore.com>
10769 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
10772 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10774 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
10776 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
10777 finalization can occur normally.
10779 2006-02-13 Vincent Celier <celier@adacore.com>
10781 * gnatcmd.adb (Rules_Switches): New table
10782 (Add_To_Rules_Switches): New procedure
10783 (GNATCmd): For command CHECK, put all options following "-rules" in the
10784 Rules_Switches table. Append these -rules switches after the -cargs
10787 2006-02-13 Robert Dewar <dewar@adacore.com>
10789 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
10790 These two cases were generating incorrect output, and if this unit
10791 was built with checks on, generated a discriminant mismatch constraint
10794 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10795 Robert Dewar <dewar@adacore.com>
10797 * lib-xref.adb (Get_Type_Reference): For a private type whose full
10798 view is an array type, indicate the component type as well, for
10799 navigation purposes.
10800 (Generate_Reference): Don't consider array ref on LHS to be a case
10801 of violating pragma Unreferenced.
10802 Do not give Ada 2005 warning except on real reference.
10804 2006-02-13 Vincent Celier <celier@adacore.com>
10806 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
10807 main source, add switch -mdebug-main=_ada_ so that the executable can
10808 be debugged by the standard VMS debugger.
10809 (Gnatmake): Set No_Main_Subprogram to True when there is no main
10810 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
10811 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
10812 of the last source, as the binding and linking phases are never
10814 Set all executable obsolete when rebuilding a library.
10816 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
10819 2006-02-13 Javier Miranda <miranda@adacore.com>
10822 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
10823 code to improve the error message reported when the program has
10824 declarations of abstract interface types and it is not compiled with
10825 the -gnat05 switch.
10826 (P_Access_Definition): Reorganize the code to improve the error
10827 message reported when the new Ada 2005 syntax for anonymous
10828 access types is used and the program is not compiled with the
10831 2006-02-13 Robert Dewar <dewar@adacore.com>
10833 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
10834 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
10837 2006-02-13 Javier Miranda <miranda@adacore.com>
10839 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
10840 against source containing syntax errors.
10842 2006-02-13 Vincent Celier <celier@adacore.com>
10844 * prj.adb (Reset): Initialize the first element of table Namings with
10845 the standard naming data.
10847 2006-02-13 Vincent Celier <celier@adacore.com>
10849 * prj.ads (Error_Warning): New enumeration type
10851 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
10852 unknown, use the location of the project to report the error.
10853 (When_No_Sources): New global variable
10854 (Report_No_Ada_Sources): New procedure
10855 (Check): New parameter When_No_Sources. Set value of global variable
10857 (Find_Sources): Call Report_No_Ada_Sources when appropriate
10858 (Get_Sources_From_File): Ditto
10859 (Warn_If_Not_Sources): Better warning messages indicating the unit name
10862 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
10863 Call Prj.Proc.Process with parameter When_No_Sources.
10865 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
10866 Call Recursive_Check with parameter When_No_Sources.
10867 (Recursive_Check): New parameter When_No_Sources. Call itself and
10868 Prj.Nmsc.Check with parameter When_No_Sources.
10869 (Process): New parameter When_No_Sources. Call Check with parameter
10871 (Copy_Package_Declarations): New procedure to copy renamed parameters
10872 and setting the location of the declared attributes to the location
10873 of the renamed package.
10874 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
10877 2006-02-13 Vincent Celier <celier@adacore.com>
10879 * prj-makr.adb (Make): Preserve the comments from the original project
10881 When removing nodes (attributes Source_Dirs, Source_Files,
10882 Source_List_File and package Naming), save the comments and attach the
10883 saved comments to the newly created nodes.
10884 Do not add a with clause for the naming package if one already exists.
10886 2006-02-13 Javier Miranda <miranda@adacore.com>
10887 Gary Dismukes <dismukes@adacore.com>
10888 Robert Dewar <dewar@adacore.com>
10890 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
10892 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
10893 aliased entities to look for the overriden abstract interface
10895 (Is_Interface_Subprogram): Complete documentation.
10896 (Check_Dispatching_Operation): Do not generate code to register the
10897 operation in the dispatch table if the source is compiled with
10898 restriction No_Dispatching_Calls.
10899 (Override_Dispatching_Operation): Check for illegal attempt to override
10900 No_Return procedure with procedure that is not No_Return
10901 (Check_Dispatching_Call): Suppress the check for an abstract operation
10902 when the original node of an actual is a tag-indeterminate attribute
10903 call, since the attribute, which must be 'Input, can never be abstract.
10904 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
10905 call to the Input attribute (even when rewritten).
10906 (Propagate_Tag): Augment comment to indicate the possibility of a call
10907 to an Input attribute.
10909 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
10910 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
10912 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
10913 No_Wide_Characters is no longer partition-wide
10914 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
10917 2006-02-13 Douglas Rupp <rupp@adacore.com>
10919 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
10921 2006-02-13 Javier Miranda <miranda@adacore.com>
10923 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
10924 handles default-initialized components to keep separate the management
10925 of this feature but also avoid the unrequired resolution and
10926 expansion of components that do not have partially initialized
10928 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
10929 (Check_Bounds): Likewise.
10930 (Check_Length): Likewise.
10932 2006-02-13 Javier Miranda <miranda@adacore.com>
10933 Ed Schonberg <schonberg@adacore.com>
10935 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
10936 abstract interface type call analyze_and_resolve to expand the type
10937 conversion into the corresponding displacement of the
10938 reference to the base of the object.
10939 (Eval_Attribute, case Width): For systems where IEEE extended precision
10940 is supported, the maximum exponent occupies 4 decimal digits.
10941 (Accessibility_Message): Add '\' in 2-line warning message.
10942 (Resolve_Attribute): Likewise.
10943 (case Attribute_Access): Significantly revise checks
10944 for illegal access-to-subprogram Access attributes to properly enforce
10945 the rules of 3.10.2(32/2).
10946 Diagnose use of current instance with an illegal attribute.
10948 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
10950 (Enclosing_Generic_Unit): New function to return a node's innermost
10951 enclosing generic declaration node.
10952 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
10953 (Type_Access_Level): The accessibility level of anonymous acccess types
10954 associated with discriminants is that of the current instance of the
10955 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
10956 (Compile_Time_Constraint_Error): Handle case of conditional expression.
10957 (Kill_Current_Values_For_Entity): New function
10958 (Enter_Name): Change formal type to Entity_Id
10960 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
10961 Ed Schonberg <schonberg@adacore.com>
10962 Gary Dismukes <dismukes@adacore.com>
10964 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
10965 Analyze_Compilation_Unit.
10966 Detect and warn on redundant with clauses detected in a package spec
10967 and/or body when -gnatwr is used.
10968 (Analyze_Context): Analyze config pragmas before other items
10969 (Install_Context_Items): Don't analyze config pragmas here
10970 (Install_Limited_Withed_Unit): Set limited entity of package in
10971 with_clause so that cross-reference information or warning messages on
10972 unused packages can be properly generated
10973 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
10974 has Error_Posted set. Prevent infinite loops in illegal programs.
10975 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
10976 to the point of the error test requiring the current unit to be private.
10977 This ensures that private with clauses are not exempted from the basic
10978 checking for being a descendant of the same library unit parent as a
10979 withed private descendant unit.
10980 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
10981 handle private with clauses properly, as well as to account for cases
10982 where the withed unit is a public descendant of a private ancestor
10983 (in which case the current unit must be a descendant of the private
10984 ancestor's parent). The spec comments were updated accordingly. Also,
10985 the old error message in this subprogram was replaced with error
10986 messages that mirror the errors tested and reported by
10987 Check_Private_Child_Unit.
10988 Parameter and variable names improved for readability.
10989 (Install_Limited_Context_Clauses): Remove test for a withed unit being
10990 private as the precondition for calling
10991 Check_Private_Limited_Withed_Unit since that subprogram has been
10992 revised to test public units as well as private units.
10994 2006-02-13 Thomas Quinot <quinot@adacore.com>
10995 Robert Dewar <dewar@adacore.com>
10996 Ed Schonberg <schonberg@adacore.com>
10997 Javier Miranda <miranda@adacore.com>
10999 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
11000 that Scope_Stack.First = 1.
11001 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11002 were not always properly handled previously.
11003 (Formal_Entity): Complete rewrite, to handle properly some complex case
11004 with multiple levels of parametrization by formal packages.
11005 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
11006 to the corresponding derived type declaration for proper semantics.
11008 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
11009 (Check_Component): Enforce restriction on components of
11010 unchecked_unions: a component in a variant cannot contain tasks or
11012 (Unchecked_Union): Allow nested variants and multiple discriminants, to
11014 Add pragma Ada_2005 (synonym for Ada_05)
11015 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11016 were not always properly handled previously.
11017 Document that pragma Propagate_Exceptions has no effect
11018 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
11019 (Set_Convention_From_Pragma): Check that if a convention is
11020 specified for a dispatching operation, then it must be
11021 consistent with the existing convention for the operation.
11022 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
11023 longer required to specify an vtable-ptr component in the record. For
11024 compatibility reasons we leave the support for the previous definition.
11025 (Analyze_Pragma, case No_Return): Allow multiple arguments
11027 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
11028 non-overrideen inherited operation with a controlling result as
11029 illegal only its implicit declaration comes from the derived type
11030 declaration of its result's type.
11031 (Check_Possible_Deferred_Completion): Relocate the object definition
11032 node of the subtype indication of a deferred constant completion rather
11033 than directly analyzing it. The analysis of the generated subtype will
11034 correctly decorate the GNAT tree.
11035 (Record_Type_Declaration): Check whether this is a declaration for a
11036 limited derived record before analyzing components.
11037 (Analyze_Component_Declaration): Diagnose record types not explicitly
11038 declared limited when a component has a limited type.
11039 (Build_Derived_Record_Type): Code reorganization to check if some of
11040 the inherited subprograms of a tagged type cover interface primitives.
11041 This check was missing in case of a full-type associated with a private
11043 (Constant_Redeclaration): Check that the subtypes of the partial and the
11044 full view of a constrained deferred constant statically match.
11045 (Mentions_T): A reference to the current type in an anonymous access
11046 component declaration must be an entity name.
11047 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
11048 class_wide type to refer to full type, not to the incomplete one.
11049 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
11050 available. Required to give support to the certified run-time.
11051 (Analyze_Component_Declaration): In case of anonymous access components
11052 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
11053 (Process_Discriminants): For an access discriminant, use the
11054 discriminant specification as the associated_node_for_itype, to
11055 simplify accessibility checks.
11057 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11058 Javier Miranda <miranda@adacore.com>
11060 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
11061 abstract interpretations on an operator, remove interpretations that
11062 yield Address or a type derived from it, if one of the operands is an
11064 (Try_Object_Operation.Try_Primitive_Operation,
11065 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
11066 location when creating the new reference to a primitive or class-wide
11067 operation as a part of rewriting a subprogram call.
11068 (Try_Primitive_Operations): If context requires a function, collect all
11069 interpretations after the first match, because there may be primitive
11070 operations of the same type with the same profile and different return
11071 types. From code reading.
11072 (Try_Primitive_Operation): Use the node kind to choose the proper
11073 operation when a function and a procedure have the same parameter
11075 (Complete_Object_Operation): If formal is an access parameter and prefix
11076 is an object, rewrite as an Access reference, to match signature of
11077 primitive operation.
11078 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
11079 by an expanded name with prefix Standard, when the operands are of an
11080 anonymous access type.
11081 (Remove_Abstract_Operations): If the operation is abstract because it is
11082 inherited by a user-defined type derived from Address, remove it as
11083 well from the set of candidate interpretations of an overloaded node.
11084 (Analyze_Membership_Op): Membership test not applicable to cpp-class
11087 2006-02-13 Bob Duff <duff@adacore.com>
11089 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
11090 redundant use clauses.
11091 In particular, if the scope of two use clauses overlaps, but one is not
11092 entirely included in the other, we should not warn. This can happen
11093 with nested packages.
11094 (Analyze_Subprogram_Renaming): Protect the compiler against previously
11095 reported errors. The bug was reported when the compiler was built
11096 with assertions enabled.
11097 (Find_Type): If the node is a 'Class reference and the prefix is a
11098 synchronized type without a corresponding record, return the type
11101 2006-02-13 Javier Miranda <miranda@adacore.com>
11103 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
11104 if this is the full-declaration associated with a private declaration
11105 that implement interfaces, then the private type declaration must be
11107 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
11108 as aliased. The use of the 'access attribute is not available for such
11109 object (for this purpose the object should be explicitly marked as
11110 aliased, but being an anonymous type this is not possible).
11112 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11113 Robert Dewar <dewar@adacore.com>
11115 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
11116 compilation unit is an elaboration scope.
11117 (Add_Task_Proc): Add '\' in 2-line warning message.
11118 (Activate_All_Desirable): Deal with case of unit with'ed by parent
11120 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11121 Javier Miranda <miranda@adacore.com>
11123 * sem_type.adb (Write_Overloads): Improve display of candidate
11125 (Add_One_Interp): Do not add to the list of interpretations aliased
11126 entities corresponding with an abstract interface type that is an
11127 immediate ancestor of a tagged type; otherwise we have a dummy
11128 conflict between this entity and the aliased entity.
11129 (Disambiguate): The predefined equality on universal_access is not
11130 usable if there is a user-defined equality with the proper signature,
11131 declared in the same declarative part as the designated type.
11132 (Find_Unique_Type): The universal_access equality operator defined under
11133 AI-230 does not cover pool specific access types.
11134 (Covers): If one of the types is a generic actual subtype, check whether
11135 it matches the partial view of the other type.
11137 2006-02-13 Thomas Quinot <quinot@adacore.com>
11139 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
11140 line. This is necessary to allow In_Extended_Main_Unit to provide
11141 correct results for itypes while writing out expanded source.
11142 (Close_File): No need to update the source_index_table here since it's
11143 now done for each line.
11145 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11146 Robert Dewar <dewar@adacore.com>
11148 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
11149 preserve the source unit where the itype is declared, and prevent a
11151 (Note_Implicit_Run_Time_Call): New procedure
11152 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
11155 * sprint.ads: Document use of $ for implicit run time routine call
11157 2006-02-13 Quentin Ochem <ochem@adacore.com>
11159 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
11162 2006-02-13 Bob Duff <duff@adacore.com>
11164 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
11165 Scan_Unsigned, so we do not scan leading blanks and sign twice.
11166 Integer'Value("- 5") and Integer'Value("-+5") now correctly
11167 raise Constraint_Error.
11169 * s-vallli.adb (Scan_Long_Long_Integer): Call
11170 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
11171 do not scan leading blanks and sign twice.
11172 Integer'Value("- 5") and Integer'Value("-+5") now correctly
11173 raise Constraint_Error.
11175 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
11176 Scan_Long_Long_Unsigned): Split out most of the processing from
11177 Scan_Long_Long_Unsigned out into
11178 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
11179 This prevents scanning leading blanks and sign twice.
11180 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
11183 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
11184 out most of the processing from Scan_Unsigned out into
11185 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
11186 This prevents scanning leading blanks and sign twice.
11188 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
11189 use with Modular'Value attribute.
11190 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
11193 2006-02-13 Robert Dewar <dewar@adacore.com>
11195 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
11197 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
11199 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
11200 (PPC VxWorks): Likewise.
11201 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
11202 (forced_callee): Make non-inlinable and non-pure.
11203 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
11205 2006-02-13 Arnaud Charlet <charlet@adacore.com>
11206 Ben Brosgol <brosgol@adacore.com>
11207 Robert Dewar <dewar@adacore.com>
11209 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
11211 Document that gnatbind -M option is for cross environments only.
11212 Added description of using gnatmem to trace gnat rtl allocs and deallocs
11213 Add note on use of $ to label implicit run time calls
11214 Add documentation for -gnatyI (check mode IN)
11215 Updated chapter on compatibility with HP Ada
11216 VMS-oriented edits.
11217 Ran spell and corrected errors
11218 Add documentation for gnatbind -d and rework documentation of -D
11220 Add subprogram/data elimination section.
11221 Minor editing of annex A.
11222 Add section for gnatcheck.
11223 Add documentation for restriction No_Dispatching_Calls
11224 Add documentation for pragma Ada_2005
11225 Remove mention of obsolete pragma Propagate_Exceptions
11226 Document that pragma Unreferenced can appear after DO in ACCEPT
11227 Clarify Pure_Function for library level units
11228 Mention Max/Min in connection with No_Implicit_Conditionals
11229 No_Wide_Characters restriction is no longer partition-wide
11230 Add a nice example for Universal_Literal_String attribute
11231 Document that pragma No_Return can take multiple arguments
11233 * ug_words: Added entry for gnatcheck
11235 * g-ctrl_c.ads (Install_Handler): Enhance comments
11237 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
11239 * g-trasym.ads: Add documentation on how to do off line symbolic
11240 traceback computation.
11242 * s-fatgen.adb: Add comments for Unaligned_Valid
11244 * stand.ads: Fix typo in comment
11246 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11248 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
11250 2006-02-06 Roger Sayle <roger@eyesopen.com>
11252 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
11254 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11257 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
11258 implementation that calls __main.
11260 2006-01-25 Peter O'Gorman <peter@pogma.com>
11263 * Makefile.in (GCC_LINK): Remove quotes.
11264 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
11267 (powerpc-darwin): Pass -shared-libgcc when building shared library.
11269 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11272 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
11274 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11276 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
11278 2005-12-12 Arnaud Charlet <charlet@adacore.com>
11280 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
11283 2005-12-12 Arnaud Charlet <charlet@adacore.com>
11285 * Make-lang.in: Update dependencies
11287 2005-12-12 Arnaud Charlet <charlet@adacore.com>
11289 * Make-lang.in: Add rule for ada/exp_sel.o
11291 2005-12-12 Arnaud Charlet <charlet@adacore.com>
11293 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
11295 2005-12-09 Arnaud Charlet <charlet@adacore.com>
11297 * gnatvsn.ads (Library_Version): Bump to version 4.2
11298 (ASIS_Version_Number): Bumped.
11300 2005-12-09 Doug Rupp <rupp@adacore.com>
11302 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
11303 Ada bind file prefix on VMS from b$ to b__.
11304 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
11307 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
11308 Targparm.OpenVMS_On_Target.
11309 (Object_Suffix): Initialize with target object suffix.
11310 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
11312 * butil.adb: Change some Hostparm.OpenVMS checks to
11313 Targparm.OpenVMS_On_Target.
11315 * clean.adb: Change some Hostparm.OpenVMS checks to
11316 Targparm.OpenVMS_On_Target.
11317 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
11318 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
11319 Ada bind file prefix on VMS from b$ to b__.
11321 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
11322 --GCC so that Get_Target_Parameters can find system.ads.
11323 (Gnatlink): Call Get_Target_Parameters in mainline.
11324 Initialize standard packages for Targparm.
11325 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
11326 (Process_Args): Also Check for object files with target object
11328 (Make_Binder_File_Names): Create with target object extension.
11329 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
11332 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
11333 Targparm.OpenVMS_On_Target.
11334 ({declaration},Build_Library,Check_Library): Change Ada bind file
11335 prefix on VMS from b$ to b__.
11337 * osint-b.adb: Change some Hostparm.OpenVMS checks to
11338 Targparm.OpenVMS_On_Target.
11339 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
11342 * targext.c: New file.
11344 * Makefile.in: add support for vxworks653 builds
11345 (../../vxaddr2line): gnatlink with targext.o.
11346 (TOOLS_LIBS): Move targext.o to precede libgnat.
11347 (init.o, initialize.o): Minor clean up in dependencies.
11348 (GNATLINK_OBJS): Add targparm.o, snames.o
11349 Add rules fo building targext.o and linking it explicitly with all
11351 Also add targext.o to gnatlib.
11353 * Make-lang.in: Add rules for building targext.o and linking it in
11354 with gnat1 and gnatbind.
11355 Add entry for exp_sel.o.
11357 * osint.adb Change some Hostparm.OpenVMS checks to
11358 Targparm.OpenVMS_On_Target.
11359 (Object_File_Name): Use target object suffix.
11361 * osint.ads (Object_Suffix): Remove, no longer used.
11362 (Target_Object_Suffix): Initialize with target object suffix.
11364 * rident.ads: Add special exception to license.
11366 * targparm.adb (Get_Target_Parameters): Set the value of
11367 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
11369 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
11371 * targparm.ads: Add special exception to license.
11373 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
11375 (Copy_File): Make sure from file is closed if error on to file
11376 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
11378 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
11379 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
11381 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
11382 target object suffix.
11384 2005-12-09 Jose Ruiz <ruiz@adacore.com>
11385 Quentin Ochem <ochem@adacore.com>
11386 Florian Villoing <villoing@adacore.com>
11388 * a-taster.ads, a-taster.adb: New files.
11390 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
11391 link to the version that does nothing. This way the task termination
11392 routine is not executed twice for the environment task when finishing
11393 because of an unhandled exception.
11395 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
11396 handler because of an unhandled exception.
11398 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
11399 System.Tasking.Utilities instead of that in System.Tasking.Stages.
11401 * s-finimp.adb (initialization code): Modify the soft link for the
11402 finalization of the global list instead of Adafinal.
11404 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
11405 non-tasking version of the soft link for task termination. We do
11406 nothing since if we are using the non-tasking version it
11407 means that the task termination functionality is not used.
11408 (Null_Finalize_Global_List): Add this null version for the procedure
11409 in charge of finalizing the global list for controlled objects.
11410 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
11411 instead for handling run-time termination in a more flexible way.
11412 (Adafinal_NT): This new procedure will take care of finalizing the
11413 global list for controlled objects if needed, but no tasking
11416 * s-tarest.adb (Task_Lock): Do not try to lock again the
11417 Global_Task_Lock if we already own it. Otherwise, we get blocked in
11418 some run-time operations.
11419 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
11420 until all nested locks have been released.
11421 (Task_Wrapper): Call the fall-back task termination handler. It
11422 applies to all tasks but the environment task.
11423 (Finalize_Global_Tasks): Add the call for the task termination
11424 procedure for the environment task.
11425 (Task_Wrapper): suppress warnings around declaration of
11426 Secondary_Stack_Address.
11428 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
11429 moved to the Common_ATCB record.
11430 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
11431 Common_ATCB record.
11432 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
11433 Common_ATCB record.
11435 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
11436 Fall_Back_Handler, and Specific_Handler.
11438 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
11439 defined in Ada.Task_Termination, to avoid circular dependencies.
11440 (Termination_Handler): Redefine this type here, alredy defined in
11441 Ada.Task_Termination, for avoiding circular dependencies.
11442 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
11443 for storing task termination handlers. In addition,
11444 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
11445 Common_ATCB because it is used by both the regular and the restricted
11447 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
11448 Common_ATCB because it is used by both the regular and the restricted
11450 (Common_ATCB): Added a dynamic task analyzer field.
11452 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
11453 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
11454 (Task_Wrapper): Call the task termination handler. It applies to all
11455 tasks but the environment task.
11456 (Finalize_Global_Tasks): Call the task termination procedure for the
11457 environment task. The call to Finalize_Global_List is now performed
11458 using the soft links mechanism.
11459 (Task_Wrapper): added dynamic stack analysis.
11461 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
11462 potentially blocking operations has been moved from
11463 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
11464 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
11465 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
11466 this run-time check.
11468 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
11469 of task termination procedure.
11470 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
11471 link for the task termination procedure.
11473 * bindusg.adb: (Bindusg): Added documentation for -u option.
11475 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
11476 (Get_Main_C): Add handling of dynamic stack analysis.
11477 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
11479 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
11480 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
11481 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
11483 * opt.ads: Added flags used by dynamic stack measurement.
11484 (Max_Line_Length): Remove (not used anymore)
11486 * s-io.ads, s-io.adb (Standard_Error): new subprogram
11487 (Standart_Output): new subprogram
11488 (Set_Output): new subprogram
11489 (Put): now uses the value of Current_Out to know if the output has to be
11490 send to stderr or stdout.
11492 * s-stausa.ads: Complete implementation.
11494 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
11496 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
11497 list of Ada 05 files.
11498 (GNAT Library Units): Add AltiVec files.
11500 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
11501 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
11502 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
11504 2005-12-09 Nicolas Setton <setton@adacore.com>
11506 * adaint.c (__gnat_locate_regular_file): Return immediately if
11507 file_name is empty.
11509 2005-12-09 Javier Miranda <miranda@adacore.com>
11510 Hristian Kirtchev <kirtchev@adacore.com>
11512 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
11513 to the specification because the frontend generates code that uses this
11515 (Set_Interface_Table): Add missing assertion.
11516 Update documentation describing the run-time structure.
11517 (Displace): New subprogram that displaces the pointer to the object
11518 to reference one of its secondary dispatch tables.
11519 (IW_Membership): Modified to use the new table of interfaces.
11520 (Inherit_TSD): Modified to use the new table of interfaces.
11521 (Register_Interface_Tag): Use the additional formal to fill the
11522 contents of the new table of interfaces.
11523 (Set_Interface_Table): New subprogram that stores in the TSD the
11524 pointer to the table of interfaces.
11525 (Set_Offset_To_Top): Use the additional formal to save copy of
11526 the offset value in the table of interfaces.
11527 Update structure of GNAT Primary and Secondary dispatch table diagram.
11528 Add comment section on GNAT dispatch table prologue.
11529 (Offset_To_Signature): Update the constant value of the Signature field.
11530 (Dispatch_Table): Update comment on hidden fields in the prologue.
11531 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
11532 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
11533 the type of formal parameter T to Tag, introduce additional assertions.
11534 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
11536 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
11538 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
11539 in all the calls to Expand_Interface_Thunk. Instead of referencing the
11540 record component containing the tag of the secondary dispatch table we
11541 have to use the Offset_To_Top run-time function to get this information;
11542 otherwise if the pointer to the base of the object has been displace
11543 we get a wrong value if we use the 'position attribute.
11545 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
11546 all the calls to Expand_Interface_Thunk.
11547 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
11548 interfaces; hence the call to Set_Interface_Table was clearly wrong.
11549 (Collect_All_Interfaces): Modify the internal subprogram Collect to
11550 ensure that the interfaces implemented by the ancestors are placed
11551 at the header of the generated list.
11552 (Expand_Interface_Conversion): Handle the case in which the displacement
11553 associated with the interface conversion is not statically known. In
11554 this case we generate a call to the new run-time subprogram Displace.
11555 (Make_DT): Generate and fill the new table of interfaces.
11556 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
11557 Get_Tagged_Kind and Set_Tagged_Kind.
11558 (Tagged_Kind): New function that determines the tagged kind of a type
11559 with respect to limitedness and concurrency and returns a reference to
11561 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
11562 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
11563 primary dispatch table for a type.
11564 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
11565 secondary dispatch table respectively of a tagged type.
11567 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
11568 (Expand_Interface_Conversion): New subprogram to indicate if the
11569 displacement of the type conversion is statically known.
11570 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
11572 * rtsfind.ads (RE_Offset_To_Top): New entity
11573 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
11574 accessible to users.
11575 (Re_Displace): New entity
11576 (RE_Interface_Data): New entity
11577 (RE_Set_Interface_Data): New_Entity
11578 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
11579 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
11580 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
11581 RE_TK_Tagged, RE_TK_Task.
11583 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
11584 Init_Secondary_Tags_Internal to allow its use with interface types and
11585 also to generate the code for the new additional actual required
11586 by Set_Offset_To_Top.
11587 (Build_Init_Statements): In case of components associated with abstract
11588 interface types there is no need to generate a call to its IP.
11589 (Freeze_Record_Type): Generate Select Specific Data tables only for
11591 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
11592 the bodies and specifications of the predefined primitive operations
11593 dealing with dispatching selects and abort, 'Callable, 'Terminated only
11594 for concurrent types.
11596 * exp_sel.ads, exp_sel.adb: New files.
11598 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
11599 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
11600 properly protected objects and attach handler in the case of the
11601 restricted profile.
11602 Move embeded package Select_Expansion_Utilities into a separate external
11604 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
11605 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
11606 (Build_K, Build_S_Assignment): New subprograms, part of the select
11607 expansion utilities.
11608 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
11609 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
11610 where the trigger is a dispatching procedure of a limited tagged type.
11612 2005-12-09 Olivier Hainque <hainque@adacore.com>
11614 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
11615 pointer initialization values. Make a SAVE_EXPR instead. Add comments
11616 about the use and expansion of SAVE_EXPRs in the various possible
11617 renaming handling cases.
11618 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
11619 abusing DECL_FCONTEXT.
11621 2005-12-09 Matthew Heaney <heaney@adacore.com>
11623 * a-convec.adb (Merge): Added assertions to check whether vector params
11626 * a-coinve.adb (Merge): Added assertions to check whether vector params
11629 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
11631 (Cursor'Read): raises PE
11633 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
11634 to its default value.
11636 * a-cihama.adb: Manually check whether cursor's key and elem are
11639 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
11640 (Merge): Assert that target and source lists are in order
11641 (Swap): Declare non-const temporaries, to pass to Splice
11643 * a-cdlili.ads: (Splice): Changed param name and param mode
11645 * a-cdlili.adb: (Splice): Changed param name and param mode
11646 (Merge): Assert that target and source lists are in order
11647 (Swap): Declare non-const temporaries, to pass to Splice
11649 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
11650 (Write): declare Stream param as not null
11652 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
11653 an exception message.
11655 2005-12-09 Thomas Quinot <quinot@adacore.com>
11656 Robert Dewar <dewar@adacore.com>
11658 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
11659 which is the absolute maximum length we can support.
11661 * frontend.adb: For the processing of configuration pragma files,
11662 remove references to Opt.Max_Line_Length, which is not checked anymore.
11664 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
11667 * scn.adb, scng.adb:
11668 Always check line length against the absolute supported maximum,
11669 Hostparm.Max_Line_Length.
11671 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
11672 value for the maximum line length is Max_Line_Length (not
11673 Column_Number'Last).
11674 Minor error msg update
11675 (Set_Style_Check_Options): New interface returning error msg
11676 Minor code reorganization (processing for 'M' was out of alpha order)
11678 * switch-c.adb: New interface for Set_Style_Check_Options
11680 * stylesw.ads (Set_Style_Check_Options): New interface returning error
11683 2005-12-09 Javier Miranda <miranda@adacore.com>
11685 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
11686 with IP subprogram were only supported if there were limited types.
11688 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
11689 records with IP subprogram were only supported if there were limited
11692 2005-12-09 Olivier Hainque <hainque@adacore.com>
11693 Eric Botcazou <ebotcazou@adacore.com>
11695 * trans.c (tree_transform, emit_check): Adjust calls to
11696 build_call_raise, passing the now expected GNAT_NODE argument.
11698 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
11699 source line information than what the current global locus indicates
11702 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
11703 field has overflowed.
11704 (build_call_raise): Add a GNAT_NODE argument to convey better source
11705 line information than what the current global locus indicates when
11707 (build_component_ref): Adjust call to build_call_raise.
11709 2005-12-09 Pascal Obry <obry@adacore.com>
11711 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
11712 the iterator is quitting iteration on parent directory.
11714 2005-12-09 Javier Miranda <miranda@adacore.com>
11716 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
11717 and the assignment to a class-wide object, before the assignment we
11718 generate a run-time check to ensure that the tag of the Target is
11719 covered by the tag of the source.
11721 2005-12-09 Robert Dewar <dewar@adacore.com>
11723 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
11724 parameter in call to Image_Wide_Character.
11726 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
11727 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
11728 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
11729 annoying FFFE/FFFF inconsistency.
11731 2005-12-09 Robert Dewar <dewar@adacore.com>
11732 Javier Miranda <miranda@adacore.com>
11733 Ed Schonberg <schonberg@adacore.com>
11735 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
11736 of type conversion.
11737 (Find_Interface): New subprogram that given a tagged type and one of its
11738 component associated with the secondary table of an abstract interface
11739 type, return the entity associated with such abstract interface type.
11740 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
11741 base type to create anonymous subtype, because entity may be a locally
11742 declared subtype or generic actual.
11743 (Find_Interface): New subprogram that given a tagged type and one of its
11744 component associated with the secondary table of an abstract interface
11745 type, return the entity associated with such abstract interface type.
11747 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
11748 conversion cannot be handled at compile time. In this case we pass this
11749 information to the expander to generate the appropriate code.
11751 2005-12-09 Robert Dewar <dewar@adacore.com>
11752 Ed Schonberg <schonberg@adacore.com>
11753 Gary Dismukes <dismukes@adacore.com>
11754 Javier Miranda <miranda@adacore.com>
11755 Hristian Kirtchev <kirtchev@adacore.com>
11757 * einfo.adb (Itype_Printed): New flag
11758 (Is_Limited_Type): Derived types do not inherit limitedness from
11759 interface progenitors.
11760 (Is_Return_By_Reference_Type): Predicate does not apply to limited
11763 * einfo.ads (Itype_Printed): New flag
11764 Move Is_Wrapper_Package to proper section
11765 Add missing Inline for Is_Volatile
11767 * output.ads, output.adb (Write_Erase_Char): New procedure
11768 (Save/Restore_Output_Buffer): New procedures
11769 (Save/Restore_Output_Buffer): New procedures
11771 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
11772 Add missing support for anonymous access type
11773 (Write_Id): Insert calls to Write_Itype
11774 (Write_Itype): New procedure to output itypes
11776 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
11777 use of "limited" in declaration.
11779 * sinfo.ads, sinfo.adb:
11780 Formal derived types can carry an explicit "limited" indication.
11782 * sem_ch3.adb: Add with and use of Targparm.
11783 (Create_Component): If Frontend_Layout_On_Target is True and the
11784 copied component does not have a known static Esize, then reset
11785 the size and positional fields of the new component.
11786 (Analyze_Component_Declaration): A limited component is
11787 legal within a protected type that implements an interface.
11788 (Collect_Interfaces): Do not add to the list the interfaces that
11789 are implemented by the ancestors.
11790 (Derived_Type_Declaration): If the parent of the full-view is an
11791 interface perform a transformation of the tree to ensure that it has
11792 the same parent than the partial-view. This simplifies the job of the
11793 expander in order to generate the correct object layout, and it is
11794 needed because the list of interfaces of the full-view can be given in
11796 (Process_Full_View): The parent of the full-view does not need to be
11797 a descendant of the parent of the partial view if both parents are
11799 (Analyze_Private_Extension_Declaration): If declaration has an explicit
11800 "limited" the parent must be a limited type.
11801 (Build_Derived_Record_Type): A derived type that is explicitly limited
11802 must have limited ancestor and progenitors.
11803 (Build_Derived_Type): Ditto.
11804 (Process_Full_View): Verify that explicit uses of "limited" in partial
11805 and full declarations are consistent.
11806 (Find_Ancestor_Interface): Remove function.
11807 (Collect_Implemented_Interfaces): New procedure used to gather all
11808 implemented interfaces by a type.
11809 (Contain_Interface): New function used to check whether an interface is
11811 (Find_Hidden_Interface): New function used to determine whether two
11812 lists of interfaces constitute a set equality. If not, the first
11813 differing interface is returned.
11814 (Process_Full_View): Improve the check for the "no hidden interface"
11815 rule as defined by AI-396.
11817 2005-12-09 Robert Dewar <dewar@adacore.com>
11819 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
11820 types, not on record subtypes.
11821 (Freeze_Entity): Code cleanup. Add barrier to the loop
11822 that generates the references for primitive operations. This allows to
11823 remove an unnecessary exception handler.
11824 Code reformatting and comment clean ups.
11826 2005-12-09 Vincent Celier <celier@adacore.com>
11828 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
11829 If GNAT CHECK is called with a project file, but with no
11830 source on the command line, call gnatcheck with all the compilable
11831 sources of the project.
11832 Take into account the new command Check, for gnatcheck. Treat as for
11833 other ASIS tools: take into account project, specific package Check and
11835 For ASIS tools, add the switches in package Compiler for
11836 the invocation of the compiler.
11838 * prj-attr.adb: Add package Check and its attributes
11840 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
11842 * vms_conv.adb (Initialize): Change Params of command Check to
11844 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
11845 Add data for new command Check
11847 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
11849 Add qualifiers for Check command options
11850 (Command_Type): New command Check
11852 2005-12-09 Thomas Quinot <quinot@adacore.com>
11854 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
11855 command line switch overruns the output buffer.
11857 2005-12-09 Robert Dewar <dewar@adacore.com>
11859 * sem_prag.adb: Processing for new pragma Complete_Representation
11860 (Analyze_Pragma, case Debug): Implement two argument form.
11862 * par-prag.adb: Entry for new pragma Complete_Representation
11863 (Prag, case Debug): Recognize two argument form of pragma Debug
11864 New interface for Set_Style_Check_Options.
11866 * sem_ch13.adb: Implement new pragma Complete_Representation.
11868 * snames.adb, snames.ads, snames.h: Entry for new pragma
11869 Complete_Representation.
11871 2005-12-09 Gary Dismukes <dismukes@adacore.com>
11873 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
11874 available user-specified stream attributes on limited parameters to
11875 also test the type directly rather than only its underlying type (for
11876 Ada 95) and, in the case of Ada 2005, to check that the user-specified
11877 attributes are visible at the point of the subprogram declaration.
11878 For Ada 2005, the error message is modified to indicate that the
11879 type's stream attributes must be visible (again, only for -gnat05).
11881 2005-12-09 Ed Schonberg <schonberg@adacore.com>
11883 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
11884 anonymous access types.
11886 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
11887 matching of anonymous access types and anonymous access to subprogram
11888 types. 'R'M 4.9.1 (2/2).
11890 2005-12-09 Ed Schonberg <schonberg@adacore.com>
11892 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
11893 rule prematurely when operands are universal, remaining ambiguities
11894 will be removed during resolution.
11897 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
11898 that are Ada 2005 functions.
11899 (Has_Abstract_Interpretation): Subsidiary to
11900 Remove_Conversions, to remove ambiguities caused by abstract operations
11901 on numeric types when operands are universal.
11903 2005-12-09 Robert Dewar <dewar@adacore.com>
11905 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
11906 for case where spec is categorized.
11908 2005-12-09 Javier Miranda <miranda@adacore.com>
11910 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
11911 types use the corresponding record type. This was not needed before
11912 the implementation of Ada 2005 synchronized types because
11913 concurrent types were never tagged types in Ada 95.
11915 2005-12-09 Ed Schonberg <schonberg@adacore.com>
11917 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
11918 first subtype of the type of the expression to verify that it is a
11921 2005-12-09 Robert Dewar <dewar@adacore.com>
11923 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
11926 2005-12-09 Quentin Ochem <ochem@adacore.com>
11927 Robert Dewar <dewar@adacore.com>
11928 Ed Falis <falis@adacore.com>
11929 Florian Villoing <villoing@adacore.com>
11930 Thomas Quinot <quinot@adacore.com>
11931 Arnaud Charlet <charlet@adacore.com>
11933 * gnat_ugn.texi: Created section "Stack Related Tools"
11934 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
11935 "Stack Related Tools"
11936 Added subsection "Static Stack Usage Analysis"
11937 Added subsection "Dynamic Stack Usage Analysis"
11938 Include documentation of itypes in sprint listing (-gnatG)
11939 Documented gnatbind -D switch (default sec stack size for fixed sec
11941 Added Interrupt_State and Persistent_BSS to list of configuration
11943 Add missing doc for maximum value of nnn in -gnatyMnnn
11945 * gnat_rm.texi: Document the AltiVec binding.
11946 Add documentation for pragma Complete_Representation
11947 Shortened an overly long line (> 79 chars)
11948 Clarify documentation of unchecked conversion in implementation
11950 Document two argument form of pragma Debug
11952 * types.ads (Column_Number): Update documentation.
11954 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
11955 library level Finalize_Storage_Only objects (these are not attached to
11956 any finalization list).
11958 * system-mingw.ads: (Underlying_Priorities): Update comment.
11960 2005-12-09 Robert Dewar <dewar@adacore.com>
11962 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
11963 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
11964 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
11965 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
11966 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
11967 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
11968 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
11969 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
11972 2005-12-09 Robert Dewar <dewar@adacore.com>
11974 * s-vaflop-vms-alpha.adb: (Ne_F): New function
11975 (Ne_G): New function
11977 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
11978 for tag assignment.
11979 (Rewrite_Comparison): Handle case where operation is not a comparison
11980 and ignore, and also handle type conversion case.
11982 2005-12-09 Thomas Quinot <quinot@adacore.com>
11984 * exp_aggr.ads: Fix typo in comment.
11985 ???-mark Convert_Aggr_In_Assignment as needing documentation.
11987 2005-12-09 Gary Dismukes <dismukes@adacore.com>
11989 * layout.adb: Replace various uses of byte by storage unit throughout.
11990 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
11991 static size, convert to storage units before returning, to conform to
11994 2005-12-09 Matthew Gingell <gingell@adacore.com>
11996 * g-exctra.ads: Fix typo in comment.
11998 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12000 * utils.c: Minor reformatting.
12002 2005-12-09 Robert Dewar <dewar@adacore.com>
12005 Further comment fixes to make the status of the default file clear
12007 * s-bitops.adb: Clarify comment for Bits_Array
12009 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
12011 * Make-lang.in (ada.install-normal): Remove.
12013 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
12015 * Make-lang.in: Remove all dependencies on s-gtype.
12017 2005-12-05 Richard Guenther <rguenther@suse.de>
12019 * utils.c (convert): Use fold_convert where appropriate.
12021 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
12023 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
12026 2005-12-02 Richard Guenther <rguenther@suse.de>
12028 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
12030 2005-12-01 Roger Sayle <roger@eyesopen.com>
12032 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
12035 2005-11-23 Laurent GUERBY <laurent@guerby.net>
12037 * mlib-prj.adb (Build_Library): Initialize Delete.
12039 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
12041 * socket.c: Add extern int h_errno for rtems since networking header
12042 files are not available at this point in a tool bootstrap. Newlib
12043 only has basic C library header files.
12045 2005-11-19 Richard Guenther <rguenther@suse.de>
12046 Roger Sayle <roger@eyesopen.com>
12049 * misc.c (internal_error_function): Don't use vsprintf to format
12050 the error message text, instead use pp_format_text and the new
12051 pretty printer APIs. This allows handling of %qs, %w, etc.
12053 2005-11-18 Laurent GUERBY <laurent@guerby.net>
12056 * Makefile.in: Use s-auxdec-empty for RTEMS.
12058 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12061 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
12062 a temporary if taking the address of something that is neither
12063 reference, declaration, or constant, since the gimplifier
12064 can't handle that case.
12066 2005-11-17 Laurent GUERBY <laurent@guerby.net>
12069 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
12071 2005-11-16 Richard Guenther <rguenther@suse.de>
12073 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
12075 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
12078 * raise-gcc.c: Add missing stdarg.h include.
12080 2005-11-16 Richard Guenther <rguenther@suse.de>
12082 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
12083 (ada/misc.o): Likewise.
12085 2005-11-14 Thomas Quinot <quinot@adacore.com>
12087 * g-soccon.ads: Minor reformatting. Update comments.
12089 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
12090 gain visibility on the declaration of struct timeval.
12092 * g-soccon-freebsd.ads,
12093 g-soccon-darwin.ads,
12094 g-soccon-tru64.ads,
12098 g-soccon-solaris.ads,
12100 g-soccon-mingw.ads,
12101 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
12103 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
12104 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
12105 g-soccon-linux-x86.ads: New files.
12107 * g-socthi-mingw.adb:
12108 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
12110 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
12111 (time_t, suseconds_t): New types constructed to match the tv_sec
12112 and tv_usec fields of C struct timeval.
12113 (Timeval): Construct structure in terms of the new types.
12114 (Host_Errno): New function (imported from socket.c), returns last hosts
12117 * g-socthi-vxworks.adb: Add error handling circuitry.
12119 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
12120 components of struct timeval.
12121 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
12122 (Check_Selector): In error conditions, clear internal socket sets to
12123 avoid a memory leak.
12124 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
12125 Send_Timeout, Receive_Timeout.
12127 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
12128 the tv_sec and tv_usec fields of C struct timeval.
12129 (Timeval): Construct structure in terms of the new types.
12130 (Host_Errno): New function (imported from socket.c), returns last hosts
12133 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
12134 hosts database last error code.
12136 * gen-soccon.c: Complete value expansion should not be performed on
12137 TARGET, as it has the form of a math expression, and some components
12138 may be platform-defined macros.
12139 For VxWorks, generate the OK and ERROR values.
12140 New constants giving the sizes of the components of C struct timeval.
12142 2005-11-14 Robert Dewar <dewar@adacore.com>
12143 Ed Schonberg <schonberg@adacore.com>
12146 * types.ads: Include All_Checks in Suppress_Array
12148 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
12149 not(a=b), since we no longer do this rewriting, and hence it is not
12151 (Elaboration_Checks_Suppressed): Add special casing to
12152 deal with different cases of static and dynamic elaboration checks (all
12153 checks does not count in the first case, but does in the second).
12154 (Expr_Known_Valid): Do not assume that the result of any arbitrary
12155 function call is valid, since this is not the case.
12156 (Ensure_Valid): Do not apply validity check to a real literal
12157 in a universal or fixed context
12159 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
12160 elementary types using the operator in standard. It is cleaner not to
12161 modify the programmers intent, especially in the case of floating-point.
12162 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
12163 it did not matter because we always rewrote a/=b to not(a=b).
12164 (Expand_Allocator_Expression): For an allocator expression whose nominal
12165 subtype is an unconstrained packed type, convert the expression to its
12166 actual constrained subtype.
12167 Implement warning for <= or >= where < or > not possible
12168 Fix to Vax_Float tests (too early in many routines, causing premature
12169 Vax_Float expansions.
12171 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
12172 to be used with packages and generic packages as well as with
12174 (Suppress): Set All_Checks, but not Elaboration_Check, for case
12175 of pragma Suppress (All_Checks)
12176 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
12177 a string literal for precise control over warnings.
12178 Avoid raise of pragma in case of unrecognized pragma and just return
12181 * sem_prag.ads: Minor reformatting
12183 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
12184 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
12185 Switch. Do not handle any exception.
12186 Include -gnatwx as part of -gnatg (warn on redundant parens)
12187 Allow optional = after -gnatm
12188 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
12189 longer sets Elaboration_Checks.
12190 Code to set warning mode moved to Sem_Warn
12191 so that it can be shared by pragma processing.
12193 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
12196 * s-taprop-solaris.adb:
12197 Change some <= to =, to avoid new warning
12199 * a-exexda.adb, prj-proc.adb:
12200 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
12201 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
12203 2005-11-14 Robert Dewar <dewar@adacore.com>
12205 * exp_vfpt.adb: Handle /= case
12206 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
12207 so that we do not get duplicate scaling for fixed point conversions.
12209 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
12211 2005-11-14 Matthew Gingell <gingell@adacore.com>
12213 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
12214 Increase default priority on Lynx from 15 to 17, and meet the Ada
12215 requirement that Default_Priority be ((Priority'First +
12216 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
12218 2005-11-14 Vincent Celier <celier@adacore.com>
12220 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12221 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
12222 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
12223 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
12224 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
12225 mlib-tgt-lynxos.adb (DLL_Prefix): New function
12227 2005-11-14 Doug Rupp <rupp@adacore.com>
12229 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
12232 2005-11-14 Arnaud Charlet <charlet@adacore.com>
12234 * s-traces-default.adb, s-trafor-default.ads,
12235 s-tratas-default.adb: Fix compilation errors.
12237 2005-11-14 Jose Ruiz <ruiz@adacore.com>
12239 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
12240 raising the exception so the memory used is freed.
12242 2005-11-14 Arnaud Charlet <charlet@adacore.com>
12244 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
12245 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
12246 (convert_address): Update comments and list of platforms using this.
12248 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
12251 2005-11-14 Pascal Obry <obry@adacore.com>
12252 Vincent Celier <celier@adacore.com>
12254 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
12257 * memroot.adb: Remove redundant with/use clause on
12258 System.Storage_Elements.
12260 2005-11-14 Arnaud Charlet <charlet@adacore.com>
12262 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
12263 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
12264 related code to a-exexpr.adb
12265 (Save_Occurrence_And_Private): Move GCC EH related code to
12267 (Raise_Current_Excep): Add new variable Id with pragma
12268 volatile, to ensure that the variable lives on stack.
12270 * a-exexpr-gcc.adb, raise-gcc.c: New file.
12272 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
12274 Move GCC EH related code to a-exexpr-gcc.adb
12276 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
12278 Split the Linux version of g-soccon into separate variants for 32 and 64
12280 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
12281 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
12282 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
12283 of host variable $(RANLIB_FLAGS).
12284 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
12285 Code clean up: remove unused/obsolete targets.
12286 (EH_MECHANISM): New variable introduced to differenciate between the
12287 two EH mechanisms statically.
12288 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
12289 (LIBGNAT_OBJS): Add raise-gcc.o
12290 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
12291 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
12292 supports VxWorks 6 RTPs.
12293 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
12294 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
12296 * raise.c: Move all GCC EH-related routines to raise-gcc.c
12298 2005-11-14 Jose Ruiz <ruiz@adacore.com>
12300 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
12301 deferral level, when abort is not allowed, to a later stage (the
12303 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
12304 it will not get changed by the generated code. It was previously done
12307 2005-11-14 Thomas Quinot <quinot@adacore.com>
12308 Olivier Hainque <hainque@adacore.com>
12309 Eric Botcazou <ebotcazou@adacore.com>
12312 Factor common code to build a storage type for an unconstrained object
12313 from a fat or thin pointer type and a constrained object type.
12314 (annotate_value): Handle BIT_AND_EXPR.
12315 (annotate_rep): Don't restrict the back annotation of inherited
12316 components to the type_annotate_only case.
12317 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
12318 we are not defining the type.
12319 <E_Record_Type>: Likewise.
12320 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
12321 to get advantage of the new maybe_stabilize_reference interface, to
12322 ensure that what we reference is indeed stabilized instead of relying
12323 on assumptions on what the stabilizer does.
12324 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
12325 type imported through a limited_with clause, use its non-limited view.
12326 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
12328 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
12329 of #if sections + explicit comparisons of convention identifiers.
12330 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
12331 before early-returning for certain types when code generation is
12333 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
12334 nullification of gnu_expr we do for objects with address clause and
12335 that we are not defining.
12336 (elaborate_expression_1): Do not create constants when creating
12337 variables needed by the debug info: the dwarf2 writer considers that
12338 CONST_DECLs is used only to represent enumeration constants, and emits
12340 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
12341 object with an address clause into an indirect reference, drop the
12342 initializing expression.
12344 (STACK_CHECK_BUILTIN): Delete.
12345 (STACK_CHECK_PROBE_INTERVAL): Likewise.
12346 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
12347 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
12348 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
12349 corresponding to the renamed object as ignored for debugging purposes.
12351 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
12352 related): For a prefix that is a dereference of a fat or thin pointer,
12353 if there is an actual subtype provided by the front-end, use that
12354 subtype to build an actual type with bounds template.
12355 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
12356 is provided by the front-end, use that subtype to compute the size of
12357 the deallocated object.
12358 (gnat_to_gnu): When adding a statement into an elaboration procedure,
12359 check for a potential violation of a No_Elaboration_Code restriction.
12360 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
12361 with extra arguments to control whether to recurse through non-values
12362 and to let the caller know if the stabilization has succeeded.
12363 (gnat_stabilize_reference): Now a simple wrapper around
12364 maybe_stabilize, for common uses without restriction on lvalues and
12365 without need to check for the success indication.
12366 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
12367 pass false instead of 0 as the FORCE argument which is a bool.
12368 (Identifier_to_gnu): Remove checks ensuring that an renamed object
12369 attached to a renaming pointer has been properly stabilized, as no such
12370 object is attached otherwise.
12371 (call_to_gnu): Invoke create_var_decl to create the temporary when the
12372 function uses the "target pointer" return mechanism.
12373 Reinstate conversion of the actual to the type of the formal
12374 parameter before any other specific treatment based on the passing
12375 mechanism. This turns out to be necessary in order for PLACEHOLDER
12376 substitution to work properly when the latter type is unconstrained.
12378 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
12380 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
12381 with extra arguments to control whether to recurse through non-values
12382 and to let the caller know if the stabilization has succeeded.
12384 * utils2.c (gnat_build_constructor): Only sort the fields for possible
12385 static output of record constructor if all the components are constant.
12386 (gnat_build_constructor): For a record type, sort the list of field
12387 initializers in increasing bit position order.
12388 Factor common code to build a storage type for an unconstrained object
12389 from a fat or thin pointer type and a constrained object type.
12390 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
12391 types variants, and process special cases of VIEW_CONVERT expressions
12392 as their NOP_EXPR counterpart to ensure we get to the
12393 CORRESPONDING_VARs associated with CONST_DECls.
12394 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
12395 on the right-hand side.
12397 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
12399 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
12400 are converting back to its original type.
12401 (convert) <JM input>: Fallthrough regular conversion code instead of
12402 extracting the object if converting to a type variant.
12403 (create_var_decl): When a variable has an initializer requiring code
12404 generation and we are at the top level, check for a potential violation
12405 of a No_Elaboration_Code restriction.
12406 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
12407 SIZE and SIZE_UNIT which we need for later back-annotations.
12408 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
12409 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
12410 is an unchecked union.
12411 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
12412 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
12413 main variant, just replace the VIEW_CONVERT_EXPR.
12414 <UNION_TYPE>: Revert 2005-03-02 change.
12416 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
12418 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
12420 2005-11-14 Matthew Heaney <heaney@adacore.com>
12422 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
12423 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
12424 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
12425 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
12426 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
12427 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
12428 Compiles against the spec for ordered maps described in sections
12429 A.18.6 of the most recent (August 2005) AI-302 draft.
12431 2005-11-14 Olivier Hainque <hainque@adacore.com>
12433 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
12434 to ensure bias adjustments take place when need be and to prevent
12435 occurrences of intermediate overflows.
12437 2005-11-14 Matthew Gingell <gingell@adacore.com>
12438 Olivier Hainque <hainque@adacore.com>
12440 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
12443 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
12444 tracebacks on ia64 HP-UX and provide explanatory comment.
12445 Enable backtraces on ia64 GNU/Linux.
12446 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
12447 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
12449 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
12450 Javier Miranda <miranda@adacore.com>
12452 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
12453 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
12454 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
12455 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
12457 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
12458 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
12461 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
12462 subprogram that generates the external name associated with a
12463 secondary dispatch table.
12464 (Get_Secondary_DT_External_Name): New subprogram that generates the
12465 external name associated with a secondary dispatch table.
12467 2005-11-14 Emmanuel Briot <briot@adacore.com>
12469 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
12470 line in the ALI file to include both an instantiation reference, and a
12473 2005-11-14 Vincent Celier <celier@adacore.com>
12475 * clean.adb (Check_Project): Look for Ada code in extending project,
12476 even if Ada is not specified as a language.
12477 Use new function DLL_Prefix for DLL_Name
12478 (Clean_Interface_Copy_Directory): New procedure
12479 (Clean_Library_Directory): New procedure
12480 (Clean_Directory): Remove procedure, no longer used
12481 (Clean_Project): Do not delete any file in an externally built project
12483 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
12484 directory of an extending project, even when there are no Ada source
12486 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
12487 (Set_Ada_Paths.Add.Recursive_Add): Ditto
12489 * mlib-prj.adb (Check_Library): For all library projects, get the
12490 library file timestamp.
12491 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
12492 (Build_Library): Use new function DLL_Prefix for the DLL_Name
12493 (Clean): Remove procedure, no longer used
12494 (Ultimate_Extension_Of): New function
12495 (Build_Library): When cleaning the library directory, only remove an
12496 existing library file and any ALI file of a source of the project.
12497 When cleaning the interface copy directory, remove any source that
12498 could be a source of the project.
12500 * prj.ads, prj.adb (Project_Empty): Add values of new components
12501 Library_TS and All_Imported_Projects.
12502 (Project_Empty): Add values for new components of Project_Data:
12503 Library_ALI_Dir and Display_Library_ALI_Dir
12505 * prj-attr.adb: New project level attribute name Library_ALI_Dir
12507 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
12508 attribute Library_ALI_Dir.
12509 (Check_Library_Attributes): The library directory cannot be the same as
12510 any source directory of the project tree.
12511 (Check_Stand_Alone_Library): The interface copy directory cannot be
12512 the same as any source directory of the project tree.
12514 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
12515 all temporary files.
12517 2005-11-14 Robert Dewar <dewar@adacore.com>
12518 Ed Schonberg <schonberg@adacore.com>
12520 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
12521 (Check_Elab_Call): A call within a protected body is never an
12522 elaboration call, and does not require checking.
12523 (Same_Elaboration_Scope): Take into account protected types for both
12525 (Activate_Elaborate_All_Desirable): New procedure
12527 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
12530 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
12531 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
12533 * lib-writ.ads, lib-writ.adb:
12534 Implement new AD/ED for Elaborate_All/Elaborate desirable
12535 Use new Elaborate_All_Desirable flag in N_With_Clause node
12537 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
12538 N_Free_Statement nodes.
12539 Define new class N_Subprogram_Instantiation
12540 Add Elaborate_Desirable flag to N_With_Clause node
12541 Add N_Delay_Statement (covering two kinds of delay)
12543 * debug.adb: Introduce d.f flag for compiler
12544 Add -da switch for binder
12546 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12547 Cyrille Comar <comar@adacore.com>
12549 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
12550 for task component, in the case of a limited aggregate. The enclosed
12551 object declaration will create it earlier. Otherwise, in the case of a
12552 nested aggregate, the object may appear in the wrong scope.
12553 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
12554 (Gen_Assign): If the component being assigned is an array type and the
12555 expression is itself an aggregate, wrap the assignment in a block to
12556 force finalization actions on the temporary created for each row of the
12558 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
12559 structures are initialized after all discriminants are set so that
12560 they can be accessed even when their offset is dynamic.
12562 2005-11-14 Robert Dewar <dewar@adacore.com>
12563 Hristian Kirtchev <kirtchev@adacore.com>
12565 * sem_attr.adb: Implement Machine_Rounding attribute
12566 (Analyze_Access_Attribute): The access attribute may appear within an
12567 aggregate that has been expanded into a loop.
12568 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
12569 'Terminated whenever the prefix is of a task interface class-wide type.
12570 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
12571 the prefix is of a task interface class-wide type.
12573 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
12576 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
12577 Remove pragma Inline for [Unaligned_]Valid.
12578 Add comments that Valid routines do not work for Vax_Float
12580 * exp_attr.adb: Implement Machine_Rounding attribute
12582 * snames.h: Add entry for Machine_Rounding attribute
12584 2005-11-14 Javier Miranda <miranda@adacore.com>
12585 Robert Dewar <dewar@adacore.com>
12586 Hristian Kirtchev <kirtchev@adacore.com>
12588 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
12589 and related): For a prefix that is an explicit dereference of an
12590 access to unconstrained packed array type, annotate the dereference
12591 with an actual subtype so GIGI can make a correct size computation.
12592 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
12593 'Unrestricted_Access, if the designated type is an interface we
12594 add a type conversion to force the displacement of the pointer
12595 to the secondary dispatch table.
12596 Use Universal_Real instead of Long_Long_Float when we need a high
12597 precision float type for the generated code (prevents gratuitous
12598 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
12599 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
12600 'Terminated for task interface class-wide objects. Generate a call to
12601 the predefined dispatching routine used to retrieve the _task_id from
12602 a task corresponding record.
12603 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
12605 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
12606 (Check_Dispatching_Operation): Protect the frontend againts
12607 previously detected errors.
12609 * Makefile.rtl: Add new instantiations of system.fat_gen
12611 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
12612 Change name of instantiated package for better consistency
12613 with newly added system.fat_gen instantiations.
12615 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
12616 s-fvagfl.ads: New files.
12618 2005-11-14 Cyrille Comar <comar@adacore.com>
12619 Thomas Quinot <quinot@adacore.com>
12621 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
12622 assignment of a value of a tagged type that has been rewritten to a
12623 block statement, it is known by construction that no checks are
12624 necessary for the statements within the block: analyze it with checks
12626 (Expand_N_If_Statement): When killing a dead then-branch in an
12627 if-statement that has elsif_parts, recompute the Current_Value node
12628 for any entity whose value is known from the condition of the first
12630 (Expand_N_Return_Statement): When returning a mutable record, convert
12631 the return value into its actual subtype in order to help the backend
12632 to return the actual size instead of the maximum. This is another
12633 aftermath of not returning mutable records on the sec-stack anymore.
12635 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
12636 handling of error msg for suspicious reverse range iteration.
12637 (Check_Possible_Current_Value_Condition): Move declaration from body to
12638 spec, to allow this subprogram to be called from exp_ch5.
12640 2005-11-14 Thomas Quinot <quinot@adacore.com>
12642 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
12643 generate a set of nested array aggregates instead of a single flat
12644 aggregate for multi-dimensional arrays.
12646 2005-11-14 Pascal Obry <obry@adacore.com>
12648 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
12649 by spawnve is a process handle, no need to convert. Add a parameter
12650 close to control wether the process handle must be closed.
12651 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
12652 a process handle, not need to convert.
12653 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
12655 * g-expect.adb: (Kill): Document the new close parameter.
12656 (Close): Do not release the process handle in the kill there as
12657 waitpid() is using it.
12658 (Send_Signal): Release the process handle.
12660 2005-11-14 Robert Dewar <dewar@adacore.com>
12662 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
12663 need a high precision float type for the generated code (prevents
12664 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
12667 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
12668 need a high precision float type for the generated code (prevents
12669 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
12671 (Expand_Width_Attribute): In configurable run-time, the attribute is not
12672 allowed on non-static enumeration subtypes. Force a load error to emit
12673 the correct diagnostic.
12675 2005-11-14 Thomas Quinot <quinot@adacore.com>
12676 Robert Dewar <dewar@adacore.com>
12677 Ed Schonberg <schonberg@adacore.com>
12679 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
12680 subtype to compute the size of the designated object at run-time,
12681 create such a subtype and store it in the Actual_Designated_Subtype
12682 attribute of the N_Free_Statement.
12683 Generate itype for classwide designated object in both cases of
12684 user-specified storage pool: specific and class-wide, not only in the
12686 Raise CE when trying to set a not null access type object to null.
12687 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
12688 an explicit loop, because freeze nodes make its position variable.
12690 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
12693 2005-11-14 Javier Miranda <miranda@adacore.com>
12695 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
12696 Build_Stream_Procedure): Add the null-excluding attribute to the first
12698 This has no semantic meaning under Ada95 mode but it is a
12699 requirement under Ada05 mode.
12701 * par-ch3.adb (P_Access_Definition): Addition of warning message if
12702 the null exclusion is used under Ada95 mode
12703 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
12704 (P_Access_Definition): Remove assertion that forbids the use of
12705 the null-exclusion feature in Ada95.
12707 2005-11-14 Robert Dewar <dewar@adacore.com>
12709 * impunit.adb: Exclude container helper units not intended for use by
12712 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12714 * freeze.adb (Freeze_Entity): For an access formal that is an access
12715 to subprogram, freeze the anonymous subprogram type at the same time,
12716 to prevent later freezing in the wrong scope, such as the enclosing
12718 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
12719 subprogram whenever available.
12721 2005-11-14 Arnaud Charlet <charlet@adacore.com>
12724 * gnatvsn.ads (Library_Version): Bump to 4.1
12726 2005-11-14 Robert Dewar <dewar@adacore.com>
12728 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
12729 Storage_Offset to avoid wrap around causing invalid results.
12731 2005-11-14 Pascal Obry <obry@adacore.com>
12733 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
12735 (Scan_Bind_Arg): Fail with an error message if -M option is used
12736 on a native compiler.
12738 2005-11-14 Robert Dewar <dewar@adacore.com>
12739 Vincent Celier <celier@adacore.com>
12741 * gprep.adb: Implement -C switch to scan comments
12743 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
12745 * scans.ads: Comment updates (including new use of Tok_Comment in
12748 * opt.ads: Add documentation for flags that are used by gprmake,
12749 currently and in the next version of gprmake.
12750 (Verbosity_Level): New variable
12751 Add Replace_In_Comments switch
12753 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
12755 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
12757 2005-11-14 Arnaud Charlet <charlet@adacore.com>
12759 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
12760 message, friendlier.
12762 2005-11-14 Robert Dewar <dewar@adacore.com>
12764 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
12766 2005-11-14 Doug Rupp <rupp@adacore.com>
12768 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
12770 2005-11-14 Robert Dewar <dewar@adacore.com>
12772 * interfac.ads: Change declarations of IEEE float types so that we no
12773 longer need a separate version of this package for VMS.
12775 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12777 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
12778 internal entity created for the declaration of a child subprogram body
12779 with no spec as coming from source, to generate proper cross-reference
12782 2005-11-14 Vincent Celier <celier@adacore.com>
12784 * make.adb (Compile_Sources): Change verbose message to minimum
12785 verbosity level High for "is in an Ada library", "is a read-only
12786 library" and "is an internal library",
12787 (Create_Binder_Mapping_File): Path name of ALI file for library project
12788 must include the library directory, not the object directory.
12789 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
12790 for new switches -vl, -vm and -vh.
12791 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
12792 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
12793 (Compile_Sources): Do not attempt to compile if an ALI file is missing
12794 in a project that is externally built.
12795 (Compute_All_Imported_Projects): New procedure
12796 (Gnatmake): Check if importing libraries should be regenerated because
12797 at least an imported library is more recent.
12798 (Initialize): For each project compute the list of the projects it
12799 imports directly or indirectly.
12800 (Add_Library_Search_Dir): New procedure, used in place of
12801 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
12802 put in the search paths.
12803 (Add_Source_Search_Dir): New procedure, used in place of
12804 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
12805 put in the search paths.
12806 (Mark_Directory): Resolve the absolute path the directory before marking
12809 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
12810 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
12811 Switch. Do not handle any exception.
12812 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
12813 so that the switch is recognized as valid.
12814 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
12816 2005-11-14 GNAT Script <nobody@adacore.com>
12818 * Make-lang.in: Makefile automatically updated
12820 2005-11-14 Pascal Obry <obry@adacore.com>
12822 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
12824 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
12825 In both cases the last argument was dropped.
12827 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
12829 * namet.h: (Column_Numbe): New type.
12830 (Get_Column_Number): Define to sinput__get_column_number.
12831 (Instantiation): Define to sinput__instantiation.
12832 (Get_Column_Number): Declare.
12833 (Instantiation): Likewise.
12835 2005-11-14 Robert Dewar <dewar@adacore.com>
12837 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
12838 syntax, which could cause compiler hangs.
12840 2005-11-14 Vincent Celier <celier@adacore.com>
12842 * prj-ext.adb: Take into account new environment variable
12843 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
12845 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
12846 normalize its path name, making it absolute and resolving symbolic
12847 links, and replace the original if resolved path is different.
12849 2005-11-14 Vincent Celier <celier@adacore.com>
12851 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
12852 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
12854 2005-11-14 Emmanuel Briot <briot@adacore.com>
12856 * prj-pp.adb (Print): Do not output the with statement if the
12857 associated name is empty, which happens for virtual extending projects.
12858 (Print): Preserve the "extends all" attribute when printing the project.
12860 * prj-tree.ads (String_Value_Of): Add comment about returned value for
12861 a virtual extending project.
12863 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12865 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
12866 rhs of an assignment even if the type is unconstrained, when the
12867 context is non-expanding.
12868 In an inlined body, if the context type is private,
12869 resolve with its full view, which must be a composite type.
12871 2005-11-14 Robert Dewar <dewar@adacore.com>
12872 Ed Schonberg <schonberg@adacore.com>
12874 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
12875 Do not give obsolescent warning on with of subprogram (since we
12877 (Analyze_With_Clause): Add test for obsolescent package
12878 (Install_Context_Clauses): If the unit is the body of a child unit, do
12879 not install twice the private declarations of the parents, to prevent
12880 circular lists of Use_Clauses in a parent.
12881 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
12882 compiling body of child unit.
12883 Use new class N_Subprogram_Instantiation
12884 (Expand_With_Clause): If this is a private with_clause for a child unit,
12885 appearing in the context of a package declaration, then the implicit
12886 with_clauses generated for parent units are private as well.
12887 (License_Check): Do not generate message if with'ed unit is internal
12889 2005-11-14 Gary Dismukes <dismukes@adacore.com>
12890 Ed Schonberg <schonberg@adacore.com>
12891 Thomas Quinot <quinot@adacore.com>
12893 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
12894 names are internal, because they will not have a corresponding partner
12895 in the actual package.
12896 (Analyze_Formal_Package): Move the setting of the formal package spec's
12897 Generic_Parent field so that it occurs prior to analyzing the package,
12898 to allow proper operation of Install_Parent_Private_Declarations.
12899 (Analyze_Package_Instantiation): Set the instantiated package entity's
12900 Package_Instantiation field.
12901 (Get_Package_Instantiation_Node): Move declaration to package spec.
12902 Retrieve the N_Package_Instantiation node when the Package_Instantiation
12904 (Check_Generic_Child_Unit): Within an inlined call, the only possible
12905 instantiation is Unchecked_Conversion, for which no parents are needed.
12906 (Inline_Instance_Body): Deinstall and record the use_clauses for all
12907 parent scopes of a scope being removed prior to inlining an instance
12909 (Analyze_Package_Instantiation): Do not perform front-end inlining when
12910 the current context is itself an instance within a non-instance child
12911 unit, to prevent scope stack errors.
12912 (Save_References): If the node is an aggregate that is an actual in a
12913 call, rewrite as a qualified expression to preserve some type
12914 information, to resolve possible ambiguities in the instance.
12915 (Instance_Parent_Unit): New global variable to record the ultimate
12916 parent unit associated with a generic child unit instance (associated
12917 with the existing Parent_Unit_Visible flag).
12918 (type Instance_Env): New component Instance_Parent_Unit for stacking
12919 parents recorded in the global Instance_Parent_Unit.
12920 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
12922 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
12923 it's not a top-level unit, and only do this if Instance_Parent_Unit is
12924 not already set. Replace test of Is_Child_Unit with test of parent's
12925 scope against package Standard. Add comments and a ??? comment.
12926 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
12927 on a child instance parent to test that the parent equals
12928 Instance_Parent rather than simply checking that the unit is not a
12930 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
12931 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
12932 a formal interface are ancestors of the corresponding actual.
12933 (Validate_Formal_Interface_Type): Additional legality checks.
12934 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
12935 interface types with ancestors.
12936 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
12937 to diagnose attempts to use generic within its own declaration.
12939 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12940 Javier Miranda <miranda@adacore.com>
12942 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
12944 (Build_Private_Derived_Type): The entity of the created full view of the
12945 derived type does not come from source. If after installing the private
12946 declarations of the parent scope the parent is still private, use its
12947 full view to construct the full declaration of the derived type.
12948 (Build_Derived_Record_Type): Relax the condition that controls the
12949 execution of the check that verifies that the partial view and
12950 the full view agree in the set of implemented interfaces. In
12951 addition, this test now only takes into account the progenitors.
12952 (Derive_Interface_Subprograms): No need to derive subprograms
12953 of ancestors that are interfaces.
12954 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
12956 Change name Is_Package to Is_Package_Or_Generic_Package
12957 (Complete_Subprograms_Derivation): Handle the case in which the full
12958 view is a transitive derivation of the ancestor of the partial view.
12959 (Process_Full_View): Rename local subprogram Find_Interface_In_
12960 Descendant to Find_Ancestor_Interface to leave the code more clear.
12961 Remove wrong code that avoids the generation of an error message
12962 when the immediate ancestor of the partial view is an interface.
12963 In addition some minor reorganization of the code has been done to
12964 leave it more clear.
12965 (Analyze_Type_Declaration): If type has previous incomplete tagged
12966 partial view, inherit properly its primitive operations.
12967 (Collect_Interfaces): Make public, for analysis of formal
12969 (Analyze_Interface_Declaration): New procedure for use for regular and
12970 formal interface declarations.
12971 (Build_Derived_Record_Type): Add support for private types to the code
12972 that checks if a tagged type implements abstract interfaces.
12973 (Check_Aliased_Component_Type): The test applies in the spec of an
12975 (Access_Type_Declaration): Clean up declaration of malformed type
12976 declared as an access to its own classwide type, to prevent cascaded
12978 (Collect_Interfaces): For private extensions and for derived task types
12979 and derived protected types, the parent may be an interface that must
12980 be included in the interface list.
12981 (Access_Definition): If the designated type is an interface that may
12982 contain tasks, create Master_Id for it before analyzing the expression
12983 of the declaration, which may be an allocator.
12984 (Record_Type_Declaration): Set properly the interface kind, for use
12985 in allocators, the creation of master id's for task interfaces, etc.
12987 2005-11-14 Javier Miranda <miranda@adacore.com>
12988 Ed Schonberg <schonberg@adacore.com>
12990 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
12991 omitted in case of stream attribute subprograms.
12992 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
12993 appear immediately after a subprogram body, when there is no previous
12994 subprogram declaration.
12995 Change name Is_Package to Is_Package_Or_Generic_Package
12996 (Process_Formals): A non null qualifier on a non null named access
12997 type is not an error, and is a warning only if Redundant_Constructs
13000 2005-11-14 Gary Dismukes <dismukes@adacore.com>
13001 Ed Schonberg <schonberg@adacore.com>
13003 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
13004 nested within Analyze_Package_Specification to install the private
13005 declarations and use clauses within each of the parent units of a
13006 package instance of a generic child package.
13007 (Analyze_Package_Specification): When entering a private part of a
13008 package associated with a generic instance or formal package, the
13009 private declarations of the parent must be installed (by calling new
13010 procedure Install_Parent_Private_Declarations).
13011 Change name Is_Package to Is_Package_Or_Generic_Package
13012 (Preserve_Full_Attributes): For a synchronized type, the corresponding
13013 record is absent in a generic context, which does not indicate a
13016 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13018 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
13019 not try to rewrite a renamed stream attribute, because the operations
13020 on the type may not have been generated.
13021 Handle properly a renaming_as_body generated for a stream operation
13022 whose default is abstract because the object type itself is abstract.
13023 (Find_Type): If the type is incomplete and appears as the prefix of a
13024 'Class reference, it is tagged, and its list of primitive operations
13025 must be initialized properly.
13026 (Chain_Use_Clauses): When chaining the use clauses that appear in the
13027 private declaration of a parent unit, prior to compiling the private
13028 part of a child unit, find on the scope stack the proper parent entity
13029 on which to link the use clause.
13030 (Note_Redundant_Use): Emit a warning when a redundant use clause is
13032 (Analyze_Object_Renaming): An attribute reference is not a legal object
13033 if it is not a function call.
13035 2005-11-14 Robert Dewar <dewar@adacore.com>
13036 Ed Schonberg <schonberg@adacore.com>
13038 * sem_eval.adb: Implement d.f flag
13039 (Subtype_Statically_Match): A generic actual type has unknown
13040 discriminants when the corresponding actual has a similar partial view.
13041 If the routine is called to validate the signature of an inherited
13042 operation in a child instance, the generic actual matches the full view,
13044 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
13045 Ed Schonberg <schonberg@adacore.com>
13046 Robert Dewar <dewar@adacore.com>
13047 Thomas Quinot <quinot@adacore.com>
13049 * sem_res.adb (Resolve_Call): Provide a better error message whenever
13050 a procedure call is used as a select statement trigger and is not an
13051 entry renaming or a primitive of a limited interface.
13052 (Valid_Conversion): If the operand has a single interpretation do not
13053 remove address operations.
13054 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
13055 statement to inhibit warning.
13056 (Resolve_Unary_Op): Do not produce a warning when
13057 processing an expression of the form -(A mod B)
13058 Use Universal_Real instead of Long_Long_Float when we need a high
13059 precision float type for the generated code (prevents gratuitous
13060 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
13061 (Resolve_Concatenation_Arg): Improve error message when argument is an
13062 ambiguous call to a function that returns an array.
13063 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
13064 there is an implicit operator in the given scope if we are within an
13065 instance: legality check has been performed on the generic.
13066 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
13067 after resolving operand, to avoid false warnings on overloaded calls.
13069 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13070 Javier Miranda <miranda@adacore.com>
13073 * sem_type.adb (Covers): In an inlined body, a composite type matches
13074 a private type whose full view is a composite type.
13075 (Interface_Present_In_Ancestor): Protect the frontend against
13076 previously detected errors to ensure that its compilation
13077 with assertions enabled gives the same output that its
13078 compilation without assertions.
13079 (Interface_Present_In_Ancestor): Add support for private types.
13080 Change name In_Actual to In_Generic_Actual (clean up)
13081 (Disambiguate): New predicate In_Actual, to recognize expressions that
13082 appear in the renaming declaration generated for generic actuals, and
13083 which must be resolved in the outer context.
13085 2005-11-14 Robert Dewar <dewar@adacore.com>
13086 Thomas Quinot <quinot@adacore.com>
13087 Hristian Kirtchev <kirtchev@adacore.com>
13088 Ed Schonberg <schonberg@adacore.com>
13090 * sem_util.ads, sem_util.adb: Change name Is_Package to
13091 Is_Package_Or_Generic_Package.
13092 (Check_Obsolescent): New procedure.
13093 (Set_Is_Public): Remove obsolete junk test.
13094 (Set_Public_Status): Do not set Is_Public on an object whose declaration
13095 occurs within a handled_sequence_of_statemets.
13096 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
13097 for a parameterless procedure.
13098 (Enter_Name): Recognize renaming declarations created for private
13099 component of a protected type within protected operations, so that
13100 the source name of the component can be used in the debugger.
13102 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13103 Robert Dewar <dewar@adacore.com>
13105 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
13106 of a generic subprogram are not visible outside the body.
13107 (Set_Warning_Switch): New procedure (code to set warning mode moved
13108 here from Switch.C so that it can be shared by pragma processing.
13109 (Check_References): Special case warning for non-modified non-imported
13111 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
13112 form with a string literal argument
13114 2005-11-14 Javier Miranda <miranda@adacore.com>
13116 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
13118 (Write): Addition of "not null" to the anonymous access.
13119 (Read): Addition of "not null" to the anonymous access.
13120 (Write): Addition of "not null" to the anonymous access.
13122 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
13123 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
13124 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
13125 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
13126 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
13127 "not null" to the anonymous access.
13129 2005-11-14 Robert Dewar <dewar@adacore.com>
13131 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
13134 2005-11-14 Vincent Celier <celier@adacore.com>
13136 * switch.adb (Bad_Switch): New procedure
13137 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
13138 message when in error.
13140 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
13141 Too_Many_Output_Files): Remove declarations, no longer used.
13142 (Scan_Nat): New parameter Switch
13144 (Bad_Switch): New procedure
13146 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
13147 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
13148 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
13149 to Osint.Fail. Do not handle any exception.
13151 2005-11-14 Vincent Celier <celier@adacore.com>
13153 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
13154 designates a non existent directory.
13156 2005-11-14 Robert Dewar <dewar@adacore.com>
13158 * xgnatugn.adb: Replace invalid membership test by 'Valid
13160 2005-11-14 Vincent Celier <celier@adacore.com>
13162 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
13163 there is no object directory.
13165 2005-11-14 Robert Dewar <dewar@adacore.com>
13167 * usage.adb: Minor adjustment to output format, use nn instead of nnn
13168 (so that -gnateInnn does not run into next column)
13170 2005-11-14 Ed Falis <falis@adacore.com>
13172 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
13175 2005-11-14 Cyrille Comar <comar@adacore.com>
13177 * s-chepoo.ads: Add comments on Dereference.
13178 Remove unnecessary inherited abstract primitives.
13181 2005-11-14 Robert Dewar <dewar@adacore.com>
13183 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
13184 node parameter, not needed, since it is available as Declaration_Node.
13186 2005-11-14 Geert Bosch <bosch@adacore.com>
13188 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
13189 grammatically correct.
13191 2005-11-14 Vincent Celier <celier@adacore.com>
13193 * s-fileio.ads: Correct spelling error in comment
13195 2005-11-14 Cyrille Comar <comar@adacore.com>
13196 Robert Dewar <dewar@adacore.com>
13197 Vincent Celier <celier@adacore.com>
13198 Ben Brosgol <brosgol@adacore.com>
13199 Jose Ruiz <ruiz@adacore.com>
13200 Pascal Obry <obry@adacore.com>
13203 Document that -fstack-check is needed for strict compliance with the
13204 Ada 95 Reference Manual.
13205 Correct reference to VAX systems to meet HP guidelines
13206 Add documentation for new gnatmake switches -vl, -vm and -vh
13207 Replace DEC Ada by HP Ada
13208 Replace DIGITAL by HP
13209 Remove empty section on tools in compatibility section
13210 Clarify the Windows convention semantics.
13211 Document the Win32 calling convention.
13212 The Stdcall, Win32 and DLL convention are synonyms.
13213 Add a note in -gnatR description about zero size record components
13214 Note on new >= and <= warnings for -gnatwc
13215 Document that equal sign after -gnatm is optional.
13216 Note that strip is working fine on DLL built with a Library
13217 Project. The restriction apply only to DLL built with gnatdll.
13218 Update section about the way to debug a DLL.
13219 Update information about the DLL convention.
13220 Document -C switch for gnatprep
13221 Document new attribute Library_ALI_Dir
13222 Update elaboration doc to include implicit Elaborate pragmas now
13223 generated for subprogram instantiations.
13224 Document limitation on executable names that include spaces for --GCC,
13225 --GNATBIND, and --GNATLINK switches.
13226 Document that -w causes -gnatws to be added at start of gcc switches
13228 * gnat_rm.texi: Document that -mieee is needed for generating infinite
13229 and NaN values in case of overflow on machines that are not fully
13230 compliant with the IEEE floating-point standard.
13231 Create a section describing the set of compiler options needed for
13232 strict compliance with the Ada 95 Reference Manual.
13233 Add documentation for pragma Obsolescent applied to a package
13234 Clarify potential issues of mixed language programs related to the
13235 I/O buffering enabling in the elaboration of the GNAT runtime.
13236 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
13237 This documentation only patch adds extra documentsion for pragma
13238 Restrictions (No_Elaboration_Code), explaining why it is not possible
13239 to document this restriction in terms of allowed source constructs.
13240 Document string literal form of pragma Warnings
13241 Document new attribute Library_ALI_Dir
13242 Add documentation on stable attributes in project files that was missing
13244 * gnat-style.texi: Indicate that paragraphs within a single comment
13245 should be separated by empty comment lines
13247 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
13250 * bindusg.adb: Minor cleanup, put -m before -M for consistency
13252 2005-11-14 Robert Dewar <dewar@adacore.com>
13254 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
13255 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
13256 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
13257 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
13258 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
13259 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
13260 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
13261 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
13262 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
13263 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
13264 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
13265 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
13266 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
13267 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
13268 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
13269 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
13270 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
13271 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
13272 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
13273 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
13274 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
13275 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
13276 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
13277 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
13278 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
13279 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
13280 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
13281 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
13282 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
13283 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
13284 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
13285 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
13286 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
13287 system-interix.ads, system-solaris-sparc.ads,
13288 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
13289 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
13290 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
13291 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
13292 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
13293 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
13294 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
13295 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
13296 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
13297 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
13298 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
13299 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
13300 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
13301 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
13302 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
13303 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
13304 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
13305 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
13306 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
13307 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
13308 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
13309 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
13310 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
13311 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
13312 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
13313 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
13314 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
13315 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
13316 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
13317 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
13318 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
13319 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
13320 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
13321 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
13322 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
13323 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
13324 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
13325 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
13326 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
13327 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
13328 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
13329 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
13330 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
13331 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
13332 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
13333 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
13334 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
13335 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
13336 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
13337 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
13338 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
13339 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
13340 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
13341 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
13342 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
13343 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
13344 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
13345 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
13346 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
13347 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
13348 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
13349 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
13350 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
13351 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
13352 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
13353 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
13354 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
13355 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
13356 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
13357 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
13358 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
13359 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
13360 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
13361 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
13362 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
13363 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
13364 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
13365 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
13366 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
13367 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
13368 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
13369 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
13370 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
13371 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
13372 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
13373 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
13374 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
13375 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
13376 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
13377 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
13378 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
13379 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
13380 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
13381 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
13382 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
13383 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
13384 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
13385 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
13386 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
13387 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
13388 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
13389 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
13390 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
13391 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
13392 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
13393 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
13394 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
13395 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
13396 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
13397 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
13398 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
13399 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
13400 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
13401 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
13402 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
13403 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
13404 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
13405 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
13406 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
13407 a-numaux-darwin.ads, a-numaux-darwin.adb,
13408 a-swuwha.ads, a-stunha.ads: Minor reformatting
13410 2005-11-14 Robert Dewar <dewar@adacore.com>
13413 * osint-m.adb: Add pragma Elaborate_All for Osint
13415 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
13418 * trans.c (call_to_gnu): Restore statement lost in translation.
13420 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
13422 * init.c: Use the Linux-specific section for the IA-64/Linux target.
13423 (__gnat_adjust_context_for_raise): Add conditional code so that the
13424 IA-64 is also supported.
13426 2005-11-03 James E Wilson <wilson@specifix.com>
13429 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
13430 TREE_OVERFLOW check.
13432 2005-09-21 Olivier Hainque <hainque@adacore.com>
13435 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
13436 as we create them to store a size in bits.
13438 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
13446 * utils2.c (build_return_expr): New helper function.
13447 * gigi.h (build_return_expr): Declare it.
13448 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
13449 of manually building the RETURN_EXPR tree.
13450 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
13451 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
13452 build_binary_op for the "target pointer" case. Use build_return_expr
13453 instead of manually building the RETURN_EXPR tree.
13455 2005-09-16 Laurent GUERBY <laurent@guerby.net>
13458 * s-tpinop.ads: Make this unit Preelaborate.
13460 2005-09-16 Andreas Jaeger <aj@suse.de>
13462 * socket.c: Add string.h for memcpy.
13464 2005-09-05 Arnaud Charlet <charlet@adacore.com>
13466 * dec-io.ads, dec-io.adb: Removed, no longer used.
13468 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13470 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
13472 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
13473 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
13474 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
13475 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
13476 dependent units are Preelaborate.
13477 (Initialize): Call Interrupt_Managemeent.Initialize and
13478 OS_Primitives.Initialize to ensure proper initialization of this unit.
13479 Remove use of System.Soft_Links
13480 Make this unit Preelaborate.
13482 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
13483 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
13484 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
13485 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
13486 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
13487 s-tratas.ads, s-tasinf.ads: Minor reformatting.
13488 Add pragma Preelaborate, since these packages are suitable for this
13492 * s-traent-vms.ads, s-intman-dummy.adb,
13493 s-taprop-dummy.adb: Make this unit Preelaborate.
13495 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
13496 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
13497 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
13498 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
13499 s-intman-solaris.adb, s-intman-irix-athread.adb,
13500 s-intman-irix.adb: Mark this unit Preelaborate.
13501 (Initialize): New procedure.
13504 * s-taspri-linux.ads: Removed.
13506 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
13507 as done by other implementations (e.g. posix).
13509 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
13510 responsible for deferring abort.
13511 Mark this unit Preelaborate.
13513 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
13514 proper initialization of the tasking run-time.
13516 * s-tasdeb.ads: Mark this unit Preelaborate.
13517 (Known_Tasks): Add explicit default value to avoid elaboration code.
13519 * s-inmaop-vms.adb (Elaboration code): Add call to
13520 Interrupt_Management.Initialize since the elaboration code depends on
13521 proper initialization of this package.
13523 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
13524 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
13525 s-osprim-posix.adb: Make this unit Preelaborate.
13527 * a-calend.adb: Add call to OS_Primitives.Initialize
13529 * a-elchha.adb: Update use of Except.Id.Full_Name.
13530 Minor reformatting.
13531 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
13533 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
13534 Move with clauses outside Warnings Off now that dependent units are
13536 Use raise xxx with "..."; Ada 2005 form.
13538 * a-taside.ads, a-taside.adb:
13539 Remove some dependencies, to make it easier to make this unit truly
13541 Rewrite some code to be conformant with Preelaborate rules.
13543 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
13544 marked Preelaborate in the future.
13546 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
13547 these units Preelaborate.
13549 * s-exctab.adb: Update use of Except.Id.Full_Name.
13551 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
13552 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
13553 Set_Exc_Stack_Addr): Removed, no longer used.
13554 Remove reference to *Machine_State_Addr*, no longer needed.
13556 * s-stalib.ads: Mark this unit as Preelaborate[_05].
13557 (Exception_Data): Full_Name is now a System.Address so that this unit
13558 can be made Preelaborate.
13559 Clean up/simplify code thanks to Full_Name being a System.Address.
13560 Remove obsolete pragma Suppress (All_Checks), no longer needed.
13562 * s-taskin.ads, s-taskin.adb:
13563 Move with clauses outside Warnings Off now that dependent units are
13565 Make this unit Preelaborate.
13566 (Initialize): New proceduure, replace elaboration code and makes the
13567 set up of the tasking run-time cleaner.
13568 (Detect_Blocking): Now a function instead of a deferred boolean, to
13569 obey Preelaborate rules.
13571 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
13572 soft links, no longer used.
13574 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
13575 packages are suitable for this categorization.
13577 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
13578 since we compile run-time sources in Ada 2005 mode.
13579 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
13580 avoid having s-taprop*.adb depend on s-soflin and to avoid code
13582 Remove reference to *Machine_State_Addr*, no longer needed.
13584 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13586 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
13587 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
13588 Remove reference to System.Exceptions.
13590 * s-mastop-x86.adb: Removed, no longer used.
13592 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
13594 * a-excach.adb: Minor reformatting.
13596 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
13597 instead fix new warnings that were hidden by this change.
13598 (AAA, ZZZ): Removed, replaced by...
13599 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
13600 are used instead of constants, to help make Ada.Exception truly
13602 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
13603 Raise_Storage_Error): File is now a System.Address, to simplify code.
13604 (Elab code): Removed, no longer used.
13605 (Null_Occurrence): Remove Warnings Off and make this construct
13607 Remove code related to front-end zero cost exception handling, since
13608 it is no longer used.
13609 Remove -gnatL/-gnatZ switches.
13611 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
13612 Update use of Except.Msg.
13614 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
13615 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
13616 to front-end zero cost exception handling, since it is no longer used.
13617 Remove -gnatL/-gnatZ switches.
13619 * lib-writ.ads: Minor reformatting
13622 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
13624 * Make-lang.in: Remove references to s-except.ads
13626 * s-except.ads: Removed, no longer used.
13628 * s-mastop.ads, s-mastop.adb:
13629 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
13630 Remove reference to System.Exceptions.
13632 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
13633 switch-b.adb: Remove code related to front-end zero cost exception
13634 handling, since it is no longer used.
13635 Remove -gnatL/-gnatZ switches.
13637 2005-09-01 Robert Dewar <dewar@adacore.com>
13638 Gary Dismukes <dismukes@adacore.com>
13639 Javier Miranda <miranda@adacore.com>
13641 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
13642 type by valid test and generate warning.
13643 (Tagged_Membership): Generate call to the run-time
13644 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
13645 Change formal name Subtype_Mark to Result_Definition in several calls to
13646 Make_Function_Specification.
13647 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
13648 check for proper accessibility of the operand of a class-wide allocator.
13649 The check can be left out if checks are suppressed or if the expression
13650 has a specific tagged type whose level is known to be safe.
13652 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
13653 generates the run-time check associated with null-excluding entities.
13654 (Expand_N_Return_Statement): Add tests to determine if the accessibility
13655 check on the level of the return expression of a class-wide function
13656 can be elided. The check usually isn't needed if the expression has a
13657 specific type (unless it's a conversion or a formal parameter). Also
13658 add a test for whether accessibility checks are suppressed. Augment
13659 the comments to describe the conditions for performing the check.
13661 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
13662 Javier Miranda <miranda@adacore.com>
13663 Gary Dismukes <dismukes@adacore.com>
13664 Ed Schonberg <schonberg@adacore.com>
13666 * a-tags.adb (IW_Membership): Give support to
13667 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
13668 subprogram has been extended to look for the tag in the ancestors tag
13670 Update the structure of the GNAT Dispatch Table to reflect the
13671 additional two tables used in dispatching selects.
13672 Introduce appropriate array types and record components in
13673 Type_Specific_Data to reflect the two tables.
13674 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
13675 the TSD of a tag, indexed by position.
13676 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
13677 operation kind in the TSD of a tag, indexed by position.
13679 * a-tags.ads: Introduce an enumeration type to capture different
13680 primitive operation kinds. Define a constant reflecting the number of
13681 predefined primitive operations.
13682 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
13683 of an entry wrapper.
13684 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
13685 callable entity of a primitive operation.
13687 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
13688 primitive operations used in dispatching selects for limited
13689 interfaces, limited tagged, task and protected types what implement a
13691 (Freeze_Type): Generate the bodies of the primitive operations used in
13692 dispatching selects for limited tagged, task and protected types that
13693 implement a limited interface. Generate statements to populate the two
13694 auxiliary tables used for dispatching in select statements.
13695 (Freeze_Record_Type): Add call to initialize the dispatch table entries
13696 associated with predefined interface primitive operations.
13697 (Build_Dcheck_Function): Change Set_Subtype_Mark to
13698 Set_Result_Definition.
13699 (Build_Variant_Record_Equality): Change Subtype_Mark to
13701 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
13702 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
13703 (Build_Assignment): Simplify the code that adds the run-time-check.
13704 (Expand_N_Object_Declaration): Code cleanup.
13706 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
13707 entries when there is a protected type that implements a limited
13710 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
13711 common routines used in expansion of dispatching selects.
13712 (Add_Private_Declarations): Select the appropriate protection type when
13713 there is a protected type that implements a limited interface.
13714 (Build_Parameter_Block): Generate a wrapped parameter block.
13715 (Build_Protected_Subprogram_Body): Select the appropriate type for
13716 locking entries when there is a protected type that implements a
13718 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
13719 classified as entry wrappers.
13720 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
13721 asynchronous selects.
13722 (Expand_N_Conditional_Entry_Call): Add support for expansion of
13723 dispatching conditional selects.
13724 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
13725 protection when there is a protected type that implements limited
13727 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
13729 (Extract_Dispatching_Call): Extract the entity of the name of a
13730 dispatching call, the object parameter, actual parameters and
13731 corresponding formals.
13732 (Make_Initialize_Protection): Correct logic of protection initialization
13733 when there is a protected type that implements a limited interface.
13734 (Parameter_Block_Pack): Populate a wrapped parameter block with the
13735 values of actual parameters.
13736 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
13737 block and assign them to the original actual parameters.
13739 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
13740 (Build_Protected_Sub_Specification): Change the type and name of the
13741 last formal to account for the increased variety of protection modes.
13743 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
13744 entities. Used to save the value of the Is_Hidden attribute when the
13745 limited-view is installed.
13746 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
13747 the attribute of procedures classified as entry wrappers.
13748 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
13749 entity of a primitive wrapper.
13750 (Write_Entity_Flags): Output the name and value of the
13751 Is_Primitive_Wrapper attribute.
13752 (Write_Field27_Name): Output the name and entity of the field Wrapped_
13754 (Underlying_Type): If we have an incomplete entity that comes from
13755 the limited view then we return the Underlying_Type of its non-limited
13756 view if it is already available.
13757 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
13758 including operators.
13759 (Write_Field26_Name): Add entry for Overridden_Operation
13760 (Overridden_Operation): New attribute of functions and procedures.
13762 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
13763 predefined position in the dispatch table for the primitive operations
13764 used in dispatching selects.
13765 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
13766 predefined primitive operations and replace it with
13767 Default_Prim_Op_Count.
13768 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
13769 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
13770 the names of the generated primitive operations used in dispatching
13772 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
13773 case of abstract interface types. They will be inherit by the objects
13774 implementing the interface.
13775 (Make_DT): There is no need to inherit the dispatch table of the
13776 ancestor interface for the elaboration of abstract interface types.
13777 The dispatch table will be inherited by the object implementing the
13779 (Copy_Secondary_DTs): Add documentation.
13780 (Validate_Position): Improve this static check in case of
13781 aliased subprograms because aliased subprograms must have
13783 (Init_Predefined_Interface_Primitives): New subprogram that initializes
13784 the entries associated with predefined primitives of all the secondary
13786 (Build_Anonymous_Access_Type): Removed.
13787 (Expand_Interface_Actuals): With the previous cleanup there is no need
13788 to build an anonymous access type. This allows further cleanup in the
13789 code generated by the expander.
13790 (Expand_Interface_Conversion): If the actual is an access type then
13791 build an internal function to handle the displacement. If the actual
13792 is null this function returns null because no displacement is
13793 required; otherwise performs a type conversion that will be
13794 expanded in the code that returns the value of the displaced actual.
13795 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
13796 conversions that have no effect in the generated code because no
13797 displacement is required. Code cleanup; use local variables to
13798 avoid repeated calls to the subprogram directly_designated_type().
13800 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
13801 Classify the primitive operations used in dispatching selects as
13803 (Implements_Limited_Interface): Determine whether some type either
13804 directly implements a limited interface or extends a type that
13805 implements a limited interface.
13806 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
13807 (Expand_Subtype_From_Expr): Do not build actual subtype if the
13808 expression is limited.
13809 (Find_Interface_Tag): Add code to handle class-wide types and
13810 entities from the limited-view.
13812 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
13813 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
13814 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
13815 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
13818 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
13819 of procedure name or prefix that appears as a trigger in a triggering
13822 * uintp.ads: Introduce constants Uint_11 and Uint_13.
13824 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13826 * s-tataat.adb, a-tasatt.adb:
13827 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
13829 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
13830 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
13831 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
13834 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13835 Jose Ruiz <ruiz@adacore.com>
13837 * s-taprop-vxworks.adb:
13838 Move with clauses outside Warnings Off now that dependent units are
13840 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
13841 initialization of this unit.
13842 (Specific): Add new procedures Initialize and Delete so that this
13843 package can be used for VxWorks 5.x and 6.x
13844 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
13845 differences between VxWorks 5.x and 6.x
13846 Minor reformatting.
13847 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
13849 Use only Preelaborate-compatible constructs.
13851 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
13852 Primitives.Operations.
13853 (Delete, Initialize): New procedures.
13855 * s-osinte-vxworks.adb: Body used to handle differences between
13856 VxWorks 5.x and 6.x
13857 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
13859 * s-osinte-vxworks.ads: Minor reformatting.
13860 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
13861 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
13863 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
13864 between Vxworks 5 and 6.
13865 (taskLock, taskUnlock): Removeed, no longer used.
13867 * adaint.c: The wait.h header is not located in the sys directory on
13868 VxWorks when using RTPs.
13869 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
13871 (__gnat_dup): dup is available on Vxworks when using RTPs.
13872 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
13874 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
13876 * expect.c: The wait.h header is not located in the sys directory on
13877 VxWorks when using RTPs.
13879 2005-09-01 Thomas Quinot <quinot@adacore.com>
13881 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
13883 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
13885 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
13886 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
13887 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
13888 g-soccon-freebsd.ads: Add new constants:
13890 SO_RCVTIMEO/SO_SNDTIMEO
13894 Move all target-specific file inclusions and macro definitions to
13895 gsocket.h, in order to ensure that any C code in socket.c will see a
13896 set of constants that is consistent with the contents of g-soccon.ads.
13898 * gsocket.h: Code imported from gen-soccon.c:
13899 Move all target-specific file inclusions and macro definitions to
13900 gsocket.h, in order to ensure that any C code in socket.c will see a set
13901 of constants that is consistent with the contents of g-soccon.ads.
13902 This change also makes gen-soccon self-contained (removing dependencies
13903 upon GCC internal headers).
13905 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
13907 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
13909 * socket.c: Minor reformatting.
13911 2005-09-01 Ed Schonberg <schonberg@adacore.com>
13912 Thomas Quinot <quinot@adacore.com>
13914 * fname-sf.adb, mlib-tgt.ads,
13915 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
13916 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
13917 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
13918 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
13919 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
13920 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
13921 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
13922 makegpr.adb: Remove redundant use_clauses.
13924 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13926 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
13927 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
13928 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
13929 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
13930 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
13931 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
13932 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
13933 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
13934 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
13935 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
13936 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
13937 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
13938 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
13939 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
13940 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
13941 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
13942 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
13943 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
13944 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
13945 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
13946 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
13947 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
13948 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
13949 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
13950 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
13951 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
13952 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
13953 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
13954 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
13955 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
13956 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
13957 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
13958 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
13959 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
13960 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
13961 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
13962 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
13963 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
13964 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
13965 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
13966 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
13967 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
13968 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
13969 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
13970 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
13971 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
13972 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
13973 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
13974 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
13975 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
13976 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
13977 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
13978 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
13979 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
13980 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
13981 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
13982 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
13983 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
13984 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
13985 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
13986 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
13987 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
13988 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
13989 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
13990 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
13991 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
13992 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
13993 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
13994 and always use the no parameter form for consistency.
13996 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
13998 2005-09-01 Robert Dewar <dewar@adacore.com>
14000 * binde.adb: Minor reformatting
14001 (Find_Elab_Order): Output warning if -p used with static elab order
14003 2005-09-01 Robert Dewar <dewar@adacore.com>
14005 * checks.adb (Check_Needed): New procedure, deals with removing checks
14006 based on analysis of short-circuited forms. Also generates warnings for
14007 improper use of non-short-circuited forms.
14010 2005-09-01 Robert Dewar <dewar@adacore.com>
14012 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
14015 2005-09-01 Robert Dewar <dewar@adacore.com>
14017 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
14019 Implement new insertion char < (conditional warning)
14020 * errutil.adb, erroutc.adb: Implement new insertion char <
14021 (conditional warning).
14022 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
14023 (Error_Msg_Warn): New variable for < insertion char.
14024 * prj-nmsc.adb: Implement new errout insertion char < (conditional
14026 (Check_For_Source): Change value of Source_Id only after the current
14027 source has been dealt with.
14029 2005-09-01 Robert Dewar <dewar@adacore.com>
14030 Doug Rupp <rupp@adacore.com>
14032 * exp_attr.adb: Handle vax fpt for 'Valid attribute
14033 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
14034 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
14035 (Valid_D, Valid_F, Valid_G): New functions
14037 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14038 Hristian Kirtchev <kirtchev@adacore.com>
14039 Javier Miranda <miranda@adacore.com>
14041 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
14042 from object notation, the original node is unanalyzed and carries no
14043 semantic information, so that accessiblity checks must be performed on
14044 the type of the actual itself.
14045 (Expand_N_Subprogram_Declaration): Change last actual parameter for
14046 compatibility with Build_Protected_Sub_Specification.
14047 (Check_Overriding_Inherited_Interfaces): Add suport to handle
14048 overloaded primitives.
14049 (Register_Interface_DT_Entry): Use the new name of the formal
14050 the the calls to Expand_Interface_Thunk
14052 * exp_dbug.ads: Augment comments on encoding of protected types to
14053 include the generation of dispatching subprograms when the type
14054 implements at least one interface.
14056 * lib.ads: Extend information in Load_Stack to include whether a given
14057 load comes from a Limited_With_Clause.
14059 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
14060 whether a potential circularity is harmless, because it includes units
14061 loaded through a limited_with clause. Extends previous treatment which
14062 did not handle properly arbitrary combinations of limited and
14063 non-limited clauses.
14065 2005-09-01 Nicolas Setton <setton@adacore.com>
14067 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
14068 to be encoded as typ___XBLU_lowerbound__upperbound instead of
14069 typ___XB_lowerbound__upperbound.
14071 2005-09-01 Thomas Quinot <quinot@adacore.com>
14073 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
14074 dummy access formal for RACW/RAS TypeCode TSS.
14075 (Build_TypeCode_Call): Do not generate dummy null access actual for
14076 calls to the TypeCode TSS.
14078 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14080 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
14081 fully qualified name, to distinguish instances with the same local name.
14083 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
14086 2005-09-01 Robert Dewar <dewar@adacore.com>
14088 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
14091 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
14093 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
14094 (Free): New deallocation procedure for filter elements
14095 (Close): Deallocate any existing filter for the concerned connection
14097 2005-09-01 Laurent Pautet <pautet@adacore.com>
14099 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
14100 position set is provided, we compute one in order to reduce the maximum
14101 length of the keys. This computation first selects a character
14102 position between 1 and the minimum length of the keys in order to
14103 avoid reducing one of the keys to an empty string.
14104 (Initialize, Compute): When the ratio V to K is too low, the algorithm
14105 does not converge. The initialization procedure now comes with a
14106 maximum number of iterations such that when exceeded, an exception is
14107 raised in Compute. The user can initialize this ratio to another value
14109 Reformating and updated headers.
14111 2005-09-01 Javier Miranda <miranda@adacore.com>
14113 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
14114 that given an entity T creates and returns an Itype that duplicates the
14115 contents of T. The returned Itype has the null-exclusion
14116 attribute set to True, and its Etype attribute references T
14117 to keep the association between the two entities.
14118 Update copyright notice
14120 * sem_aggr.adb (Check_Can_Never_Be_Null,
14121 Aggregate_Constraint_Checks, Resolve_Aggregate,
14122 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
14124 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
14126 2005-09-01 Gary Dismukes <dismukes@adacore.com>
14127 Robert Dewar <dewar@adacore.com>
14128 Hristian Kirtchev <kirtchev@adacore.com>
14130 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
14133 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
14135 Call Set_Result_Definition instead of Set_Subtype_Mark.
14136 (P_Subprogram_Specification): Add parsing of anonymous access result
14137 plus null exclusions. Call Set_Result_Definition instead of
14140 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
14141 (P_Access_Type_Definition): Add parsing for an anonymous access result
14142 subtype, plus parsing for null exclusions. Call Set_Result_Definition
14143 instead of Set_Subtype_Mark.
14145 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
14146 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
14147 (Result_Definition): New function for N_Function_Specifications.
14148 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
14149 N_Function_Specification.
14150 (Set_Null_Exclusion_Present): Allow this flag for
14151 N_Function_Specification.
14152 (Set_Result_Definition): New procedure for N_Function_Specifications.
14153 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
14154 and N_Function_Specification.
14156 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
14157 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
14158 Add support for LIMITED NEW for Ada 2005 AI-419
14159 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
14160 syntax for anonymous access results.
14161 Replace Subtype_Mark field by Result_Definition in
14162 N_Function_Specification and N_Access_Definition specs.
14163 Add Null_Exclusion_Present to spec of N_Function_Specification.
14164 (Result_Definition): New function for N_Function_Specification and
14165 N_Access_Function_Definition.
14166 (Set_Result_Definition): New procedure for N_Function_Specification and
14167 N_Access_Function_Definition.
14169 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
14170 Result_Definition for cases of N_Access_Function_Definition and
14171 N_Function_Specification.
14172 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
14174 2005-09-01 Vincent Celier <celier@adacore.com>
14176 * lib-writ.adb: Update Copyright notice
14177 (Write_With_Lines): On platforms where file names are case-insensitive,
14178 record the file names in lower case.
14179 (Write_ALI): For D lines, on platforms where file names are
14180 case-insensitive, record the file names in lower case.
14182 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14183 Emmanuel Briot <briot@adacore.com>
14185 * lib-xref.adb (Output_Overridden_Op): Display information on
14186 overridden operation.
14188 * lib-xref.ads: Add documentation on overridden operations.
14190 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
14193 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
14194 overriding entity information.
14196 2005-09-01 Vincent Celier <celier@adacore.com>
14198 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
14199 including those that are inherited.
14201 2005-09-01 Robert Dewar <dewar@adacore.com>
14203 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
14205 * par-prag.adb: Implement new pragma Debug_Policy
14207 * sem_prag.adb Implement new pragma Debug_Policy
14208 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
14209 Component_Size attribute specification. Give warning for ignored pragma
14212 * snames.h, snames.ads, snames.adb: Introduce entries in
14213 Preset_Names for Name_Disp_Asynchronous_Select,
14214 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
14215 Name_Disp_Timed_Select.
14216 New pragma Debug_Policy
14218 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
14220 Switch -gnata also sets Debug_Pragmas_Enabled
14222 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
14223 handle an explicit -gnata when compiling predefined files.
14225 2005-09-01 Vincent Celier <celier@adacore.com>
14227 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
14228 directories of projects that have no Ada sources.
14230 2005-09-01 Robert Dewar <dewar@adacore.com>
14232 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
14233 (makes a difference for wide characters)
14235 * widechar.adb, widechar.ads:
14236 Add Wide_Char_Byte_Count feature to count chars vs bytes
14238 2005-09-01 Thomas Quinot <quinot@adacore.com>
14239 Ed Schonberg <schonberg@adacore.com>
14240 Robert Dewar <dewar@adacore.com>
14242 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
14243 'Address attribute reference with an overloaded prefix, use the
14244 location of the prefix (not the location of the attribute reference) as
14245 the error location.
14246 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
14247 a function renaming thereof, is a valid prefix for 'Size (where it is
14248 intepreted as a function call).
14249 (Statically_Denotes_Entity): New predicate to determine whether the
14250 prefix of an array attribute can be considered static.
14253 (Eval_Attr): Fix failure to evaluate Component_Size for
14254 unconstrained arrays (resulted in wrong value in packed case, since
14255 back end cannot handle this case)
14257 2005-09-01 Robert Dewar <dewar@adacore.com>
14259 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
14260 error msgs for most common cases.
14261 Use new errout insertion char < (conditional warning)
14263 2005-09-01 Javier Miranda <miranda@adacore.com>
14264 Ed Schonberg <schonberg@adacore.com>
14266 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
14267 become local to the whole package.
14268 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
14269 the package was already analyzed the new algorithm "replaces" the
14270 real entities by the shadow ones. This is required to ensure that
14271 the order of these entities in the homonym chains does not change;
14272 otherwise we can have undefined references at linking time because
14273 in case of conflicts the external name of the entities will have
14274 a suffix that depends on the order of the entities in the chain.
14275 (Remove_Limited_With_Clause): Complementary code that completes the
14276 new algorithm and replaces the shadow entities by the real ones.
14277 (Install_Limited_Withed_Unit): When unchaining entities before the
14278 installation of the shadow entities, only regular entities of the
14279 public part must be taken into account. This is required to
14280 keep this routine in synch with the work done by Remove_Limited_
14282 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
14283 even if unit is analyzed, because the analysis of the unit is
14284 idempotent in any case, and the limited view of the unit may have to
14285 be installed for proper visibility.
14286 (Expand_Limited_With_Clause): Even if the unit in the implicit
14287 with_clause has been analyzed already, a limited view of the package
14288 must be built for the current context, if it does not exist yet.
14290 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14291 Javier Miranda <miranda@adacore.com>
14292 Gary Dismukes <dismukes@adacore.com>
14294 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
14295 defining entity for the instance body, make a new defining identifier
14296 rather than copying the entity of the spec, to prevent accidental
14297 sharing of the entity list.
14298 (Check_Private_View): When exchanging views of private types, build the
14299 list of exchanged views as a stack, to ensure that on exit the exchanges
14300 are undone in the proper order.
14301 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
14302 Restore the compilation environment in case of instantiation_error.
14303 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
14304 for an anonymous access result.
14305 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
14306 (Formal_Entity): Handle properly the case of a formal package that
14307 denotes a generic package renaming.
14309 2005-09-01 Thomas Quinot <quinot@adacore.com>
14311 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
14312 clause if the array aggregate is surrounded by parentheses.
14314 2005-09-01 Cyrille Comar <comar@adacore.com>
14315 Gary Dismukes <dismukes@adacore.com>
14316 Ed Schonberg <schonberg@adacore.com>
14317 Javier Miranda <miranda@adacore.com>
14319 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
14321 to check if a type is Constrained in cases related to code generation
14322 (rather than semantic checking) since otherwise we do not generate
14323 similar code for mutable private types depending if their
14324 discriminants are visible or not.
14325 (Check_Abstract_Overriding): Do not complain about failure to override
14326 the primitive operations used in dispatching selects since they will
14327 always be overriden at the freeze point of the type.
14328 (Access_Definition): Separate out handling for resetting the scope
14329 of an anonymous access function result type. Retrieve the scope
14330 of the associated function rather than using Current_Scope, which
14331 does not have a consistent value (depends on whether we're in the
14332 middle of analyzing formal parameters). Add ??? comment about
14333 finding a cleaner way to handle the special cases of scope setting.
14334 (Process_Incomplete_Dependents): A protected operation is never a
14335 dispatching operation (only its wrapper may be).
14336 (Build_Derived_Record_Type): In case of tagged private types that
14337 implement interfaces add derivation of predefined primitive
14339 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
14340 by two parameters that are used in case of derivation from abstract
14341 interface types: No_Predefined_Prims is used to avoid the derivation
14342 of predefined primitives from the interface, and Predefined
14343 Prims_Only is used to complete the derivation predefined primitives
14344 in case of private tagged types implementing interfaces.
14345 Fix typo in comments
14346 (Find_Interface_In_Descendant): Protect the frontend against
14347 wrong code with large circularity chains.
14348 (Is_Private_Overriding): Add support for entities overriding interface
14349 subprograms. The test failed because Entities associated with overriden
14350 interface subprograms are always marked as hidden (and used to build
14351 the secondary dispatch table); in this case the overriden entity is
14352 available through the field abstract_interface_alias (cf. override_
14353 dispatching_operation)
14354 (Access_Definition): Set the scope of the type to Current_Scope for the
14355 case of a function with an anonymous access result type.
14356 (Access_Subprogram_Declaration): Handle creation of the type entity for
14357 an access-to-function type with an anonymous access result.
14358 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
14359 in handling for N_Access_Function_Definition.
14360 (Analyze_Subtype_Declaration): Modify the text of error message.
14361 (Derived_Type_Declaration): Modify the text of error message.
14362 (Process_Subtype): Modify the text of error message plus cleanup
14363 of one redundant error message.
14364 (Analyze_Component_Declaration): Code cleanup.
14365 (Analyze_Object_Declaration): Code cleanup.
14366 (Analyze_Subtype_Declaration): Propagate the null-exclusion
14367 attribute in case of access types. Code cleanup.
14368 (Array_Type_Declaration): Code cleanup.
14369 (Process_Discriminants): Create the new null-excluding itype
14370 if required. Code cleanup.
14371 (Process_Subtype): Create the new null-excluding itype if
14372 required. Code cleanup.
14373 (Build_Derived_Record_Type): Code cleanup to avoid calling
14374 twice the subprogram derive_subprograms in case of private
14375 types that implement interfaces. In this particular case the
14376 subprogram Complete_Subprograms_Derivation already does the
14377 job associated with the second call.
14379 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
14380 conversion to the full view when generating an operation for a
14381 discriminant whose type may currently be private.
14383 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14384 Javier Miranda <miranda@adacore.com>
14386 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
14387 V (Obj.F), the rewriting does not involve the indexed component, but
14388 only the selected component itself.
14389 Do not apply the transformation if the analyzed node is an actual of a
14390 call to another subprogram.
14391 (Complete_Object_Operation): Retain the entity of the
14392 dispatching operation in the selector of the rewritten node. The
14393 entity will be used in the expansion of dispatching selects.
14394 (Analyze_One_Call): Improve location of the error message associated
14396 (Analyze_Selected_Component): No need to resolve prefix when it is a
14397 function call, resolution is done when parent node is resolved, as
14399 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
14400 when attempting to resolve a call transformed from its object notation.
14401 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
14402 of the argument list for each interpretation of the operation.
14403 (Try_Object_Operation): The designated type of an access parameter may
14404 be an incomplete type obtained through a limited_with clause, in which
14405 case the primitive operations of the type are retrieved from its full
14407 (Analyze_Call): If this is an indirect call, and the return type of the
14408 access_to_subprogram is incomplete, use its full view if available.
14410 2005-09-01 Javier Miranda <miranda@adacore.com>
14411 Gary Dismukes <dismukes@adacore.com>
14413 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
14414 access types the null-exclusion and access-to-constant attributes must
14416 (Analyze_Return_Statement): When the result type is an anonymous access
14417 type, apply a conversion of the return expression to the access type
14418 to ensure that appropriate accessibility checks are performed.
14419 (Analyze_Return_Type): For the case of an anonymous access result type,
14420 generate the Itype and set Is_Local_Anonymous_Access on the type.
14421 Add ??? placeholder for check to disallow returning a limited object
14422 in Ada 2005 unless it's an aggregate or a result of a function call.
14423 Change calls from Subtype_Mark to Result_Definition.
14424 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
14425 Result_Definition in call to Make_Function_Specification.
14426 (Build_Body_To_Inline): Change Set_Subtype_Mark to
14427 Set_Result_Definition.
14428 (Make_Inequality_Operator): Change formal Subtype_Mark to
14429 Result_Definition in call to Make_Function_Specification.
14430 (Process_Formals): Create the new null-excluding itype if required.
14431 (New_Overloaded_Entity): For an entity overriding an interface primitive
14432 check if the entity also covers other abstract subprograms in the same
14433 scope. This is required to handle the general case, that is, overriding
14434 other interface primitives and overriding abstract subprograms inherited
14435 from some abstract ancestor type.
14436 (New_Overloaded_Entity): For an overriding entity that comes from
14437 source, note the operation that it overrides.
14438 (Check_Conformance, Type_Conformant): Addition of one new formal
14439 to skip controlling formals in the analysis. This is used to
14440 handle overloading of abstract interfaces.
14441 (Base_Types_Match): Add missing case for types imported from
14442 limited-with clauses
14443 (New_Overloaded_Entity): Add barrier to protect the use of
14444 the "alias" attribute.
14446 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14448 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
14449 verify that the procedure and the entry are mode conformant.
14450 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
14451 as a different operator, which is often a cut-and-paste error.
14453 2005-09-01 Javier Miranda <miranda@adacore.com>
14454 Ed Schonberg <schonberg@adacore.com>
14456 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
14457 used in controlling parameters exclude null because it is necessary to
14458 read the tag to dispatch, and null has no tag.
14459 (Override_Dispatching_Operation): If the previous operation is inherited
14460 from an interface, it becomes hidden and does not participate in later
14463 2005-09-01 Javier Miranda <miranda@adacore.com>
14464 Ed Schonberg <schonberg@adacore.com>
14465 Gary Dismukes <dismukes@adacore.com>
14467 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
14468 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
14469 the expander will generate the corresponding run-time check to evaluate
14471 (Resolve_Call): Check for legal type of procedure name or prefix that
14472 appears as a trigger in a triggering alternative.
14473 (Valid_Conversion): If expression is ambiguous and the context involves
14474 an extension of System, remove System.Address interpretations.
14475 (Resolve_Qualified_Expression): Reject the case of a specific-type
14476 qualification applied to a class-wide argument. Enhance comment
14477 to explain checking of Original_Node.
14478 (Resolve_Type_Conversion): The location of the error message was not
14479 general enough to handle the general case and hence it has been removed.
14480 In addition, this patch improves the text of the message.
14481 (Resolve_Type_Conversion): Add missing support for access to interface
14483 (Resolve_Type_Conversion): If the target is a class-wide interface type,
14484 do not expand if the expression is the actual in a call, because proper
14485 expansion will take place when the call itself is expanded.
14486 (Resolve_Allocator): If the context is an unchecked conversion, the
14487 allocator inherits its storage pool, if any, from the target type of
14490 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14491 Javier Miranda <miranda@adacore.com>
14493 * sem_type.adb (Add_One_Interp): If a candidate operation is an
14494 inherited interface operation that has an implementation, use the
14495 implementation to avoid spurious ambiguities.
14496 (Interface_Present_In_Ancestor): In case of concurrent types we can't
14497 use the Corresponding_Record_Typ attribute to look for the interface
14498 because it is set by the expander (and hence it is not always
14499 available). For this reason we traverse the list of interfaces
14500 (available in the parent of the concurrent type).
14501 (Interface_Present_In_Ancestor): Handle entities from the limited view
14503 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14505 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
14506 from the list of required components.
14507 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
14508 primitive procedure of a limited interface with a controlling first
14510 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
14512 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
14513 capture if it is generated in the second operand of a short-circuit
14515 Do not capture values for variables with address clauses.
14516 (Is_Object_Reference): Treat a function call as an object reference only
14517 if its type is not Standard_Void_Type.
14519 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14521 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
14522 to a variable that is statically known to be constant.
14524 2005-09-01 Geert Bosch <bosch@adacore.com>
14525 Robert Dewar <dewar@adacore.com>
14527 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
14528 (VAXGF_Safe_First): Idem.
14530 2005-09-01 Robert Dewar <dewar@adacore.com>
14531 Arnaud Charlet <charlet@adacore.com>
14533 * g-dirope.ads: Minor reformatting
14534 Document that bounds of result of Base_Name match the input index
14536 Add documentation on environment variable syntax for Expand_Path
14538 * gnat_ugn.texi: Update documentation to include mention of -m switches
14539 Document new treatment of wide characters in max line length
14541 Remove -gnatL/-gnatZ switches, no longer used.
14542 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
14545 * gnat_rm.texi: Add doc for two argument form of pragma
14546 Float_Representation.
14547 Add documentation for pragma No_Strict_Aliasing
14548 Add note that explicit component clause overrides pragma Pack.
14549 Add documentation of pragma Debug_Policy
14551 2005-09-01 Matthew Heaney <heaney@adacore.com>
14553 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
14554 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
14555 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
14556 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
14557 draft (Draft 13, August 2005) of Ada Amendment 1.
14559 2005-09-01 Arnaud Charlet <charlet@adacore.com>
14561 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
14562 Note that the platform-specific version of g-soccon.ads for VMS is now
14563 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
14564 really is a package spec).
14565 Replace s-taspri-linux.ads by s-taspri-posix.ads
14566 Remove references to s-mastop-x86.adb
14568 * system-vxworks-xscale.ads: Removed, no longer used.
14569 * s-vxwork-xscale.ads: Removed, no longer used.
14571 2005-09-01 Robert Dewar <dewar@adacore.com>
14573 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
14574 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
14575 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
14576 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
14577 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
14578 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
14579 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
14580 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
14581 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
14582 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
14583 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
14584 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
14585 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
14586 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
14587 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
14588 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
14589 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
14590 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
14591 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
14592 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
14593 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
14595 2005-08-29 Arnaud Charlet <charlet@adacore.com>
14599 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
14601 2005-08-29 Arnaud Charlet <charlet@adacore.com>
14602 Doug Rupp <rupp@adacore.com>
14604 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
14606 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
14607 this code in the GNAT run-time.
14609 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
14612 * init.c (__gnat_error_handler [many]): Mark "msg" as const
14613 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
14615 (__gnat_inside_elab_final_code): Moved here from
14616 Standard_Library and only defined for the compiler.
14617 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
14618 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
14619 using RTPs because directly vectored Interrupt routines are not
14620 supported on this configuration.
14621 (getpid): Do not redefine this function on VxWorks when using RTPs
14622 because this primitive is well supported by the RTP libraries.
14623 (copy_msg): Correct the code that checks for buffer overflow.
14624 Discovered during code reading.
14626 2005-08-29 Olivier Hainque <hainque@adacore.com>
14628 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
14629 a library level mutable variable with an initializer, tell
14630 build_allocator to ignore the initializer's size. It may not be large
14631 enough for all the values that might be assigned to the variable later
14634 2005-08-29 Arnaud Charlet <charlet@adacore.com>
14635 Eric Botcazou <ebotcazou@adacore.com>
14637 * trans.c: Protect < in error msg with quote
14638 Replace GCC_ZCX by Back_End_Exceptions.
14639 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
14640 has been sufficiently aligned in the record.
14642 2005-08-15 James E. Wilson <wilson@specifix.com>
14644 * system-linux-alpha.ads: Change ia64 to alpha.
14646 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
14648 * decl.c, utils.c: Fix comment typos.
14650 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
14652 * decl.c, init.c, initialize.c: Fix comment typos.
14654 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
14656 Make CONSTRUCTOR use VEC to store initializers.
14657 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
14659 * trans.c (extract_values): Likewise.
14660 * utils.c (convert, remove_conversions): Likewise.
14661 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
14662 gnat_build_constructor): Likewise.
14664 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
14666 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
14668 (compare_field_bitpos): Likewise.
14670 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
14672 * utils.c (create_var_decl): Only set DECL_COMMON on
14673 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
14674 VAR_OR_FUNCTION_DECL_P.
14676 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
14678 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
14681 2005-07-07 Pascal Obry <obry@adacore.com>
14683 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
14684 returned type on Windows.
14686 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
14689 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
14690 exception in this case.
14691 Simplify the code as "Image (Image'Range)" = "Image".
14693 2005-07-07 Vincent Celier <celier@adacore.com>
14695 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
14696 the destructor/constructor attributes for <lib>final/<lib>init.
14698 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
14700 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
14702 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
14703 type if the parameter is not passed by copy but reference by default.
14705 2005-07-07 Javier Miranda <miranda@adacore.com>
14707 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
14708 Reimplementation of the support for abstract interface types in order
14709 to leave the code more clear and easy to maintain.
14711 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
14712 abstract interface types in order to leave the code clearer and easier
14715 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
14716 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
14717 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
14718 appropriate entry of the secondary dispatch table.
14719 (Make_DT): Add code to inherit the secondary dispatch tables of
14722 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
14723 implementing both functionalities by means of a common routine, each
14724 routine has its own code.
14726 2005-07-07 Javier Miranda <miranda@adacore.com>
14728 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
14730 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
14733 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
14736 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
14737 use of tag incomplete types.
14739 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
14740 give support to tagged incomplete types.
14742 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
14743 expression is a discriminant reference and its type is private, as can
14744 happen within a stream operation for a mutable record, use the full
14745 view of the type to resolve the case alternatives.
14746 (Analyze_Assignment): Check wrong dereference of incomplete types.
14748 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
14751 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
14754 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
14755 N_Incomplete_Type_Declaration nodes.
14757 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
14758 Tag_Present to give support to tagged incomplete types:
14760 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
14763 2005-07-07 Olivier Hainque <hainque@adacore.com>
14766 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
14767 definitions for the Unwind wrappers in the compiler case.
14769 2005-07-07 Ed Schonberg <schonberg@adacore.com>
14770 Javier Miranda <miranda@adacore.com>
14772 * par-load.adb (Load): If a child unit is loaded through a limited_with
14773 clause, each parent must be loaded as a limited unit as well.
14775 * sem_ch10.adb (Previous_Withed_Unit): Better name for
14776 Check_Withed_Unit. Return true if there is a previous with_clause for
14777 this unit, whether limited or not.
14778 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
14780 (Is_Visible_Through_Renamings): New local subprogram of install_limited
14781 _withed_unit that checks if some package installed through normal with
14782 clauses has a renaming declaration of package whose limited-view is
14783 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
14784 of the current Draft document for Ada 2005.
14785 (Analyze_Context): Complete the list of compilation units that
14786 are allowed to contain limited-with clauses. It also contains
14787 checks that were previously done by Install_Limited_Context_Clauses.
14788 This makes the code more clear and easy to maintain.
14789 (Expand_Limited_With_Clause) It is now a local subprogram of
14790 Install_Limited_Context_Clauses, and contains the code that adds
14791 the implicit limited-with clauses for parents of child units.
14792 This functionality was prevously done by Analyze_Context.
14794 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
14797 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
14798 been erroneously named in a limited-with clause of its own context.
14799 In this case the error has been previously notified by Analyze_Context.
14801 2005-07-07 Ed Schonberg <schonberg@adacore.com>
14803 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
14804 generic package that contains local declarations with the same name.
14805 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
14807 2005-07-07 Bernard Banner <banner@adacore.com>
14809 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
14810 ia64 platform only on platforms that you the GCC unwind library
14811 rather than the system unwind library.
14813 2005-07-07 Thomas Quinot <quinot@adacore.com>
14815 * expect.c: Minor reformatting
14817 2005-07-07 Sergey Rybin <rybin@adacore.com>
14819 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
14822 * gnat_ugn.texi: Add description for new gnatpp option
14825 2005-07-04 Thomas Quinot <quinot@adacore.com>
14827 * g-expect-vms.adb, g-expect.ads, g-expect.adb
14828 (Get_Command_Output): New subprogram to launch a process and get its
14829 standard output as a string.
14831 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
14832 Olivier Hainque <hainque@adacore.com>
14834 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
14835 fetch a code-range descriptor associated with the machine state. On
14836 failure set the machine state's PC to 0; on success, pass the
14837 descriptor to exc_virtual_unwind.
14839 * init.c (Tru64 section): New function __gnat_set_code_loc.
14841 2005-07-04 Vincent Celier <celier@adacore.com>
14843 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
14844 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
14845 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
14846 Remove all auto-initialization code, as this is now done through the
14847 constructor mechanism.
14849 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
14850 __gnat_sals_init_using_constructors): New functions.
14852 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
14853 Linker_Constructor and Linker_Destructor when switch -a is used.
14855 * bindusg.adb: Add line for new switch -a
14857 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
14858 (Gnatbind): When switch -a is used, check if it is allowed
14860 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
14862 2005-07-04 Joel Brobecker <brobecker@adacore.com>
14864 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
14865 This prevents us from hitting a limitation during the debug info
14866 generation when using stabs.
14867 (Prims_Ptr): Likewise.
14869 2005-07-04 Gary Dismukes <dismukes@adacore.com>
14870 Ed Schonberg <schonberg@adacore.com>
14871 Javier Miranda <miranda@adacore.com>
14873 * checks.adb (Null_Exclusion_Static_Checks): In the case of
14874 N_Object_Declaration, only perform the checks if the Object_Definition
14875 is not an Access_Definition.
14877 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
14878 where the parent of an the access definition is an N_Object_Declaration
14879 when determining the Associated_Node_For_Itype and scope of an
14880 anonymous access-to-subprogram type.
14882 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
14883 Corresponding_Spec on the body created for a null procedure. Add ???
14884 comment. Remove New_Copy_Tree call on body argument to
14885 Set_Body_To_Inline.
14887 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
14888 discriminants, use the type of the actual as well, because the
14889 discriminants may be read by the called subprogram.
14891 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
14892 access type we do not need to handle non-limited views.
14893 (Build_Derived_Record_Type): Additional check to check that in case of
14894 private types, interfaces are only allowed in private extensions.
14896 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
14898 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
14899 <Pragma_Linker_Destructor>: Likewise.
14901 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
14902 Pragma_Linker_Destructor.
14904 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
14905 ATTR_LINK_DESTRUCTOR.
14906 (static_ctors, static_dtors): New variables.
14908 * misc.c (gnat_expand_body): Output current function as constructor
14909 and destructor if requested.
14911 * par-prag.adb: Add processing for pragma Linker_Constructor and
14914 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
14915 extracted from Check_Interrupt_Or_Attach_Handler.
14916 (Check_Interrupt_Or_Attach_Handler): Invoke it.
14917 Implement pragma Linker_Constructor and Linker_Destructor with the
14918 help of Find_Unique_Parameterless_Procedure.
14919 Replace Name_Alias with Name_Target for pragma Linker_Alias.
14921 * snames.h, snames.ads, snames.adb:
14922 Add Name_Linker_Constructor and Name_Linker_Destructor.
14923 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
14924 * snames.adb: Remove Name_Alias.
14926 * trans.c: Include cgraph.h.
14927 (build_global_cdtor): New function.
14928 (Compilation_Unit_to_gnu): Build global constructor and destructor if
14930 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
14932 (addressable_p) <COMPONENT_REF>: Unconditionally test
14933 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
14935 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
14936 variable if it is external.
14938 (static_ctors, static_dtors): New global variables.
14939 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
14940 <ATTR_LINK_DESTRUCTOR>: Likewise.
14941 (end_subprog_body): Chain function as constructor and destructor
14944 * exp_util.adb (Force_Evaluation): Unconditionally invoke
14945 Remove_Side_Effects with Variable_Ref set to true.
14946 (Remove_Side_Effects): Handle scalar types first. Use a renaming
14947 for non-scalar types even if Variable_Ref is true and for class-wide
14950 2005-07-04 Ed Schonberg <schonberg@adacore.com>
14952 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
14953 to prevent spurious warnings.
14955 2005-07-04 Thomas Quinot <quinot@adacore.com>
14957 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
14958 Itypes. Itypes are really unexpected there.
14959 (Build_TypeCode_Function): Generalise special processing for Itypes to
14960 handle the case of numeric implicit base types as well as enumerated
14963 2005-07-04 Ed Schonberg <schonberg@adacore.com>
14965 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
14966 controlled, indicate the expected type of the dereference that is
14967 created for the call to Deep_Finalize, to prevent spurious errors when
14968 the designated type is private and completed with a derivation from
14969 another private type.
14971 2005-07-04 Vincent Celier <celier@adacore.com>
14973 * make.adb (Change_To_Object_Directory): When unable to change the
14974 current dir to the object directory, output the full path of the
14977 2005-07-04 Matthew Gingell <gingell@adacore.com>
14979 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
14981 * indepsw-linux.adb: Replace by...
14983 * indepsw-gnu.adb: ...this new file
14985 2005-07-04 Vincent Celier <celier@adacore.com>
14987 * mlib-prj.adb (Auto_Initialize): New constant String
14988 (SALs_Use_Constructors): New Boolean function
14989 (Build_Library): Call gnatbind with Auto_Initialize switch when
14990 SALs_Use_Constructors returns True.
14992 * mlib-tgt.ads: Minor reformatting
14994 * mlib-utl.ads: Minor reformatting
14996 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
14998 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15000 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
15001 single protected declarations can have an interface list.
15002 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
15003 with seriously malformed entry declarations, and lead to compilation
15004 abandoned messages.
15006 2005-07-04 Javier Miranda <miranda@adacore.com>
15008 * par-load.adb: Load the context items in two rounds.
15010 2005-07-04 Robert Dewar <dewar@adacore.com>
15012 * scng.adb: Do not consider Mod used as an attribute to be a keyword
15014 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15015 Javier Miranda <miranda@adacore.com>
15017 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
15018 type extension needs a limited view.
15019 Remove previous restriction on private types available through the
15020 limited-view (only tagged private types were previously allowed).
15021 (Install_Withed_Unit): In the code that implements the
15022 legality rule given in AI-377, exclude a child unit with the name
15023 Standard, because it is a homonym of the Standard environment package.
15025 2005-07-04 Thomas Quinot <quinot@adacore.com>
15027 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
15028 overloaded function call, carry interpretations from the original tree
15031 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15033 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
15034 types check whether some designated type is a limited view, and use
15035 the non-limited view if available.
15037 2005-07-04 Gary Dismukes <dismukes@adacore.com>
15039 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
15040 constraint of full view of a private view T1 if present, when T2 is a
15041 discriminated full view.
15043 2005-07-04 Thomas Quinot <quinot@adacore.com>
15045 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
15046 actual that is a view conversion of a bit packed array reference.
15048 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15050 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
15051 present before checking whether an interface type covers a synchronized
15054 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15056 * sem_util.adb (Is_Object_Reference): An indexed or selected component
15057 whose prefix is an implicit dereference is an object reference. Removes
15058 spurious errors when compiling with -gnatc.
15060 2005-07-04 Robert Dewar <dewar@adacore.com>
15063 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
15065 2005-07-04 Matthew Gingell <gingell@adacore.com>
15067 * tracebak.c: Enable tracebacks on ia64 platforms
15069 2005-07-04 Vincent Celier <celier@adacore.com>
15071 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
15072 the GNAT BIND command, as gnatbind accepts multiples ALI files with
15073 the -L or -n switches.
15075 2005-07-04 Vincent Celier <celier@adacore.com>
15077 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
15078 correctly computed and the main project data is not modified while
15080 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
15081 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
15082 c++linker as this does not work on some platforms.
15084 2005-07-04 Matthew Heaney <heaney@adacore.com>
15086 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
15088 * a-coinve.adb: Perform constraint checks explicitly.
15090 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15091 Thomas Quinot <quinot@adacore.com>
15093 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
15094 new target gen-soccon.
15096 2005-07-04 Robert Dewar <dewar@adacore.com>
15098 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
15100 2005-07-04 Thomas Quinot <quinot@adacore.com>
15102 * g-socket.ads (Check_Selector): Minor rewording of comment.
15104 2005-07-04 Vincent Celier <celier@adacore.com>
15106 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
15108 2005-07-04 Thomas Quinot <quinot@adacore.com>
15110 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
15112 2005-07-04 Sergey Rybin <rybin@adacore.com>
15114 * gnat_ugn.texi: Add description of --eol gnatpp option
15116 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
15117 Thomas Quinot <quinot@adacore.com>
15119 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
15120 if the user wants all calls of a subprogram to be flagged,
15121 independently of whether they are made from within the same unit or
15123 Mention restriction for pragma Linker_Alias on some platforms.
15124 Document pragma Linker_Constructor and Linker_Destructor.
15125 Rewrite documentation of Weak_External, Linker_Section and
15126 Linker_Alias pragmas.
15128 2005-07-04 Arnaud Charlet <charlet@adacore.com>
15130 * s-stausa.ads, s-stausa.adb: New files.
15132 2005-06-30 Kelley Cook
15134 * all files: Update FSF address in copyright headers.
15135 * gen-soccon.co (main): Output new FSF address in generated files.
15137 2005-06-28 Paul Brook <paul@codesourcery.com>
15139 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
15141 2005-06-14 Olivier Hainque <hainque@adacore.com>
15142 Eric Botcazou <ebotcazou@adacore.com>
15144 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
15145 exc_unwind, now that we are generating proper .debug_frame output for
15148 * tracebak.c: Remove the mips-irix section, as we are now using the
15149 s-mastop based unwinder again.
15150 Under SPARC/Solaris, take into account the stack bias to compute the
15151 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
15154 2005-06-14 Doug Rupp <rupp@adacore.com>
15156 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
15158 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
15160 2005-06-14 Pascal Obry <obry@adacore.com>
15162 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
15163 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
15164 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
15167 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
15168 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
15169 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
15170 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
15171 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
15172 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
15173 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
15174 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
15175 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
15176 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
15177 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
15178 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
15179 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
15180 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
15181 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
15182 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
15183 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
15184 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
15185 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
15186 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
15187 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
15188 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
15189 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
15190 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
15191 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
15192 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
15193 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
15194 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
15195 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
15196 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
15197 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
15198 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
15199 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
15200 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
15201 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
15202 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
15203 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
15204 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
15205 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
15206 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
15207 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
15208 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
15209 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
15210 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
15211 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
15212 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
15213 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
15214 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
15215 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
15216 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
15217 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
15218 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
15219 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
15220 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
15221 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
15222 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
15223 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
15224 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
15225 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
15226 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
15227 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
15228 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
15229 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
15230 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
15231 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
15232 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
15233 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
15234 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
15235 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
15236 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
15237 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
15238 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
15239 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
15240 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
15241 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
15242 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
15243 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
15244 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
15245 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
15246 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
15247 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
15248 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
15249 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
15250 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
15251 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
15252 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
15253 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
15254 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
15255 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
15256 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
15257 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
15258 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
15259 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
15260 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
15261 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
15262 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
15263 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
15264 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
15265 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
15266 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
15267 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
15268 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
15269 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
15270 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
15271 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
15272 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
15273 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
15274 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
15275 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
15276 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
15277 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
15278 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
15279 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
15280 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
15281 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
15282 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
15283 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
15284 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
15285 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
15286 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
15287 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
15288 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
15289 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
15290 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
15291 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
15292 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
15293 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
15294 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
15295 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
15296 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
15297 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
15298 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
15299 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
15301 2005-06-14 Jose Ruiz <ruiz@adacore.com>
15302 Arnaud Charlet <charlet@adacore.com>
15304 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
15305 longer protected objects. They have been replaced by lower-level
15306 suspension objects made up by a mutex and a condition variable (or
15307 their equivalent given a particular OS) plus some internal data to
15308 reflect the state of the suspension object.
15309 (Initialize, Finalize): Add this initialization procedure for
15310 Suspension_Object, which is a controlled type.
15311 (Finalize): Add the finalization procedure for Suspension_Object,
15312 which is a controlled type.
15314 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
15315 Ada.Synchronous_Task_Control because there is no longer a need for a
15316 VxWorks specific version of this package. Target dependencies
15317 has been moved to System.Task_Primitives.Operations.
15319 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
15321 (InitializeCriticalSection, EnterCriticalSection,
15322 LeaveCriticalSection, DeleteCriticalSection): Replace the type
15323 pCriticalSection by an anonymous access type so that we avoid problems
15324 of accessibility to local objects.
15326 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
15327 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
15328 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
15329 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
15330 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
15331 set the environment task mask here.
15332 (Current_State): Add this function that returns the state of the
15334 (Set_False): Add this procedure that sets the state of the suspension
15336 (Set_True): Add this procedure that sets the state of the suspension
15337 object to True, releasing the task that was suspended, if any.
15338 (Suspend_Until_True): Add this procedure that blocks the calling task
15339 until the state of the object is True. Program_Error is raised if
15340 another task is already waiting on that suspension object.
15341 (Initialize): Add this procedure for initializing the suspension
15342 object. It initializes the mutex and the condition variable which are
15343 used for synchronization and queuing, and it sets the internal state
15345 (Finalize): Add this procedure for finalizing the suspension object,
15346 destroying the mutex and the condition variable.
15348 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
15349 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
15350 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
15351 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
15352 which provides a low-level abstraction (using operating system
15353 primitives) for Ada.Synchronous_Task_Control.
15354 This object is made up by a mutex (for ensuring mutual exclusion), a
15355 condition variable (for queuing threads until the condition is
15356 signaled), a Boolean (State) indicating whether the object is open,
15357 and a Boolean (Waiting) reflecting whether there is a task already
15358 suspended on this object.
15360 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
15361 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
15362 s-intman-vms.ads, s-intman-mingw.adb,
15363 (Initialize_Interrupts): Removed, no longer used.
15365 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
15366 (Setup_Interrupt_Mask): New procedure.
15368 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
15370 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
15372 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
15373 this is no longer done in the body of s-taprop
15374 (Server_Task): Explicitely test for Pending_Action in case
15375 System.Parameters.No_Abort is True.
15377 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
15378 is no longer done in the body of s-taprop
15380 2005-06-14 Robert Dewar <dewar@adacore.com>
15382 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
15383 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
15384 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
15385 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
15386 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
15387 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
15388 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
15389 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
15390 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
15391 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
15392 system-linux-hppa.ads, system-vms_64.ads,
15393 system-vxworks-alpha.ads: Minor comment update for
15394 AI-362 (unit is Pure).
15396 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
15397 Add pragma Pure_05 for AI-362
15398 Make remaining conversion functions obsolescent in Ada 95
15400 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
15401 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
15402 Add entries for a-wichun and a-zchuni
15403 Add a-widcha a-zchara for AI-395
15404 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
15406 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
15407 Add entries for a-wichun.o and a-zchuni.o
15408 Entries for a-widcha.o and a-zchara.o
15409 Add entry for a-chacon.o
15411 * a-ztenau.adb: Add with of Ada.Characters.Conversions
15413 * a-chacon.ads, a-chacon.adb: New files.
15415 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
15416 categorization violations.
15418 * a-strmap.ads: Add pragma Pure_05 for AI-362
15419 * a-strmap.ads: Add note on implicit categorization for AI-362
15421 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
15423 * par-prag.adb: Dummy entry for pragma Persistent_BSS
15424 Set Ada_Version_Explicit, for implementation of AI-362
15425 Add processing for pragma Pure_05 and Preelaborate_05
15426 Add entry for Assertion_Policy pragma
15428 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
15429 when needed for proper processing of categorization stuff
15432 For several cases, make errors in preealborate units warnings,
15433 instead of errors, if GNAT_Mode is set. For AI-362.
15435 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
15436 preelaborate unit is now warning if in GNAT mode
15438 * s-stoele.ads: Document AI-362 for pragma preelaborate
15440 2005-06-14 Doug Rupp <rupp@adacore.com>
15442 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
15443 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
15444 Default_Exception_Msg_Max_Length: new parameter.
15446 * a-except.ads: (Exception_Msg_Max_Length): Set to
15447 System.Parameters.Default_Exception_Msg_Max_Length
15448 Add pragma Preelaborate_05 for AI-362
15449 Add warnings off to allow categorization violations for AI-362
15451 2005-06-14 Vincent Celier <celier@adacore.com>
15453 * gnatsym.adb: Adapt to modification of package Symbols: procedure
15454 Process is now in package Processing.
15456 * symbols.ads, symbols.adb:
15457 (Processing): New package, containing procedure Process
15459 * symbols-vms-alpha.adb:
15460 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
15462 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
15463 symbols-processing-vms-ia64.adb: New files.
15465 2005-06-14 Pascal Obry <obry@adacore.com>
15467 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
15468 implementation. This new version generates the proper DllMain routine
15469 to initialize the SAL. The DllMain is generated in Ada and compiled
15470 before being added as option to the library build command.
15472 2005-06-14 Doug Rupp <rupp@adacore.com>
15473 Pascal Obry <obry@adacore.com>
15475 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
15476 call to decc$translate_vms.
15477 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
15478 need to remove those quotes before catenating the filename.
15479 (__gnat_locate_exec_on_path): improvements to the Win32 section:
15480 * avoid allocating the memory twice for better efficiency;
15481 * allocate 32K buffer for environment expansion as suggested by MSDN;
15482 * prepend ".;" to the path so that current directory is searched too.
15484 2005-06-14 Robert Dewar <dewar@adacore.com>
15486 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
15487 instead of raising CE (AI-241)
15488 Add warnings off to allow categorization violations for AI-362
15490 2005-06-14 Robert Dewar <dewar@adacore.com>
15492 * ali-util.adb, gnatbind.adb: Remove references to
15493 Force_RM_Elaboration_Order.
15495 * switch-b.adb: Remove recognition of -f switch
15497 2005-06-14 Pascal Obry <obry@adacore.com>
15499 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
15500 implementation which is slightly more efficient.
15502 2005-06-14 Gary Dismukes <dismukes@adacore.com>
15503 Javier Miranda <miranda@adacore.com>
15504 Ed Schonberg <schonberg@adacore.com>
15505 Hristian Kirtchev <kirtchev@adacore.com>
15507 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
15508 allocator's designated type is a class-wide type, and compiling for
15509 Ada 2005, emit a run-time check that the accessibility level of the
15510 type given in the allocator's expression is not deeper than the level
15511 of the allocator's access type.
15513 (Tagged_Membership): Modified to gives support to abstract interface
15516 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
15518 (Descendant_Tag): New predefined function
15519 (Is_Descendant_At_Same_Level): New predefined function
15520 (Get_Access_Level): New private function
15521 (Set_Access_Level): New private procedure
15522 (IW_Membership): New function. Given the tag of an object and the tag
15523 associated with an interface, evaluate if the object implements the
15525 (Register_Interface_Tag): New procedure used to initialize the table of
15526 interfaces used by the IW_Membership function.
15527 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
15528 of the dispatch table.
15529 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
15530 table of interfaces of the parent.
15531 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
15532 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
15533 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
15534 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
15535 Ada 2005 semantics for the new predefined function.
15537 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
15538 call to Descendant_Tag rather than Internal_Tag.
15539 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
15540 the accessibility level of the attribute's Item parameter is not deeper
15541 than the level of the attribute's prefix type. Tag_Error is raised if
15542 the check fails. The check is only emitted for Ada_05.
15543 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
15544 requested stream attribute, use it.
15545 (Expand_N_Attribute_Reference): If the designated type is an interface
15546 then rewrite the referenced object as a conversion to force the
15547 displacement of the pointer to the secondary dispatch table.
15548 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
15549 is a dereference of an object with a constrained partial view.
15551 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
15552 type is a class-wide type, emit a run-time check that the accessibility
15553 level of the returned object is not deeper than the level of the
15554 function's master (only when compiling for Ada 2005).
15556 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
15557 Action_Nb_Arg): Add entries for new Get_Access_Level and
15558 Set_Access_Level routines in these tables.
15559 (Make_DT): Generate a call to set the accessibility level of the
15560 tagged type in its TSD.
15561 (Make_DT): Code cleanup. The functionality of generating all the
15562 secondary dispatch tables has been moved to freeze_record_type.
15563 (Make_Abstract_Interface_DT): Minor code cleanup.
15564 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
15565 this subprogram implements a new algorithm that provides the
15566 same functionality and it is more clear in case of primitives
15567 associated with abstract interfaces.
15568 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
15569 clean up, the functionality of this subprogram is now provided
15570 by Set_All_DT_Position.
15571 (Write_DT): New subprogram: a debugging procedure designed to be called
15572 within gdb to display the dispatch tables associated with a tagged
15574 (Collect_All_Interfaces): New subprogram that collects the whole list
15575 of interfaces that are directly or indirectly implemented by a tagged
15577 (Default_Prim_Op_Position): New subprogram that returns the fixed
15578 position in the dispatch table of the default primitive operations.
15579 (Expand_Interface_Actuals): New subprogram to generate code that
15580 displaces all the actuals corresponding to class-wide interfaces to
15581 reference the interface tag of the actual object.
15582 (Expand_Interface_Conversion): New subprogram. Reference the base of
15583 the object to give access to the interface tag associated with the
15584 secondary dispatch table.
15585 (Expand_Interface_Thunk): New subprogram that generates the code of the
15586 thunk. This is required for compatibility with the C+ ABI.
15587 (Make_Abstract_Interface_DT): New subprogram that generate the
15588 declarations for the secondary dispatch tables associated with an
15589 abstract interface.
15590 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
15591 attribute for each primitive operation covering interface subprograms
15592 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
15593 These subprograms were upgraded to give support to abstract interfaces
15595 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
15596 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
15597 RE_Set_Access_Level.
15598 (RE_Unit_Table): Add entries for new Ada.Tags operations.
15599 Add support to call the followig new run-time subprograms:
15600 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
15602 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
15603 match its full declaration when both have an access definition with
15604 statically matching designated subtypes.
15605 (Analyze_Component_Declaration): Delete commented out code that was
15606 incorrectly setting the scope of an anonymous access component's type.
15607 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
15608 an access discriminant when the containing type is nonlimited.
15609 (Make_Incomplete_Type_Declaration): Create an incomplete type
15610 declaration for a record type that includes self-referential access
15612 (Check_Anonymous_Access_Types): Before full analysis of a record type
15613 declaration, create anonymous access types for each self-referential
15615 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
15616 an access component in this context is a Local_Anonymous_Access, for
15617 proper accessibility checks.
15618 (Access_Definition): Set properly the scope of the anonymous access type
15619 created for a stand-alone access object.
15620 (Find_Type_Of_Object): An object declaration may be given with an access
15622 (Complete_Subprograms_Derivation): New subprogram used to complete
15623 type derivation of private tagged types implementing interfaces.
15624 In this case some interface primitives may have been overriden
15625 with the partial-view and, instead of re-calculating them, they
15626 are included in the list of primitive operations of the full-view.
15627 (Build_Derived_Record_Type): Modified to give support to private
15628 types implemening interfaces.
15629 (Access_Definition): Reject ALL on anonymous access types.
15630 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
15631 type derivation to occur at a deeper accessibility level than the
15633 For the case of derivation within a generic body however, disallow the
15634 derivation if the derived type has an ancestor that is a formal type
15635 declared in the formal part of an enclosing generic.
15636 (Analyze_Object_Declaration): For protected objects, remove the check
15637 that they cannot contain interrupt handlers if not declared at library
15639 (Add_Interface_Tag_Components): New subprogram to add the tag components
15640 corresponding to all the abstract interface types implemented by a
15641 record type or a derived record type.
15642 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
15643 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
15644 Process_Full_View, Record_Type_Declaration): Modified to give
15645 support to abstract interface types
15646 (Collect_Interfaces): New subprogram that collects the list of
15647 interfaces that are not already implemented by the ancestors
15648 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
15649 when partial view has no discriminants and full view has defaults.
15650 (Constrain_Access): Reject a constraint on a general access type
15651 if the discriminants of the designated type have defaults.
15652 (Access_Subprogram_Declaration): Associate the Itype node with the inner
15653 full-type declaration or subprogram spec. This is required to handle
15654 nested anonymous declarations.
15655 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
15656 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
15657 Process_Full_View, Record_Type_Declaration): Modified to give
15658 support to abstract interface types
15659 (Derive_Subprograms): Addition of a new formal to indicate if
15660 we are in the case of an abstact-interface derivation
15661 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
15662 to the specification because it is requied to analyze all the
15663 identifiers found in a list of interfaces
15665 * debug.adb: Complete documentation of flag "-gnatdZ"
15667 * exp_ch3.adb: Implement config version of persistent_bss pragma
15668 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
15669 testing for TSS presence to properly enforce visibility rules.
15670 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
15671 Make_Abstract_Interfaces_DT to generate the secondary tables
15672 associated with abstract interfaces.
15673 (Build_Init_Procedure): Modified to initialize all the tags
15675 (Component_Needs_Simple_Initialization): Similar to other tags,
15676 interface tags do not need initialization.
15677 (Freeze_Record_Type): Modified to give support to abstract interface
15679 (Expand_N_Object_Declaration): Do not generate an initialization for
15680 a scalar temporary marked as internal.
15682 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
15683 in-out parameter that is a component in an initialization procedure,
15684 whose constraint might depend on discriminants, and that may be
15685 misaligned because of packing or representation clauses.
15686 (Is_Legal_Copy): New predicate to determine whether a possibly
15687 misaligned in-out actual can actually be passed by copy/return. This
15688 is an error in case the type is by_reference, and a warning if this is
15689 the consequence of a DEC import pragma on the subprogram.
15690 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
15692 (Expand_Inlined_Call): Mark temporary generated for the return value as
15693 internal, so that no useless scalar normalization is generated for it.
15694 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
15695 null procedure can always be inlined.
15696 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
15697 procedure, generate an explicit empty body for it.
15699 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
15700 Given a type implementing an interface, returns the corresponding
15701 access_disp_table value.
15702 (Find_Interface_Tag): New subprogram. Given a type implementing an
15703 interface, returns the record component containing the tag of the
15705 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
15706 previous ones that return the corresponding tag and access_disp_table
15708 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
15709 is a predefined primitive operation.
15710 (Expand_Subtype_From_Expr): If the expression is a selected component
15711 within an initialization procedure, compute its actual subtype, because
15712 the component may depend on the discriminants of the enclosing record.
15714 * i-cpp.ads, i-cpp.adb:
15715 This package has been left available for compatibility with previous
15716 versions of the frontend. As part of the new layout this is now a
15717 dummy package that uses declarations available at a-tags.ads
15719 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
15720 "constant access" and "aliased [constant] access" when not compiling
15722 Suppress Ada 2005 keyword warning if -gnatwY used
15723 (P_Identifier_Declarations): Add support for object declarations with
15724 access definitions.
15725 (Private_Extension_Declaration): Complete the documentation
15726 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
15727 attribute in case of private extension declaration
15728 (P_Type_Declaration): Mark as "abstract" the type declarations
15729 corresponding with protected, synchronized and task interfaces
15730 (P_Declarative_Items): "not" and "overriding" are overriding indicators
15731 for a subprogram or instance declaration.
15733 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
15734 instantiation that is a dispatching operation has controlling access
15735 parameters that are null excluding.
15736 Save and restore Ada_Version_Explicit, for implementation of AI-362
15737 (Validate_Derived_Type_Instance): Add check for abstract interface
15739 (Analyze_Formal_Package): Establish Instantiation source for the copy of
15740 the generic that is created to represent the formal package.
15741 (Analyze_Package_Instantiation): Instantiate body immediately if the
15742 package is a predefined unit that contains inlined subprograms, and
15743 we are compiling for a Configurable_Run_Time.
15744 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
15745 If the program has a null default, generate an empty body for it.
15747 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
15748 error message condition, null procedures are correctly detected now.
15749 (New_Overloaded_Entity): Bypass trivial overriding indicator check
15750 for subprograms in the context of protected types. Instead, the
15751 indicator is examined in Sem_Ch9 while analysing the subprogram
15753 (Check_Overriding_Indicator): Check consistency of overriding indicator
15754 on subprogram stubs as well.
15755 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
15757 (Analize_Subprogram_Specification): When analyzing a subprogram in which
15758 the type of the first formal is a concurrent type, replace this type
15759 by the corresponding record type.
15760 (Analyze_Subprogram_Body): Undo the previous work.
15761 (Analyze_Procedure_Call): If the call has the form Object.Op, the
15762 analysis of the prefix ends up analyzing the call itself, after which
15764 (Has_Interface_Formals): New subprogram subsidiary to analyze
15765 subprogram_specification that returns true if some non
15766 class-wide interface subprogram is found
15767 (New_Overloaded_Entity): Modified to give support to abstract
15769 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
15770 access to subprograms must be recursive.
15771 (Is_Unchecked_Conversion): Improve the test that recognizes
15772 instantiations of Unchecked_Conversion, and allows them in bodies that
15773 are to be inlined by the front-end. When the body comes from an
15774 instantiation, a reference to Unchecked_Conversion will be an
15775 Expanded_Name, even though the body has not been analyzed yet.
15776 Replace Is_Overriding and Not_Overriding in subprogram_indication with
15777 Must_Override and Must_Not_Override, to better express intent of AI.
15778 (Analyze_Subprogram_Body): If an overriding indicator is given, check
15779 that it is consistent with the overrinding status of the subprogram
15781 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
15783 If the subprogram is a null procedure, indicate that it does not need
15786 * sem_disp.adb (Check_Controlling_Type): Give support to entities
15787 available through limited-with clauses.
15788 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
15789 allowed as the last primitive of a tagged type if it has no previous
15791 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
15792 to give support to abstract interface types
15794 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
15795 in the case where the target type is an anonymous access type of an
15796 object or component (that is, when Is_Local_Anonymous_Access is true).
15797 Prevent the special checks for conversions of access discriminants in
15798 the case where the discriminant belongs to a nonlimited type, since
15799 such discriminants have their accessibility level defined in the same
15800 way as a normal component of an anonymous access type.
15801 (Resolve_Allocator): When an allocator's designated type is a class-wide
15802 type, check that the accessibility level of type given in the
15803 allocator's expression or subtype indication is not statically deeper
15804 than the level of the allocator's access type.
15805 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
15806 name in a discriminant constraint of a record component.
15807 (Resolve_Explicit_Dereference): Do not check whether the type is
15808 incomplete when the dereference is a use of an access discriminant in
15809 an initialization procedure.
15810 (Resolve_Type_Conversion): Handle conversions to abstract interface
15812 (Valid_Tagged_Conversion): The conversion of a tagged type to an
15813 abstract interface type is always valid.
15814 (Valid_Conversion): Modified to give support to abstract interface types
15815 (Resolve_Actuals): Enable full error reporting on view conversions
15816 between unrelated by_reference array types.
15817 The rule for view conversions of arrays with aliased components is
15818 weakened in Ada 2005.
15819 Call to obsolescent subprogram is now considered to be a violation of
15820 pragma Restrictions (No_Obsolescent_Features).
15821 (Check_Direct_Boolean_Operator): If the boolean operation has been
15822 constant-folded, there is nothing to check.
15823 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
15824 check on possible violation of restriction No_Direct_Boolean_Operators
15825 until after expansion of operands, to prevent spurious errors when
15826 operation is constant-folded.
15828 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
15829 Has_Compatible_Type): Modified to give support to abstract interface
15831 (Interface_Present_In_Ancestor): New function to theck if some ancestor
15832 of a given type implements a given interface
15834 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
15835 prefix is a parameterless function that returns an access_to_procedure.
15836 (Transform_Object_Operation): Handle properly function calls of the
15837 form Obj.Op (X), which prior to analysis appear as indexed components.
15838 (Analyze_One_Call): Complete the error notification to help new Ada
15840 (Analyze_Allocator): For an allocator without an initial value, where
15841 the designated type has a constrained partial view, a discriminant
15842 constraint is illegal.
15844 2005-06-14 Robert Dewar <dewar@adacore.com>
15846 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
15847 do with treatment of Set_Col when positioned at end of line character.
15849 2005-06-14 Robert Dewar <dewar@adacore.com>
15851 * atree.adb: (Elist*): Protect against uninitialized field
15853 2005-06-14 Ed Schonberg <schonberg@adacore.com>
15855 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
15856 for an attribute reference that returns an access type.
15857 (Apply_Discriminant_Check): No need for check if (designated) type has
15858 constrained partial view.
15860 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
15861 both bound checks, rather than a conjunction.
15862 (Insert_Valid_Check): If the expression is an actual that is an indexed
15863 component of a bit-packed array, force expansion of the packed element
15864 reference, because it is specifically inhibited elsewhere.
15866 2005-06-14 Vincent Celier <celier@adacore.com>
15868 * clean.adb (Clean_Project): Correctly delete executable specified as
15869 absolute path names.
15871 * make.adb (Gnatmake): Allow relative executable path names with
15872 directory information even when project files are used.
15873 (Change_To_Object_Directory): Fail gracefully when unable to change
15874 current working directory to object directory of a project.
15875 (Gnatmake): Remove exception handler that could no longer be exercized
15876 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
15877 may be deallocated by Normalize_Arguments.
15878 (Collect_Arguments): Eliminate empty arguments
15880 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
15881 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
15882 (Check_Project): Return False when Project is No_Project. Return True
15883 when All_Projects is True.
15884 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
15885 All_Projects to True.
15888 2005-06-14 Ed Schonberg <schonberg@adacore.com>
15889 Javier Miranda <miranda@adacore.com>
15890 Thomas Quinot <quinot@adacore.com>
15891 Robert Dewar <dewar@adacore.com>
15892 Hristian Kirtchev <kirtchev@adacore.com>
15893 Gary Dismukes <dismukes@adacore.com>
15895 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
15896 anonymous access types, to indicate that the accessibility level of
15897 the type is determined by that of the enclosing declaration.
15898 (Has_Persistent_BSS): New flag
15899 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
15900 of this attribute with functions.
15901 (Is_Primitive_Wrapper): Remove the barrier.
15902 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
15903 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
15905 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
15906 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
15908 (Is_Pure_Unit_Access_Type): New flag
15909 (Abstract_Interfaces): Complete the assertion to cover all usages.
15910 (Set_Is_Interface): Complete the assertion to cover all usages.
15911 (Is_Primitive_Wrapper): New attribute.
15912 (Is_Obsolescent): Now applies to all entities (though it is only set
15913 for subprograms currently)
15914 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
15915 which solves various problems concerning access subtypes.
15916 (Has_Persistent_BSS): New flag
15917 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
15918 Remove these subprograms because this attribute is currently
15921 Has_Specified_Stream_Input (Flag190)
15922 Has_Specified_Stream_Output (Flag191)
15923 Has_Specified_Stream_Read (Flag192)
15924 Has_Specified_Stream_Write (Flag193)
15925 Present in all type and subtype entities. Set for a given view if the
15926 corresponding stream-oriented attribute has been defined by an
15927 attribute definition clause. When such a clause occurs, a TSS is set
15928 on the underlying full view; the flags are used to track visibility of
15929 the attribute definition clause for partial or incomplete views.
15930 (Is_Pure_Unit_Access_Type): New flag
15931 Clarify use of Is_Internal.
15932 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
15933 internally generated to wrap the invocation of tasks and protected
15934 types that implement interfaces.
15935 (Implementation_Base_Type): Documentation correction
15936 (Is_Obsolescent): Now applies to all entities (though it is only set
15937 for subprograms currently)
15938 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
15939 which solves various problems concerning access subtypes.
15941 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
15942 for examined parameters. Identify unequal parameter list lengths as
15943 non-conformant parameters.
15944 (Overriding_Possible): Do not check for "All" qualifier in declaration
15945 of controlling access parameter, following prescription of AI-404.
15946 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
15947 that build the procedure body that wraps an entry invocation
15948 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
15949 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
15950 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
15951 give support to abstract interface types
15953 * freeze.adb (Freeze_Entity): Issue error message if
15954 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
15955 type has no storage pool (Ada 2005) AI-366.
15956 Also modified to give support to abstract interface types
15957 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
15958 Inline_Always pragma.
15960 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
15961 now begin an entry declaration.
15962 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
15963 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
15964 a subprogram declaration preceded by an overriding indicator.
15965 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
15966 declarations or subprogram declarations preceded by reserved words
15967 "not" or "overriding".
15968 (P_Entry_Declaration): Update comment. Parse and check overriding
15969 indicator, set semantic flags of entry declarations.
15970 (P_Task): New error message in case of private applied
15971 to a task type declaration.
15972 (P_Protected): New error message in case of private applied
15973 to a task type declaration.
15975 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
15976 in which the full view of a type implementing an interface is a
15978 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
15979 Declare_Inherited_Private_Subprograms): If an explicit operation
15980 overrides an operation that is inherited in the private part, mark the
15981 explicit one as overriding, to enable overriding indicator checks.
15982 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
15983 full view to partial view, to simplify handling in back-end.
15985 * sprint.adb: Print interface lists where needed: derived types,
15986 protected types, task types.
15987 output "is null" for null procedures. Part of implementation of
15989 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
15990 relaxation of rules for access types in pure, shared passive partitions.
15992 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
15993 first read discriminants into temporary objects, performing checks on
15994 the read values, then possibly performing discriminant checks on the
15995 actual (if it is constrained), and only finally reading the components
15996 into a constrained temporary object.
15997 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
15998 case of reading discriminants of a mutable record type to recognize
15999 the new form of the code generated by
16000 Build_Mutable_Record_Read_Procedure.
16002 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
16003 of a simple call to Make_TSS_Name.
16004 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
16005 buffer, in order for Is_TSS to work correctly on local TSS names.
16007 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
16008 Is_Local_Anonymous_Access to check legaliy of attributes in the
16009 context of access components and stand-alone access objects.
16010 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
16011 treated as available for a limited private type if there is an
16012 attribute_definition_clause that applies to its full view, but not in
16013 other cases where the attribute is available for the full view
16014 (specifically, the sole fact that the full view is non-limited does not
16015 make the attribute available for the partial view).
16016 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
16017 non-overloaded intrinsic subprogram.
16018 (Check_Stream_Attribute): Reject an attribute reference for an
16019 unavailable stream attribute even if the prefix is not a limited type
16020 (case of a 'Input attribute reference for an abstract, non-classwide
16022 (Stream_Attribute_Available): New function to determine whether a stream
16023 attribute is available at a place.
16024 (Check_Attribute): Use Stream_Attribute_Available instead of just
16025 testing for TSS presence on the implementation base type.
16026 (Analyze_Attribute): Modified to give support to task interfaces.
16027 (Analyze_Access_Attribute): Add error check for use of an Access (or
16028 Unrestricted_Access) attribute with a subprogram marked as
16030 (Analyze_Attribute, case Attribute_Address): Add error check for use of
16031 an Address attribute with a subprogram marked as Inline_Always.
16032 Update Eval_Attribute to handle new value of Width from AI-395
16034 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
16035 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
16036 Factor common code across the stream-oriented attribute circcuits into
16037 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
16038 processing is functionally identical to the previous duplicated one,
16039 except that an expression that denotes an abstract subprogram will now
16040 be rejected, as mandated by AI-195 item 5.
16042 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
16043 Is_Local_Anonymous_Access to apply accessibility checks to access
16044 components and stand-alone access objects.
16045 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
16047 (Is_Potentially_Persistent_Type): New function
16048 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
16049 a heap-object whose type has a constrained partial view, the object is
16050 unconstrained and the component may depend on a discriminant, making its
16053 * sinfo.ads, sinfo.adb
16054 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
16055 (Must_Override): Flag applicable to N_Entry_Declaration.
16056 Indicate that interface_list can appear in single task and single
16057 protected declarations.
16058 Replace Is_Overriding and Not_Overriding with Must_Override and
16059 Must_Not_Override, to better express intent of AI.
16060 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
16061 of an overriding indicator in a subprogram or instance.
16062 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
16063 Add the overriding indicator [[not] overriding] construct to the
16064 following grammar productions:
16066 GENERIC_INSTANTIATION
16067 SUBPROGRAM_SPECIFICATION
16069 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
16070 can start with an overriding indicator.
16072 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
16073 flags accordingly on subrogram specifications or instances.
16076 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
16077 overriding_indicator, if present, is consistent with status of spec.
16078 Improve error message for null-excluding checks on controlling access
16080 (Check_In_Previous_With_Clause): Protect the frontend against
16081 previously reported critical errors in the context clauses.
16082 Save and restore Ada_Version_Explicit, for implementation of AI-362
16083 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
16084 operation verify that controlling formals of the renamed entity that
16085 are access parameters are explicitly non-null.
16086 (Find_Expanded_Name): Improve error message when prefix is an illegal
16087 reference to a private child unit.
16089 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
16090 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
16091 Rewrite to correspond to new wide character names in AI-395
16093 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
16094 default procedures.
16096 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16097 Robert Dewar <dewar@adacore.com>
16099 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
16100 code, not on the bodies of predefined operations, to cut down on
16103 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16105 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
16106 be expanded in place. The size computation does not require a
16107 subtraction, which would raise an exception on a compiler built with
16108 assertions when the upper bound is Integer'first.
16109 (Flatten): For an array of composite components, take into account the
16110 size of the components to determine whether it is safe to expand the
16111 array into a purely positional representation.
16113 2005-06-14 Thomas Quinot <quinot@adacore.com>
16115 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
16116 denoting a formal parameter into account.
16118 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16120 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
16121 the entry_call alternative of a conditional entry call, wrap the
16122 conditional entry call itself.
16124 2005-06-14 Nicolas Setton <setton@adacore.com>
16125 Ed Schonberg <schonberg@adacore.com>
16127 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
16128 the "simple_choice" member in a variant record, in accordance with the
16129 description in the package spec: the information output for a constant
16130 should be "S number", not "SS number".
16131 (Get_Encoded_Name): Return at once if not generating code. Avoids name
16132 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
16134 2005-06-14 Thomas Quinot <quinot@adacore.com>
16136 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
16137 RACW without any primitives, do not generate the if statement for
16138 dispatching by name in the PolyORB/DSA case, as it would be malformed
16139 (it would have an Elsif_Parts list that is not No_List, but with a
16142 2005-06-14 Robert Dewar <dewar@adacore.com>
16144 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
16146 2005-06-14 Jose Ruiz <ruiz@adacore.com>
16148 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
16149 can determine whether pragma Suppress_Exception_Locations is in effect.
16151 * utils2.c (build_call_raise): Do not pass the file name to the
16152 exception handler if pragma Suppress_Exception_Locations is in effect.
16153 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
16155 2005-06-14 Emmanuel Briot <briot@adacore.com>
16157 * g-debpoo.adb (Deallocate, Dereference): Improve output.
16159 2005-06-14 Nicolas Roche <roche@adacore.com>
16161 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
16163 (Next_Level): Fix minor bug in handling of ../dir case
16164 (Read): Add dir separator to Directory name so that "" is understood as
16167 2005-06-14 Pascal Obry <obry@adacore.com>
16169 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
16170 releasing the items.
16172 2005-06-14 Vincent Celier <celier@adacore.com>
16173 Cyrille Comar <comar@adacore.com>
16175 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
16176 with output file descriptor and with output file name.
16177 (Dup, Dup2): Now global procedures as they are used by two subprograms
16178 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
16180 2005-06-14 Thomas Quinot <quinot@adacore.com>
16183 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
16185 (Create_Selector): Bind listening socket used to create the signalling
16186 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
16187 Set listen backlog to 1 to ensure that we detect socket theft by a
16188 failure of our own connect(2) call.
16189 (Check_Selector): Improve documentation of the selector mechanism.
16190 (Broadcast_Inet_Addr): New constant.
16192 2005-06-14 Gary Dismukes <dismukes@adacore.com>
16194 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
16195 type which turns out to be an incomplete and incorrect fix.
16196 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
16197 of the type is declared in a record (for determination of insertion
16199 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
16200 a private type and ensure that the primary entity is used for the type
16201 of the newly created function's V formal by taking the Etype of the
16204 2005-06-14 Javier Miranda <miranda@adacore.com>
16205 Jose Ruiz <ruiz@adacore.com>
16206 Robert Dewar <dewar@adacore.com>
16207 Ed Schonberg <schonberg@adacore.com>
16209 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
16210 that indicates if we are parsing a compilation unit found in a
16211 limited-with clause.
16212 It is use to avoid the circularity check.
16214 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
16215 we are parsing a compilation unit found in a limited-with clause. This
16216 is use to avoid the circularity check.
16218 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
16219 unit as a consequence of parsing a limited-with clause. This is used
16220 to avoid the circularity check.
16222 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
16223 (Analyze_Context): Limited-with clauses are now allowed
16224 in more compilation units.
16225 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
16226 againts previously reported critical errors in context clauses
16227 (Install_Limited_Withed_Unit): Code cleanup plus static detection
16228 of two further errors: renamed subprograms and renamed packages
16229 are not allowed in limited with clauses.
16230 (Install_Siblings): Do not install private_with_clauses on the package
16231 declaration for a non-private child unit.
16232 (Re_Install_Parents): When a parent of the subunit is reinstalled,
16233 reset visibility of child units properly.
16234 (Install_Withed_Unit): When a child unit appears in a with_clause of its
16235 parent, it is immediately visible.
16237 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16238 Emmanuel Briot <briot@adacore.com>
16240 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
16241 declared within an inlined body as referenced, to prevent spurious
16243 (Output_One_Ref): If an entity renames an array component, indicate in
16244 the ALI file that this aliases (renames) the array. Capture as well
16245 function renamings that rename predefined operations.
16246 Add information about generic parent for package and subprogram
16248 (Get_Type_Reference): For a subtype that is the renaming of an actual in
16249 an instantiation, use the first_subtype to ensure that we don't generate
16250 cross-reference information for internal types.
16251 For objects and parameters of a generic private type, retain the '*'
16252 indicator to distinguish such an entity from its type.
16254 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
16255 to store information about instantiated entities.
16257 * ali.adb (Scan_ALI): Add support for parsing the reference to the
16260 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
16261 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
16264 2005-06-10 Doug Rupp <rupp@adacore.com>
16265 Arnaud Charlet <charlet@adacore.com>
16266 Olivier Hainque <hainque@adacore.com>
16267 Jose Ruiz <ruiz@adacore.com>
16269 * Make-lang.in: Add initialize.o when needed.
16270 Remove obsolete references to RT_FLAGS.
16271 Add missing dependencies for sdefault.o
16273 * initialize.c: New file.
16275 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
16276 [VMS] cond_signal_table: Fix problem in declaration.
16277 [VMS] __gnat_error_handler: rewrite.
16278 Move all __gnat_initialize() routines to initialize.c
16279 Specialize the former "hpux" section to "hppa hpux", as this is what the
16280 section really is here for and we now have other hpux ports that need
16281 different contents.
16282 (__gnat_adjust_context_for_raise) i386-linux: First version of this
16283 function for this target. Adjust PC by one in the machine context. This
16284 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
16285 it is more reliable to do that in the signal handler itself.
16286 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
16287 flags, so that the handler is passed the context structure to adjust
16288 prior to the raise.
16289 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
16290 SA_SIGINFO sigaction should look like. Call
16291 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
16292 Machine_State_Operations stuff.
16293 Add conditional code so that the x86_64 is also supported.
16295 2005-06-14 Pascal Obry <obry@adacore.com>
16297 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
16300 2005-06-14 Robert Dewar <dewar@adacore.com>
16302 * opt.ads, opt.adb: New flags for persistent_bss mode
16303 Add Ada_Version_Explicit, for implementation of AI-362
16304 Add Assertions_Enabled_Config and associated handling
16305 Needed since setting can be changed with Assertion_Policy pragma
16306 Add new flag Warn_On_Ada_2005_Compatibility
16308 * switch-c.adb: Recognize -gnatwy/Y
16309 Set Ada_Version_Explicit, for implementation of AI-362
16310 The -gnatg switch now includes -gnatyu
16312 * usage.adb: Add -gnatwy/Y
16313 Remove wrong asterisk on -gnatwX line
16314 Add line for -gnatyu switch
16316 2005-06-14 Vincent Celier <celier@adacore.com>
16318 * osint.adb (Add_Default_Search_Dirs): Put source and object
16319 directories of project files before directories coming from
16320 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
16322 2005-06-14 Robert Dewar <dewar@adacore.com>
16325 * par-ch2.adb (Scan_Pragma_Argument): New procedure
16326 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
16328 2005-06-14 Vincent Celier <celier@adacore.com>
16330 * prep.adb (Preprocess): Ignore error when scanning the first token of
16333 2005-06-14 Vincent Celier <celier@adacore.com>
16335 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
16336 (Check_Stand_Alone_Library): If the specified reference symbol file does
16337 not exist, only issue a warning when the symbol policy is not
16338 Controlled. And, when symbol policy is Compliant, set the symbol
16339 policy to Autonomous.
16341 2005-06-14 Vincent Celier <celier@adacore.com>
16343 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
16344 when the project file in a with clause is not the last one, that is the
16345 project file name is followed by a comma.
16346 * prj-pp.adb: (First_With_In_List): New Boolean global variable
16347 (Print): Issue list of project files separated by commas in with clauses
16348 according to the values returned by Is_Not_Last_In_List.
16349 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
16350 (Set_Is_Not_Last_In_List): New procedure
16352 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
16354 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
16356 2005-06-14 Robert Dewar <dewar@adacore.com>
16358 * scng.adb: Add call to new Check_EOF routine
16359 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
16360 Add some comments regarding wide character handling
16362 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
16364 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
16366 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
16367 characters are now considered graphic characters and hence yield false
16370 * nmake.adt: Modify header so that xnmake does not generate output
16371 files with multiple blank lines.
16373 * treeprs.adt: Remove a blank line so that output from xtreeprs does
16374 not have an extra blank line
16376 2005-06-14 Gary Dismukes <dismukes@adacore.com>
16378 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
16379 expression when the component type is an anonymous access type to
16380 ensure that appropriate accessibility checks are done.
16382 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
16383 expression of an assignment when the target object is of an anonymous
16384 access type. This ensures that required accessibility checks are done.
16385 (One_Bound): Move the check for type Universal_Integer to
16387 (Process_Bounds): Check whether the type of the preanalyzed range is
16388 Universal_Integer, and in that case set Typ to Integer_Type prior
16389 to setting the type of the original range and the calls to One_Bound.
16391 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16393 * sem_case.adb (Expand_Others_Choice): Improve warning.
16395 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16397 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
16398 constraint of full view if present, when other type is discriminated.
16399 (Eval_Relational_Op): Recognize tests of pointer values against Null,
16400 when the pointer is known to be non-null, and emit appropriate warning.
16402 2005-06-14 Robert Dewar <dewar@adacore.com>
16403 Ed Schonberg <schonberg@adacore.com>
16406 * sem_prag.adb: Implement pragma Persistent_BSS
16407 Remove obsolete pragma Persistent_Data, Persistent_Object
16408 Set Ada_Version_Explicit, for implementation of AI-362
16409 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
16410 Add processing for pragma Pure_05 and Preelaborate_05
16411 Add processing for Assertion_Policy pragma
16412 Add pragma identifiers for Assert
16413 (Analyze_Pragma, case Assert): Check number of arguments
16414 (Process_Inline): Additional guard against an illegal program, where the
16415 argument of the pragma is undefined, and warnings on redundant
16416 constructs are enabled.
16417 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
16418 Ada_05 to this pragma, specifying that the pragma is only active in
16420 (Check_Arg_Order): New procedure
16421 Add appropriate calls to this procedure throughout
16422 Also throughout, check entity name before doing any other checks
16424 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
16425 Remove obsolete pragma Persistent_Data, Persistent_Object
16426 Add entries for pragma Pure_05 and Preelaborate_05
16427 Add entries for Assertion_Policy pragma and associated names
16428 Add some names for pragma argument processing
16430 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
16432 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16434 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
16435 appears within a negation (either from source or as a rewriting of
16436 inequality) adjust text of warning accordingly.
16438 2005-06-14 Thomas Quinot <quinot@adacore.com>
16440 * s-strxdr.adb: Follow AI95-00132
16442 2005-06-14 Arnaud Charlet <charlet@adacore.com>
16444 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
16446 2005-06-14 Arnaud Charlet <charlet@adacore.com>
16447 Jose Ruiz <ruiz@adacore.com>
16449 * s-tposen.adb, s-tpobop.adb
16450 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
16452 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
16453 there is no violation of the Max_Entry_Queue_Length restriction (if it
16454 has been set); Program_Error is raised otherwise.
16455 (Requeue_Call): Before requeuing the task on the target entry queue we
16456 check that there is no violation of the Max_Entry_Queue_Length
16457 restriction (if it has been set); Program_Error is raised otherwise.
16459 2005-06-14 Robert Dewar <dewar@adacore.com>
16461 * styleg.adb: Fix several remaining problems in -gnatyu switch
16462 Blank line count not reset at start
16463 Scanning outside source buffer in some cases
16464 Confusing message for blanks at end of file
16465 Non-empty blank lines not recognized
16467 * nmake.adt: Modify header so that xnmake does not generate output
16468 files with multiple blank lines.
16470 * treeprs.adt: Remove a blank line so that output from xtreeprs does
16471 not have an extra blank line
16473 2005-06-14 Sergey Rybin <rybin@adacore.com>
16475 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
16477 2005-06-14 Doug Rupp <rupp@adacore.com>
16478 Vincent Celier <celier@adacore.com>
16480 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
16483 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
16484 Remove "Library" command.
16485 Change keyword for style check -gnatyd from NOCRLF to
16487 Remove useless second style check keyword NONE
16488 Remove help documentation for inexistent style check keyword
16490 Add help documentation for style check keywords DOS_LINE_ENDINGS,
16491 UNNECESSARY_BLANK_LINES and XTRA_PARENS
16492 Add UNNECESSARY_BLANK_LINES for -gnatyu
16493 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
16495 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
16497 2005-06-14 Vincent Celier <celier@adacore.com>
16499 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
16500 gprmake was invoked with -d.
16501 (Compile_Sources): If -d was used, output the "completed ..." message
16502 for each compilation.
16503 (Scan_Arg): Recognize new switch -d
16504 When -c and at least one main is specified, set
16505 Unique_Compile to True to guarantee that no other sources will be
16508 2005-06-14 Matthew Heaney <heaney@adacore.com>
16510 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
16511 * a-swuwha.ads, a-swuwha.adb: New files
16513 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
16514 * a-szuzha.ads, a-szuzha.adb: New files.
16516 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
16517 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
16518 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
16519 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
16520 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
16521 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
16522 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
16523 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
16524 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
16525 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
16528 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
16529 Olivier Hainque <hainque@adacore.com>
16530 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16531 Pascal Obry <obry@adacore.com>
16533 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
16535 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
16536 making a temporary around a procedure call because of non-addressable
16538 (process_freeze_entity): If entity is a private type, capture size
16539 information that may have been computed for the full view.
16540 (tree_transform, case N_Allocator): If have initializing expression,
16541 check type for Has_Constrained_Partial_View and pass that to
16543 (tree_transform, case N_Return_Statement): Pass extra arg to
16546 * decl.c (annotate_value): Remove early return if -gnatR is not
16548 (gnat_to_gnu_field): Don't make a packable type for a component clause
16549 if the position is byte aligned, the field is aliased, and the clause
16550 size isn't a multiple of the packable alignment. It serves no useful
16551 purpose packing-wise and would be rejected later on.
16552 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
16555 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
16556 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
16558 (create_concat_name): Idem.
16560 2005-06-10 Robert Dewar <dewar@adacore.com>
16561 Eric Botcazou <ebotcazou@adacore.com>
16562 Ben Brosgol <brosgol@adacore.com>
16563 Cyrille Comar <comar@adacore.com>
16564 Sergey Rybin <rybin@adacore.com>
16565 Pascal Obry <obry@adacore.com>
16567 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
16568 Document second argument (Ada_05) of pragma Obsolescent
16569 Add note that call to subprogram marked with pragma Obsolescent
16570 is now considered to be a violation of program Restrictions
16571 (No_Obsolescent_Features).
16572 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
16573 that only machine-dependent attributes are supported.
16576 Commented out menu lines and empty section for gnatclean examples
16578 Fix some over long lines
16579 Clarify and enhance documentation of ADA_PROJECT_PATH.
16580 Rework section 2.11.2(3) about linking with a non-GNU compiler.
16581 Mention new switch -fcallgraph-info.
16582 Mention new switch -fstack-usage.
16583 For gnatpp, replace '-notab' with '-N' and add this option to Index
16584 Corrected VMS example.
16585 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
16587 Add documentation for -gnatyu switch (unnecessary blank lines)
16588 Document new switch -U for GNAT PRETTY and GNAT METRIC
16589 Add note about Stdcall being handled as C convention on non Windows OS.
16590 Remove some junk typo in description of gnatbind -S switch
16591 Remove reference to Extensions_Allowed pragma
16592 Document the new order of the directories to be searched (source and
16593 object directories of project files before directories in ADA_*_PATH
16594 environment variables.
16596 * g-trasym.ads: Document that IRIX is supported
16598 2005-06-10 Arnaud Charlet <charlet@adacore.com>
16600 * Makefile.in: Add initialize.o when needed.
16601 Adapt to new VMS package body Symbols and subunits
16602 No specialized version of a-sytaco is needed for VxWorks.
16604 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
16605 * a-zchara.ads, a-widcha.ads: New files.
16607 * system-hpux-ia64.ads: New file.
16609 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
16610 is imported from the VxWorks kernel.
16612 2005-06-14 Robert Dewar <dewar@adacore.com>
16614 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
16615 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
16616 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
16617 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
16618 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
16619 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
16620 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
16621 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
16622 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
16623 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
16624 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
16625 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
16627 2005-06-14 Thomas Quinot <quinot@adacore.com>
16629 * xeinfo.adb: Fix typo in comment
16631 2005-06-14 Javier Miranda <miranda@adacore.com>
16633 * repinfo.ads: Fix typo in comment
16635 2005-06-14 Gary Dismukes <dismukes@adacore.com>
16637 * s-finimp.adb (Parent_Tag): Delete this imported function (function
16638 Parent_Tag is now in the visible part of Ada.Tags).
16639 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
16640 using imported function.
16642 2005-06-14 Bernard Banner <banner@adacore.com>
16644 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
16645 also apply for handling support for VxSim 653.
16647 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
16649 * xsnames.adb: Add automatic generation of snames.h.
16651 2005-06-14 Thomas Quinot <quinot@adacore.com>
16653 * gen-soccon.c: Add IP_MULTICAST_IF constant
16654 Minor reformatting and adjustments to prevent warnings.
16656 2005-06-14 Pascal Obry <obry@adacore.com>
16658 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
16660 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
16662 * trans.c (gnat_gimplify_expr): Call
16663 recompute_tree_invarant_for_addr_expr when we change
16664 the operand of the ADDR_EXPR.
16666 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16668 * misc.c: Don't include errors.h.
16670 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16672 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
16674 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
16676 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
16678 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
16680 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
16683 * Makefile.in: Make TGT_LIB behave correctly.
16685 2005-04-23 DJ Delorie <dj@redhat.com>
16687 * misc.c: Adjust warning() callers.
16689 2005-04-16 Laurent GUERBY <laurent@guerby.net>
16692 * a-nudira.adb (Value): Check for valid string.
16693 * a-nuflra.adb (Value): Likewise.
16695 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
16697 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
16699 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
16701 * adaint.c, init.c, tracebak.c: Fix comment typos.
16702 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
16704 2005-04-07 Laurent GUERBY <laurent@guerby.net>
16705 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16707 * Makefile.in: Add make ifeq define for hppa linux tasking support.
16708 * system-hpux.ads: Define Signed_Zeros to be True.
16709 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
16711 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
16713 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
16714 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
16717 2005-03-30 Tom Tromey <tromey@redhat.com>
16719 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
16721 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
16723 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
16725 2005-03-29 Robert Dewar <dewar@adacore.com>
16727 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
16728 fixed-point expression has value that is not a multiple of the Small
16731 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
16733 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
16736 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
16738 2005-03-29 Vincent Celier <celier@adacore.com>
16740 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
16741 (Build_Dynamic_Library.Version_String): Return the empty string when
16742 Lib_Version is empty or when the symbol policy is not Autonomous.
16744 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
16745 a symbol is not in the reference symbol file, increase the Major ID
16746 and set the Minor ID to 0.
16747 Use gsmatch=lequal instead of gsmatch=equal
16749 2005-03-29 Doug Rupp <rupp@adacore.com>
16751 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
16752 name and translate.
16754 2005-03-29 Javier Miranda <miranda@adacore.com>
16756 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
16757 (Inherit_DT): The first formal has been redefined as a Tag.
16758 This allows us the removal of the subprogram Get_TSD.
16759 (TSD): Replace the call to Get_TSD by the actual code.
16761 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
16762 (Make_DT): Upgrade the call to Inherit_TSD according to the
16763 new interface: the first formal is now a Tag.
16765 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
16766 redefined as a Tag.
16767 This change allows us to remove the subprogram Get_TSD.
16768 (CPP_Get_TSD): Subprogram removed.
16769 (TSD): Replace the call to CPP_Get_TSD by the actual code.
16771 * rtsfind.ads: Remove support to call the run-time
16774 2005-03-29 Robert Dewar <dewar@adacore.com>
16776 * errutil.adb, errout.adb:
16777 Minor comment updates on Line_Terminator references
16779 * par-ch10.adb: Add ??? comment about line terminator
16781 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
16782 (check dos line terminator).
16783 (Check_Line_Max_Length): New procedure, split off from the existing
16784 Check_Line_Terminator routine. Separating this out allows -gnatyf to
16785 be properly recognized.
16787 * styleg.adb: Add ??? comment for line terminator reference
16789 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
16790 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
16792 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
16793 (check dos line terminator).
16794 (Check_Line_Max_Length): New procedure, split off from the existing
16795 Check_Line_Terminator routine. Separating this out allows -gnatyf to
16796 be properly recognized.
16798 * stylesw.ads, stylesw.adb:
16799 Add handling for new -gnatyd switch (check dos line terminator)
16801 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
16802 Recognize -gnatwb/-gnatwB switches
16803 Include Warn_On_Bad_Fixed_Value for -gnatg
16806 Add line for new -gnatyd switch (check dos line terminator)
16808 * usage.adb: Add lines for -gnatwb/-gnatwB
16810 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
16812 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
16814 * gnat_ugn.texi: Fix overlong lines
16815 Document new -gnatyd switch
16816 Document new -gnatwb/-gnatwB switches
16818 2005-03-29 Ed Schonberg <schonberg@adacore.com>
16820 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
16821 order to retrieve the component list of the type, before examining
16822 individual components.
16824 * sem_type.adb (Covers): Types are compatible if one is the base type
16825 of the other, even though their base types might differ when private
16826 views are involved.
16828 2005-03-29 Thomas Quinot <quinot@adacore.com>
16830 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
16831 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
16832 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
16833 analyzed if expansion is disabled (which could otherwise cause spurious
16834 error messages if expansion has been disabled due to previous
16835 (unrelated) errors).
16837 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
16838 is disabled, the entity denoted by the argument is the access type
16839 itself, not an underlying record type, so there is no need to go back
16840 to the Corresponding_Remote_Type.
16842 2005-03-29 Gary Dismukes <dismukes@adacore.com>
16843 Robert Dewar <dewar@adacore.com>
16845 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
16846 expand a call to an instance of
16847 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
16848 Constructor actual of the instance. A class-wide membership
16849 check is also generated, to ensure that the tag passed to the instance
16850 denotes a type in the class.
16851 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
16852 of Name_Generic_Dispatching_Constructor.
16854 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
16855 05 unit for AI-260-02).
16857 * a-tgdico.ads: New file.
16859 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
16860 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
16862 * snames.ads, snames.adb (Preset_Names): Add entry for
16863 Generic_Dispatching_Constructor.
16866 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
16867 character type cases.
16868 (Analyze_Subprogram_Renaming): Add special handling for
16869 the case of renaming of stream attributes when the renaming denotes a
16870 generic formal subprogram association for an abstract formal subprogram.
16871 Check that the attribute is a primitive stream attribute (and not
16872 a class-wide stream attribute) and then rewrite the attribute name
16873 as the name of the appropriate compiler-generated stream primitive.
16875 2005-03-29 Robert Dewar <dewar@adacore.com>
16877 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
16879 (Is_Possibly_Unaligned_Object): Correct typo that
16880 resulted in inaccurate result for unaligned scalars within records.
16882 2005-03-29 Ed Schonberg <schonberg@adacore.com>
16884 * freeze.adb (Freeze_Record_Type): If the type of the component is an
16885 itype whose parent is controlled and not yet frozen, do not create a
16886 freeze node for the itype if expansion is disabled.
16888 2005-03-29 Vincent Celier <celier@adacore.com>
16890 * make.adb (Gnatmake): Don't fail if the main project file is declared
16891 as having no Ada sources. Do not display message "no sources to
16892 compile" in quiet output.
16894 2005-03-29 Doug Rupp <rupp@adacore.com>
16896 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
16899 2005-03-29 Robert Dewar <dewar@adacore.com>
16901 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
16904 2005-03-29 Robert Dewar <dewar@adacore.com>
16906 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
16907 missing TYPE Improve the error message generated when compiling a
16908 limited interface in Ada83 or Ada95 mode.
16910 2005-03-29 Robert Dewar <dewar@adacore.com>
16912 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
16913 rather than proceed ahead using a junk attribute name.
16915 2005-03-29 Vincent Celier <celier@adacore.com>
16917 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
16919 * prj-part.adb (Parse_Single_Project): Set the location of a project
16920 on its defining identifier, rather than on the reserved word "project".
16922 * prj-proc.adb (Expression): Adapt to the fact that default of external
16923 references may be string expressions, not always literal strings.
16924 (Recursive_Process): Set Display_Name equal to Name
16925 when Location is No_Location, that is when there is no actual file.
16926 Get the Display_Name of the project from the source, when it is not a
16928 (Process): Use the Display_Name in error messages
16930 * prj-strt.adb (External_Reference): Allow default to be string
16931 expressions, not only literal strings.
16933 2005-03-29 Vincent Celier <celier@adacore.com>
16935 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
16936 file and the reference symbol file to be the same file.
16938 2005-03-29 Thomas Quinot <quinot@adacore.com>
16940 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
16941 forbid conversion of a local access-to-subprogram type to a remote one.
16943 * sem_util.adb (Wrong_Type): For a record type that is the expanded
16944 equivalent type for a remote access-to-subprogram type, go back to the
16945 original RAS entity when displaying an error message, so the casing is
16946 the original source casing.
16948 2005-03-29 Robert Dewar <dewar@adacore.com>
16950 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
16953 2005-03-29 Ed Schonberg <schonberg@adacore.com>
16955 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
16956 subtype if code is being pre-analyzed, to prevent un-expanded
16957 references to protected formals, among others.
16958 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
16959 interpretation that can be a call, include the result of the call as a
16960 possible interpretation of the dereference.
16962 * sem_ch5.adb (Process_Bounds): Determine type of range by
16963 pre-analyzing a copy of the original range, and then analyze the range
16964 with the expected type.
16966 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
16967 with an overloaded prefix where not all interpretations yield an
16968 access to subprogram, do not rewrite node as a call.
16969 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
16970 the node as a call once the context identifies the interpretation of
16971 the prefix whose call yields the context type.
16972 (Valid_Conversion): For the case of a conversion between
16973 local access-to-subprogram types, check subtype conformance using
16974 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
16975 detailed error message.
16977 2005-03-29 Ed Schonberg <schonberg@adacore.com>
16979 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
16980 indicator, indicate that the formal can never be null.
16981 (Process_Formals): If a formal has a non_null indicator, insert the
16982 resulting subtype immediately before the enclosing subprogram decl,
16983 and not at the beginning of the corresponding declarative part, to
16984 prevent access before elaboration (Ada2005).
16986 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16989 * utils.c (finish_record_type): Use variable_size when setting sizes.
16991 2005-03-29 Robert Dewar <dewar@adacore.com>
16993 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
16994 guarantee Unix style line terminators for the output files, even when
16995 running on windows.
16997 2005-03-29 Robert Dewar <dewar@adacore.com>
16999 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
17000 buffer if an exception is raised.
17002 2005-03-29 Ed Falis <falis@adacore.com>
17004 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
17007 2005-03-29 Robert Dewar <dewar@adacore.com>
17009 * sem_util.ads: Minor reformatting
17010 * gnat_rm.texi: Minor editing.
17012 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
17014 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
17015 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
17017 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
17019 * adaint.c (__gnat_portable_spawn): Adjust cast.
17021 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
17023 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
17025 2005-03-17 Pascal Obry <obry@adacore.com>
17027 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
17030 * expect.c (__gnat_waitpid): Moved here from adaint.c.
17031 Reimplement under Win32 using Win32 API.
17033 (__gnat_kill) [Win32]: Properly close the process handle before leaving
17036 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
17038 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
17039 (DECL_RENAMED_OBJECT): New accessor macro.
17040 (SET_DECL_RENAMED_OBJECT): New setter macro.
17042 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
17043 object in all cases. Attach the renamed object to the VAR_DECL.
17044 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
17045 field is not prescribed.
17047 * misc.c (gnat_handle_option): Handle -gnatO separately.
17048 (gnat_print_decl) <VAR_DECL>: New case.
17049 Print the DECL_RENAMED_OBJECT node.
17051 * lang.opt: Declare separate -gnatO option.
17053 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
17054 pointer, replace it with the renamed object.
17055 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
17056 pointer type if the source is not a fat pointer type whose underlying
17057 array has the same non-zero alias set as that of the destination array.
17059 2005-03-17 Javier Miranda <miranda@adacore.com>
17061 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
17062 (Get_Inheritance_Depth): Removed.
17063 (Set_Inheritance_Depth): Removed.
17065 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
17066 subprogram Get_Expanded_Name because it is not referenced by the
17069 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
17070 (CPP_Get_Inheritance_Depth): Removed.
17071 (CPP_Set_Inheritance_Depth): Removed.
17073 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
17075 2005-03-17 Robert Dewar <dewar@adacore.com>
17077 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
17078 3, since we now expect GCC 3 to do all the work.
17080 2005-03-17 Javier Miranda <miranda@adacore.com>
17082 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
17083 of one barrier to avoid wrong usage of this attribute.
17085 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
17086 First_Private_Entity.
17088 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
17089 the subprogram against wrong usage.
17090 Adapt the code to traverse the entities in the
17091 scope of a record_type because in addition to its usage regarding
17092 packages, this subprogram is also called by Expand_N_Freeze_Entity
17093 to install the visible declarations of the enclosing scope of a
17094 record_type_with_private to establish the proper visibility before
17095 freezing the entity and related subprograms.
17097 2005-03-17 Ed Schonberg <schonberg@adacore.com>
17099 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
17102 2005-03-17 Thomas Quinot <quinot@adacore.com>
17104 * exp_ch3.adb (Check_Attr): New subprogram.
17105 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
17106 into a new Check_Attr subprogram, in order to provide a more
17107 explanatory error message (including the name of the missing attribute).
17108 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
17109 subprogram determines whether a default implementation exists for a
17110 given stream attribute.
17111 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
17112 Determine whether to generate a default implementation for each stream
17113 attribute separately, as this depends on the specific attribute.
17115 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
17116 limited extension where a stream attribute is missing for a limited
17117 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
17118 generate a bogus reference to the missing attribute to prevent
17119 cascaded errors. Instead, generate a null statement.
17121 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
17122 available for a limited type if it has been specified for an ancestor
17125 2005-03-17 Ed Schonberg <schonberg@adacore.com>
17127 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
17128 entity is an operator.
17130 2005-03-17 Thomas Quinot <quinot@adacore.com>
17132 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
17133 spec, to make this predicate available to other units.
17135 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
17138 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
17139 when no distribution runtime library is available.
17141 * sem_res.adb, sem_dist.adb: Disable expansion of remote
17142 access-to-subprogram types when no distribution runtime library is
17144 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
17145 predicate available to other units.
17147 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
17148 spec, to make this predicate available to other units.
17150 2005-03-17 Vincent Celier <celier@adacore.com>
17152 * make.adb (Insert_Project_Sources): Make sure the Q is always
17155 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
17156 the default for the tree, not the global default naming.
17158 * prj-proc.adb (Recursive_Process): No need to put the default naming
17159 in the project data, it's already there.
17161 2005-03-17 Doug Rupp <rupp@adacore.com>
17163 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
17165 * 5xcrtl.ads: Renamed to...
17166 * s-crtl-vms64.ads: ...this new file
17168 2005-03-17 Robert Dewar <dewar@adacore.com>
17171 * namet.adb (Copy_One_Character): Set proper wide character encoding
17172 for upper half character if we have upper half encoding.
17174 2005-03-17 Robert Dewar <dewar@adacore.com>
17176 * par.adb (Par): Improved msg for attempt to recompile predefined unit
17178 2005-03-17 Thomas Quinot <quinot@adacore.com>
17180 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
17181 tagged limited type, the TSS is a newly built renaming declaration:
17182 insert it using Set_TSS, not Copy_TSS.
17184 2005-03-17 Javier Miranda <miranda@adacore.com>
17186 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
17187 Try_Object_Operation): Analyze the object that is accessible
17188 through the prefix of the subprogram call before we apply
17189 the transformation of the object-operation notation.
17191 2005-03-17 Jose Ruiz <ruiz@adacore.com>
17193 * s-taprob.adb (Initialize_Protection): Initialize the protected
17194 object's owner to Null_Task.
17195 (Lock): If pragma Detect_Blocking is in effect and the caller of this
17196 procedure is already the protected object's owner then Program_Error
17197 is raised. In addition the protected object's owner is updated.
17198 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
17199 of this procedure is already the protected object's owner then
17200 Program_Error is raised.
17201 In addition the protected object's owner is updated.
17202 (Unlock): Remove the ownership of the protected object.
17204 * s-taprob.ads (Protection): Add the field Owner, used to store the
17205 protected object's owner.
17206 This component is needed for detecting one type of potentially blocking
17207 operations (external calls on a protected subprogram with the same
17208 target object as that of the protected action). Document the rest of
17211 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
17212 Initialize the protected object's owner to Null_Task.
17213 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
17214 caller of this procedure is already the protected object's owner then
17215 Program_Error is raised.
17216 Do not raise Program_Error when this procedure is called from a
17218 (Unlock_Entries): Remove the ownership of the protected object.
17219 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
17220 of this procedure is already the protected object's owner then
17221 Program_Error is raised.
17222 Do not raise Program_Error when this procedure is called from
17223 a protected action.
17225 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
17226 used to store the protected object's owner.
17228 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
17229 effect and this procedure (a potentially blocking operation) is called
17230 from whithin a protected action, Program_Error is raised.
17231 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
17232 and this procedure (a potentially blocking operation) is called from
17233 whithin a protected action, Program_Error is raised.
17235 2005-03-17 Vincent Celier <celier@adacore.com>
17236 Nicolas Setton <setton@adacore.com>
17238 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
17239 switch, not supported by the linker on Darwin. Add '_' before
17240 <library>init, as this character is added unconditionally by the
17242 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
17243 correct one ".dylib". This fixes detection of the archive files when
17244 building library projects.
17246 2005-03-17 Vincent Celier <celier@adacore.com>
17248 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
17249 -gnat83, -gnat95 and -gnat05.
17251 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
17253 * gnat_ugn.texi: Document gnatmem restriction
17255 2005-03-17 Thomas Quinot <quinot@adacore.com>
17257 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
17260 2005-03-17 Robert Dewar <dewar@adacore.com>
17262 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
17263 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
17264 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
17266 * casing.adb: Comment improvements
17268 2005-03-17 Pascal Obry <obry@adacore.com>
17270 * g-expect.adb: Minor reformatting.
17272 2005-03-15 Zack Weinberg <zack@codesourcery.com>
17274 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
17275 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
17278 2005-03-15 Vincent Celier <celier@adacore.com>
17280 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
17281 Add new parameter In_Tree to specify the project tree: needed
17282 by the project manager. Adapt to changes in project manager
17283 using new parameter In_Tree.
17285 2005-03-15 Jakub Jelinek <jakub@redhat.com>
17287 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
17288 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
17289 ada/bldtools to avoid make -jN failures.
17291 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
17293 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
17294 to NULL_TREE on entry.
17296 2005-03-15 Robert Dewar <dewar@adacore.com>
17298 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
17299 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
17300 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
17301 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
17302 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
17303 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
17304 system-interix.ads, system-solaris-sparc.ads,
17305 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
17306 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
17307 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
17308 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
17309 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
17310 Compiler_System_Version to be False.
17312 * opt.ads: Add new flag Opt.Address_Is_Private
17314 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
17315 Add new parameter Compiler_System_Version to avoid checking for
17316 completeness of parameters when compiler is compiling itself.
17317 Allows old versions of GNAT to be compiled with new compiler.
17319 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
17321 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
17322 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
17324 (Stack_Base_Available): New flag.
17325 (Get_Page_Size): New overloaded functions imported from C.
17326 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
17327 PROT_ON, PROT_OFF): New constants.
17328 (mprotect): New function imported from C.
17329 (pthread_teb_t): New record type.
17331 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
17332 (Create_Task): Account for the Yellow Zone and the guard page.
17334 2005-03-15 Vincent Celier <celier@adacore.com>
17336 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
17337 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
17338 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
17339 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
17340 Library_File_Name_For): Add new parameter In_Tree
17341 to specify the project tree: needed by the project manager.
17342 Adapt to changes in project manager using new parameter In_Tree.
17343 Remove local imports, use functions in System.CRTL.
17345 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
17346 to use the project manager.
17348 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
17349 In_Tree to designate the project tree. Adapt to changes in the project
17350 manager, using In_Tree.
17352 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
17353 Copy_Interface_Sources): Add new parameter In_Tree to specify the
17354 project tree: needed by the project manager.
17355 (Build_Library): Check that Arg'Length >= 6 before checking if it
17356 contains "--RTS=...".
17358 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
17359 Library_File_Name_For): Add new parameter In_Tree to specify the
17360 project tree: needed by the project manager.
17362 * prj.ads, prj.adb: Major modifications to allow several project trees
17363 in memory at the same time.
17364 Change tables to dynamic tables and hash tables to dynamic hash
17365 tables. Move tables and hash tables from Prj.Com (in the visible part)
17366 and Prj.Env (in the private part). Move some constants from the visible
17367 part to the private part. Make other constants deferred.
17368 (Project_Empty): Make it a variable, not a function
17369 (Empty_Project): Add parameter Tree. Returns the data with the default
17370 naming data of the project tree Tree.
17371 (Initialize): After updating Std_Naming_Data, copy its value to the
17372 component Naming of Project Empty.
17373 (Register_Default_Naming_Scheme): Use and update the default naming
17374 component of the project tree, instead of the global variable
17376 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
17377 Tree is not defaulted, return the default naming data of the Tree.
17378 (Initial_Buffer_Size): Constant moved from private part
17379 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
17380 variables initialized in procedure Initialize.
17381 (Add_To_Buffer): Add two in out parameters to replace global variables
17382 Buffer and Buffer_Last.
17383 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
17385 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
17387 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
17388 for the project tree.
17389 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
17390 constant at the beginning of the package spec, so that they cane be used
17391 in subprograms before their full declarations.
17392 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
17393 (Empty_Project): Add parameter of type Project_Node_Ref
17394 (Private_Project_Tree_Data): Add component Default_Naming of type
17396 (Buffer, Buffer_Last): remove global variables
17397 (Add_To_Buffer): Add two in out parameters to replace global variables
17398 Buffer and Buffer_Last.
17399 (Current_Packages_To_Check): Remove global variable
17400 (Empty_Name): Move to private part
17401 (No-Symbols): Make it a constant
17402 (Private_Project_Tree_Data): New type for the private part of the
17404 (Project_Tree_Data): New type for the data of a project tree
17405 (Project_Tree_Ref): New type to designate a project tree
17406 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
17407 for the project tree.
17409 * prj-attr.ads: Add with Table; needed, as package Prj no longer
17410 imports package Table.
17412 * prj-com.adb: Remove empty, no longer needed body
17414 * prj-com.ads: Move most of the content of this package to package Prj.
17416 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
17417 designate the project node tree and Packages_To_Check to replace
17418 global variable Current_Packages_To_Check.
17419 Add new parameters In_Tree and Packages_To_Check to local subprograms,
17420 when needed. Adapt to changes in project manager with project node tree
17423 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
17424 project tree to most subprograms. Move tables and hash tables to
17425 private part of package Prj.
17426 Adapt to changes in project manager using project tree In_Tree.
17428 * prj-makr.adb (Tree): New constant to designate the project node tree
17429 Adapt to change in project manager using project node tree Tree
17431 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
17432 display the Library_Src_Dir and the Library_Dir.
17433 Add new parameter In_Tree to designate the project node tree to most
17434 subprograms. Adapt to changes in the project manager, using project tree
17436 (Check_Naming_Scheme): Do not alter the casing on platforms where
17437 the casing of file names is not significant.
17438 (Check): Add new parameter In_Tree to designate the
17440 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
17441 designate the project tree.
17442 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
17444 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
17445 to replace those that were in the private part of package Prj.
17446 Add new parameter In__Tree to designate the project node tree to most
17447 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
17448 (Post_Parse_Context_Clause): When specifying the project node of a with
17449 clause, indicate that it is a limited with only if there is "limited"
17450 in the with clause, not necessarily when In_Limited is True.
17451 (Parse): Add new parameter In_Tree to designate the project node tree
17453 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
17454 designate the project node tree. Adapt to change in Prj.Tree with
17455 project node tree In_Tree.
17457 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
17458 tree In_Tree in the call to function Empty_Process to give its initial
17459 value to the project data Processed_Data.
17460 Add new parameters In_Tree to designate the project tree and
17461 From_Project_Node_Tree to designate the project node tree to several
17462 subprograms. Adapt to change in project manager with project tree
17463 In_Tree and project node tree From_Project_Node_Tree.
17465 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
17466 to replace those that were in the private part of package Prj.
17467 Add new parameter In_Tree to designate the project node tree to most
17468 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
17470 * prj-tree.ads, prj-tree.adb: Add new parameter of type
17471 Project_Node_Tree_Ref to most subprograms.
17472 Use this new parameter to store project nodes in the designated project
17474 (Project_Node_Tree_Ref): New type to designate a project node tree
17475 (Tree_Private_Part): Change table to dynamic table and hash tables to
17476 dynamic hash tables.
17478 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
17479 the project tree to most subprograms. Adapt to changes in project
17480 manager using project tree In_Tree.
17482 * makegpr.adb (Project_Tree): New constant needed to use project
17485 2005-03-15 Olivier Hainque <hainque@adacore.com>
17487 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
17488 for sigactions with SA_SIGINFO set. Call
17489 __gnat_adjust_context_for_raise before raising, to perform the
17490 potentially required adjustments to the machine context for the GCC
17493 * raise.h (__gnat_adjust_context_for_raise): New prototype.
17495 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
17496 Adjust PC by one in the provided machine context.
17497 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
17498 so that the handler is passed the context structure to adjust prior to
17500 (__gnat_error_handler) HPUX: Adjust the signature to match what an
17501 SA_SIGINFO sigaction should look like. Call
17502 __gnat_adjust_context_for_raise before actually raising.
17503 (__gnat_adjust_context_for_raise): Default noop to help PC
17504 adjustments before raise from signal handlers.
17505 (__gnat_error_handler): Indirectly call a predicate function to
17506 determine if a condition should be resignaled or not.
17507 (__gnat_set_resignal_predicate): User interface to modify the predicate.
17508 (__gnat_default_resignal_p): Default GNAT predicate.
17510 2005-03-15 Doug Rupp <rupp@adacore.com>
17512 * adaint.c: Prefix #include of VMS system header files with vms/
17513 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
17514 Do not define a dummy function "convert_addresses" under Darwin,
17517 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
17520 2005-03-15 Nicolas Setton <setton@adacore.com>
17522 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
17525 2005-03-15 Robert Dewar <dewar@adacore.com>
17527 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
17530 * a-retide.ads: Minor comment changes
17532 2005-03-15 Robert Dewar <dewar@adacore.com>
17534 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
17535 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
17536 Realloc_For_Chunk to private part of package.
17537 New subprograms for AI-301
17539 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
17540 Get_Line procedure.
17541 Avoid unnecessary use of Get/Set_Wide_String
17543 2005-03-15 Robert Dewar <dewar@adacore.com>
17546 * a-stunau.ads, a-stunau.adb:
17547 Change interface to allow efficient (and correct) implementation
17548 The previous changes to allow extra space in unbounded strings had
17549 left this interface a bit broken.
17551 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
17553 * g-spipat.ads, g-spipat.adb: New interface for Get_String
17554 Minor reformatting (function specs)
17556 * g-spitbo.adb: New interface for Get_String
17558 * g-spitbo.ads: Minor reformatting
17560 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
17562 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
17564 2005-03-15 Javier Miranda <miranda@adacore.com>
17565 Robert Dewar <dewar@adacore.com>
17566 Thomas Quinot <quinot@adacore.com>
17567 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17569 * atree.ads, atree.adb: Add support for Elist24 field
17571 * atree.h: Fix wrong definition of Field27
17572 Add support for Elist16 field
17573 Add support for Elist24 field
17575 * einfo.ads, einfo.adb (Abstract_Interfaces,
17576 Set_Abstract_Interfaces): New subprograms.
17577 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
17579 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
17580 entities rather than a single node.
17581 (Is_Interface, Set_Is_Interface): New subprogram
17582 (First_Tag_Component): New syntesized attribute
17583 (Next_Tag_Component): New synthesized attribute
17584 (Write_Entity_Flags): Upgraded to write Is_Interface
17585 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
17586 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
17587 (Task_Body_Procedure): New subprogram to read this attribute.
17588 (Set_Task_Body_Procedure): New subprogram to set this attribute.
17589 (Has_Controlled_Component): Now applies to all entities.
17590 This is only a documentation change, since it always worked to apply
17591 this to other than composite types (yielding false), but now this is
17593 Update documentation on Must_Be_Byte_Aligned for new spec
17595 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
17596 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
17597 uses of the Access_Disp_Table attribute to reference the first dispatch
17598 table associated with a tagged type. As
17599 part of the implementation of abstract interface types,
17600 Access_Disp_Table has been redefined to contain a list of dispatch
17601 tables (rather than a single dispatch table).
17602 Similarly, upgrade all the references to Tag_Component by the
17603 new attribute First_Tag_Component.
17604 (Find_Inherited_TSS): Moved to exp_tss.
17605 Clean up test in Expand_N_Object_Declaration for cases
17606 where we need to do a separate assignment of the initial value.
17607 (Expand_N_Object_Declaration): If the expression in the
17608 declaration of a tagged type is an aggregate, no need to generate an
17609 additional tag assignment.
17610 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
17612 Bit packed array ops are only called if operands are known to be
17614 (Component_Equality): When returning an N_Raise_Program_Error statement,
17615 ensure that its Etype is set to Empty to avoid confusing GIGI (which
17616 expects that only expressions have a bona fide type).
17617 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
17618 determine the amount of data to be copied.
17620 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
17621 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
17622 INTERFACE_TYPE_DEFINITION ::=
17623 [limited | task | protected | synchronized] interface
17624 [AND interface_list]
17626 * par-ch3.adb (P_Type_Declaration): Modified to give support to
17628 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
17630 (P_Interface_Type_Definition): New subprogram that parses the new
17631 syntax rule of Ada 2005 interfaces
17632 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
17633 messages by the correct RENAMES (quotes removed).
17635 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
17636 attribute First_Tag_Component.
17638 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
17639 (Interface_List, Set_Interface_List): New subprograms.
17640 (Interface_Present, Set_Interface_Present): New subprograms.
17641 (Limited_Present, Set_Limited_Present): Available also in derived
17642 type definition nodes.
17643 (Protected_Present, Set_Protected_Present): Available also in
17644 record type definition and
17645 derived type definition nodes.
17646 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
17647 (Task_Present, Set_Task_Present): New subprogram.
17648 (Task_Body_Procedure): Removed.
17649 (Set_Task_Body_Procedure): Removed.
17650 These subprogram have been removed because the attribute
17651 Task_Body_Procedure has been moved to the corresponding task type
17652 or task subtype entity to leave a field free to store the list
17653 of interfaces implemented by a task (for AI-345)
17654 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
17655 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
17656 expression flag Do_Range_Check
17657 (Exception_Junk): Change to Flag7 to accomodate above change
17658 (Box_Present, Default_Name, Specification, Set_Box_Present,
17659 Set_Default_Name, Set_Specification): Expand the expression
17660 "X in N_Formal_Subprogram_Declaration" into the corresponding
17661 two comparisons. Required to use the csinfo tool.
17663 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
17664 "with string" given.
17666 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
17669 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
17672 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
17673 attribute Task_Body_Procedure rather than the old semantic field that
17674 was available in the task_type_declaration node.
17676 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
17677 interface type definitions.
17678 (P_Formal_Derived_Type_Definition): Modified to handle the list of
17681 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
17682 task type declaration.
17683 (P_Protected): Modified to handle the list of interfaces in a
17684 protected type declaration.
17686 2005-03-15 Doug Rupp <rupp@adacore.com>
17687 Vincent Celier <celier@adacore.com>
17689 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
17690 (Gen_Output_File_C): Likewise.
17691 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
17693 2005-03-15 Thomas Quinot <quinot@adacore.com>
17695 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
17696 is an N_Raise_Constraint_Error node, create a new copy of it without
17697 going through a call to Duplicate_Subexpr.
17699 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
17700 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17701 Nicolas Setton <setton@adacore.com>
17702 Ed Schonberg <schonberg@adacore.com>
17708 * decl.c (gnat_to_gnu_field): Reject aliased components with a
17709 representation clause that prescribes a size not equal to the rounded
17710 size of their types.
17711 (gnat_to_gnu_entity, case E_Component): Always look at
17712 Original_Record_Component if Present and not the entity.
17713 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
17714 of tagged extension types by not making field for components that are
17716 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
17717 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
17718 expression to the type of the object when the object is constant.
17719 Reverse defer_debug_incomplete_list before traversing it, so that trees
17720 are processed in the order at which they were added to the list. This
17721 order is important when using the stabs debug format.
17722 If we are deferring the output of debug information, also defer this
17723 output for a function return type.
17724 When adding fields to a record, prevent emitting debug information
17725 for incomplete records, emit the information only when the record is
17727 (components_to_record): New parameter defer_debug.
17728 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
17729 (gnat_to_gnu_field_decl): New function.
17730 (substitution_list, annotate_rep): Call it.
17731 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
17732 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
17733 No longer update discriminants to not be a COMPONENT_REF.
17734 (copy_alias_set): Strip padding from input type; also handle
17735 unconstrained arrays properly.
17737 * gigi.h (write_record_type_debug_info): New function.
17738 Convert to use ANSI-style prototypes. Remove unused
17739 declarations for emit_stack_check, elab_all_gnat and
17740 set_second_error_entity.
17741 (gnat_to_gnu_field_decl): New decl.
17743 * utils.c (write_record_type_debug_info): New function.
17744 (finish_record_type): Delegate generation of debug information to
17745 write_record_type_debug_info.
17746 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
17747 (update_pointer_to): Fix pasto.
17748 (convert) <UNION_TYPE>: Accept slight type variations when
17749 converting to an unchecked union type.
17751 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
17752 replace the N_Freeze_Entity with a null statement.
17754 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
17755 within a constrained subcomponent of an enclosing record, place the
17756 freeze nodes in the scope stack entry for the enclosing record.
17757 (Undelay_Type): New Subprogram.
17758 (Set_Small_Size): Pass T, the type to modify; all callers changed.
17759 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
17760 within records; allow them to have freeze nodes if their base types
17763 * exp_util.adb (Remove_Side_Effects): Properly test for
17764 Expansion_Delayed and handle case when it's inside an
17765 N_Qualified_Expression.
17767 * sem_ch3.adb (Derived_Type_Declaration): New predicate
17768 Comes_From_Generic, to recognize accurately that the parent type in a
17769 derived type declaration can be traced back to a formal type, because
17770 it is one or is derived from one, or because its completion is derived
17772 (Constrain_Component_Type): If component comes from source and has no
17773 explicit constraint, no need to constrain in in a subtype of the
17775 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
17776 Minor change to propagate Is_Ada_2005 flag
17778 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
17779 Expansion_Delayed is False.
17780 (assoc_to_constructor): Ignore fields that have a
17781 Corresponding_Discriminant.
17782 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
17783 function returns "by target", dereference the target pointer using the
17784 type of the actual return value.
17785 <all>: Be prepared for a null gnu_result.
17786 (processed_inline_subprograms): Check flag_really_no_inline
17787 instead of flag_no_inline.
17788 (set_second_error_entity): Remove unused function.
17789 (gnat_to_gnu, case N_Selected_Component): Call
17790 gnat_to_gnu_field_decl.
17791 (assoc_to_constructor): Likewise.
17793 2005-03-15 Robert Dewar <dewar@adacore.com>
17794 Ed Schonberg <schonberg@adacore.com>
17795 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17797 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
17798 Must_Be_Byte_Aligned for cases where we do not need to use a
17799 System.Pack_nn unit.
17801 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
17803 Needed now that we do some processing for IN parameters as well. This
17804 may well fix some unrelated errors.
17805 (Expand_Call): Handle case of unaligned objects (in particular those
17806 that come from packed arrays).
17807 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
17808 renamed entity is an inherited operation, re-expand the call using the
17809 original operation, which is the one to call.
17810 Detect attempt to inline parameterless recursive subprogram.
17811 (Represented_As_Scalar): Fix to work properly with private types
17812 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
17813 accurate estimate. Yields True in far fewer cases than before,
17814 improving the quality of code that depends on this test.
17816 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
17817 over both visible and private declarations to remove them from tree,
17818 and mark subprograms declared in package as eliminated, to prevent
17819 spurious use in subsequent compilation of generic units in the context.
17821 * exp_util.ads: Minor cleanup in variable names
17823 * sem_eval.ads, sem_eval.adb: Minor reformatting
17824 (Compile_Time_Known_Bounds): New function
17826 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17828 * exp_ch7.adb (Convert_View): Use base types of underlying types when
17829 determining whether an unchecked conversion is needed for the argument
17830 of an initialization call.
17832 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17834 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
17835 that appears in the instantiation rather than the internal subtype
17836 generated in the wrapper package, to avoid anomalies in gigi when the
17837 target is derived from a private type whose full view is an access type.
17839 2005-03-15 Robert Dewar <dewar@adacore.com>
17841 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
17843 Add documentation to replace the use of this flag
17844 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
17847 2005-03-15 Thomas Quinot <quinot@adacore.com>
17849 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
17850 here from exp_attr so it can be shared between exp_attr and exp_dist.
17851 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
17852 all TSS names, not a subset thereof, and the previous name introduced
17853 an unnecessarily confusion that a distinction might exist between
17854 "OK" TSS names and some "not OK" TSS names.
17856 2005-03-15 Doug Rupp <rupp@adacore.com>
17858 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
17861 2005-03-15 Pascal Obry <obry@adacore.com>
17862 Eric Botcazou <ebotcazou@adacore.com>
17866 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
17867 when IN_RTS. This is to work around a bootstrap path problem.
17869 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
17870 table and pass it to __gnat_install_SEH_handler().
17871 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
17873 * lang.opt: Fix specification of -fRTS=.
17875 2005-03-15 Doug Rupp <rupp@adacore.com>
17876 Bernard Banner <banner@adacore.com>
17877 Vincent Celier <celier@adacore.com>
17878 Arnaud Charlet <charlet@adacore.com>
17881 This change works fine when gnatlib is built from the gcc directory,
17882 but does not work when using the libada Makefile, since GCC_FOR_TARGET
17883 is not passed to ada/Makefile.in, so more work is needed by a
17884 Makefile/configure expert.
17886 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
17887 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
17888 Setup gnatlink switch -M for x86_64 linux, as it is already setup
17890 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
17891 Run ranlib on libgccprefix.a
17892 Define PREFIX_OBJS for Darwin, to build libgccprefix.
17893 (ADA_INCLUDE_SRCS): Split Ada packages.
17895 2005-03-15 Robert Dewar <dewar@adacore.com>
17897 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
17899 * impunit.adb: Add GNAT.UTF_32
17901 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
17903 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
17904 now uses GNAT.UTF_32).
17906 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
17907 capabilities for categorizing characters using Unicode categories
17909 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17911 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
17912 instantiation that has been rewritten as a package body, retrieve spec
17913 to generate proper name for implicit_with_clause.
17914 (Install_Parents): Recognize a parent that is an instantiation but has
17915 been rewritten as a package declaration during analysis.
17917 2005-03-15 Javier Miranda <miranda@adacore.com>
17918 Ed Schonberg <schonberg@adacore.com>
17920 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
17921 parameter reported some error we immediately return. This improves the
17922 behaviour of the frontend in case of errors.
17923 (Install_Parent, Remove_Parent): Introduce new flag
17924 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
17925 ancestor of a generic child unit, when the child is being instantiated.
17926 (Inline_Instance_Body): If we are compiling the private
17927 part or the body of a child unit, restore the proper visibility of the
17928 parents after compiling the instance body.
17930 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17931 Javier Miranda <miranda@adacore.com>
17934 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
17935 of a private type, in which case it is underlying_type that denotes
17936 the proper task. Also modified to use the new entity attribute
17937 that is directly available in the task type and task subtype entities
17938 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
17939 arrays when other dimensions than the first are constrained by
17940 discriminants of an enclosing record.
17941 (Insert_Explicit_Dereference): If the prefix is an indexed component or
17942 a combination of indexed and selected components, find ultimate entity
17943 and generate the appropriate reference for it, to suppress spurious
17945 (Note_Possible_Modification): If an entity name has no entity, return.
17946 (Is_Variable): A function call never denotes a variable.
17947 (Requires_Transient_Scope): For record types, recurse only on
17948 components, not on internal subtypes that may have been generated for
17949 constrained components.
17951 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17953 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
17954 Eliminated as candidates for resolution. Both efficient, and avoids
17955 anomalies with operators declared in deleted code.
17956 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
17957 expansion is disabled (as when compiling a generic) to prevent spurious
17958 warnings on prefixes of selected components.
17960 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17962 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
17963 attached to a list before checking whether it appears in the private
17964 declarations of the current package.
17965 (Make_Inequality_Operator): Insert declaration in proper declarative
17966 list rather than just setting the Parent field, so that
17967 Is_Private_Declaration can handle it properly.
17969 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17971 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
17972 a renaming a body, check that the renamed subprogram in not intrinsic.
17973 (Find_Direct_Name): If several use_visible entities hide
17974 each other, and the context is a predefined file compiled through
17975 rtsfind, keep only the entity that comes from a predefined file.
17977 2005-03-15 Geert Bosch <bosch@adacore.com>
17979 * s-fatgen.adb (Valid): Extend special exceptions to account for long
17980 long float padding to also cover AMD64 and IA64.
17982 2005-03-15 Gary Dismukes <dismukes@adacore.com>
17984 * s-imgwch.adb: Add with and use of Interfaces.
17985 (Img_Wide_Character): Change type of Val to Unsigned_16.
17986 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
17988 2005-03-15 Matthew Gingell <gingell@adacore.com>
17990 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
17992 2005-03-15 Robert Dewar <dewar@adacore.com>
17994 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
17996 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
17998 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
18000 2005-03-15 Robert Dewar <dewar@adacore.com>
18002 * s-bitops.adb, s-bitops.ads,
18003 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
18004 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
18005 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
18006 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
18007 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
18008 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
18009 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
18010 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
18013 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
18015 * utils2.c (build_binary_op): Fix typo.
18017 2005-03-15 Doug Rupp <rupp@adacore.com>
18019 * s-crtl.ads (popen,pclose): New imports.
18021 2005-03-15 Cyrille Comar <comar@adacore.com>
18023 * comperr.adb (Compiler_Abort): remove references to obsolete
18024 procedures in the bug boxes for various GNAT builds.
18026 2005-03-15 Vincent Celier <celier@adacore.com>
18028 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
18030 2005-03-15 Geert Bosch <bosch@adacore.com>
18031 Arnaud Charlet <charlet@adacore.com>
18032 Robert Dewar <dewar@adacore.com>
18033 Cyrille Comar <comar@adacore.com>
18034 Sergey Rybin <rybin@adacore.com>
18036 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
18037 too specific and long-winded to be appropriate for the GNAT User's
18039 Warn about use of GCC switches not documented in the GNAT User's Guide,
18040 as these may cause generated code to not conform to Ada semantics.
18041 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
18042 Add documentation for -gnat95 and -gnat05 switches
18043 Remove paragraph documenting obsolete way to refer to third party
18045 Add a few references to Ada_05 that were missing.
18046 Update documentation on -gnatZ/-gnatL.
18047 Document limitation when using -m64 under Solaris.
18048 Change the "Name Casing" subsection of the pretty-printer section
18049 according to the changes in the dictionary processing.
18051 * gnat_rm.texi: Document the Ada_05 pragma.
18052 Section on record representation clauses describes the new more
18053 relaxed rules about placement of large packed bit array components.
18054 Add documentation of GNAT.UTF_32
18056 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
18058 * misc.c (gnat_post_options): Turn off structural
18061 2005-03-08 Laurent Guerby <laurent@guerby.net>
18063 * system-linux-sparc.ads: Fix typo in previous commit.
18065 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
18066 Laurent Guerby <laurent@guerby.net>
18069 * system-linux-sparc.ads: New.
18070 * Makefile.in: Add sparc linux entry.
18072 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
18074 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
18075 parameters as unused.
18077 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
18078 Partial merge from libada-gnattools-branch:
18080 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
18081 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
18082 into code in gnattools/Makefile.in. Remove direct dependencies on
18083 stamp-tools by tools clauses.
18084 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
18085 * config-lang.in: Add gnattools to $lang_dirs.
18087 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
18090 * utils.c (gnat_type_for_mode): Return null instead of ICE because
18091 we asked for an unknown mode.
18093 2005-02-12 Richard Henderson <rth@redhat.com>
18095 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
18096 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
18098 2005-02-10 Andreas Jaeger <aj@suse.de>
18100 * init.c (__gnat_initialize): Mark parameter as unused.
18102 2005-02-09 Doug Rupp <rupp@adacore.com>
18104 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
18105 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
18107 2005-02-09 Doug Rupp <rupp@adacore.com>
18109 * gnatchop.adb (dup, dup2),
18110 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
18112 * gnatlbr.adb (mkdir),
18113 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
18115 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
18117 2005-02-09 Doug Rupp <rupp@adacore.com>
18119 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
18121 2005-02-09 Robert Dewar <dewar@adacore.com>
18122 Thomas Quinot <quinot@adacore.com>
18123 Javier Miranda <miranda@adacore.com>
18124 Pascal Obry <obry@adacore.com>
18125 Ed Schonberg <schonberg@adacore.com>
18126 Doug Rupp <rupp@adacore.com>
18127 Gary Dismukes <dismukes@adacore.com>
18128 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18130 * g-zstspl.ads: New file.
18132 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
18134 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
18136 Add definition of Wide_Wide_Space for AI-285
18138 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
18139 interface (to support Ada 95 and Ada 2005 units).
18140 Add Unbounded_IO files
18141 Add entries for Wide_Wide packages for AI-285
18142 Add list of containers packages to Ada 2005 unit list
18144 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
18145 support new Unbounded_IO package cleanly.
18147 * g-utf_32.ads, g-utf_32.adb: New files.
18149 * Makefile.rtl: Add entry for g-utf_32
18150 Add new files for Unbounded_IO
18151 Adjust make file for new AI-285 wide wide packages
18152 Add AI-302 containers to the run time.
18154 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
18155 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
18156 subprograms for AI-301.
18158 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
18160 * a-stunau.ads: Minor comment correction
18162 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
18164 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
18165 (Check_RPC): Update to match changes in expanded code.
18166 Clean up unused entity.
18168 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
18169 was not taken into account.
18170 This includes proper initialization with Normalize_Scalars.
18171 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
18172 normalize scalars cases (particularly the latter) to do a better job
18173 of finding invalid representations.
18175 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
18177 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
18180 * exp_dist.adb: Add support for wide wide character type
18181 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
18182 private part, generate stub bodies at the end of the private part,
18183 not the visible part.
18184 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
18186 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
18187 generic wrapper to execute final processing after completing the
18188 expansion of the RPC receiver for an RACW.
18190 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
18191 packages and attributes.
18192 (Preset_Names): Addition of the new reserved words of Ada 2005,
18193 that is interface, overriding and synchronized.
18194 (Get_Pragma_Id): Give support to the use of the new reserved word
18195 "interface" as a pragma name.
18196 (Is_Pragma_Name): Give support to the use of the new reserved word
18197 "interface" as a pragma name.
18198 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
18199 attribute implementation.
18201 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
18202 checks to entities that are output parameters of Asm operations.
18203 Handle the Stream_Size attribute.
18204 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
18206 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
18208 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
18209 for second parameter being 0.0.
18210 Add support for wide wide character type.
18211 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
18213 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
18214 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
18215 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
18216 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
18217 for wide wide character cases.
18219 * cstand.adb: Create entities for Wide_Wide_Character and
18222 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
18223 accordance with AI-258.
18224 Add new declarations for 16/32 bit C character types (Part of AI285)
18226 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
18227 (Obsolescent_Warning): New field
18228 (Rep_Clause): New local subprogram used to share code. Returns the rep
18229 clause for which the name is given in parameter.
18230 (Has_Stream_Size_Clause): New routine.
18231 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
18232 (Address_Clause): Implementation is now using Rep_Clause.
18233 (Alignment_Clause): Idem.
18234 (Size_Clause): Idem.
18236 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
18237 entity in non-Ada 2005 mode and generate warning.
18239 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
18240 (Prag): Code cleanup. Remove old gnat pragma "overriding"
18242 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
18243 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
18244 on the named unit if the pragma is not in the current compilation unit,
18245 so that elaboration calls in the current unit can set up an elaboration
18246 dependency on the named unit, as needed.
18247 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
18248 subprogram as well as for subprograms declared within a package.
18249 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
18252 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
18253 to z) to avoid some instances of duplication for Wide_Wide packages.
18255 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
18258 * scn.adb: Char_Literal_Value field is now a Uint
18260 * scng.adb: Significant rewrite to handle new Ada 2005 features
18261 allowing wide and wide wide characters in program text, e.g. for
18262 identifiers, as described in AI-285.
18263 (Set_Reserved): New procedure, makes setting up keywords cleaner.
18264 (Initialize_Scanner): Register the new reserved words of Ada 2005.
18265 (Scan): Give support to the new reserved words.
18267 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
18268 warning notifying that interface, overriding, and synchronized are
18269 new reserved words.
18270 (P_Pragma): Allow the use of the new reserved word "interface" as
18273 * gnatls.adb, gnatbind.adb,
18274 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
18275 identifiers named "interface" to "SAL_Interface".
18277 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
18278 (Structured Exception handling).
18279 (Gen_Main_C): Idem.
18282 (Gen_Main_Ada): Set the default exit code if specified.
18283 (Gen_Main_C): Likewise.
18285 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
18286 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
18288 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
18291 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
18292 has a collision with the new Ada 2005 "interface" reserved word.
18294 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
18295 generate a warning notifying that interface, overriding, and
18296 synchronized are new reserved words.
18298 * scans.ads (Token_Type): Addition of the tokens corresponding to the
18299 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
18300 and Tok_Synchronized.
18302 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
18303 "dispatching" rather than "primitive" operations, since dispatching
18304 calls are now allowed to abstract formal subprograms (which are not
18306 Char_Literal_Value field is now a Uint
18307 (Resolve_Slice): If the prefix is an access to an unconstrained array,
18308 compute the actual subtype of the designated object to impose the proper
18310 (Resolve_Selected_Component): Do not insert an access check if the
18311 prefix is an access type: such a node is expanded into an explicit
18312 dereference, on which the access check is performed anyway. Removes
18313 expensive duplicate checks.
18314 (Resolve_Call): Use new flag Is_Obsolescent and field
18315 Obsolescent_Warning so that pragma Obsolescent works on library
18317 Add support for wide wide character type
18318 (Resolve_Allocator): Replace the error message on wrong null-exclusion
18319 value by a warning message.
18320 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
18321 as fixed-point, and one of the operands is non-static and universal, it
18322 can only be an illegal exponentiation operation, in which case there is
18323 no real value to retrieve.
18325 * exp_strm.adb: Add support for wide wide character type
18326 (Build_Elementary_Input_Call): Compute the size of the stream element by
18327 querying the rep chain to find the Stream_Attribute attribute value.
18328 (Build_Elementary_Write_Call): Ditto.
18330 * sem_aggr.adb: Char_Literal_Value field is now a Uint
18331 Add support for wide wide character type
18332 Replace the error messages on wrong null-exclusion value by warnings
18333 as described in Ada 2005.
18334 (Resolve_Extension_Aggregate): Document the fact that the error
18335 message on class-wide expressions in extensions aggregates.
18337 * sem_case.adb: Add support for wide wide character type
18339 * sem_ch13.adb: Add support for wide wide character type
18340 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
18342 * sem_ch3.adb: Add support for wide wide character type
18343 (Process_Subtype): If constraint is illegal for the type, set Ekind of
18344 now-useless Itype, to prevent cascaded errors on a compiler built
18347 * sem_ch8.adb: Add with and use of Sem_Disp.
18348 (Analyze_Subprogram_Renaming): Replace unclean uses of
18349 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
18350 of Corresponding_Spec to Empty).
18351 (Attribute_Renaming): Replace use of Corresponding_Spec with
18352 Corresponding_ Formal_Spec and simplify condition.
18353 (Use_One_Package): Check that scope of homonym of identifier is defined,
18354 before checking whether it is a wrapper package.
18355 Add support for wide wide character type
18357 * sem_eval.adb: Add support for wide wide character type.
18358 (Eval_Arithmetic_Op): Check for compile time known signed integer
18359 overflow in the non-static case.
18360 (Subtypes_Statically_Match): A formal scalar type and its base type do
18361 not statically match.
18363 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
18364 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
18366 (Unit_Declaration_Node): Ditto.
18367 (Is_Variable_Prefix): For the case of an indexed component whose prefix
18368 has a packed array type, the prefix has been rewritten into a type
18369 conversion. Determine variable-ness from the converted expression.
18370 Handle wide wide character cases.
18372 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
18374 * stringt.ads, stringt.adb: Handle full UTF-32 range.
18375 Remove ["0A"] from comment, since it can look like a line terminator.
18376 Currently we don't permit this, but this is under discussion by the
18377 ARG, and it is easy enough to use a different example.
18379 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
18380 handling UTF-32 encoding for wide wide character.
18381 Implement new brackets coding ["hhhhhhhh"]
18382 Add UTF-8 encodings for full UTF-32 range
18384 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
18386 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
18387 bit range Add full UTF-32 support.
18388 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
18389 notify that constraint error will be raised at run-time
18390 because a null value is assigned to a null-excluding object.
18391 Remove some obsolete declarations and make Char_Code
18394 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
18395 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
18396 Rcheck subprograms.
18398 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
18399 wrong null-exclusion value by a warning message.
18400 (Enable_Range_Check): Do range check if the prefix is an
18401 explicit dereference whose designated object is an unconstrained array.
18402 Current algorithm for removing duplicate checks is over-eager in this
18405 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
18406 null-exclusion value by a warning message
18408 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
18409 completely. Add support for Uint2 field
18411 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
18412 exp_prag.adb: Char_Literal_Value field is now a Uint.
18414 * exp_util.adb (Insert_Actions): Replace
18415 N_Formal_Subprogram_Declaration by
18416 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
18417 Char_Literal_Value field is now a Uint.
18419 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
18420 defined for subprogram renaming declarations. When set, the field
18421 indicates the defining entity of a corresponding formal subprogram
18422 when the renaming corresponds to a formal subprogram association in an
18424 (Set_Corresponding_Formal_Spec): New procedure to return
18425 Corresponding_Formal_Spec field.
18426 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
18427 (which is now a subtype).
18428 Char_Literal_Value field is now a Uint
18430 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
18431 pointer to the base of the dispatch table.
18432 Minor changes to comments.
18433 (Controlling_Type): New function for determining the tagged type
18434 associated with a tagged primitive subprogram.
18435 (Expand_Dispatching_Call): Add support for a controlling actual that is
18436 directly a value of type Ada.Tag rather than a tagged object.
18438 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
18439 describing the new layout.
18440 (Dispatch_Table): The expander computes the actual array size, allocates
18441 the Dispatch_Table record accordingly, and generates code that displaces
18442 the base of the record after the Typeinfo_Ptr component. The access to
18443 these components is done by means of local functions.
18444 (Offset_To_Top): New function.
18445 (Typeinfo_Ptr): New function.
18446 (Get_TSD): Modified to access the new position of the TSD.
18447 (Set_TSD): Modified to save the TSD in its new position.
18449 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
18450 case of formal abstract subprograms. Add check and message for -gnat05.
18453 * sem_ch12.adb: Add with and use for Sem_Disp.
18454 (Analyze_Associations): Minor change from "=" to "in" for use of
18455 N_Formal_Subtype_Declaration (which is now a subtype).
18456 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
18457 N_Formal_Subtype_Declaration (which is now a subtype).
18458 (Analyze_Formal_Subprogram): Add handling for
18459 N_Formal_Abstract_Subprogram, marking the formal as abstract and
18460 dispatching, setting the controlling status of the formal parameters
18461 and result, and issuing an error if there is no controlling type for
18462 the formal subprogram.
18463 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
18464 which is an unclean use of that field, we set the new field
18465 Corresponding_Formal_Spec to make the formal subprogram available to
18466 processing in Analyze_Subprogram_Declaration.
18467 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
18468 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
18469 Constrained, so that it is is does not statically match its anonymous
18472 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
18473 abstract formal subprograms in error check for functions returning
18474 abstract types. Set scope of new designator for
18475 a parameterless subprogram, so that it is available when checking the
18476 body for nested subprograms, before full analysis of said body.
18477 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
18478 subprogram only if inner one comes from source.
18479 (Analyze_Function_Call): If the call is given in object notation, the
18480 analysis of the name rewrites the node and analyzes it with the proper
18481 argument list. After analyzing the name, if the call has been rewritten
18482 and the result type is set, no further analysis is needed.
18483 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
18484 mark in function specification, in a context where the formals are
18485 visible and hide outer homographs.
18487 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
18488 as the tagged type for the cases of abstract formal subprograms and
18489 renamings of those. Clean up spec comments.
18490 (Check_Dispatching_Context): Add error message to indicate "abstract
18491 procedure", covering the case of a call to a formal abstract procedure
18492 that has statically tagged operands.
18493 (Check_Dispatching_Call): Check for the case of an actual given by
18494 a tag-indeterminate function call whose type is an ancestor of the
18495 containing call's associated tagged type. This situation can occur
18496 for inherited primitives with function defaults. In this case we
18497 use the tagged type's tag directly as the controlling argument for
18499 (Expand_Call): Name change on call to Expand_Dispatch_Call.
18501 * sprint.adb (Sprint_Node_Actual): Split
18502 N_Formal_Subprogram_Declaration into two alternatives for the new
18503 cases N_Formal_Abstract_Subprogram_Declaration and
18504 N_Formal_Concrete_Subprogram_Declaration.
18505 Char_Literal_Value field is now a Uint.
18507 * trans.c: Get rid of junk Uint2 reference.
18508 Char_Literal_Value field is now a Uint.
18509 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
18510 (gigi): Correct third arg to gimplify_body.
18512 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
18513 (TYPE_LANG_FLAG_0): Check for record or union.
18515 * treepr.adb: Char_Literal_Value field is now a Uint
18517 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
18520 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
18521 Add full UTF-32 support
18522 Char_Code is now 32 bits
18524 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
18525 wide character UTF_32 line terminators.
18526 Initialize Main_Source_File to avoid error when no main
18529 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
18530 (Main_Source_File) when no main source has been loaded, to avoid
18533 2005-02-09 Robert Dewar <dewar@adacore.com>
18535 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
18536 Fix name of Set routine
18538 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
18541 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
18542 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
18545 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
18546 forms of Get_Line subprograms for AI-301.
18548 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
18549 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
18550 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
18551 a-stwima.ads: Minor reformatting.
18553 2005-02-09 Doug Rupp <rupp@adacore.com>
18554 Thomas Quinot <quinot@adacore.com>
18556 * adaint.c, adaint.h
18557 [VMS] (to_ptr32): New function.
18558 (MAYBE_TO_PTR32): New macro.
18559 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
18561 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
18562 [VMS] (#define fork()): Remove since unneccessary.
18563 (__gnat_set_close_on_exec): New routine to support
18564 GNAT.OS_Lib.Set_Close_On_Exec.
18566 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
18567 the parent side as close-on-exec so that they are not inherited by the
18570 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
18571 set or clear the FD_CLOEXEC flag on a file descriptor.
18573 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
18574 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18578 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
18579 on the field if Pragma Component_Alignment (Storage_Unit).
18580 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
18581 side-effects as if it were a constant; also make SAVE_EXPR to protect
18583 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
18585 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
18586 (components_to_record): Test it.
18587 Fix improper usage of REFERENCE_CLASS_P.
18589 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
18592 * utils2.c: Minor reformatting.
18594 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
18595 handle other cases like RECORD_TYPE.
18597 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
18599 2005-02-09 Ed Schonberg <schonberg@adacore.com>
18601 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
18602 component of an array of arrays in an assignment context, and the
18603 aggregate has component associations that require sliding on
18604 assignment, force reanalysis of the aggregate to generate a temporary
18605 before the assignment.
18606 (Must_Slide): Make global to the package, for use in Gen_Assign.
18608 2005-02-09 Ed Schonberg <schonberg@adacore.com>
18610 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
18611 unchecked union with no inferable discriminants, return a
18612 Raise_Program_Error node, rather than inserting it at the point the
18614 (Expand_Record_Equality, Component_Equality): Handle properly the case
18615 where some subcomponent is an unchecked union whose generated equality
18616 code raises program error.
18618 2005-02-09 Doug Rupp <rupp@adacore.com>
18620 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
18621 [VMS] (#define exit hack): Remove.
18623 2005-02-09 Pascal Obry <obry@adacore.com>
18624 Arnaud Charlet <charlet@adacore.com>
18626 * init.c (__gnat_initialize): Add a new parameter eh which contains the
18627 address of the exception registration. The Win32 version of this
18628 routine calls __gnat_install_SEH_handler() to initialize the SEH
18629 (Structured Exception Handling) handler.
18630 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
18631 SEH (Structured Exception Handling) now.
18632 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
18633 (__gnat_initialize for ppc-vxworks): Adjust comments and the
18634 preprocessor condition protecting the call to the extra eh setup
18635 subprogram, which is only available for the ppc target.
18636 (__gnat_clear_exception_count): replaced reference to
18637 variable taskIdCurrent by call to taskIdSelf(), cleaner.
18639 * seh_init.c: New file.
18641 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
18642 (GNATBIND_OBJS): Idem.
18644 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
18645 routine takes a new parameter (a pointer to the exception registration
18646 for the SEH (Structured Exception Handling) support.
18648 * raise.h: (__gnat_install_SEH_handler): New prototype.
18649 Update copyright notice.
18651 * s-tassta.adb (Task_Wrapper): Declare the exception registration
18652 record and initialize it by calling __gnat_install_SEH_handler.
18654 2005-02-09 Vincent Celier <celier@adacore.com>
18656 * make.adb (Gnatmake): Do not fail when the main project has no object
18659 2005-02-09 Doug Rupp <rupp@adacore.com>
18661 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
18662 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
18663 [VMS]: Add translations for g-enblsp.adb.
18665 * s-asthan-vms.adb: Removed.
18666 * s-asthan-vms-alpha.adb: Added.
18668 2005-02-09 Pascal Obry <obry@adacore.com>
18670 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
18671 (LIBGNAT_OBJS): Add seh_init.o.
18673 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18676 * Makefile.in: Link all gnat tools with -static-libgcc, since
18677 -shared-libgcc is now used by default on some systems (e.g. linux with
18679 Remove references to Makefile.prolog/generic, no longer used.
18681 2005-02-09 Vincent Celier <celier@adacore.com>
18683 * prj-makr.adb (Process_Directory): Put file name in canonical case
18684 before matching against the patterns.
18685 If gnatname has been invoked as <prefix>-gnatname
18686 then invoke the compiler as <prefix>-gcc, not just "gcc".
18688 2005-02-09 Ed Schonberg <schonberg@adacore.com>
18690 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
18691 with expansion disabled. The actual subtype is needed among other
18692 places when the selected component appears in the context of a loop
18693 bound, and denotes a packed array.
18694 (Operator_Check): Always use the first subtype in the
18695 error message, to avoid the appearance of internal base types.
18696 (Transform_Object_Operation): Copy each actual in full
18697 to the parameter associations of the constructed call, rather than
18698 using the shallow copy mechanism of New_Copy_List. This ensures that
18699 the chaining of named associations is done properly.
18700 (Complete_Object_Operation): Rewrite node, rather than
18701 replacing it, so that we can trace back to the original selected
18704 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
18705 and calls that use object notation, if the called function is not
18706 declared in a withed unit, place the elaboration constraint on the
18707 unit in the context that makes the function accessible.
18708 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
18709 imposes an elaboration constraint between two packages.
18711 2005-02-09 Ed Schonberg <schonberg@adacore.com>
18713 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
18714 views of a private type after handling its private dependents, to
18715 maintain proper stack discipline between entry and exit from the
18718 2005-02-09 Cyrille Comar <comar@adacore.com>
18720 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
18721 Minor reformatting.
18723 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18725 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
18726 fields for foreign threads.
18728 2005-02-09 Doug Rupp <rupp@adacore.com>
18730 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
18731 recursion warnings when compiled with -gnatdm.
18733 2005-02-09 Robert Dewar <dewar@adacore.com>
18735 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
18736 Slight fix to documentation of -gnaty with no parameters
18738 * xr_tabls.ads: Add ??? comment for missing overall comment
18740 * xsinfo.adb: Make default file name be sinfo.h, since this is what
18741 we now use by default.
18743 * xsnames.adb: Adjust end of file test to look for five space followed
18744 by '#' instead of six spaces. The format of xsnames.adb was modified
18745 in the last update.
18747 * a-numeri.ads: Add reference to AI-388 for greek letter pi
18750 * clean.adb: Minor reformatting.
18752 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
18753 gnatname.adb: Minor reformatting
18754 Add 2005 to copyright output when utility is run
18756 * csets.adb: Eliminate obsolete comment
18758 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
18761 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
18763 2005-02-09 Sergey Rybin <rybin@adacore.com>
18765 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
18766 the difference between compact and incompact layout and add the record
18767 representation clause to the example illustrating different layouts.
18768 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
18769 component clauses").
18771 2005-02-09 Florian Villoing <villoing@adacore.com>
18773 * gnat_ugn.texi: Fix typos.
18774 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
18776 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
18777 in the generated documentation.
18779 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18781 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
18783 Update linker wrapper when linking with non GNU C++.
18785 2005-02-09 Pascal Obry <obry@adacore.com>
18788 Document the procedure to debug the DllMain routine on Windows.
18789 Add note about -funwind-tables and mixed Ada and C/C++ programming in
18791 Document new BIND qualifer /RETURN_CODES=VMS.
18793 2005-02-09 Ben Brosgol <brosgol@adacore.com>
18795 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
18796 Edited gnatmetric chapter
18798 2005-02-09 Robert Dewar <dewar@adacore.com>
18801 Changes to document new wide wide character support
18803 Update documentation on Normalize_Scalars and Initialize_Scalars
18805 2005-02-09 Pascal Obry <obry@adacore.com>
18807 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
18809 2005-02-09 Jose Ruiz <ruiz@adacore.com>
18811 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
18812 from the VxWorks kernel) that is needed for getting the active
18813 priority of the different tasks.
18815 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
18816 Use a pragma Elaborate_Body in the spec file instead.
18817 Noticed by code reading.
18819 2005-02-09 Thomas Quinot <quinot@adacore.com>
18821 * exp_util.ads: Minor correction in comment.
18823 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18825 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
18826 since this procedure is now too complex to be worth inlining.
18828 2005-02-09 Richard Henderson <rth@redhat.com>
18830 * utils.c (gnat_define_builtin): Remove.
18831 (gnat_install_builtins): Use build_common_builtin_nodes.
18833 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18835 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
18836 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
18837 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
18838 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
18839 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
18840 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
18841 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
18842 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
18843 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
18844 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
18845 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
18846 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
18847 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
18848 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
18849 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
18850 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
18851 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
18852 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
18853 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
18854 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
18855 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
18856 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
18857 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
18858 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
18859 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
18860 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
18861 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
18862 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
18863 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
18864 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
18865 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
18866 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
18867 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
18868 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
18871 2005-01-27 Laurent GUERBY <laurent@guerby.net>
18873 * Makefile.in: Fix a-intnam.ads from previous commit,
18874 add 2005 to copyright.
18875 * a-intman-rtems.ads: Renamed to...
18876 * a-intnam-rtems.ads:
18878 2005-01-27 Laurent GUERBY <laurent@guerby.net>
18880 * Makefile.in: Rename GNAT RTEMS specific files.
18881 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
18882 5rosinte.ads, 5rparame.adb: Replaced by files below.
18883 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
18884 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
18886 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
18887 Laurent GUERBY <laurent@guerby.net>
18890 * 5rosinte.ads: Add No_Key constant.
18891 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
18892 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
18894 2005-01-26 Laurent GUERBY <laurent@guerby.net>
18897 * i-cobol.adb (Valid_Numeric): Handle zero length case.
18899 2005-01-20 Richard Henderson <rth@redhat.com>
18901 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
18902 a-intnam-linux.ads and system-linux-alpha.ads.
18903 * a-intnam-linux-alpha.ads: Remove file.
18904 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
18905 * system-linux-alpha.ads: New file.
18907 2005-01-18 Jakub Jelinek <jakub@redhat.com>
18910 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
18911 set to the new string.
18913 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
18915 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
18918 2005-01-18 Richard Henderson <rth@redhat.com>
18920 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
18921 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
18923 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
18925 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
18927 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
18928 (GCC_ZCX_Support): Likewise.
18930 2005-01-11 Bastian Blank <waldi@debian.org>
18932 * system-linux-s390.ads: Define Preallocated_Stacks.
18933 * system-linux-s390x.ads: Likewise.
18935 2005-01-04 Arnaud Charlet <charlet@adacore.com>
18937 * gnat_ugn.texi: Fix texi errors with null variables.
18939 2005-01-03 Thomas Quinot <quinot@adacore.com>
18941 * gen-soccon.c: New utility program to generate g-soccon.ads
18944 * socket.c, gsocket.h: Split inclusion of system header files into a
18945 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
18947 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
18948 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
18949 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
18950 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
18951 should not be edited by hand anymore, but should be regenerated using
18954 2005-01-03 Robert Dewar <dewar@adacore.com>
18955 Ed Schonberg <schonberg@adacore.com>
18956 Vincent Celier <celier@adacore.com>
18958 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
18959 on/off, since this is an obsolescent feature, for which we now generate
18962 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
18963 warning mode is set and obsolescent usage of this attribute occurs.
18964 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
18965 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
18966 predates, and partly motivates, the adoption of the AI.
18967 Implement new Ada 2005 attribute Mod
18969 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
18972 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
18974 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
18975 pragma restrictions.
18976 New entry for Ada 2005 attribute Mod.
18979 Add recognition of new pragma Restrictions No_Dependence
18980 Recognize restriction No_Obsolescent_Features at parse time
18982 * bcheck.adb: Add circuitry for checking for consistency of
18983 No_Dependence restrictions.
18985 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
18988 * restrict.ads, restrict.adb: Add subprograms to deal with
18989 No_Dependence restrictions.
18991 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
18994 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
18995 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
18997 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
18998 dummy parameter to scng instantiation.
18999 Needed for new restriction No_Obsolescent_Features
19001 * scn.adb: (Obsolescent_Check): New procedure
19002 Needed for new restriction No_Obsolescent_Features
19004 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
19005 specified by AI-285, needed for implementation of AI-388 (adding greek
19006 pi to Ada.Numerics).
19007 Add new generic formal to scng, needed for new restriction
19008 No_Obsolescent_Features.
19010 * s-rident.ads: Add new restriction No_Obsolescent_Features.
19012 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
19013 restrictions lines.
19014 (Scan_ALI): When finding an unexpected character on an R line, raise
19015 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
19016 Ignore_Errors is True, default restrictions are set and scanning of the
19017 ALI file continues with the next line. Also, when Bad_R_Line is raised
19018 and Ignore_Errors is True, skip to the end of le line.
19020 * sem_ch10.adb: Check that explicit with's do not violate
19021 No_Dependence restrictions.
19022 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
19023 illegal context clauses containing child units of instance.
19025 * sem_prag.adb: Processing and checking for new No_Dependence
19027 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
19028 analyze and check the External argument.
19030 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
19032 2005-01-03 Robert Dewar <dewar@adacore.com>
19034 * atree.adb: Add a fifth component to entities
19035 This allows us to add 32 flags and four new fields
19037 * atree.ads: Add a fifth component to entities
19038 This allows us to add 32 flags and four new fields
19040 * einfo.ads, einfo.adb: Document new fields and new flags now available
19041 Add routines for printing new fields
19043 * treepr.adb: Call routines to print out additional fields if present
19045 2005-01-03 Arnaud Charlet <charlet@adacore.com>
19047 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
19048 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
19050 * Makefile.in: Add support to build shared Ada libraries on solaris x86
19051 Remove gpr2make, replaced by gprmake.
19052 Remove references to gnatmem and libaddr2line.
19053 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
19054 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
19055 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
19056 a-numaux-darwin.ads and a-numaux-darwin.adb
19057 Enable mlib-tgt-lynxos.adb on lynxos.
19059 * Make-lang.in: Remove rules for gpr2make.
19060 When generating sdefault.adb, do not call Relocate_Path
19061 on S3 for function Target_Name, as it is not a path.
19062 Remove references to gnatmem and libaddr2line.
19064 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
19067 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
19069 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
19070 address is incompatible with its base type alignment constraints when
19071 this can be decided statically.
19073 2005-01-03 Olivier Hainque <hainque@adacore.com>
19075 * decl.c (compatible_signatures_p): New function. The intended purpose
19076 is to check if two function signatures for a call-site and a callee are
19077 compatible enough for the call to be valid. The underlying purpose is
19078 to check if a call to a mapped builtin is using the right interface.
19079 The current code actually does not check antyhing - this a placeholder
19080 for future refinements.
19081 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
19082 builtin calls for convention Intrinsic.
19084 * gigi.h (builtin_decl_for): Declare (new function).
19086 * utils.c (gnat_install_builtins): Install the target specific builtins.
19087 (builtin_decl_for): New function, provide a dummy body for now.
19089 2005-01-03 Geert Bosch <bosch@adacore.com>
19091 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
19092 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
19093 (Pred): Implement in terms of Succ.
19095 * trans.c (convert_with_check): Reimplement conversion of float to
19098 2005-01-03 Ed Schonberg <schonberg@adacore.com>
19099 Vincent Celier <celier@adacore.com>
19101 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
19102 bounds can be negative, and must be declared Int, not Nat.
19104 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
19105 array is checked after using the index in the array.
19107 * makegpr.adb (Add_Switches): Check if there is a package for the
19108 processor. If there is no package, do not look for switches.
19110 2005-01-03 Ed Schonberg <schonberg@adacore.com>
19112 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
19113 generation of predefined stream operations (specs and bodies) should
19114 proceed. Under various restrictions these subprograms must not be
19117 2005-01-03 Thomas Quinot <quinot@adacore.com>
19120 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
19121 amount of PCS-specific code in RACW stubs generation.
19122 (Copy_Specification): Set Etype on copied formal parameter entities, as
19123 this information is needed for PolyORB stubs generation.
19124 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
19125 variable Dynamic_Async.
19126 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
19127 (Build_RPC_Receiver_Specification): Make generic again, as recent
19128 changes have allowed RPC receivers to have the same profile for both
19129 variants of the PCS.
19130 Reorganise RPC receiver generation to reduce differences between the
19131 structure of GARLIC and PolyORB RPC receivers.
19132 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
19134 Simplify elaboration code for RCI packages.
19136 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
19137 generation to reduce differences between the structure of GARLIC and
19138 PolyORB RPC receivers.
19140 * s-stratt.adb: Fix typo in comment.
19142 2005-01-03 Thomas Quinot <quinot@adacore.com>
19144 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
19145 copied from Make_Init_Call).
19147 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
19148 reads and assignments on a temporary variable declared with appropriate
19151 2005-01-03 Robert Dewar <dewar@adacore.com>
19153 * i-c.adb (To_C): Raise CE if string is null and Append_Null
19155 2005-01-03 Robert Dewar <dewar@adacore.com>
19157 * i-cstrin.adb (Update): Do not append a null in form called with a
19158 String. This avoids unintended behavior.
19160 2005-01-03 Arnaud Charlet <charlet@adacore.com>
19163 * init.c: Fix warnings on Free BSD section.
19165 2005-01-03 Arnaud Charlet <charlet@adacore.com>
19168 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
19171 2005-01-03 Vincent Celier <celier@adacore.com>
19173 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
19174 libraries when Unique_Compile is True (-u switch).
19177 2005-01-03 Robert Dewar <dewar@adacore.com>
19179 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
19180 upper case letter or underscore after W, as allowed by spec.
19182 2005-01-03 Arnaud Charlet <charlet@adacore.com>
19184 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
19185 darwin port by using proper type definitions from header files.
19186 Use SIGTERM instead of SIGABRT for SIGADAABORT.
19188 2005-01-03 Robert Dewar <dewar@adacore.com>
19190 * par.adb: Enhance error message handling for configuration file
19193 2005-01-03 Robert Dewar <dewar@adacore.com>
19195 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
19196 removed during the previous update (test properly for case of dividing
19197 largest negative number by -1, which generates overflow).
19199 2005-01-03 Ed Schonberg <schonberg@adacore.com>
19200 Sergey Rybin <rybin@adacore.com>
19202 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
19203 to use as the defining identifier for a formal package.
19204 (Remove_Parent): If the instance takes place within (an instance of)
19205 a sibling, preserve private declarations of common parent.
19207 2005-01-03 Ed Schonberg <schonberg@adacore.com>
19209 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
19210 to determine whether one of the operands is a fixed-point type for
19211 which a user-defined multiplication or division operation might be
19214 * sem_res.adb (Valid_Conversion): The legality rules for conversions
19215 of access types are symmetric in Ada 2005: either designated type can
19218 2005-01-03 Vincent Celier <celier@adacore.com>
19220 * s-fileio.adb (Temp_File_Record): Change length of string component
19221 Name from L_tmpnam + 1 to max_path_len + 1.
19223 2005-01-03 Arnaud Charlet <charlet@adacore.com>
19225 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
19226 Self_Id.Deferral_Level = 0.
19227 (Do_Pending_Action): Move this function to the spec.
19229 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
19230 Do_Pending_Action explicitely when needed, in case we're using
19231 No_Abort restrictions.
19233 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
19234 deferral level since it will not get changed by the generated code.
19235 Keeping a default value of 1 would prevent some operations (e.g.
19236 select or delay) to proceed successfully.
19238 2005-01-03 Ben Brosgol <brosgol@adacore.com>
19239 Robert Dewar <dewar@adacore.com>
19240 Cyrille Comar <comar@adacore.com>
19242 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
19243 porting guide chapter (vms version).
19244 Revised doc title (removed "for native platforms") and subtitle.
19245 Add discussion on warning flag for obsolescent features. First we
19246 note that it applies to obsolete GNAT features, which was previously
19247 omitted. Second we contrast the behavior with that of the new
19248 Ada 2005 AI-368 restriction No_Obsolescent_Features.
19249 Preliminary rewriting of GNAT & libraries chapter in order to take
19250 into account default project locations & new project manager
19253 2005-01-03 Robert Dewar <dewar@adacore.com>
19255 * cstand.adb (Create_Operators): Clean up format and documentation of
19256 unary and binary operator result tables. No change in code, just
19257 reformatting and addition of comments.
19259 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
19260 sem_ch2.adb: Minor reformatting
19262 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
19263 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
19264 comments for Tree_Read and Tree_Write.
19266 2005-01-03 Pascal Obry <obry@adacore.com>
19268 * exp_attr.ads: Minor reformatting.
19270 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
19272 * comperr.adb (Compiler_Abort): Add specialized message for GAP
19275 2005-01-03 Ed Schonberg <schonberg@adacore.com>
19277 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
19278 whether the ancestor type is private, as may be the case with nested
19281 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
19284 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
19286 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
19288 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
19289 * utils2.c (build_unary_op): Likewise.
19291 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19293 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
19295 2004-12-19 Richard Henderson <rth@redhat.com>
19297 * trans.c (gigi): Update gimplify_body call.
19299 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
19301 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
19303 2004-12-07 Ed Falis <falis@adacore.com>
19305 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
19306 current task being suspended.
19308 * init.c (__gnat_clear_exception): added to reset VxWorks exception
19310 (__gnat_map_signal): removed test for current task being suspended.
19312 2004-12-07 Gary Dismukes <dismukes@adacore.com>
19314 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
19315 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
19316 targets (such as AAMP).
19318 2004-12-07 Ed Schonberg <schonberg@adacore.com>
19320 * atree.adb (Visit_Itype): Create a new name for the generated itype,
19321 because the back-end may otherwise treat it as a redefinition of the
19324 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
19326 * back_end.adb (Scan_Back_End_Switches): Accept --param.
19328 * lang-specs.h: Accept --param.
19330 2004-12-07 Vincent Celier <celier@adacore.com>
19332 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
19333 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
19334 Current_Body_Suffix => Ada_Body_Suffix).
19335 Take into account Externally_Built attribute.
19337 * clean.adb (In_Extension_Chain): Always return False when one of the
19338 parameter is No_Project.
19339 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
19340 Ada_Language_Index).
19341 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
19342 Process_Languages for procedure Parse).
19344 * gnatcmd.adb (Carg_Switches): New table.
19345 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
19346 Adapt to name changes in package Prj (Current_Spec_Suffix =>
19347 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
19349 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
19350 Header_Num and function Hash are now declared in package Prj,
19353 * prj.adb (Suffix_Of): New function.
19354 (Set (Suffix)): New procedure.
19355 (Hash): One function moved from Prj.Com
19356 (Is_Present, Language_Processing_Data_Of): New functions
19357 (Set): Two new procedures
19358 (Add_Language_Name, Display_Language_Name): New procedures
19360 * prj.ads: (Suffix_Of): New function
19361 (Set (Suffix)): New procedure
19362 Add several types and tables for multi-language support.
19363 (Header_Num): Type moved from Prj.Com
19364 (Hash): Two functions moved from Prj.Com
19365 (Is_Present, Language_Processing_Data_Of): New functions
19366 (Set): Two new procedures
19367 (Add_Language_Name, Display_Language_Name): New procedures
19368 (Naming): Component name changes:
19369 Current_Spec_Suffix => Ada_Spec_Suffix,
19370 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
19371 Impl_Suffixes, Supp_Suffixes.
19372 (Project_Data): New components: Externally_Built, Supp_Languages,
19373 First_Language_Processing, Supp_Language_Processing, Default_Linker,
19374 Default_Linker_Path.
19376 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
19377 new package Language_Processing with its attributes (Compiler_Driver,
19378 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
19379 Binder_Driver, Default_Linker).
19381 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
19382 (Header_Num): Type moved to package Prj
19384 * prj-env.adb: Adapt to name changes in package Prj
19385 (Current_Spec_Suffix => Ada_Spec_Suffix,
19386 Current_Body_Suffix => Ada_Body_Suffix).
19388 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
19389 default to the project path, except the "-" is one of the directories
19390 in env var ADA_PROJECT_PATH.
19391 (Current_Project_Path): Global variable, replacing Project_Path
19392 that was in the body of Prj.Part.
19393 (Project_Path): New function
19394 (Set_Project_Path): New procedure
19395 Initialize Current_Project_Path during elaboration of the package
19396 Remove dependency on Prj.Com, no longer needed
19398 * prj-ext.ads (Project_Path): New function
19399 (Set_Project_Path): New procedure
19401 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
19402 suffix is defined for language <lang>.
19403 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
19404 accessing directly the components of Naming.
19405 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
19406 Reorganise of this package.
19407 Break procedure Check in several procedures.
19409 * prj-nmsc.ads: Replace all procedures (Ada_Check,
19410 Other_Languages_Check and Language_Independent_Check) with a single
19413 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
19414 Process_Languages, no longer needed.
19416 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
19417 Current_Project_Path.
19418 Remove elaboration code, moved to the body of Prj.Ext
19419 Use new function Prj.Ext.Project_Path instead of old variable
19421 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
19422 When comparing with project paths on the stack, first put the resolved
19423 path in canonical case.
19424 (Parse_Single_Project): Set the path name of the project file in the
19425 tree to the normalized path.
19427 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
19428 parameter Process_Languages, no longer needed.
19429 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
19430 Other_Languages_Check.
19432 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
19433 to store the resolved canonical path of the project file.
19434 Remove dependency to Prj.Com, no longer needed
19436 * prj-util.adb: Adapt to name changes in package Prj
19437 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
19440 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
19441 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
19442 Externally_Built, Include_Option, Language_Processing.
19444 * makegpr.adb: Numerous changes due to changes in packages
19447 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
19448 default to the project path, except whe "-" is one of the directories
19449 in env var ADA_PROJECT_PATH.
19450 (Gnatls): In verbose mode, add the new section "Project Search Path:"
19452 2004-12-07 Robert Dewar <dewar@adacore.com>
19454 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
19456 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
19459 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
19460 flag. No longer needed now that we handle this in gnat1drv.adb.
19462 * repinfo.ads: Minor reformatting
19464 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19465 Olivier Hainque <hainque@adacore.com>
19466 Eric Botcazou <ebotcazou@adacore.com>
19468 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
19469 TYPE_SIZE_UNIT of result type if SIZE is not specified.
19470 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
19471 of a bitfield, which we know is useless and causes trouble because of
19472 alignment implications.
19474 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
19476 (process_attributes): Clear DECL_COMMON again when a section attribute
19478 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
19479 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
19480 (create_field_decl): Special case ADDRESSABLE negative to mean
19481 "no bitfield creation", to be used by make_aligning_type. Don't
19482 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
19483 fields claimed addressable still have to be bitfields. Use
19484 value_factor_p instead of a raw binop construction to check for the
19485 position's alignment.
19487 2004-12-07 Geert Bosch <bosch@adacore.com>
19489 * eval_fat.adb: Revert previous change.
19491 2004-12-07 Thomas Quinot <quinot@adacore.com>
19492 Ed Schonberg <schonberg@adacore.com>
19494 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
19495 with an implicit dereference as its prefix, use
19496 Insert_Explicit_Dereference instead of merely rewriting the prefix into
19497 an explicit dereference. This ensures that a reference to the original
19498 prefix is generated, if appropriate.
19500 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
19501 dereference is rewritten to an explicit one, generate a reference to
19502 the entity denoted by its prefix using the original prefix node, so
19503 the dereference can be properly recorded as a read of the denoted
19504 access value, if appropriate.
19506 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
19507 emitting 'assigned but never read' warning on a variable on the basis
19508 that it has an access type.
19509 (Check_References): Emit unreferenced warning when the scope is a
19512 2004-12-07 Robert Dewar <dewar@adacore.com>
19513 Ed Schonberg <schonberg@adacore.com>
19515 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
19518 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
19519 leaving call unchanged.
19520 This deals with the case where the pragma Import specified
19521 an external name, to be handled by the back end.
19523 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
19524 subprogram which is Imported with convention Intrinsic if an
19525 External_Name argument is specified.
19526 (Process_Import_Or_Interface): Properly diagnose link name argument.
19527 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
19528 with Sem_Ch6.Cannot_Inline.
19529 (Process_Inline): Provide separate warning for inapplicable inline
19531 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
19532 treatment is uniform on different targets.
19534 2004-12-07 Ed Schonberg <schonberg@adacore.com>
19536 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
19537 construct is rewritten, preserve end label to permit source navigation.
19539 2004-12-07 Thomas Quinot <quinot@adacore.com>
19541 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
19542 Specific_Build_Stub_Target): New subprograms.
19543 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
19544 the PCS implementation used, using the above PCS-customized subprograms.
19545 Minor reformatting.
19546 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
19547 for generation of DSA code targeted to the PolyORB PCS.
19548 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
19549 implementation of the partition communication subsystem in ancillary
19551 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
19552 PolyORB_Support.Build_Stub_Type): New subrograms containing the
19553 PCS-specific part of Add_Stub_Type.
19554 (Insert_Partition_Check): Use runtime library function to perform
19557 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
19558 (RE_Same_Partition): New entity, from s-parint.
19560 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
19562 2004-12-07 Gary Dismukes <dismukes@adacore.com>
19564 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
19565 Output the copyright message on a separate line from the version
19568 2004-12-07 Joel Brobecker <brobecker@adacore.com>
19570 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
19571 compile-time warning.
19573 2004-12-07 Robert Dewar <dewar@adacore.com>
19575 * g-regpat.adb: (Match): Change a misuse of or to or else
19577 2004-12-07 Ed Schonberg <schonberg@adacore.com>
19580 (Generate_Reference): Handle properly a reference to an entry formal,
19581 when an accept statement has a pragma Unreferenced for it.
19583 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
19584 and the Has_Pragma_Unreferenced flag for each formal before analyzing
19585 the body, to ensure that warnings are properly emitted for each accept
19586 statement of a given task entry.
19588 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
19590 * Makefile.in: Add support for foreign threads on VMS.
19592 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19594 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
19596 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
19598 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
19600 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
19602 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
19604 2004-12-07 Robert Dewar <dewar@adacore.com>
19606 * nlists.adb (Prepend_Debug): Remove parameters and nest within
19608 (Remove_Next_Debug): Same fix
19610 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
19611 maintain back pointers now, though we did not used to, and comments
19613 (Prepend): Remove pragma Inline.
19614 (Remove_Next): Same cleanup
19616 2004-12-07 Thomas Quinot <quinot@adacore.com>
19618 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
19619 used to record an implicit dereference as a read operation on its
19620 prefix when operating under -gnatc. Necessary to avoid spurious
19621 'variable assigned but never read' warnings in that mode.
19622 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
19623 is a non-overloaded implicit dereference, call the above subprogram to
19624 ensure proper recording of references.
19626 2004-12-07 Gary Dismukes <dismukes@adacore.com>
19628 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
19629 to be resolved later as part of Analyze_Iteration_Scheme's call to
19632 2004-12-07 Ed Schonberg <schonberg@adacore.com>
19634 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
19635 prefix is not a scalar type, place error message on prefix, not on
19638 2004-12-07 Bernard Banner <banner@adacore.com>
19640 * vxaddr2line.adb: Add support for x86 vxworks
19642 2004-12-07 Thomas Quinot <quinot@adacore.com>
19644 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
19645 documentation of the behaviour of these functions when passed an IP
19646 address that has no record in the system hosts database and no reverse
19649 * cstand.adb, a-tags.ads: Fix typos in comment.
19651 2004-12-07 Robert Dewar <dewar@adacore.com>
19653 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
19654 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
19655 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
19656 s-poosiz.ads: Minor reformatting
19658 * make.adb: Minor reformatting
19659 Add some ??? comments asking for more comments
19661 * s-poosiz.adb: Minor reformatting
19662 Add comments on alignment requirement
19664 * sinfo.ads: Remove obsolete comment and fix typo.
19666 2004-12-07 Vincent Celier <celier@adacore.com>
19667 Sergey Rybin <rybin@adacore.com>
19669 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
19670 Files" with the new tool and package names.
19671 Reformatting to suppress most of the warnings for line too long
19672 Document the new section "Project Search Path:" in the output of
19674 Add gnatmetric section
19676 2004-12-07 Vincent Celier <celier@adacore.com>
19678 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
19679 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
19680 and -eit to -ept. Added qualifier
19681 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
19683 2004-11-27 Andreas Schwab <schwab@suse.de>
19685 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
19687 2004-11-25 Arnaud Charlet <charlet@adacore.com>
19689 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
19690 internal implementation unit GNAT.Sockets.Thin,
19691 as their usage for sockets is non-portable (using the read and write
19692 functions from the system runtime library is fine on UNIX but won't
19693 work under Windows).
19695 * mingw32.h: Update copyright notice.
19697 2004-11-25 Arnaud Charlet <charlet@adacore.com>
19699 * ada-tree.h: Minor reformatting of previous change to avoid lines
19700 longer than 79 characters.
19702 2004-11-25 Olivier Hainque <hainque@adacore.com>
19704 * tb-gcc.c: GCC infrastructure based implementation of
19707 2004-11-24 Steven Bosscher <stevenb@suse.de>
19709 * misc.c (gnat_post_options): Don't clear
19710 flag_inline_functions.
19712 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
19715 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
19718 2004-11-21 Andreas Jaeger <aj@suse.de>
19720 * stylesw.adb: Change Style_Check_Subprogram_Order to
19721 Style_Check_Order_Subprograms.
19723 2004-11-18 Arnaud Charlet <charlet@adacore.com>
19725 * adaint.h, adaint.c
19726 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
19728 Add also a cast to kill another warning.
19729 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
19730 parameter with the priority class of the parent process instead of
19731 always using the NORMAL_PRIORITY_CLASS.
19732 (__gnat_dup): New function.
19733 (__gnat_dup2): New function.
19734 (__gnat_is_symbolic_link): Enable the effective body of this
19735 function when __APPLE__ is defined.
19737 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
19740 2004-11-18 Olivier Hainque <hainque@adacore.com>
19742 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
19743 address of which may be used to represent "others" and "all others"
19744 choices in exception tables, instead of the current harcoded
19745 (void *)0 and (void *)1.
19746 (Setup_Exception): Do nothing in the GNAT SJLJ case.
19748 * gigi.h (others_decl, all_others_decl): New decls representing the
19749 new Others_Value and All_Others_Value objects.
19750 (struct attrib): Rename "arg" component as "args", since GCC expects a
19751 list of arguments in there.
19753 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
19754 corresponding objects exported by a-exexpr, instead of hardcoded dummy
19757 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
19758 others_decl and all_others_decl instead of hardcoded dummy addresses
19759 to represent "others" and "all others" choices, which is cleaner and
19760 more flexible with respect to the possible eh pointer encoding policies.
19762 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
19763 (process_attributes): Account for the naming change of the "args"
19764 attribute list entry component.
19766 * decl.c (build_attr_list): Rename into prepend_attributes to allow
19767 cumulating attributes for different entities into a single list.
19768 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
19769 attributes for the current entity and propagate first subtype
19770 attributes to other subtypes.
19771 <E_Procedure>: Attribute arguments are attr->args and not
19772 attr->arg any more.
19773 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
19774 argument provided, as this is what GCC expects. Use NULL_TREE instead
19777 2004-11-18 Robert Dewar <dewar@adacore.com>
19779 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
19780 Minor reformatting througout (including new function specs)
19781 Add ??? comments asking for clarification.
19783 2004-11-18 Thomas Quinot <quinot@adacore.com>
19785 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
19786 incomplete duplicate implementation of this subprogram from butil.
19788 2004-11-18 Thomas Quinot <quinot@adacore.com>
19790 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
19791 procedures factors the common processing for building an RPC receiver
19792 for an RCI package or an RACW type.
19793 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
19794 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
19795 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
19797 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
19799 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
19801 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
19802 distribution subprogram identifiers that are either subprogram numbers
19804 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
19805 string distribution identifiers assigned to a given subprogram.
19806 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
19807 (Add_RAS_Dereference_TSS): Add comments.
19808 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
19809 is not referenced yet because it will be used by the PolyORB DSA
19811 (Insert_Partition_Check): Remove fossile code.
19812 (First_RCI_Subprogram_Id): Document this constant.
19813 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
19815 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
19816 replaced with calls to Get_Library_Unit_Name_String. Previously there
19817 were several instances of the same code in different locations in the
19818 compiler; this checkin completes the replacement of all of these
19819 instances with calls to a common subprogram.
19820 Minor reformatting.
19822 * sem_dist.adb: Remove comment noting that RPC receiver generation
19823 should be disabled for RACWs that implement RASs.
19824 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
19826 * sem_util.ads, sem_util.adb (Has_Stream): New function
19827 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
19828 qualified name of a library unit into the name buffer.
19829 (Note_Possible_Modification): Generate a reference only
19830 if the context comes from source.
19832 * snames.ads (PCS_Names): New subtype corresponding to names of
19833 supported implementations of the Partition Communication Subsystem
19834 (PCS) (i.e. the runtime library support modules for the distributed
19837 2004-11-18 Robert Dewar <dewar@adacore.com>
19838 Ed Schonberg <schonberg@adacore.com>
19840 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
19841 (Has_Rep_Pragma): New function
19842 (Has_Attribute_Definition_Clause): New function
19843 (Record_Rep_Pragma): Moved here from sem_ch13.adb
19844 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
19846 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
19848 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
19849 (Expand_Pragma_Psect_Object): New procedure
19850 These procedures contain the revised and cleaned up processing for
19851 these two pragmas. This processing was formerly in Sem_Prag, but
19852 is more appropriately moved here. The cleanup involves making sure
19853 that the pragmas are properly attached to the tree, and that no
19854 nodes are improperly shared.
19856 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
19857 pragmas to Exp_Prag, which is more appropriate.
19858 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
19859 check for duplicates Remove use of Is_Psected flag, no longer needed.
19860 Use new Make_String_Literal function with string.
19862 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
19863 that are functions return universal values, that have to be converted
19864 to the context type.
19865 Use new Make_String_Literal function with string.
19866 (Get_Stream_Convert_Pragma): New function, replaces the use of
19867 Get_Rep_Pragma, which had to be kludged to work in this case.
19869 * freeze.adb: Use new Has_Rep_Pragma function
19871 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
19872 function with string.
19873 Use new Has_Rep_Pragma function.
19875 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
19878 2004-11-18 Robert Dewar <dewar@adacore.com>
19880 * errout.ads, errout.adb: (First_Sloc): New function
19882 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
19883 check (-gnatyx) instead of being included as a redundant construct
19886 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
19887 Style_Check_Order_Subprograms.
19889 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
19890 stylesw.adb: Add Style_Check_Xtra_Parens
19892 * usage.adb: Add line for -gnatyx (check extra parens)
19894 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
19896 2004-11-18 Ed Schonberg <schonberg@adacore.com>
19897 Robert Dewar <dewar@adacore.com>
19899 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
19900 discriminant of a constrained subtype, analyze the copy of the
19901 corresponding constraint, because in some cases it may be only
19902 partially analyzed.
19903 Removes long-lived ??? comments.
19905 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
19906 handled controlled or secondary-stack expressions within the
19907 iteration_scheme of a loop.
19909 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
19910 bounds that may contain functions calls, to prevent memory leaks when
19911 the bound contains a call to a function that uses the secondary stack.
19912 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
19913 generate temporaries for loop bounds that might contain function calls
19914 that require secondary stack and/or finalization actions.
19916 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
19917 selected component and the selector is overloadable (not just a
19918 function) treat as function call, Analyze_Call will disambiguate if
19920 (Analyze_Selected_Component): Do not generate an actual subtype for the
19921 selected component if expansion is disabled. The actual subtype is only
19922 needed for constraint checks.
19923 (Analyze_Allocator): If restriction No_Streams is set, then do
19924 not permit objects to be declared of a stream type, or of a
19925 composite type containing a stream.
19927 * restrict.ads: Remove the a-stream entry from Unit_Array, since
19928 No_Streams no longer prohibits with'ing this package.
19930 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
19931 discriminants, but the parent base has unknown discriminants, there is
19932 no discriminant constraint to inherit. Such a discrepancy can arise
19933 when the actual for a formal type with unknown discriminants is a
19934 similar private type whose full view has discriminants.
19935 (Analyze_Object_Declaration): If restriction No_Streams is set, then
19936 do not permit objects to be declared of a stream type, or of a
19937 composite type containing a stream.
19939 2004-11-18 Ed Schonberg <schonberg@adacore.com>
19941 * exp_dbug.ads: Update documentation to reflect simpler encoding for
19942 protected operations.
19944 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
19945 generated name, it complicates decoding in gdb and hinders debugging
19946 of protected operations.
19947 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
19948 flag for the protected entry barrier function.
19949 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
19950 flag for the protected entry function.
19952 2004-11-18 Nicolas Setton <setton@adacore.com>
19954 * expect.c: Define __unix__ when __APPLE__ is defined.
19956 * Makefile.in: Inform the value of the variable GMEM_LIB in the
19957 Darwin-specific section.
19959 * lang-specs.h: Change the placement of the %1 marker.
19960 Works around the fact that gcc adds -fPIC by default under Darwin.
19962 2004-11-18 Ed Schonberg <schonberg@adacore.com>
19964 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
19965 type of the object with the packed array type, set the Analyzed flag
19966 on the object if it is an entity or simple indexed component, to avoid
19967 spurious type errors.
19969 2004-11-18 Gary Dismukes <dismukes@adacore.com>
19971 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
19972 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
19973 separate line from the version message.
19975 2004-11-18 Ed Falis <falis@adacore.com>
19977 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
19979 (init_float): Eliminate initialization of floating point status for
19980 AE653. The instructions have no effect for vThreads.
19982 2004-11-18 Vincent Celier <celier@adacore.com>
19984 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
19985 gnatbind is invoked with -shared.
19987 2004-11-18 Jose Ruiz <ruiz@adacore.com>
19989 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
19990 for Detect_Blocking which is redundant with the check done within the
19991 procedure Protected_Single_Entry_Call.
19992 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
19993 Detect_Blocking which is redundant with the check done within the
19994 procedure Protected_Single_Entry_Call.
19996 2004-11-18 Vincent Celier <celier@adacore.com>
19998 * makegpr.adb (Compile): Put the compiling switches (in package
19999 Compiler and on the command line) immediately after "-c", instead of
20000 at the end of the command line invocation of the compiler, when
20001 compiling a non-Ada file.
20002 (Build_Global_Archive): When there is no need to rebuild the archive,
20003 set Global_Archive_Exists, so that the archive is passed to the linker
20006 2004-11-18 Robert Dewar <dewar@adacore.com>
20007 Sergey Rybin <rybin@adacore.com>
20010 Remove extra paren check from list of checks for redundant constructs
20011 Add documentation of new -gnatyx style check (check extra parens)
20012 Remove paragraph about gnatelim debug options.
20014 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
20015 objects rather than forbidding dependencies on the package Ada.Streams.
20017 * sinfo.ads: Add ??? note that we should document pragmas passed to
20020 * g-expect.ads: Fix a few typos in the comments.
20022 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
20024 * misc.c (gnat_handle_option): Use %< and %> for quoting in
20027 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20029 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
20031 2004-11-07 Andreas Schwab <schwab@suse.de>
20033 * Makefile.in (install-gnatlib): Remove spurious hyphen.
20035 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
20038 * Makefile.in (darwin): Set soext to .dylib.
20040 2004-10-26 Vincent Celier <celier@gnat.com>
20041 Thomas Quinot <quinot@act-europe.fr>
20043 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
20044 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
20045 there is no use of GNAT.Sockets.Constants.
20046 Remove remaining pragma Import for C_Write
20047 Remove C_Read and C_Write from internal implementation unit
20048 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
20049 the read and write functions from the system runtime library is fine
20050 on UNIX but won't work under Windows).
20052 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
20053 (Check_Selector): Use C_Recv instead of C_Read.
20054 Selectors are the GNAT.Sockets abstraction to perform a select()
20055 call on a set of descriptors. To allow abortion of an ongoing
20056 select operation, some data is written to a dedicated socket that
20057 is always monitored.
20058 Under Windows, the write and read library functions cannot operate
20059 on sockets, so we need to use send and recv instead, which is portable
20060 across all supported platforms.
20062 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
20063 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
20064 (using the read and write functions from the system runtime library is
20065 fine on UNIX but won't work under Windows).
20067 2004-10-26 Nicolas Setton <setton@act-europe.fr>
20069 * mlib-tgt-darwin.adb: New file.
20071 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20072 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
20073 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
20074 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
20077 * Makefile.in: Add support for building shared libraries under Darwin.
20078 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
20079 the low level EH init subprogram to be called from __gnat_initialize.
20081 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
20082 indicates which options to pass to the archive indexer.
20084 * mlib-utl.adb: Add support for calling ranlib with additional
20085 options. This is needed for instance under Mac OS X.
20086 (Ranlib_Options): New global variable, used to store the potential
20087 options to pass to ranlib.
20088 (Ar): Use Ranlib_Options when spawning ranlib.
20089 (Initialize): Set the value of ranlib option.
20091 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
20093 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
20094 instead of 8K, to reflect the real potential needs for stack-checking
20097 2004-10-26 Pascal Obry <obry@gnat.com>
20099 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
20101 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
20102 Windows only the initial thread stack size can be set so it is good to
20103 start we a low stack size.
20104 The OS will adjust the size as needed.
20106 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
20107 Nicolas Setton <setton@act-europe.fr>
20109 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
20110 "__unix__" instead of "unix".
20111 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
20112 sections were just mistakenly ignored. The former is
20113 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
20114 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
20115 of hpux. This prevents an unwanted definition of the symbol
20116 convert_addresses in adaint.o.
20118 2004-10-26 Gary Dismukes <dismukes@gnat.com>
20120 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
20121 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
20123 2004-10-26 Cyrille Comar <comar@act-europe.fr>
20125 * a-filico.ads, a-filico.adb: fix incorrect header.
20127 2004-10-26 Javier Miranda <miranda@gnat.com>
20129 * a-ststio.ads: Fix typo in identifier
20131 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
20133 * sem_ch4.adb: Minor reformatting.
20135 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20137 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
20138 enabled, check the result of unary and binary operations when the
20139 expression is the right-hand side of an assignment.
20141 2004-10-26 Vincent Celier <celier@gnat.com>
20143 * clean.adb (Delete): Do not output warnings when in quiet output and
20144 not in verbose mode.
20145 (Force_Deletions): New Boolean flag, defaulted to False
20146 (Delete): Only delete a file if it is writable, and when
20147 Force_Deletions is True.
20148 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
20149 (Usage): Line for new switch -f
20150 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
20153 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
20155 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
20156 JM type only if its size matches that of the wrapper. When a size is
20157 prescribed and the field is not aliased, remove the wrapper of a JM
20158 type only if the size is not greater than that of the packed array.
20159 (gnat_to_gnu_entity): Change the extension of packed array wrappers
20162 2004-10-26 Geert Bosch <bosch@gnat.com>
20164 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
20165 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
20166 (Pred): Implement in terms of Succ.
20168 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20170 * exp_aggr.adb (Safe_Component): An aggregate component that is an
20171 unchecked conversion is safe for in-place use if the expression of the
20172 conversion is safe.
20173 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
20174 be expandable in place even if the aggregate does not come from source.
20175 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
20176 designated object of an allocator in place, rather than building it
20177 first on the stack. The previous scheme forces a full copy of the array,
20178 and may be altogether unsusable if the size of the array is too large
20179 for stack allocation.
20181 2004-10-26 Robert Dewar <dewar@gnat.com>
20183 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
20184 compares if the component is atomic.
20186 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
20187 array assignment if the component type is atomic.
20189 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20190 Eric Botcazou <ebotcazou@act-europe.fr>
20192 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
20193 is aliased and is a by_reference type, do not pass by copy.
20194 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
20195 detect whether the call is in the right side of an assignment or
20196 the expression of an object declaration. Recurse on component
20197 association within aggregates.
20198 Call it in the condition that determines whether the temporary is
20199 necessary for correct stack-checking.
20201 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
20203 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
20204 RACW_Type, used in the PolyORB version.
20205 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
20206 version and the GARLIC version.
20208 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
20209 Rename RCI_Info to RCI_Locator for better consistency between the
20210 GARLIC and PolyORB versions of the distributed systems annex.
20211 (DSA_Implementation_Name): This enumeration lists the possible
20212 implementations of the Partition Communication Subsystem for the
20213 Distributed Systems Annex (DSA). The three available implementations
20214 are the dummy stub implementation (No_DSA), and two versions based on
20215 two different distribution runtime libraries: GARLIC and PolyORB. Both
20216 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
20218 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
20221 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
20222 between the GARLIC and PolyORB versions of the distributed systems
20224 Remove RE_Unbounded_Reclaim_Pool since it is unused.
20226 2004-10-26 Gary Dismukes <dismukes@gnat.com>
20228 * gnat1drv.adb: Suppress calling the back end when
20229 Frontend_Layout_On_Target is true.
20231 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
20233 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
20234 Set_Read_Only): New subprograms.
20235 These new routines allow the user to set or unset the Owner execute
20236 and Owner write permission flags on a file.
20238 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
20239 GNAT.OS_Lib.Set_Executable instead of rolling our own.
20241 2004-10-26 Matthew Gingell <gingell@gnat.com>
20243 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
20245 2004-10-26 Pascal Obry <obry@gnat.com>
20247 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
20248 memory before the faulting page we properly test the process read
20249 access for this address using appropriate Win32 routine.
20250 (HPUX sections): guard with "__hpux__" instead of "hpux".
20252 2004-10-26 Robert Dewar <dewar@gnat.com>
20254 * lib-xref.adb (Generate_Reference): Don't complain about reference to
20255 entry parameter if pragma Unreferenced set, since we do not properly
20256 handle the case of multiple parameters.
20258 2004-10-26 Vincent Celier <celier@gnat.com>
20260 * prj-env.adb: (Contains_ALI_Files): New Boolean function
20261 (Ada_Objects_Path.Add): For a library project, add to the object path
20262 the library directory only if there is no object directory or if the
20263 library directory contains ALI files.
20264 (Set_Ada_Paths.Add.Recursive_Add): Ditto
20266 2004-10-26 Vincent Celier <celier@gnat.com>
20268 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
20269 extension of library projects.
20271 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
20272 path defaults to ".:<prefix>/lib/gnat".
20273 (Parse): For an extending all project, allow direct import of a project
20274 that is virtually extended.
20276 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
20277 the specified name is directly imported, return its ID. Otherwise, if
20278 an extension of this project is imported, return the ID of the
20281 2004-10-26 Robert Dewar <dewar@gnat.com>
20283 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
20284 (Sub3): New procedure, used by Scaled_Divide
20285 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
20286 correct more than one instance of failure to propagate carries
20288 (Double_Divide): Handle overflow case of largest negative number
20289 divided by minus one.
20291 * s-arit64.ads (Double_Divide): Document that overflow can occur in
20292 the case of a quotient value out of range.
20295 2004-10-26 Robert Dewar <dewar@gnat.com>
20297 * s-bitops.adb (Bit_Eq): Remove redundant check.
20299 * s-bitops.ads: Minor comment updates
20300 Change some occurrences of Address to System.Address
20302 * s-carsi8.ads: Fix minor cut-and-paste error in comments
20304 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20306 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
20307 accessibility check to prefix that is a protected operation.
20309 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20311 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
20312 empty, post message on stub.
20314 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20315 Javier Miranda <miranda@gnat.com>
20317 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
20318 current instance appears within a unit that is directly in the context
20320 Used to determine whether the body of the instance should be analyzed
20321 immediately after its spec, to make its subprogram bodies available
20322 for front-end inlining.
20323 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
20324 constraint is not allowed on the component type (AARM 12.5.3(3))
20326 2004-10-26 Cyrille Comar <comar@act-europe.fr>
20328 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
20329 'Storage_Pool): enhance, document & limit detection of non-sharable
20332 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
20334 * s-pooglo.ads: Add more documentation now that this pool is properly
20337 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20339 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
20340 or protected type with discriminants, do not constrain the
20341 corresponding record type if the subtype declaration has no
20342 discriminant constraints. This can be the case in source code, or in
20343 the subtype declaration created to rename an actual type within an
20346 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20348 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
20349 different kind of stub (possibly wrong name for file), do not check
20351 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
20352 includes call to some function that returns an unconstrained type, do
20355 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20357 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
20358 appear in the code for the main unit. Dependencies among units in the
20359 context of the main unit are established when those other units are
20360 compiled. Otherwise spurious elaboration constraints can generate
20361 incorrect elaboration circularities.
20363 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
20364 Ed Schonberg <schonberg@gnat.com>
20366 * sem_util.adb (Is_Aliased_View): Defend against the case where this
20367 subprogram is called with a parameter that is not an object name. This
20368 situation arises for some cases of illegal code, which is diagnosed
20369 later, and in this case it is wrong to call Is_Aliased, as that might
20370 cause a compiler crash.
20371 (Explain_Limited_Type): Refine previous fix to include
20372 inherited components of derived types, to provide complete information.
20374 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
20375 is the prival for a protected object.
20376 It is necessary to mark this entity as a variable, in addition to
20377 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
20378 modified to avoid checking the Aliased flag on entities that are not
20379 objects. (Checking that flag for non-objects is erroneous and could
20380 lead to a compiler crash).
20382 2004-10-26 Robert Dewar <dewar@gnat.com>
20384 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
20385 X_Frac = 0.5, then we know that the number X must be positive.
20386 (Succ): Remove the same redundant test, and also fix the primary test
20387 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
20389 (Decompose): Add fuller comments to spec
20391 2004-10-26 Pascal Obry <obry@gnat.com>
20393 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
20394 validity (process must have read access). Set to 0 in all other cases.
20395 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
20396 violation on Win32.
20397 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
20398 segmentation violation.
20400 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
20402 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
20403 whose type is a constructed subtype of an aliased object with an
20404 unconstrained nominal subtype, convert the actual to the constructed
20405 subtype before taking its address.
20407 2004-10-26 Vincent Celier <celier@gnat.com>
20409 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
20410 (Is_Path_Name_Case_Sensitive): New function
20412 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
20413 (Base_Name, Simple_Name, Current_Directory, Compose,
20414 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
20417 2004-10-26 Cyrille Comar <comar@act-europe.fr>
20418 Vasiliy Fofanov <fofanov@act-europe.fr>
20419 Vincent Celier <celier@gnat.com>
20421 * gnat_ugn.texi: Generalize "finding memory problems" section into a
20422 "memory management issues" section and document some of the useful
20423 memory pools provided as part of the GNAT library.
20424 Remove "virtual" from declaration of A::method2 in
20425 the simple example of Ada/C++ mixed system.
20426 Library Projects may be virtually extended: their virtual extensions
20427 are not Library Projects.
20428 Added section on extending project hierarchies.
20430 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
20432 * adaint.c (__gnat_get_libraries_from_registry): Cast value
20434 (__gnat_portable_spawn): Remove const.
20436 * mingw32.h (MAXPATHLEN): Check for previous definition.
20438 2004-10-17 Matthias Klose <doko@debian.org>
20440 * gnatvsn.ads: Set gnat library version to 4.0.
20442 2004-10-05 Vincent Celier <celier@gnat.com>
20444 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
20446 2004-10-04 Laurent GUERBY <laurent@guerby.net>
20449 * Makefile.in: Define and use RANLIB_FLAGS.
20451 2004-10-04 Pascal Obry <obry@gnat.com>
20453 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
20454 other x86 platforms).
20456 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
20458 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
20459 in general and triggers stack alignment adjustment for thread entry
20460 points on targets where this is necessary.
20462 2004-10-04 Bernard Banner <banner@gnat.com>
20465 * Makefile.in: Add section for powerpc linux
20466 Add variant i-vxwork-x86.ads
20468 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
20470 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
20472 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
20473 table registration calls when need be. Ensures no reference to the crt
20474 ctors symbol are issued in the SJLJ case, which avoids possible
20475 undefined symbol errors in the case of modules to be statically linked
20478 2004-10-04 Javier Miranda <miranda@gnat.com>
20480 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
20481 in-line the code corresponding to subprogram Analyze_Actuals. In
20482 addition, analyze the actuals only in case of subprogram call.
20484 2004-10-04 Ed Falis <falis@gnat.com>
20486 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
20488 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
20490 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
20491 in the documentation.
20493 2004-10-04 Robert Dewar <dewar@gnat.com>
20495 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
20497 (Analyze_Block_Statement): Add circuitry to detect following dead code
20498 (Check_Unreachable_Code): Handle case of block exit
20500 2004-10-04 Robert Dewar <dewar@gnat.com>
20502 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
20503 (XMatchD): Avoid warning for Logic_Error call
20505 2004-10-04 Robert Dewar <dewar@gnat.com>
20507 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
20508 consider expressions buried within a procedure actual to be an actual.
20509 This caused some blowups with uses of packed slices within a procedure
20512 2004-10-04 Robert Dewar <dewar@gnat.com>
20514 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
20515 longer need to be initialized to zero.
20516 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
20517 initialized to zero.
20519 * checks.adb (Expr_Known_Valid): Packed arrays are now always
20520 considered valid, even if the representation is modular. That's correct
20521 now that we no longer initialize packed modular arrays to zero.
20523 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
20524 suffixes. These are now documented as the only cases in which the
20525 debugger ignores outer records.
20526 Previously, the spec allowed arbitrary suffixes for this purpose.
20527 Change name of LJM to JM for packed array pad records
20528 Create separate section on packed array handling, and add a whole new
20529 set of comments to this section describing the situation with packed
20530 modular types and justification requirements depending on endianness.
20532 2004-10-04 Robert Dewar <dewar@gnat.com>
20534 * a-except.adb: Add a comment for last change
20536 * einfo.ads: Minor spelling correction in comment
20538 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
20540 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
20543 * sem_util.ads: Minor comment update
20545 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20547 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
20548 Inline_Always when in Configurable_Run_Time mode.
20550 * sem_prag.adb (Process_Convention): If entity is an inherited
20551 subprogram, apply convention to parent subprogram if in same scope.
20552 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
20553 when in Configurable_Run_Time mode.
20555 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20557 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
20558 class_wide type after component list has been inherited.
20560 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20562 * sem_ch12.adb (Check_Generic_Actuals): New predicate
20563 Denotes_Previous_Actual, to handle properly the case of a private
20564 actual that is also the component type of a subsequent array actual.
20565 The visibility status of the first actual is not affected when the
20566 second is installed.
20567 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
20568 make fully recursive the treatment of formals of packages declared
20570 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
20571 the above on exit from an instantiation.
20572 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
20573 current instantiation which is now complete.
20574 (Analyze_Package_Instantiation): No instantiated body is needed if the
20575 main unit is generic. Efficient, and avoid anomalies when a instance
20576 appears in a package accessed through rtsfind.
20578 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20580 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
20581 do not generate a declaration for a temporary if the call is part of a
20582 library-level instantiation.
20584 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20586 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
20587 searching for a limited component to flag.
20589 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
20590 expansion of Input, to account for the fact that the implicit call
20591 generated by the attribute reference must freeze the user-defined
20592 stream subprogram. This is only relevant to 'Input, because it can
20593 appear in an object declaration, prior to the body of the subprogram.
20595 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
20596 expansion can proceed and further errors uncovered.
20597 (Minor clean up): Fix cases of using | instead of \ for continuation
20600 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20602 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
20604 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
20605 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
20606 Use gcc_assert and gcc_unreachable.
20608 * decl.c (gnat_to_gnu_entity, case object): Check and process a
20609 specified alignment before validating size.
20610 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
20611 stripped-down declaration for the type of the inner field when making
20614 * utils.c (finish_record_type): Do not compute the size in units
20615 incrementally. Instead compute it once for the rep clause case.
20616 Use gcc_assert and gcc_unreachable.
20618 2004-10-04 Vincent Celier <celier@gnat.com>
20620 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
20622 (Is_Valid_Path_Name): Take '/' as a directory separator.
20624 2004-10-04 Vincent Celier <celier@gnat.com>
20626 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
20627 (Extended_Project) only if Extended_Project is defined, to avoid
20629 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
20631 (Parse_Single_Project): Ditto.
20633 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
20634 Add_To_Project_Path for virtual projects.
20636 2004-10-04 Vincent Celier <celier@gnat.com>
20638 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20639 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
20640 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
20641 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
20642 parameter Options_2.
20644 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
20645 Build_Dynamic_Library with an empty Options_2.
20647 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
20650 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
20651 directory separator, if any.
20652 (Gprmake): Do not allow mains on the command line for library projects.
20653 Do not attempt to link when the project is a library project.
20654 (Library_Opts): New table to store Library_Options.
20655 (Build_Library): If Library_Options is specified, pass these options
20656 when building a shared library.
20658 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
20660 * s-tposen.adb (Service_Entry): The object must be always unlocked at
20661 the end of this procedure now that the unlock operation was inserted
20664 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
20666 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
20667 corresponding to the Preallocated_Stacks flags in System.
20668 (Get_Target_Parameters): Including the processing for
20669 Preallocated_Stacks.
20671 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
20672 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
20673 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
20674 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
20675 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
20676 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
20677 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
20678 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
20679 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
20680 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
20681 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
20682 used to signal whether the compiler creates the required stacks and
20683 descriptors for the different tasks (when True) or it is done by the
20684 underlying operating system at run time (when False).
20685 It is initially set to False in all targets.
20687 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
20688 if it is supported by the target.
20689 (Make_Task_Create_Call): Pass the stack address if it has been
20690 previously created. Otherwise pass a Null_Address.
20692 * snames.adb: Add _stack.
20694 * snames.ads: Add Name_uStack. Required to allow the expander to
20695 statically allocated task stacks.
20697 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
20698 Stack_Address argument.
20699 Check that its value is equal to Null_Address because this target does
20700 not support the static stack allocation.
20702 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
20704 * usage.adb: Change "pragma inline" to "pragma Inline" in information
20707 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
20709 * exp_dist.adb: Split declaration of asynchronous flag out of
20710 Add_RACW_Read_Attribute.
20711 Minor reformatting for better alignment with PolyORB version.
20712 Store the entity for the asynchronous flag of an RACW, rather than the
20713 expression, in the asynchronous flags table. This will allow this flag
20714 to be used in other subprograms beside Add_RACW_Read_Attribute.
20716 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
20718 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
20719 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
20720 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
20721 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
20722 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
20723 sockets constant MSG_NOSIGNAL (Linux-specific).
20724 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
20725 all Send operations.
20726 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
20727 from trigerring SIGPIPE.
20728 Rename components to avoid clash with Ada 2005 possible reserved
20730 (Check_Selector): When the select system call returns with an error
20731 condition, propagate Socket_Error to the caller.
20733 2004-10-01 Jan Hubicka <jh@suse.cz>
20735 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
20737 2004-09-23 Robert Dewar <dewar@gnat.com>
20740 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
20741 instead do this at freeze time (we won't do it if there is an address
20743 Change "pragma inline" to "pragma Inline" in information and error
20745 Minor reformatting.
20747 * freeze.adb (Check_Address_Clause): Remove previous change, not the
20748 right way of doing things after all.
20749 (Freeze_Entity): For object, set Is_Public for imported entities
20750 unless there is an address clause present.
20752 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
20754 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
20755 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
20756 ensures proper handling of types with rep clauses, which might have
20757 their TYPE_SIZE set already.
20759 2004-09-21 Robert Dewar <dewar@gnat.com>
20761 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
20762 packed array types in both little- and big-endian cases. This change
20763 ensures that we no longer count on the unused bits being initialized
20764 for such types (and in particular ensures that equality testing will
20765 only read the relevant bits).
20766 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
20767 These changes mean that we no longer need to initialize small packed
20769 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
20770 optimization to an LJM field as to its parent field.
20772 * ada-tree.h, trans.c, utils.c, utils2.c:
20773 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
20775 2004-09-20 Jan Hubicka <jh@suse.cz>
20777 * utils.c (gnat_finalize): Remove.
20778 (end_subprog_body): Directly call cgraph_finalize_function;
20779 do not lower the nested functions.
20781 2004-09-20 Robert Dewar <dewar@gnat.com>
20784 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
20785 if an address clause is present, since that means that the Import
20788 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
20790 * 5tsystem.ads: Removed, no longer used.
20792 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
20793 Zack Weinberg <zack@codesourcery.com>
20795 * ada-tree.def: Use tree_code_class enumeration constants
20796 instead of code letters.
20797 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
20798 Update for new tree-class enumeration constants.
20800 2004-09-17 Vincent Celier <celier@gnat.com>
20802 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
20803 capabilities of the general project manager.
20805 2004-09-09 Vincent Celier <celier@gnat.com>
20807 * a-direct.ads: Add pragma Ada_05
20808 (Directory_Entry_Type): Give default value to component Kind to avoid
20809 not initialized warnings.
20811 * a-direct.adb (Current_Directory): Remove directory separator at the
20813 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
20814 an existing directory.
20815 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
20816 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
20817 Convert the result to File_Size.
20819 * prj.ads: (Project_Error): New exception
20821 * prj-attr.adb: Except in procedure Initialize, Fail comes from
20822 Prj.Com, not from Osint.
20823 (Attrs, Package_Attributes): Tables moved to private part of spec
20824 (Add_Attribute, Add_Unknown_Package): Moved to new child package
20826 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
20827 Prj.Project_Error after call to Fail.
20828 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
20829 Fail. Check that package name is not already in use.
20831 * prj-attr.ads: Comment updates to indicate that all subprograms may be
20832 used by tools, not only by the project manager, and to indicate that
20833 exception Prj.Prj_Error may be raised in case of problem.
20834 (Add_Unknown_Package, Add_Attribute): Moved to new child package
20836 (Attrs, Package_Attributes): Table instantiations moved from the body to
20837 the private part to be accessible from Prj.Attr.PM body.
20839 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
20840 from new package Prj.Attr.PM.
20841 (Parse_Attribute_Declaration): Call Add_Attribute from new package
20844 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
20846 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
20847 instead of Elaboration_Checks).
20849 * a-calend.adb: Minor reformatting
20851 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20853 * gigi.h (maybe_pad_type): New declaration.
20854 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
20856 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
20858 * cuintp.c: Convert to use buildN.
20860 * decl.c (maybe_pad_type): No longer static.
20861 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
20863 Convert to use buildN.
20865 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
20866 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
20867 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
20869 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
20870 (gnat_gimplify_expr, case ADDR_EXPR): New case.
20871 Convert to use buildN.
20873 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
20874 TREE_READONLY for const.
20875 Convert to use buildN.
20877 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
20878 (create_var_decl): Refine when TREE_STATIC is set.
20879 Convert to use buildN.
20881 2004-09-09 Gary Dismukes <dismukes@gnat.com>
20883 * gnat_ugn.texi: Delete text relating to checking of ali and object
20886 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
20889 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
20891 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
20892 pragmas recognized by GNAT.
20894 * gnat_rm.texi: Document pragma Detect_Blocking.
20896 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
20897 raise Program_Error if called from a protected operation.
20899 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
20900 the protected action nesting level.
20901 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
20902 protected action nesting level.
20903 (Unlock): When pragma Detect_Blocking is active decrease the protected
20904 action nesting level.
20906 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
20907 Protected_Action_Nesting.
20909 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
20910 Common_ATCB record. It contains the dynamic level of protected action
20911 nesting for each task. It is needed for checking whether potentially
20912 blocking operations are called from protected operations.
20913 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
20914 Detect_Blocking is active or not in the partition.
20916 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
20917 raise Program_Error if called from a protected operation.
20918 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
20919 Program_Error if called from a protected operation.
20920 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
20921 Program_Error if called from a protected operation.
20923 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
20924 raise Program_Error if called from a protected operation.
20926 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
20927 raise Program_Error if called from a protected operation, and increase
20928 the protected action nesting level.
20929 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
20930 Program_Error if called from a protected operation, and increase the
20931 protected action nesting level.
20932 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
20933 protected action nesting level.
20935 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
20936 raise Program_Error if called from a protected operation, and increase
20937 the protected action nesting level.
20938 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
20939 Program_Error if called from a protected operation, and increase the
20940 protected action nesting level.
20941 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
20942 raise Program_Error if called from a protected operation.
20943 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
20944 active, raise Program_Error if called from a protected operation.
20945 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
20946 protected action nesting level.
20948 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
20949 insertion of the statement raising Program_Error. The run time
20950 contains the required machinery for handling that.
20952 * sem_util.ads: Change comment associated to procedure
20953 Check_Potentially_Blocking_Operation.
20954 This procedure does not insert a call for raising the exception because
20955 that is currently done by the run time.
20957 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
20959 * init.c: Add the global variable __gl_detect_blocking that indicates
20960 whether pragma Detect_Blocking is active (1) or not (0). Needed for
20961 making the pragma available at run time.
20962 (__gnat_set_globals): Pass and update the detect_blocking parameter.
20964 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
20965 pragma Detect_Blocking is active.
20967 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
20969 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
20970 DB is found in the ali file. Any unit compiled with pragma
20971 Detect_Blocking active forces its effect in the whole partition.
20973 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
20974 Detect_Blocking is active and delay is called from a protected
20977 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
20978 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
20979 Detect_Blocking is active (0 otherwise).
20980 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
20981 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
20984 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
20986 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
20987 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
20990 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
20991 (Register_Receiving_Stub): Add Subp_Info formal parameter.
20992 Update API in placeholder implemetation of s-parint to reflect changes
20993 in distribution runtime library.
20995 * sem_ch3.adb (Expand_Derived_Record): Rename to
20996 Expand_Record_Extension.
20998 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
20999 primitive operations of potentially distributed object types that have
21000 non-controlling anonymous access formals.
21002 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
21004 New implementation of expansion for remote access-to-subprogram types,
21005 based on the RACW infrastructure.
21006 This version of sem_dist is compatible with PolyORB/DSA as well as
21009 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
21010 Asynchrronous that applies to a remote access-to-subprogram type, mark
21011 the underlying RACW type as asynchronous.
21013 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
21014 __gnat_using_gnu_linker to 1.
21016 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
21017 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
21018 GNAT.Perfect_Hash_Generators, and remove the empty
21019 GNAT.Perfect_Hash package.
21021 * atree.adb: Minor reformatting
21023 * exp_ch3.adb (Expand_Derived_Record): Rename to
21024 Expand_Record_Extension.
21025 (Build_Record_Init_Proc.Build_Assignment): The default expression in
21026 a component declaration must remain attached at that point in the
21027 tree so New_Copy_Tree copies it if the enclosing record type is derived.
21028 It is therefore necessary to take a copy of the expression when building
21029 the corresponding assignment statement in the init proc.
21030 As a side effect, in the case of a derived record type, we now see the
21031 original expression, without any rewriting that could have occurred
21032 during expansion of the ancestor type's init proc, and we do not need
21033 to go back to Original_Node.
21035 * exp_ch3.ads (Expand_Derived_Record): Rename to
21036 Expand_Record_Extension.
21038 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
21039 Returns the RACW type used to implement a remote access-to-subprogram
21041 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
21042 New subprograms. Used to create a proxy tagged object for a remote
21043 subprogram. The proxy object is used as the designated object
21044 for RAS values on the same partition (unless All_Calls_Remote applies).
21045 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
21046 System.Partition_Interface.Get_Unique_Remote_Pointer.
21047 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
21048 Renamed from Add_RAS_*_Attribute.
21049 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
21051 New implementation of expansion for remote access-to-subprogram types,
21052 based on the RACW infrastructure.
21054 * exp_dist.ads (Copy_Specification): Update comment to note that this
21055 function can copy the specification from either a subprogram
21056 specification or an access-to-subprogram type definition.
21058 2004-09-09 Ed Schonberg <schonberg@gnat.com>
21060 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
21061 in an instance, between an explicit subprogram an one inherited from a
21062 type derived from an actual.
21064 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
21065 add a polling call if the subprogram is to be inlined by the back-end,
21066 to avoid repeated calls with multiple inlinings.
21068 * checks.adb (Apply_Alignment_Check): If the expression in the address
21069 clause is a call whose name is not a static entity (e.g. a dispatching
21070 call), treat as dynamic.
21072 2004-09-09 Robert Dewar <dewar@gnat.com>
21074 * g-trasym.ads: Minor reformatting
21076 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
21077 packed arrays, since unused bits are expected to be zero for a
21080 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
21082 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
21085 2004-09-09 Pascal Obry <obry@gnat.com>
21087 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
21088 enable map file generation. Add the right option to generate the map
21089 file if Map_File is set to True.
21091 * gnatdll.adb (Gen_Map_File): New variable.
21092 (Syntax): Add info about new -m (Map_File) option.
21093 (Parse_Command_Line): Add support for -m option.
21094 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
21095 Minor reformatting.
21097 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
21099 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
21100 new gnatdist implementation.
21101 Define a subpackage isolating the output routines specific to this
21104 2004-09-09 Joel Brobecker <brobecker@gnat.com>
21106 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
21108 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
21110 2004-09-09 Cyrille Comar <comar@act-europe.fr>
21112 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
21115 * opt.ads: Add Ada_Version_Runtime constant used to decide which
21116 version of the language is used to compile the run time.
21118 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
21120 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
21121 of variable length temporaries for function return now that the
21122 back-end and gigi support it.
21124 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21126 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
21128 * trans.c (struct stmt_group): Delete field GLOBAL.
21129 (gnat_init_stmt_group): Do not initialize it.
21130 (call_to_gnu): Use save_expr, not protect_multiple_eval.
21131 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
21132 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
21133 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
21134 (start_stmt_group): Likewise.
21135 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
21137 * utils2.c (ggc.h): Include.
21138 (build_call_raise): Call build_int_cst, not build_int_2.
21140 * utils.c (gnat_init_decl_processing): Fix arg to
21141 build_common_tree_nodes.
21142 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
21143 (gnat_define_builtin): Set built_in_decls.
21144 (init_gigi_decls): Call build_int_cst, not build_int_2.
21146 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
21147 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
21148 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
21149 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
21150 SET_TYPE_MODULE): Use them.
21151 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
21152 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
21153 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
21154 SET_TYPE_ADA_SIZE): Likewise.
21155 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
21156 (DECL_CONST_CORRESPONDING_VAR,
21157 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
21158 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
21159 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
21160 (TYPE_RM_SIZE_NUM): New macro.
21161 (TYPE_RM_SIZE): Modified to use above.
21163 * cuintp.c: (build_cst_from_int): New function.
21164 (UI_To_gnu): Use it.
21166 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
21167 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
21168 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
21169 MIN_EXPR for the size, copy it into new.
21171 2004-09-01 Robert Dewar <dewar@gnat.com>
21173 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
21174 packed indexed component where array is an IN OUT formal. This
21175 generated garbage code previously.
21177 * gnat_ugn.texi: Document -fverbose-asm
21179 * gnat-style.texi: Minor updates (note that boolean constants and
21180 variables are joined with AND/OR rather than short circuit forms).
21182 2004-09-01 Ed Schonberg <schonberg@gnat.com>
21184 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
21185 it is an upward conversion of an untagged type with no representation
21188 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
21190 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
21191 System.Partition_Interface.
21193 * checks.adb (Apply_Access_Checks): Do not generate checks when
21194 expander is not active (but check for unset reference to prefix of
21197 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
21198 pragma Debug as an if statement with a constant condition, for
21199 consistent treatment of entity references contained within the
21200 enclosed procedure call.
21202 2004-09-01 Vincent Celier <celier@gnat.com>
21204 * bindgen.adb: (Set_EA_Last): New procedure
21205 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
21207 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
21208 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
21209 linked without errors.
21210 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
21212 (Gen_Exception_Table_C): Correct same bugs
21214 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
21216 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
21217 on Windows, make sure that the drive letter is in upper case.
21219 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
21220 Windows, when the drive letter is added and Case_Sensitive is True, the
21221 drive letter is forced to upper case.
21223 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
21224 to Options_2 for the call to MLib.Utl.Gcc.
21226 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
21227 directory separator when defining BASE_DIR.
21229 2004-09-01 Pascal Obry <obry@gnat.com>
21231 * gprcmd.adb (Extend): Do not output trailing directory separator. This
21232 is not needed and it confuses Windows GNU/make which does not report
21233 directory terminated by a slash as a directory.
21234 (gprcmd): Idem for "pwd" internal command.
21236 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
21237 target names rewrite to fix regressions with recent version of
21238 GNU/make. Starting with GNU/make 3.80 the pipe character was not
21239 handled properly anymore.
21241 2004-09-01 Andreas Schwab <schwab@suse.de>
21243 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
21244 * raise.c [!IN_RTS]: Undef abort.
21246 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
21248 * utils2.c (build_allocator): Use ssize_int.
21250 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
21252 2004-08-27 Andreas Schwab <schwab@suse.de>
21254 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
21256 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
21257 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21259 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
21261 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
21263 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
21264 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
21265 * utils.c (init_gigi_decls): Likewise.
21266 * utils2.c (build_call_raise, build_allocator): Likewise.
21268 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
21270 * utils.c (gnat_init_decl_processing): Adjust
21271 build_common_tree_nodes call.
21273 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
21275 * utils2.c (build_allocator): Use build_int_cst for negative
21278 2004-08-18 Richard Henderson <rth@redhat.com>
21280 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
21282 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
21284 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
21286 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
21287 (gnat_to_gnu): Likewise.
21289 2004-08-16 Pascal Obry <obry@gnat.com>
21291 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
21292 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
21293 option and not mdll anymore. Update comment.
21295 2004-08-16 Pascal Obry <obry@gnat.com>
21297 * bld.adb (Put_Include_Project): Properly handle directory separators
21300 2004-08-16 Ed Schonberg <schonberg@gnat.com>
21302 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
21303 decreasing the number of allocated junk nodes while searching for the
21304 appropriate subprogram.
21306 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
21308 * cuintp.c (UI_To_gnu): Use build_int_cst..
21309 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
21310 * utils.c (init_gigi_decls): Likewise.
21311 * utils2.c (build_call_raise): Likewise.
21313 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
21315 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
21316 for a global aliased object with a variable size and an unconstrained
21317 nominal subtype, pretend there is no initializer if the one we have is
21318 incomplete, and avoid referencing an inexistant component in there. The
21319 part we have will be rebuilt anyway and the reference may confuse
21320 further operations.
21322 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
21324 * einfo.ads: Minor reformatting
21326 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
21327 restrictions in the ALI if we only want to warn about violations.
21329 2004-08-13 Vincent Celier <celier@gnat.com>
21331 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
21332 when creating a new Unit_Record in table Units.
21334 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
21335 that are violated, if any.
21337 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
21338 add directory separator if path already ends with a directory separator.
21340 2004-08-13 Ed Schonberg <schonberg@gnat.com>
21342 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
21343 unit, this is an attempt to inline a construct that is not available in
21344 the current restricted mode, so abort rather than trying to continue.
21346 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
21347 discriminants that rename those of the parent, recover names of
21348 original discriminants for the constraint on the full view of the
21350 (Complete_Private_Subtype): Do not create a subtype declaration if the
21351 subtype is an itype.
21353 * gnat_rm.texi: Added section on implementation of discriminated
21354 records with default values for discriminants.
21356 2004-08-13 Ed Schonberg <schonberg@gnat.com>
21359 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
21360 the second operand is overloaded.
21362 2004-08-10 Richard Henderson <rth@redhat.com>
21364 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
21365 add __builtin_alloca.
21367 2004-08-10 Richard Henderson <rth@redhat.com>
21369 * config-lang.in (boot_language): Yes.
21371 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
21373 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
21374 from complaining on potential uninitialized reference.
21375 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
21376 new specification and test explicitly for non-zero return value.
21378 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
21379 returning C.int, to avoid using a derived boolean type.
21381 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
21382 Duplicate_Subexpr_No_Checks in preference to direct use of
21383 Remove_Side_Effects and New_Copy_Tree.
21384 Clear Comes_From_Source on prefix of 'Size attribute reference.
21386 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
21387 g-socthi-vxworks.adb: Change calls to
21388 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
21389 and test explicitly for non-zero return value.
21391 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
21392 (Is_Socket_In_Set): Declare imported function as returning C.int, to
21393 avoid using a derived boolean type.
21395 2004-08-09 Albert Lee <lee@gnat.com>
21397 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
21399 2004-08-09 Pascal Obry <obry@gnat.com>
21401 * gnat_ugn.texi: Document new way to build DLLs on Windows using
21402 GCC's -shared option.
21404 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
21405 Options_2 parameter (options put after object files).
21407 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
21409 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
21410 ignore overflows on low and high bounds of an index to also account for
21411 differences in signedness between sizetype and gnu_index_subtype.
21412 These are as legitimate as the ones caused by a lower TYPE_PRECISION
21415 2004-08-09 Robert Dewar <dewar@gnat.com>
21417 * s-solita.ads, s-solita.adb: Minor reformatting
21419 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
21420 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
21421 obsolescent section
21422 Add note that No_Implicit_Conditionals does not suppress
21423 run time constraint checks.
21425 * vms_conv.ads: Minor reformatting
21427 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
21428 and necessary for following change).
21429 (Mark): Return new format Mark_Id containing sec stack address
21430 (Release): Use sec stack address from Mark_Id avoiding Self call
21432 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
21433 pointer (cleanup and necessary for following change).
21434 Define Mark_Id as record containing address of secondary stack, that way
21435 Release does not need to find the stack again, decreasing the number of
21436 calls to Self and improving efficiency.
21438 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
21440 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
21441 case variable into the individual case branches when possible.
21443 * sem_ch11.adb: Minor reformatting
21445 * prj.ads: Correct spelling of suffixs
21447 * prj-nmsc.adb: Minor reformatting
21448 Correct spelling suffixs throughout (also in identifiers)
21450 * freeze.adb: Minor spelling correction
21452 * exp_ch2.adb: Cleanups to handling of Current_Value
21453 (no functional effect).
21455 * bld.adb: Correct spelling of suffixs
21457 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
21459 2004-08-09 Ed Schonberg <schonberg@gnat.com>
21462 * sem_ch7.adb (Install_Private_Declarations): In the body of the
21463 package or of a child, private entities are both immediately_visible
21466 2004-08-09 Ed Schonberg <schonberg@gnat.com>
21468 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
21469 there are no range checks on the value of the literal.
21471 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
21472 wrapped is the triggering alternative of an asynchronous select, action
21473 statements mustbe inserted before the select itself.
21475 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
21476 case where the prefix is a protected function call.
21477 (Resolve_Attribute, case 'Access): The attribute reference on a
21478 subprogram is legal in a generic body if the subprogram is declared
21481 2004-08-09 Vincent Celier <celier@gnat.com>
21483 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
21484 languages, otherwise building the library may fail with unresolved
21486 (Compile_Sources): Do not build libraries if -c switch is used
21488 * gnatlink.adb (Process_Args): New switches -M and -Mmap
21489 (Write_Usage): If map file creation is supported, output new switches
21491 (Gnatlink): When -M is specified, add the necessary switch(es) to the
21492 gcc call, when supported.
21494 * Makefile.in: Added indepsw.o to the object list for gnatlink
21495 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
21497 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
21498 indepsw.adb, indepsw.ads: New files.
21500 2004-08-09 Bernard Banner <banner@gnat.com>
21502 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
21504 * Makefile.in: add section for vxworks x86
21506 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
21508 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
21509 per-object constrained components where the discriminant is of an
21511 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
21512 the parent initialization procedure for derived Unchecked_Unions.
21513 Instead, derived Unchecked_Unions build their own initialization
21515 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
21516 Check the body of the subprogram for details.
21517 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
21518 functions for derived Unchecked_Union types by introducing a condition.
21519 Allow the creation of TSS equality functions for Unchecked_Unions.
21520 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
21521 Add formal parameter Discr to function signature. Discr is used to
21522 control the generated case statement for Unchecked_Union types.
21523 (Make_Eq_If): Rename formal parameter Node to E in function signature.
21525 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
21527 Check the body of the subprogram for details.
21528 (Expand_Composite_Equality): Augment composite type equality to include
21529 correct handling of Unchecked_Union components.
21530 (Expand_N_In): Add condition to detect illegal membership tests when the
21531 subtype mark is a constrained Unchecked_Union and the expression lacks
21532 inferable discriminants, and build a Raise_Program_Error node.
21533 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
21534 to detect types that contain components of unconstrained Unchecked_Union
21535 subtype. Add condition to detect equality between types that have an
21536 unconstrained Unchecked_Union component, and build a Raise_Program_Error
21537 node. Add condition to detect equality between Unchecked_Union types
21538 that lack inferable discriminants, and build a Raise_Program_Error node.
21539 Otherwise build a TSS equality function call.
21540 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
21541 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
21542 with the operand lacking inferable discriminants, and build a Raise_
21543 Program_Error node.
21544 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
21545 composite equality.
21546 (Has_Inferable_Discriminants): Implement new predicate for objects and
21547 expressions of Unchecked_Union type. Check the body of subprogram for
21549 (Has_Unconstrained_UU_Components): Add function
21550 Component_Is_Unconstrained_UU. It is used to detect whether a single
21551 component is of an unconstrained Unchecked_Union subtype. Add function
21552 Variant_Is_Unconstrained_UU. It is used to detect whether a single
21553 component inside a variant is of an unconstrained Unchecked_Union type.
21555 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
21556 inferred discriminant values. Add condition to generate a case
21557 statement with an inferred discriminant as the switch.
21558 (Make_Component_List_Assign): Introduce a Boolean flag that determines
21559 the behaviour of the subprogram in the presence of an Unchecked_Union.
21560 Add condition to trigger the usage of the inferred discriminant value
21561 as the generated case statement switch.
21562 (Make_Field_Assign): Introduce a Boolean flag that determines the
21563 behaviour of the subprogram in the presence of an Unchecked_Union. Add
21564 condition to trigger the usage of the inferred discriminant value as
21565 the right-hand side of the generated assignment.
21567 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
21568 parameter generation when dealing with Unchecked_Unions.
21570 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
21571 checks for Unchecked_Unions.
21573 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
21575 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
21576 Raise_Program_Error nodes for the execution of Read and Write
21577 attributes of Unchecked_Union types and the execution of Input and
21578 Output attributes of Unchecked_Union types that lack default
21579 discriminant values.
21581 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
21582 Unchecked_Union. Add procedure Check_Component. It is used to inspect
21583 per-object constrained components of Unchecked_Unions for being
21584 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
21585 check individual components withing a variant.
21587 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
21588 comparison of Unchecked_Unions.
21589 (Resolve_Equality_OP): Remove guard that prevents equality between
21592 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
21593 of component subtypes for Unchecked_Union components.
21594 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
21595 since it is the actual subtype.
21597 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
21598 pass of Unchecked_Union subtypes as generic actuals to formal types
21599 that lack known_discriminant_parts or that are derived Unchecked_Union
21600 types, and do nothing. In any other case, produce an error message.
21602 * sem_ch3.adb (Analyze_Component_Declaration): Add function
21603 Contains_POC. It determines whether a constraint uses the discriminant
21604 of an enclosing record type.
21605 Add condition to detect per-object constrained component and set the
21607 (Derived_Type_Declaration): Remove guard that prevents derivation from
21608 Unchecked_Union types.
21609 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
21612 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
21613 references to Unchecked_Union discriminants.
21615 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
21616 formal generation when dealing with Unchecked_Unions.
21617 (Set_Actual_Subtypes): Add condition to prevent generation of actual
21618 subtypes for Unchecked_Unions.
21620 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
21621 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
21622 completions of discriminated partial views by Unchecked_Unions and
21623 produce an error message.
21625 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21627 * trans.c (struct stmt_group): New field, GLOBAL.
21628 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
21629 (struct elab_info): New struct.
21630 (elab_info_list, gnu_elab_proc_stack): New variables.
21631 (Compilation_Unit_to_gnu): New procedure.
21632 (gigi): Call it and also handle elaboration procs we've saved.
21633 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
21634 global field from parent.
21635 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
21636 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
21637 (start_stmt_group): Initialize global field from parent.
21638 (add_decl_expr): Set to global for current statement group.
21639 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
21642 * utils.c (global_bindings_p): True when no current_function_decl; no
21643 longer check current_binding_level.
21645 2004-08-09 Ben Brosgol <brosgol@gnat.com>
21647 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
21650 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
21652 2004-08-06 Andreas Schwab <schwab@suse.de>
21654 * utils.c (gnat_define_builtin): Remove second parameter of
21656 (begin_subprog_body): Likewise.
21658 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
21660 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
21661 optimization, not supported by the tree-ssa back-end.
21663 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
21665 * s-mastop-irix.adb: Update comments.
21667 * a-except.adb (Exception_Information): Raise Constraint_Error if
21668 exception Id is Null_Id.
21669 This is required behavior, which is more reliably and clearly checked
21670 at the top level interface level.
21672 2004-07-26 Javier Miranda <miranda@gnat.com>
21674 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
21675 call if a component has no default_expression and the box is used.
21677 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
21678 default_expression and you use box, it behaves as if you had declared a
21679 stand-alone object.
21680 (Resolve_Record_Aggregate): If a component has no default_expression and
21681 you use box, it behaves as if you had declared a stand-alone object.
21683 * sem_ch10.adb (Install_Siblings): Do not make visible the private
21684 entities of private-with siblings.
21686 2004-07-26 Ed Schonberg <schonberg@gnat.com>
21688 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
21689 for a component of an itype, set the parent pointer for analysis,
21690 there is no list in which to insert it.
21692 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
21693 bona-fide renamings, not for inherited operations.
21695 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
21696 actual for a formal that is an access parameter, create local
21697 finalization list even if the expression is not an aggregate.
21699 2004-07-26 Ed Schonberg <schonberg@gnat.com>
21702 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
21703 Diagnose properly illegal subprogram renamings that are library units.
21705 2004-07-26 Ed Schonberg <schonberg@gnat.com>
21708 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
21709 conversion rewritten as an unchecked conversion, check that original
21710 expression is a variable.
21712 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
21713 unchecked_conversion, create new node rather than rewriting in place,
21714 to preserve original construct.
21716 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21718 * gigi.h (gnat_expand_body): Deleted.
21720 * Make-lang.in: (trans.o): Depends on function.h.
21722 * misc.c: (gnat_expand_body): Moved to here.
21724 * trans.c (gnat_expand_body_1): Deleted.
21725 (gnat_expand_body): Moved from here.
21726 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
21727 (add_stmt): Check for marked visited with global_bindings_p.
21728 (gnat_gimplify_expr, case COMPONENT_REF): New case.
21729 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
21731 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
21732 VIEW_CONVERT_EXPR if not operation type.
21734 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
21737 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
21738 changes: reformatting of negation operators, removing unneeded
21739 inequality comparison with zero, converting equality comparisons with
21740 zero to negations, changing int/0/1 to bool/false/true, replace calls
21741 to gigi_abort with abort, and various other similar changes.
21743 2004-07-26 Vincent Celier <celier@gnat.com>
21745 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
21748 * make.adb (Gnatmake): Fail when a library is not present and there is
21749 no object directory.
21751 * mlib-prj.adb (Check_Library): No need to check if the library needs
21752 to be rebuilt if there is no object directory, hence no object files
21753 to build the library.
21755 * opt.ads (Setup_Projects): New Boolean flag.
21757 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
21759 Create directory when Kind /= "" and in "gnat setup". Report error if
21760 directory cannot be created.
21761 (Ada_Check): Create library interface copy dir if it does not exist
21762 and we are in "gnat setup".
21763 (Find_Sources): No error if in "gnat setup" and no Ada sources were
21765 (Language_Independent_Check): Create object directory, exec directory
21766 and/or library directory if they do not exist and we are in
21769 * vms_conv.ads: (Command_Type): New command Setup.
21771 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
21773 * vms_data.ads: Add qualifiers/switches for new built-in command
21776 2004-07-25 Richard Henderson <rth@redhat.com>
21778 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
21779 DECL_IGNORED_P on RESULT_DECL.
21781 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
21783 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
21784 allocation and potentially overflowing update with
21785 Tailored_Exception_Information. Use the sec-stack free procedural
21786 interface to output Exception_Information instead.
21788 * a-except.adb (To_Stderr): New subprogram for character, and string
21789 version moved from a-exextr to be visible from other separate units.
21790 (Tailored_Exception_Information): Remove the procedural version,
21791 previously used by the default Last_Chance_Handler and not any more.
21792 Adjust various comments.
21794 * a-exexda.adb: Generalize the exception information procedural
21795 interface, to minimize the use of secondary stack and the need for
21796 local buffers when the info is to be output to stderr:
21797 (Address_Image): Removed.
21798 (Append_Info_Character): New subprogram, checking for overflows and
21799 outputing to stderr if buffer to fill is of length 0.
21800 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
21801 (Append_Info_Address, Append_Info_Exception_Name,
21802 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
21803 Append_Info_Basic_Exception_Traceback,
21804 Append_Info_Exception_Information): New subprograms.
21805 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
21806 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
21807 Exception_Info_Maxlength, Exception_Name_Length,
21808 Exception_Message_Length): New subprograms.
21809 (Exception_Information): Use Append_Info_Exception_Information.
21810 (Tailored_Exception_Information): Use
21811 Append_Info_Basic_Exception_Information.
21812 Export services for the default Last_Chance_Handler.
21814 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
21815 other separate units.
21817 2004-07-20 Vincent Celier <celier@gnat.com>
21819 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
21821 2004-07-20 Ed Schonberg <schonberg@gnat.com>
21823 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
21824 emit itype references for the designated types of component types that
21825 are declared outside of the full record declaration, and that may
21826 denote a partial view of that record type.
21828 2004-07-20 Ed Schonberg <schonberg@gnat.com>
21831 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
21832 which is the designated type in an access component declaration, to the
21833 list of incomplete dependents of the parent type, to avoid elaboration
21834 issues with out-of-scope subtypes.
21835 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
21836 full view of the parent.
21838 2004-07-20 Ed Schonberg <schonberg@gnat.com>
21841 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
21842 entities that are hidden, such as references to generic actuals
21843 outside an instance.
21845 2004-07-20 Javier Miranda <miranda@gnat.com>
21847 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
21848 support to the new notation.
21849 (Analyze_Selected_Component): Add call to Try_Object_Operation.
21851 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
21853 * s-taprob.adb: Adding the elaboration code required for initializing
21854 the tasking soft links that are common to the full and the restricted
21857 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
21858 restricted run time has been moved to the package
21859 System.Soft_Links.Tasking.
21861 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
21862 restricted run time has been moved to the package
21863 System.Soft_Links.Tasking.
21865 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
21867 * s-solita.ads, s-solita.adb: New files.
21869 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21871 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
21872 Case_Statement_to_gnu): Split off from gnat_to_gnu.
21873 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
21874 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
21875 Exception_Handler_to_gnu_zcx): Likewise.
21877 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
21879 * gigi.h (builtin_function): Declare.
21881 2004-07-15 Robert Dewar <dewar@gnat.com>
21883 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
21886 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
21887 access values as an example of a warning.
21889 * gnat_rm.texi: Document new attribute Has_Access_Values
21891 * gnat-style.texi: Document that box comments belong on nested
21894 * sem_util.ads (Has_Access_Values): Improved documentation
21896 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
21898 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
21899 (Process_Interface_Name): Call to this new procedure
21900 (Set_Extended_Import_Export_External_Name): Call to this new procedure
21902 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
21904 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
21906 * einfo.ads: Minor comment typo fixed
21908 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
21910 * snames.adb: Add _atcb.
21912 * snames.ads: Add Name_uATCB.
21914 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
21915 (in the expanded code) when using the restricted run time.
21917 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
21918 a in parameter in order to allow ATCBs to be preallocated (in the
21921 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
21922 order to allow ATCBs to be preallocated. In case of error, the ATCB is
21923 deallocated in System.Tasking.Stages.
21925 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
21926 order to allow ATCBs to be preallocated.
21928 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
21929 here. It was previously done in Initialize_ATCB.
21931 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
21933 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
21934 Restricted run time.
21936 * exp_ch3.adb: When using the Restricted run time, pass the
21937 preallocated Ada_Task_Control_Block when creating a task.
21939 2004-07-15 Ed Schonberg <schonberg@gnat.com>
21941 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
21942 function call that is itself an actual in an enclosing call, diagnose
21943 problem here rather than assuming that resolution will catch it.
21945 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
21946 the local copy of a generic unit for a formal package, and the generic
21947 is a child unit, install private part of ancestors before compiling
21948 private part of spec.
21950 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
21951 use scope entities rather than tree structures, to handle properly
21952 parent units that are instances rewritten as bodies for inlining
21955 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
21956 Remove_Parents): Handle properly a parent unit that is an
21957 instantiation, when the unit has been rewritten as a body for inlining
21960 * par.adb (Goto_List): Global variable to collect goto statements in a
21961 given unit, for use in detecting natural loops.
21963 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
21964 use in detecting natural loops.
21966 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
21967 backwards goto's, and rewrite as a infinite loop, to improve locality
21970 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
21971 subcomponent that includes an indexed reference, to prevent the
21972 generation of copies that would miscompile the desired assignment
21974 (Build_Task_Image_Decls): Add a numeric suffix to
21975 generated name for string variable, to avoid spurious conflicts with
21976 the name of the type of a single protected object.
21978 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
21979 loop with an explicit exit statement, to avoid generating an
21980 out-of-range value with 'Succ leading to spurious constraint_errors
21981 when compiling with -gnatVo.
21983 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
21985 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
21986 might not be analyzed yet, even if its Etype is already set (case of an
21987 unchecked conversion built using Unchecked_Convert_To, for example).
21988 If the prefix has already been analyzed, this will be a nop anyway.
21990 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
21991 controller type, or an assignment of a record type with controlled
21992 components, copy only user data, and leave the finalization chain
21993 pointers untouched.
21995 2004-07-15 Vincent Celier <celier@gnat.com>
21997 * make.adb (Collect_Arguments): Improve error message when attempting
21998 to compile a source not part of any project, when -x is not used.
22000 * prj.ads: (Defined_Variable_Kind): New subtype
22002 * prj-attr.adb (Register_New_Package): Two new procedures to register
22003 a package with or without its attributes.
22004 (Register_New_Attribute): Mew procedure to register a new attribute in a
22006 New attribute oriented subprograms: Attribute_Node_Id_Of,
22007 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
22008 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
22010 New package oriented subprograms: Package_Node_Id_Of,
22011 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
22013 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
22015 (Package_Node_Id): Now a private, self initialized type
22016 (Register_New_Package): New procedure to register a package with its
22018 New attribute oriented subprograms: Attribute_Node_Id_Of,
22019 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
22020 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
22022 New package oriented subprograms: Package_Node_Id_Of,
22023 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
22025 * prj-dect.adb (Parse_Attribute_Declaration,
22026 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
22028 * prj-makr.adb (Make): Parse existing project file before creating
22029 other files. Fail if there was an error during parsing.
22031 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
22032 new spec of Prj.Attr.
22034 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
22035 to new spec of Prj.Attr.
22037 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22039 * utils2.c: Fix typo in comment.
22041 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22043 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
22044 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
22046 2004-07-14 Andreas Schwab <schwab@suse.de>
22048 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
22050 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22052 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
22054 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
22057 * misc.c (gnat_types_compatible_p): New function.
22058 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
22059 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
22061 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
22062 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
22063 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
22064 (mark_visited): Don't mark dummy type.
22065 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
22066 parameter, we must remove any LJM building from GNU_NAME.
22067 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
22068 (pos_to_constructor): Use int_const_binop.
22069 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
22072 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
22073 (gnat_pushlevel): Set TREE_USE on BLOCK node.
22074 (gnat_install_builtins): Add __builtin_memset.
22076 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
22078 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
22079 for a renaming, stabilize the initialization expression if we are at a
22080 local level. At the local level, uses of the renaming may be performed
22081 by a direct dereference of the initializing expression, and we don't
22082 want possible variables there to be evaluated for every use.
22084 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
22085 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
22086 them on the way. Account for the fact that we may introduce side
22087 effects in the process.
22089 2004-07-13 Richard Henderson <rth@redhat.com>
22091 * misc.c (default_pass_by_ref): Use pass_by_reference.
22093 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
22095 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
22096 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
22098 2004-07-08 Richard Henderson <rth@redhat.com>
22100 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
22103 2004-07-06 Vincent Celier <celier@gnat.com>
22105 * vms_conv.ads: Minor reformatting.
22106 Alphabetical order for enumerated values of type Command_Type, to have
22107 the command in alphabetical order for the usage.
22109 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
22110 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
22112 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
22114 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
22115 (Add_Archive_Path): Only add the global archive if there is one.
22116 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
22117 or not any object file to put in the global archive, and don't build
22118 a global archive if there is none.
22119 (X_Switches): New table
22120 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
22121 in the X_Switches table, if any.
22122 (Initialize): Make sure the X_Switches table is empty
22123 (Scan_Arg): Record -X switches in table X_Switches
22125 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
22127 * make.adb: Minor comment fix
22129 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
22130 invoked with directory information, add the directory in front of the
22133 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
22134 invoked with directory information, add the directory in front of the
22137 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
22138 when Keep_Temporary_Files is False.
22139 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
22140 directory information, add the directory in front of the path.
22141 When not on VMS, handle new switch -dn before the command to set
22142 Keep_Temporary_Files to True.
22143 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
22146 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
22147 invoked with directory information, add the directory in front of the
22150 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
22152 * snames.ads, snames.adb (Name_Stub): New name for the distributed
22155 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
22156 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
22158 * g-socket.adb (To_Timeval): Fix incorrect conversion of
22159 Selector_Duration to Timeval for the case of 0.0.
22161 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
22162 documentation from Evolve_And_Then.
22164 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
22166 * s-taprop-tru64.adb, s-taprop-os2.adb,
22167 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
22169 2004-07-06 Robert Dewar <dewar@gnat.com>
22171 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
22172 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
22173 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
22174 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
22175 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
22176 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
22177 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
22178 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
22179 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
22180 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
22181 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
22182 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
22183 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
22184 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
22185 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
22186 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
22187 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
22188 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
22189 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
22190 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
22191 vms_data.ads: Minor reformatting,
22192 Fix bad box comment format.
22194 * gnat_rm.texi: Fix minor grammatical error
22196 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
22198 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
22199 more cases of discriminated records to be recognized as not needing a
22201 (Has_Access_Values): New function.
22203 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
22205 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
22206 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
22207 with LRM terminology).
22208 Change terminology in comments primitive type => elementary type.
22210 2004-07-06 Ed Schonberg <schonberg@gnat.com>
22213 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
22214 parameters do not impose any requirements on the presence of a body.
22216 2004-07-06 Ed Schonberg <schonberg@gnat.com>
22219 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
22220 compilation unit and is in an open scope at the point of instantiation,
22221 assume that a body may be present later.
22223 2004-07-06 Ed Schonberg <schonberg@gnat.com>
22225 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
22226 Improve error message when specified size is not supported.
22228 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
22229 is never a primitive operation.
22231 2004-07-05 Andreas Schwab <schwab@suse.de>
22233 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
22234 RECORD_OR_UNION_CHECK.
22235 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
22237 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
22239 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
22240 dependency on xgnatugn, instead build it via a submake.
22241 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
22243 2004-07-04 Richard Henderson <rth@redhat.com>
22245 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
22247 2004-07-01 Richard Henderson <rth@redhat.com>
22249 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
22250 * utils.c (max_size): Likewise.
22252 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22254 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
22255 and rest_of_type_compilation; add arg to create_*_decl.
22256 (annotate_decl_with_node): Deleted.
22257 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
22258 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
22259 (get_current_block_context, gnat_pushdecl): New declarations.
22260 (gnat_init_stmt_group): Likewise.
22261 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
22262 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
22263 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
22264 (gnat_init): Call gnat_init_stmt_group.
22265 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
22266 (gnu_pending_elaboration_list): Deleted.
22267 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
22268 (gigi): Rearrange initialization calls and move some to last above.
22269 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
22270 Delete calls to add_decl_expr; add arg to create_*_decl.
22271 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
22272 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
22273 begin_subprog_body and call it.
22274 Don't push and pop ggc context.
22275 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
22276 (add_stmt): Remove handling of DECL_EXPR from here.
22277 If not in function, mark visited.
22278 (add_decl_expr): Put global at top level.
22279 Check for cases of DECL_INITIAL we have to handle here.
22280 (process_type): Add extra arg to create_type_decl.
22281 (build_unit_elab): Rework to just gimplify.
22282 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
22283 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
22284 (get_pending_elaborations, pending_elaborations_p): Likewise.
22285 (push_pending_elaborations, pop_pending_elaborations): Likewise.
22286 (get_elaboration_location, insert_elaboration_list): Likewise.
22287 (gnat_binding_level): Renamed from ada_binding_level.
22288 (init_gnat_to_gnu): Don't clear pending_elaborations.
22289 (global_bindings_p): Treat as global if no current_binding_level.
22290 (set_current_block_context): New function.
22291 (gnat_pushdecl): Renamed from pushdecl; major rework.
22292 All callers changed.
22293 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
22294 (finish_record_type): Call call pushdecl for stub decl.
22295 (function_nesting_depth): Deleted.
22296 (begin_subprog_body): Delete obsolete code.
22297 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
22299 2004-06-28 Robert Dewar <dewar@gnat.com>
22301 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22302 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
22303 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
22304 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
22305 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
22307 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
22308 deal with problem of inefficient slices on machines with strict
22309 alignment, when the slice is a component of a composite.
22311 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
22312 machines, we need the check there as well.
22314 2004-06-28 Ed Schonberg <schonberg@gnat.com>
22316 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
22317 determine safe copying direction for overlapping slice assignments
22318 when component is controlled.
22320 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
22321 formal derived type in the actual for a formal package are visible in
22322 the enclosing instance.
22324 2004-06-28 Ed Schonberg <schonberg@gnat.com>
22327 * sem_util.adb (Trace_Components): Diagnose properly an illegal
22328 circularity involving a private type whose completion includes a
22329 self-referential component.
22330 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
22331 renaming or an instantiation from an implicit derived operation.
22333 2004-06-28 Pascal Obry <obry@gnat.com>
22335 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
22337 (Library_File_Name_For): Idem.
22339 2004-06-28 Matthew Gingell <gingell@gnat.com>
22341 * g-traceb.ads: Add explanatory note on the format of addresses
22342 expected by addr2line.
22344 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
22346 * Makefile.in: Force debugging information on s-tasdeb.adb,
22347 a-except.adb and s-assert.adb needed by the debugger.
22349 2004-06-28 Vincent Celier <celier@gnat.com>
22351 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
22355 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
22357 * prj.adb: Minor reformatting
22358 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
22360 * prj.ads: Comment updates
22362 (Project_Data): Change Flag1 to Need_To_Build_Lib.
22363 Remove Flag2: not used.
22365 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
22368 * gnat_ugn.texi: Put a "null;" declaration in one project file example
22370 * gnat_rm.texi: Document Empty declarations "null;".
22372 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
22373 front of the linker options.
22374 (Link_Foreign): Put the global archives and the libraries in front of
22375 the linker options.
22377 2004-06-28 Javier Miranda <miranda@gnat.com>
22379 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
22380 (RTU_Loaded): Code cleanup
22381 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
22382 withed predefined units.
22384 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
22385 explicitly withed predefined units.
22386 Fix typo in comment
22388 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
22389 explicitly withed predefined units.
22391 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22393 * ada-tree.def (DECL_STMT): Deleted.
22394 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
22395 (DECL_STMT_VAR): Deleted.
22396 * decl.c: add_decl_stmt now add_decl_expr.
22397 * gigi.h: Likewise.
22398 * trans.c: Likewise.
22399 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
22400 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
22401 (add_stmt): Only handle padded type here.
22402 (add_stmt_with_node): Allow gnat_node to not be present.
22403 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
22404 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
22405 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
22406 make a SAVE_EXPR for the entire fat pointer.
22407 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
22408 (create_index_type): Make a DECL_EXPR.
22409 (end_subprog_body): Don't call allocate_struct_function here but
22412 2004-06-25 Pascal Obry <obry@gnat.com>
22414 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
22415 Relocatable from Build_Dynamic_Library call.
22417 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
22418 Relocatable are now synonym.
22420 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
22422 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
22423 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
22426 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
22427 Lib_Address and Relocatable.
22428 (Default_DLL_Address): Removed.
22430 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22431 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22432 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
22433 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
22434 (Default_DLL_Address): Removed.
22436 * mlib-tgt-mingw.adb: Ditto.
22437 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
22439 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
22440 the initial thread stack size.
22442 * a-strmap.ads: Move package L to private part as it is not used in
22443 the spec. Found while reading code.
22445 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
22447 * tracebak.c: Introduce support for a GCC infrastructure based
22448 implementation of __gnat_backtrace.
22450 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
22451 any more. Use accessors instead. This eases maintenance and relaxes
22452 some alignment constraints.
22453 (_GNAT_Exception structure): Remove the Ada specific fields
22454 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
22456 (is_handled_by, __gnat_eh_personality): Replace component references to
22457 exception structure by use of the new accessors.
22459 * init.c (__gnat_initialize): Adjust comments to match the just
22460 reverted meaning of the -static link-time option.
22462 * adaint.c (convert_addresses): Arrange not to define a stub for
22463 mips-irix any more, as we now want to rely on a real version from a
22464 recent libaddr2line.
22466 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
22467 the personality routine can use them and not have to rely on a C
22468 counterpart of the record anymore. This simplifies maintenance and
22469 relaxes the constraint of having Standard'Maximum_Alignment match
22471 Update comments, and add a section on the common header alignment issue.
22473 2004-06-25 Geert Bosch <bosch@gnat.com>
22475 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
22476 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
22478 2004-06-25 Robert Dewar <dewar@gnat.com>
22480 * gnat_rm.texi: Fix section on component clauses to indicate that the
22481 restriction on byte boundary placement still applies for bit packed
22483 Add comment on stack usage from Initialize_Scalars
22485 * gnat_ugn.texi: Add documentation for -gnatyLnnn
22487 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
22488 limiting nesting level.
22490 * usage.adb: Add line for -gnatyLnnn switch
22492 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
22493 sem_ch13.adb, exp_aggr.adb: Minor reformatting
22495 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
22496 type as well as on the subtype. This corrects a problem in freeze in
22497 setting alignments of atomic types.
22499 * sem_eval.ads: Minor comment typo fixed
22501 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
22502 level. Minor reformatting.
22504 * fname.adb (Is_Predefined_File_Name): Require a letter after the
22505 minus sign. This means that file names like a--b.adb will not be
22506 considered predefined.
22508 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
22509 record Test new flag and give diagnostic for bad component clause.
22510 (Freeze_Entity): Set alignment of array from component alignment in
22511 cases where this is safe to do.
22513 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
22516 * cstand.adb: (Create_Standard): Set alignment of String to 1
22518 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
22520 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
22521 code in the common constrained array cases.
22523 * a-storio.adb: Change implementation to avoid possible alignment
22524 problems on machines requiring strict alignment (data should be moved
22525 as type Buffer, not type Elmt).
22527 * checks.adb (Apply_Array_Size_Check): Improve these checks by
22528 killing the overflow checks which we really do not need (64-bits is
22531 2004-06-25 Vincent Celier <celier@gnat.com>
22533 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
22534 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
22535 inconditionally for the main project.
22536 (Recursive_Add_Archives.Add_Archive_Path): New procedure
22537 (Link_Executables.Check_Time_Stamps): New procedure
22538 (Link_Executables.Link_Foreign): New procedure
22539 Changes made to reduce nesting level of this package
22540 (Check): New procedure
22541 (Add_Switches): When not in quiet output, check that a switch is not
22542 the concatenation of several valid switches. If it is, issue a warning.
22543 (Build_Global_Archive): If the global archive is rebuilt, linking need
22545 (Compile_Sources): Rebuilding a library archive does not imply
22546 rebuilding the global archive.
22547 (Build_Global_Archive): New procedure
22548 (Build_Library): New name for Build_Archive, now only for library
22550 (Check_Archive_Builder): New procedure
22551 (Create_Global_Archive_Dependency_File): New procedure
22552 (Gprmake): Call Build_Global_Archive before linking
22553 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
22555 (Scan_Arg): Display the Copyright notice when -v is used
22557 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
22560 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
22562 Add new GNAT LIST qualifier /FILES=
22563 Added qualifier /DIRECTORY= to GNAT METRIC
22564 Added qualifier /FILES= to GNAT METRIC
22565 Added qualifier /FILES to GNAT PRETTY
22567 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
22568 to take into account both versions of the switch.
22570 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
22571 always be the last switch to the gcc driver. Disable switch storing so
22572 that switches automatically added by the gcc driver are not put in the
22575 * prj.adb (Project_Empty): Take into account changes in components of
22578 * prj.ads (Languages_Processed): New enumaration value All_Languages.
22580 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
22581 used. Split Boolean component Ada_Sources_Present in two Boolean
22582 components Ada_Sources_Present and Other_Sources_Present.
22585 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
22586 instead of Sources_Present.
22587 (Set_Ada_Paths.Add.Recursive_Add): Ditto
22589 * prj-nmsc.adb: Minor reformatting
22590 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
22591 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
22592 Check_Ada_Naming_Scheme.
22593 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
22596 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
22598 Make sure that all cycles where there is at least one "limited with"
22600 (Parse_Single_Project): New Boolean parameter In_Limited
22602 * prj-proc.adb (Recursive_Check): When Process_Languages is
22603 All_Languages, call first Prj.Nmsc.Ada_Check, then
22604 Prj.Nmsc.Other_Languages_Check.
22606 * prj-proc.adb (Process): Use Ada_Sources_Present or
22607 Other_Sources_Present (instead of Sources_Present) depending on
22610 * lang-specs.h: Keep -g and -m switches in the same order, and as the
22613 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
22614 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
22616 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
22619 * lib.ads (Disable_Switch_Storing): New procedure.
22621 * make.adb: Modifications to reduce nesting level of this package.
22622 (Check_Standard_Library): New procedure
22623 (Gnatmake.Check_Mains): New procedure
22624 (Gnatmake.Create_Binder_Mapping_File): New procedure
22625 (Compile_Sources.Compile): Add switch -gnatez as the last option
22626 (Display): Never display -gnatez
22628 * Makefile.generic:
22629 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
22631 * gnatcmd.adb (Check_Project): New function
22632 (Process_Link): New procedure to reduce nesting depth
22633 (Check_Files): New procedure to reduce the nesting depth.
22634 For GNAT METRIC, include the inherited sources in extending projects.
22635 (GNATCmd): When GNAT LS is invoked with a project file and no files,
22636 add the list of files from the sources of the project file. If this list
22637 is too long, put it in a temp text files and use switch -files=
22638 (Delete_Temp_Config_Files): Delete the temp text file that contains
22639 a list of source for gnatpp or gnatmetric, if one has been created.
22640 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
22641 in the project file is too large, create a temporary text file that
22642 list them and pass it to the tool with "-files=<temp text file>".
22643 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
22645 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
22646 generated file is in not in Ada.
22648 * gnatls.adb: Remove all parameters And_Save that are no longer used.
22649 (Scan_Ls_Arg): Add processing for -files=
22650 (Usage): Add line for -files=
22652 * g-os_lib.adb (On_Windows): New global constant Boolean flag
22653 (Normalize_Pathname): When on Windows and the path starts with a
22654 directory separator, make sure that the resulting path will start with
22657 * clean.adb (Clean_Archive): New procedure
22658 (Clean_Project): When there is non-Ada code, delete the global archive,
22659 the archive dependency files, the object files and their dependency
22660 files, if they exist.
22661 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
22663 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
22665 * sinfo.ads: Fix typo in comment.
22667 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
22668 the TSS for remote access-to-subprogram types, since these TSS are
22669 always present once the type has been analyzed.
22670 (RAS_E_Dereference): Same.
22672 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
22673 reference raises Bad_Attribute, mark the reference as analyzed so the
22674 node (and any children resulting from rewrites that could have occurred
22675 during the analysis that ultimately failed) is not analyzed again.
22677 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
22679 * exp_dist.adb: Minor comment fix.
22681 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
22682 type is an anonymous access type, no unchecked deallocation of the
22683 allocated object can occur. If the object is controlled, attach it with
22684 a count of 1. This allows attachment to the Global_Final_List, if
22685 no other relevant list is available.
22686 (Get_Allocator_Final_List): For an anonymous access type that is
22687 the type of a discriminant or record component, the corresponding
22688 finalisation list is the one of the scope of the type.
22690 2004-06-25 Ed Schonberg <schonberg@gnat.com>
22692 * sem_ch3.adb (Replace_Type): When computing the signature of an
22693 inherited subprogram, use the first subtype if the derived type
22694 declaration has no constraint.
22696 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
22697 before applying previous optimization. Minor code cleanup.
22699 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
22700 placed at the beginning of an unpacked record without explicit
22701 alignment, a slice of it will be aligned and does not need a copy when
22704 2004-06-25 Ed Schonberg <schonberg@gnat.com>
22708 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
22709 reference is written with expressions mimicking parameters.
22711 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
22714 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
22715 STEP 2a. The constraints of a full type declaration of a derived record
22716 type are checked for conformance with those declared in the
22717 corresponding private extension declaration. The message
22718 "not conformant with previous declaration" is emitted if an error is
22721 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
22723 * g-traceb.ads: Document the need for -E binder switch in the spec.
22725 * g-trasym.ads: Document the need for -E binder switch in the spec.
22727 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
22729 * sem_prag.adb: Add handling of pragma Detect_Blocking.
22731 * snames.h, snames.ads, snames.adb: Add entry for pragma
22734 * s-rident.ads: Change reference to pragma Detect_Blocking.
22736 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
22739 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
22740 to indicate whether pragma Detect_Blocking is active.
22742 * par-prag.adb: Add entry for pragma Detect_Blocking.
22744 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
22745 of not handling WITH.
22746 Note that this replaces the previous update which was incorrect.
22748 2004-06-25 Javier Miranda <miranda@gnat.com>
22750 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
22751 use-clauses to have a clean environment.
22753 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
22754 the installation of the use-clauses to stablish a clean environment in
22755 case of compilation of a separate unit; otherwise the call to
22756 use_one_package is protected by the barrier Applicable_Use.
22758 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
22759 the installation of the use-clauses to stablish a clean environment in
22760 case of compilation of a separate unit.
22761 (End_Use_Clauses): Minor comment cleanup.
22763 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
22765 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
22767 2004-06-23 Richard Henderson <rth@redhat.com>
22769 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
22771 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22773 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
22774 now bool instead of int.
22775 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
22776 * trans.c (gnu_switch_label_stack): New function.
22777 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
22778 elaboration of renamed entity returns.
22779 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
22780 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
22781 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
22782 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
22783 DECL_SIZE_UNIT and simplify variable-sized case.
22784 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
22785 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
22786 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
22787 (build_unit_elab): Disable for now.
22788 * utils.c (mark_visited): New function.
22789 (pushdecl): Walk tree to call it for global decl.
22790 (update_pointer_to): Update all variants of pointer and ref types.
22791 Add arg to COMPONENT_REF.
22792 (convert): Likewise.
22793 Move check for converting between variants lower down.
22794 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
22795 (build_allocator): Don't force type of MODIFY_EXPR.
22796 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
22797 put_var_into_stack.
22799 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22801 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
22802 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
22803 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
22805 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
22806 all callers changed.
22807 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
22808 the way that EXIT_STMT finds the loop label.
22809 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
22810 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
22811 (add_stmt): Use annotate_with_locus insted of setting directly.
22812 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
22813 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
22814 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
22815 (build_vms_descriptor): Add extra args to ARRAY_REF.
22816 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
22817 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
22819 (build_binary_op): Don't make explicit CONVERT_EXPR.
22820 Add extra rgs to ARRAY_REF.
22822 2004-06-14 Pascal Obry <obry@gnat.com>
22824 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
22825 Windows. Fix minor typo.
22827 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
22828 which is now supported on Windows. With this implementation using the
22829 Library Project feature is no different on Windows than on UNIX.
22831 2004-06-14 Vincent Celier <celier@gnat.com>
22833 * makegpr.adb (Compile_Sources): Nothing to do when there are no
22836 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
22838 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
22839 found, show the project name and the path of the previously parsed
22842 2004-06-14 Ed Schonberg <schonberg@gnat.com>
22844 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
22845 array, avoid copying the actual before the call.
22847 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
22849 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
22850 Instead, allocate memory on worst-case alignment assumptions, and then
22851 return an aligned address within the allocated zone.
22853 2004-06-14 Robert Dewar <dewar@gnat.com>
22855 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
22856 elab entities in predefined units in No_Run_Time_Mode.
22857 (Gen_Adainit_C): Same fix
22858 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
22859 units in No_Run_Time_Mode
22860 (Gen_Elab_Calls_C): Same fix
22862 * symbols-vms-alpha.adb: Minor reformatting
22864 * g-debpoo.ads: Minor reformatting
22866 * lib.adb (In_Same_Extended_Unit): Version working on node id's
22868 * lib.ads (In_Same_Extended_Unit): Version working on node id's
22870 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
22873 * make.adb: Minor reformatting
22875 * par-ch12.adb: Minor reformatting
22877 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
22879 * prj-strt.adb: Minor reformatting
22881 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
22884 * sem_attr.adb: Minor reformatting
22886 * sem_ch7.adb: Minor reformatting
22888 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
22889 for type in the same unit as the object declaration.
22891 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
22892 static string expressions and not just string literals.
22894 (Set_Warning): Reset restriction warning flag for restriction pragma
22895 Implement pragma Profile_Warnings
22896 Implement pragma Profile (Restricted)
22897 Give obolescent messages for old restrictions and pragmas
22899 * snames.h, snames.ads, snames.adb: Add new entry for pragma
22902 * s-rident.ads: Add declarations for restrictions required by profile
22903 Restricted and profile Ravenscar.
22905 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
22907 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
22908 configuration pragmas.
22910 2004-06-11 Vincent Celier <celier@gnat.com>
22912 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
22913 gnatsym, when symbol policy is Restricted.
22915 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
22916 gnatsym, when symbol policy is Restricted.
22918 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
22919 read the symbol file.
22920 (Finalize): Fail in symbol policy Restricted if a symbol in the original
22921 symbol file is not in the object files. Do not create a new symbol file
22922 when symbol policy is Restricted.
22924 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
22927 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
22929 (Usage): Line for new switch -R
22931 * make.adb (Initialize): When the platform is not VMS, add the
22932 directory where gnatmake is invoked in the front of the path, if
22933 gnatmake is invoked with directory information. Change the Scan_Args
22934 while loop to a for loop.
22935 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
22936 if Depth is equal or greater than the proposed depth, there is nothing
22938 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
22941 * prj.ads: Add new symbol policy Restricted.
22943 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
22944 with the new parameters Check_All_Labels and Case_Location.
22946 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
22947 (Library_Symbol_File needs to be defined).
22949 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
22950 and Case_Location If Check_All_Labels is True, check that all values of
22951 the string type are used, and output warning(s) if they are not.
22953 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
22956 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
22958 * gnat_ugn.texi: Update documentation about the library directory in
22961 * makegpr.adb (Display_Command): In verbose mode, also display the
22962 value of the CPATH env var, when the compiler is gcc.
22963 (Initialize): Change the Scan_Args while loop to a for loop
22964 (Compile_Individual_Sources): Change directory to object directory
22965 before compilations.
22967 * symbols.ads: New symbol policy Restricted.
22969 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
22971 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
22972 is now taken care of internally in the Exception_Propagation package
22973 and does not require clients assistance any more.
22975 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
22976 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
22977 functions. Helpers to maintain a predicate required in the handling of
22978 occurrence transfer between tasks.
22979 This is now handled internally and does not require clients assistance
22980 for the setup/propagate separation anymore.
22981 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
22982 allocation strategy, handle the Setup_And_Not_Propagated predicate and
22985 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
22986 raise_after_setup, now that everything is handled internally within the
22987 setup/propagation engine.
22989 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
22991 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
22992 Add additional conditions for the case of an actual being a simple
22993 name or literal. Improve inlining by preventing the generation
22994 of temporaries with a short lifetime (one use).
22996 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
22999 * einfo.ads: Minor comment updates for Has_Completion and
23000 E_Constant list of flags.
23002 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
23003 and constant redeclarations now set the Has_Completion flag of their
23004 defining identifiers.
23006 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
23007 Inspect_Deferred_Constant_Completion.
23008 Used to detect private deferred constants that have not been completed
23009 either by a constant redeclaration or pragma Import. Emits error message
23010 "constant declaration requires initialization expression".
23012 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
23013 completes a deferred constant.
23015 2004-06-11 Geert Bosch <bosch@gnat.com>
23017 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
23019 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
23020 calculating exponent for scaling denormal numbers.
23021 (Leading_Part): Properly raise Constraint_Error for zero or negative
23023 (Remainder): Properly raise Constraint_Error for zero divisor.
23025 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
23027 * sem_util.adb: Minor reformatting.
23029 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
23030 dereference when accessing the entry parameter record.
23031 (Check_Array_Type): Always check for possible implicit dereference.
23032 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
23033 Abort if a pointer is still present (denoting that an implicit
23034 dereference was left in the tree by the front-end).
23036 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
23037 dereference when accessing the entry parameter record.
23038 (Check_Array_Type): Always check for possible implicit dereference.
23039 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
23040 Abort if a pointer is still present (denoting that an implicit
23041 dereference was left in the tree by the front-end).
23043 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
23045 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
23046 message, like the compiler itself does. Easier to parse the output.
23048 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
23050 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
23051 be base names, and not includes directories.
23053 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
23055 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
23056 so that dependencies are properly taken into account by make.
23058 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
23061 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
23062 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
23064 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
23066 * Makefile.in (install-gnatlib): install target-specific run-time files.
23068 * Make-lang.in: Remove obsolete targets.
23070 2004-06-11 Ed Schonberg <schonberg@gnat.com>
23072 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
23073 specification, to catch misuses of program unit names.
23075 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
23076 superfluous conversions in an instance.
23078 2004-06-11 Ed Schonberg <schonberg@gnat.com>
23081 * sem_ch12.adb (Save_References): If operator node has been folded to
23082 enumeration literal, associated_node must be discarded.
23084 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
23086 * s-stchop-vxworks.adb: Add required pragma Convention to
23087 Task_Descriptor because it is updated by a C function.
23089 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
23092 * Makefile.in: Remove target specific SO_OPT on IRIX
23094 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23096 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
23097 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
23098 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
23099 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
23100 (STMT_STMT, USE_STMT): New statement codes.
23101 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
23102 * ada-tree.h: Reflect above changes.
23103 (struct tree_loop_id): Deleted.
23104 (union lang_tree_node, struct lang_decl, struct lang_type):
23105 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
23106 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
23107 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
23108 (IS_ADA_STMT): New macro.
23109 * decl.c (annotate_decl_with_node): New function.
23110 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
23111 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
23112 Call add_stmt_with_node to do needed assignments.
23113 Add call to update setjmp buffer directly, not via EXPR_STMT.
23114 (maybe_variable): Argment GNAT_NODE deleted.
23115 * gigi.h (maybe_variable): Likewise.
23116 (make_transform, add_stmt_with_node, set_block_for_group): New.
23117 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
23118 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
23119 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
23120 (set_lineno, set_lineno_from_sloc): Likewise.
23121 (record_code_position, insert_code_for): Likewise.
23122 (gnat_poplevel): Now returns void.
23123 (end_subprog_body): Now takes argument.
23124 * misc.c (cgraph.h, tree-inline.h): New includes.
23125 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
23126 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
23127 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
23128 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
23129 (gnat_parse_file): Don't set immediate_size_expand.
23130 Call cgraph functions.
23131 (gnat_expand_expr): Remove most cases.
23132 (record_code_position, insert_code_for): Remove from here.
23133 * trans.c (toplev.h, tree-gimple.h): Now included.
23134 (discard_file_names): Deleted.
23135 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
23136 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
23137 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
23138 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
23139 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
23140 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
23141 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
23142 (set_block_for_group, add_stmt_list): Likewise.
23143 (start_stmt_group): Renamed from start_block_stmt.
23144 (end_stmt_group): Likewise, from end_block_stmt.
23145 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
23146 (gigi): Don't set discard_file_names or call set_lineno.
23147 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
23148 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
23149 Numerous changes throughout to reflect new names and complete
23150 function-at-a-time implementation.
23151 (gnat_expand_stmt): Delete or comment out all cases.
23152 (process_inlined_subprograms): Use add_stmt.
23153 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
23154 call set_lineno; also remove unneeded block handling.
23155 (process_type): Remove unneeded block handling.
23156 (build_unit_elab): Remove calls to deleted functions.
23157 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
23158 (tree-dump.h): Likewise.
23159 (struct ada_binding_level): Add field jmpbuf_decl.
23160 (gnat_define_builtin, gnat_install_builtins): New.
23161 (gnat_gimplify_function, gnat_finalize): Likewise.
23162 (gnat_poplevel): No longer return BLOCK, set it instead.
23163 Remove code dealing with nested functions.
23164 (gnat_init_decl_processing): Also set size_type_node.
23165 Call gnat_install_builtins.
23166 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
23167 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
23168 Remove special-case for "main".
23169 (end_subprog_body): Add arg and rework for tree-ssa.
23170 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
23171 Add case for BOOLEAN_TYPE.
23172 * utils2.c (rtl.h): Now include.
23173 (build_call_raise): Test Debug_Flag_NN directly.
23174 (build_call_alloc_dealloc): Don't use local stack allocation for now.
23175 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
23176 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
23178 2004-06-07 Robert Dewar <dewar@gnat.com>
23180 * a-direct.ads, einfo.ads: Minor comment updates
23182 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
23183 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
23184 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
23185 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
23186 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
23188 * s-interr-sigaction.adb: Remove unreferenced variable
23189 (Attached_Interrupts). Minor reformatting.
23190 Avoid use of variable I (replace by J).
23192 * par-ch10.adb: Fix text of one error message
23194 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
23195 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
23196 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
23197 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
23198 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
23199 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
23200 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
23201 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
23202 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
23203 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
23204 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
23207 2004-06-07 Doug Rupp <rupp@gnat.com>
23209 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
23211 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
23213 * mlib-tgt-vms-ia64.adb: New file.
23215 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
23216 Add mlib-tgt-vms-ia64.adb
23217 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
23218 Move to alpha specific ifeq section.
23219 Add VMS specific versions of symbols.adb
23220 Renaming of 5q vms files.
23222 * 5qsystem.ads renamed to system-vms_64.ads.
23224 2004-06-07 Vincent Celier <celier@gnat.com>
23226 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
23227 explain that when a time of day corresponding to the non existing hour
23228 on the day switching to DST is specified, Split may return a different
23231 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
23234 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
23235 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
23237 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
23239 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
23240 the linking options.
23241 (Build_Library.Check_Libs): On VMS, if there is a dependency on
23242 g-trasym.ads, set Gtrasymobj_Needed to True.
23244 * prj-attr.adb: Add new package Metrics for gnatmetric
23246 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
23247 canonical case to take into account files with upper case characters on
23249 (Ada_Check): Load the reference symbol file name in the name buffer to
23250 check it, not the symbol file name.
23252 * snames.ads, snames.adb: Add standard name Metrics (name of project
23253 file package for gnatmetric).
23255 * vms_conv.ads: Add Metric to Comment_Type
23257 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
23259 * vms_data.ads: Add qualifiers for GNAT METRIC
23261 * makegpr.adb (Link_Executables): Take into account the switches
23262 specified in package Linker of the main project.
23264 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
23266 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
23267 the index of the last element is Units.Last, not Units.Table'Last
23268 (which is usually not a valid index within the actually allocated
23269 storage for the table).
23271 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
23272 determines whether to generate a call to a checked storage pool
23273 Dereference action.
23274 Generate such a call only for a dereference that either comes from
23275 source, or is the result of rewriting a dereference that comes from
23278 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
23280 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
23282 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
23284 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
23285 file level, elaborate the stride for inner dimensions in alignment
23288 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
23291 2004-06-07 Javier Miranda <miranda@gnat.com>
23293 * exp_ch6.adb: Correct wrong modification in previous patch
23295 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
23297 * g-trasym.ads: Corrected comment to properly reflect level of support
23300 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
23302 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
23303 includes case of a variable referenced on the left hand side of an
23304 assignment, therefore remove redundant code. Variables and prefixes of
23305 indexed or selected components are now marked as referenced on left
23306 hand side. Warnings are now properly emitted when variables or prefixes
23307 are assigned but not read.
23309 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
23310 left hand side referenced variables. Private access types do not
23311 produce the warning "variable ... is assigned but never read".
23312 Add also additional checks to left hand side referenced variables.
23313 Aliased, renamed objects and access types do not produce the warning
23314 "variable ... is assigned but never read" since other entities may read
23315 the memory location.
23317 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
23319 * Makefile.in: In the powerpc/vxworks-specific section, restore
23320 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
23323 2004-06-07 Ed Schonberg <schonberg@gnat.com>
23325 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
23326 predefined operators.
23327 Removes spurious type errors from g-trasym-vms.adb.
23329 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
23330 distinct from the operator appearing in the source, call appropriate
23331 routine to insert conversions when needed, and complete resolution of
23333 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
23334 interpretations for rewritten right operand.
23335 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
23336 the other operand is overloaded and the context is a type conversion.
23338 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23340 * ada-tree.def (BLOCK_STMT): Now has two operands.
23343 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
23345 * gigi.h: (gnat_poplevel): Now returns a tree.
23347 * trans.c (end_block_stmt): Add arg; all callers changed.
23348 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
23349 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
23350 (add_stmt): Set TREE_TYPE.
23351 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
23352 (gnat_expand_stmt, case BREAK_STMT): New case.
23354 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
23356 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
23358 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
23359 procedure Set_Stack_Size that is not needed.
23361 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
23363 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
23364 used for gnatpp input file and for the files upon which it depends
23366 2004-06-07 Ben Brosgol <brosgol@gnat.com>
23368 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
23370 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
23372 * gnatvsn.ads: Bump version numbers appropriately.
23373 Add new build type.
23375 2004-06-07 Pascal Obry <obry@gnat.com>
23377 * gnat_ugn.texi: Improve comments about imported names and link names
23378 on Windows. Add a note about the requirement to use -k gnatdll's option
23379 when working with a DLL which has stripped stdcall symbols (no @nn
23382 2004-05-27 Vincent Celier <celier@gnat.com>
23384 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
23385 COMMENTS_LAYOUT=UNTOUCHED
23387 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
23388 symbols-vms-alpha.adb
23390 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
23392 * sem.ads: Clarify documentation on checks suppression.
23394 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
23396 2004-05-27 Ed Schonberg <schonberg@gnat.com>
23398 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
23399 the case of multiple derivations.
23400 (Is_Object_Reference): For a selected component, verify that the prefix
23401 is itself an object and not a value.
23403 * sem_ch12.adb (Same_Instantiated_Constant): New name for
23404 Same_Instantiated_Entity.
23405 (Same_Instantiated_Variable): Subsidiary to
23406 Check_Formal_Package_Instance, to recognize actuals for in-out generic
23407 formals that are obtained from a previous formal package.
23408 (Instantiate_Subprogram_Body): Emit proper error when
23409 generating code and the proper body of a stub is missing.
23411 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
23412 has a universal interpretation, do the disambiguation here.
23414 * exp_ch4.adb (Expand_N_Type_Conversion,
23415 Expand_N_Unchecked_Type_Conversion): Special handling when target type
23416 is Address, to avoid typing anomalies when Address is a visible integer
23419 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
23420 to determine whether a subprogram should not be marked Pure, even when
23421 declared in a pure package.
23423 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
23425 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
23427 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
23428 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
23429 Update the documentation about the Ravenscar profile, following the
23430 definition found in AI-249.
23432 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
23433 setting the Profile (Ravenscar). This must be done in addition to
23434 setting the required restrictions.
23436 * rtsfind.ads: Add the set of operations defined in package
23439 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
23442 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
23444 lang-specs.h: Always require -c or -S and always redirect to /dev/null
23445 if -gnatc or -gnats is passed.
23447 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
23449 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
23450 a significant reference. Warnings are now properly emitted when a
23451 discriminated type is not referenced.
23453 * lib-xref.adb (Generate_Reference): A deferred constant completion,
23454 record representation clause or record type discriminant does not
23455 produce a reference to its corresponding entity. Warnings are now
23456 properly emitted when deferred constants and record types are not
23459 2004-05-27 Geert Bosch <bosch@gnat.com>
23461 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
23462 Fixes ACATS Annex G tests.
23464 2004-05-27 Robert Dewar <dewar@gnat.com>
23466 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
23469 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
23471 * s-interr.adb (Server_Task): Take into account case of early return
23472 from sigwait under e.g. linux.
23474 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
23476 * gnat_ugn.texi: Add description for the new gnatpp options:
23477 -rnb - replace the original source without creating its backup copy
23478 -c0 - do not format comments
23480 2004-05-24 Geert Bosch <bosch@gnat.com>
23482 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
23483 with 192 bits of precision, sufficient to reduce a double-extended
23484 arguments X with a maximum relative error of T'Machine_Epsilon, for X
23485 in -2.0**32 .. 2.0**32.
23486 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
23487 reduction by the processor, which only uses a 68-bit approximation of
23489 (Tan): Always reduce arguments and compute function either using
23490 the processor's fptan instruction, or by dividing sin and cos as needed.
23492 2004-05-24 Doug Rupp <rupp@gnat.com>
23494 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
23495 gcc error on 32/64 bit VMS.
23497 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
23499 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
23500 since this is what we get for stack overflows although not documented
23502 Document the issues which may require adjustments to our signal
23505 2004-05-24 Ed Schonberg <schonberg@gnat.com>
23507 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
23508 enclosing dynamic scope if the instantiation is within a generic unit.
23510 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
23512 * exp_dbug.ads: Fix typo.
23514 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
23515 Rename it to its proper name: system-linux-ia64.ads
23516 (stamp-gnatlib1): Remove extra target specific run time files when
23517 setting up the rts directory.
23519 2004-05-24 Javier Miranda <miranda@gnat.com>
23521 * einfo.ads, einfo.adb (Limited_Views): Removed.
23522 (Limited_View): New attribute that replaces the previous one. It is
23523 now a bona fide package with the limited-view list through the
23524 first_entity and first_private attributes.
23526 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
23527 limited-private-with clause.
23528 (Install_Limited_Withed_Unit): Install the private declarations of a
23529 limited-private-withed package. Update the installation of the shadow
23530 entities according to the new structure (see Build_Limited_Views)
23531 (Build_Limited_Views): Replace the previous implementation of the
23532 limited view by a package entity that references the first shadow
23533 entity plus the first shadow private entity (required for limited-
23534 private-with clause)
23535 (New_Internal_Shadow_Entity): Code cleanup.
23536 (Remove_Limited_With_Clause): Update the implementation to undo the
23537 new work carried out by Build_Limited_Views.
23538 (Build_Chain): Complete documentation.
23539 Replace Ada0Y by Ada 0Y in comments
23542 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
23543 types the level of accessibility depends on the enclosing type
23546 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
23547 entities. Complete documentation of previous change.
23549 2004-05-24 Robert Dewar <dewar@gnat.com>
23551 * namet.adb: Minor reformatting
23552 Avoid use of name I (replace by J)
23553 Minor code restructuring
23555 * sem_ch6.adb: Minor reformatting
23557 * lib-writ.adb: Do not set restriction as active if this is a
23558 Restriction_Warning case.
23560 * sem_prag.adb: Reset restriction warning flag if real pragma
23561 restriction encountered.
23563 * s-htable.adb: Minor reformatting
23564 Change rotate count to 3 in Hash (improves hash for small strings)
23566 * 5qsystem.ads: Add comments for type Address (no literals allowed).
23568 * gnat_ugn.texi: Add new section of documentation "Code Generation
23569 Control", which describes the use of -m switches.
23571 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
23573 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
23574 through the DECL_INITIAL for renamed variables.
23576 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
23578 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
23580 2004-05-19 Joel Brobecker <brobecker@gnat.com>
23582 * exp_dbug.ads: Correct comments concerning handling of overloading,
23583 since we no longer use $ anymore.
23585 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
23587 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
23588 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
23589 with illegal subunits.
23591 2004-05-19 Ed Schonberg <schonberg@gnat.com>
23593 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
23594 body with front-end inlining enabled, check whether an inline pragma
23595 appears immediately after the body and applies to it.
23597 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
23598 enabled and the pragma appears after the body of the subprogram.
23600 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23602 Part of function-at-a-time conversion
23604 * misc.c (adjust_decl_rtl): Deleted.
23605 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
23608 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
23609 (add_decl_stmt, add_stmt, block_has_vars): New functions.
23610 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
23612 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
23613 when making a decl.
23614 (gnat_to_gnu_entity): Likewise.
23615 Use add_stmt to update setjmp buffer.
23616 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
23618 No longer call adjust_decl_rtl.
23619 (DECL_INIT_BY_ASSIGN_P): New macro.
23620 (DECL_STMT_VAR): Likewise.
23622 * trans.c (gigi): Call start_block_stmt to make the outermost
23624 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
23625 Call start_block_stmt and end_block_stmt temporarily.
23626 Use gnat_expand_stmt instead of expand_expr_stmt.
23627 (add_decl_stmt): New function.
23628 (tree_transform): Call it.
23629 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
23630 (end_block_stmt): Set type and NULL_STMT.
23631 (gnat_expand_stmt): Make recursize call instead of calling
23633 (gnat_expand_stmt, case DECL_STMT): New case.
23634 (set_lineno_from_sloc): Do nothing if global.
23635 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
23636 (start_block_stmt, add_stmt, end_block_stmt): New functions.
23637 (build_block_stmt): Call them.
23638 (gnat_to_code): Don't expand NULL_STMT.
23639 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
23641 (tree_transform): Likewise.
23642 (tree_transform, case N_Null_Statement): Return NULL_STMT.
23643 (gnat_expand_stmt, case NULL_STMT): New case.
23644 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
23647 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
23650 * utils.c (create_var_decl): Do not call expand_decl or
23652 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
23653 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
23655 (struct e_stack): Add chain_next to GTY.
23656 (struct binding_level): Deleted.
23657 (struct ada_binding_level): New struct.
23658 (free_block_chain): New.
23659 (global_binding_level, clear_binding_level): Deleted.
23660 (global_bindings_p): Rework to see if no chain.
23661 (kept_level_p, set_block): Deleted.
23662 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
23663 new data structure and work directly on BLOCK node.
23664 (gnat_poplevel): Similarly.
23665 (get_decls): Look at BLOCK_VARS.
23666 (insert_block): Work directly on BLOCK node.
23667 (block_has_var): New function.
23668 (pushdecl): Rework for new binding structures.
23669 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
23671 (build_subprog_body): Likewise.
23672 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
23674 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
23676 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
23677 (DECL_STMT_VAR): Likewise.
23679 2004-05-17 Robert Dewar <dewar@gnat.com>
23681 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
23684 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
23685 of restriction synonyums by using
23686 Restrict.Process_Restriction_Synonyms.
23688 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
23690 * s-restri.ads (Tasking_Allowed): Correct missing comment
23692 * s-rident.ads: Add entries for restriction synonyms
23694 * ali.adb: Fix some problems with badly formatted ALI files that can
23695 result in infinite loops.
23697 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
23698 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
23699 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
23700 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
23701 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
23702 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
23703 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
23704 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
23705 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
23706 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
23707 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
23708 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
23709 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
23710 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
23711 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
23712 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
23713 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
23714 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
23715 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
23716 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
23717 to Task_Id (minor cleanup).
23719 2004-05-17 Vincent Celier <celier@gnat.com>
23721 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
23722 directory separator.
23724 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
23725 project being extended, if Languages is not declared in extending
23728 2004-05-17 Javier Miranda <miranda@gnat.com>
23730 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
23731 limited view of a visible sibling.
23733 2004-05-14 Robert Dewar <dewar@gnat.com>
23735 * gnat_ugn.texi: Minor change to -gnatS documentation
23737 * sprint.adb: Remove some instances of Assert (False) and for this
23738 purpose replace them by output of a ??? string.
23740 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
23743 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
23744 flag processing. This was suppressing required dependencies in
23745 No_Run_Time mode and is not needed since the binder does not generate
23746 references for things in libgnat anyway.
23748 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
23751 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
23753 * gnat_ugn.texi: Document AIX-specific issue with initialization of
23756 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
23757 action for the case of an actual parameter in an init proc call.
23759 2004-05-14 Ed Schonberg <schonberg@gnat.com>
23761 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
23762 subtype, check visible entities in base type.
23764 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
23765 actions if the object is a renaming.
23767 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
23768 Check_Formal_Package_Instance, to determine more precisely when the
23769 formal and the actual denote the same entity.
23771 2004-05-14 Javier Miranda <miranda@gnat.com>
23773 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
23775 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
23776 corresponding to a private_with must be removed from visibility; it
23777 will be made visible later, just before we analyze the private part of
23779 (Check_Private_Child_Unit): Allow private_with clauses in public
23781 (Install_Siblings): Make visible the private entities of private-withed
23783 (Install_Withed_Unit): Do not install the private withed unit if we
23784 are compiling a package declaration and the Private_With_OK flag was
23785 not set by the caller. These declarations will be installed later,
23786 just before we analyze the private part of the package.
23788 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
23789 during the evaluation of the expression that initializes the object,
23790 decorate it with the expected type to avoid cascade errors.
23793 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
23794 subprogram we have to install the private_with clauses after its
23795 specification has been analyzed (as documented in AI-262.TXT).
23797 * sem_ch8.adb (Has_Private_With): New function. Determines if the
23798 current compilation unit has a private with on a given entity.
23799 (Find_Direct_Name): Detect the Beaujolais problem described in
23802 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
23803 provides the functionality of the function Is_Ancestor that was
23804 previously available in sem_ch10. It has been renamed to avoid
23807 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
23809 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23811 * utils.c (build_vms_descriptor): Use SImode pointers.
23813 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
23815 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
23817 2004-05-14 GNAT Script <nobody@gnat.com>
23819 * Make-lang.in: Makefile automatically updated
23821 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
23823 Renaming of target specific files for clarity
23825 * Makefile.in: Rename GNAT target specific files.
23827 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
23828 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
23829 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
23830 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
23831 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
23832 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
23833 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
23834 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
23835 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
23836 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
23837 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
23838 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
23839 51osinte.adb, 51osinte.ads, 51system.ads,
23840 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
23841 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
23842 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
23843 56tpopsp.adb, 57system.ads, 58system.ads,
23844 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
23845 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
23846 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
23847 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
23848 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
23849 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
23850 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
23851 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
23852 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
23853 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
23854 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
23855 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
23856 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
23857 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
23858 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
23859 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
23860 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
23861 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
23862 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
23863 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
23864 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
23865 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
23866 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
23867 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
23868 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
23869 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
23870 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
23871 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
23872 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
23873 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
23874 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
23875 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
23876 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
23877 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
23878 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
23879 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
23880 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
23881 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
23882 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
23883 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
23885 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
23886 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
23887 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
23888 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
23889 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
23890 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
23891 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
23892 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
23893 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
23894 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
23895 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
23896 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
23897 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
23898 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
23899 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
23900 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
23901 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
23902 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
23903 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
23904 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
23905 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
23906 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
23907 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
23908 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
23909 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
23910 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
23911 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
23912 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
23913 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
23914 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
23915 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
23916 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
23917 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
23918 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
23919 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
23920 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
23921 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
23922 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
23923 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
23924 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
23925 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
23926 s-osinte-vms.ads, s-osinte-vxworks.adb,
23927 s-osinte-vxworks.ads, s-osprim-mingw.adb,
23928 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
23929 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23930 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
23931 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
23932 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
23933 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23934 s-stchop-vxworks.adb, s-taprop-dummy.adb,
23935 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
23936 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
23937 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
23938 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
23939 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
23940 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
23941 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
23942 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
23943 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
23944 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
23945 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
23946 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
23947 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
23948 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
23949 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
23950 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
23951 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
23952 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
23953 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
23954 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
23955 system-irix-o32.ads, system-linux-x86_64.ads,
23956 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
23957 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
23958 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
23959 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
23960 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
23961 system-vxworks-mips.ads, system-vxworks-ppc.ads,
23962 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
23965 2004-05-13 Zack Weinberg <zack@codesourcery.com>
23967 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
23969 2004-05-13 Diego Novillo <dnovillo@redhat.com>
23971 Merge from tree-ssa-20020619-branch.
23973 * config-lang.in (boot_language, build_by_default): Set
23975 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
23976 (max_size): Add static chain op for call_expr.
23978 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
23981 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
23983 2004-05-11 Roger Sayle <roger@eyesopen.com>
23985 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
23988 2004-05-10 Doug Rupp <rupp@gnat.com>
23990 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
23993 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
23995 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
23997 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
23998 Fixes undefined symbols in IA64 gnatlib.
24000 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
24002 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
24003 Short_Address). This will be moved to system.auxdec.
24005 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
24007 * sem_util.adb: Replace test for presence of a node that is always
24008 present with a call to Discard_Node.
24010 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
24011 Analyze on the library unit node after generation of distribution stub
24012 constructs. The call was a no-op because Unit_Node has already been
24013 Analyzed, and the tree fragments for the distribution stubs are
24014 analyzed as they are inserted in Exp_Dist.
24015 Update comment regarding to distribution stubs to reflect that we
24016 do not generate stub in separate files anymore.
24018 * einfo.ads: Clarify the fact that a tagged private type has the
24019 E_Record_Type_With_Private Ekind.
24021 * erroutc.adb: Minor reformatting
24023 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
24024 values if line length is increased using -gnatyM (noticed during code
24027 * eval_fat.adb: Minor reformatting
24028 Put spaces around exponentiation operator
24030 2004-05-10 Ed Schonberg <schonberg@gnat.com>
24033 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
24034 has been rewritten as an explicit dereference, retrieve type of
24035 original node to check for possibly unconstrained record type.
24037 2004-05-10 Ed Schonberg <schonberg@gnat.com>
24039 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
24040 overriding, use the operation of the parent unconditionally.
24042 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
24043 operation when either operand is a literal, to avoid further
24046 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
24047 overridden by a previous explicit declaration, mark the previous entity
24050 * sem_disp.adb (Check_Dispatching_Operation): New predicate
24051 Is_Visibly_Controlled, to determine whether a declaration of a
24052 primitive control operation for a derived type overrides an inherited
24053 one. Add warning if the explicit declaration does not override.
24055 2004-05-10 Vincent Celier <celier@gnat.com>
24057 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
24058 some cases when the sources are no longer present.
24060 * make.adb (Collect_Arguments): Fail if an external source, not part
24061 of any project need to be compiled, when switch -x has not been
24064 * makeusg.adb: Document new switch -x
24066 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
24067 defaulted to False.
24069 * switch-m.adb (Scan_Make_Switches): New switch -x
24071 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
24072 gnatmake switch -x.
24074 * gnat_ugn.texi: Document new gnatmake switch -x
24076 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
24078 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
24080 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
24081 (process_attributes): Likewise.
24083 2004-05-10 Joel Brobecker <brobecker@gnat.com>
24085 * s-inmaop.ads: Fix spelling mistake in one of the comments.
24087 2004-05-10 Robert Dewar <dewar@gnat.com>
24089 * gnat_ugn.texi: Document that for config pragma files, the maximum
24090 line length is always 32767.
24092 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
24093 literals is now allowed.
24095 * gnat-style.texi: Remove statement about splitting long lines before
24096 an operator rather than after, since we do not follow this rule at all.
24097 Clarify rule (really lack of rule) for spaces around exponentiation
24099 * sem_elim.adb: Allow concatenation of string literals as well as a
24100 single string literal for pragma arguments.
24102 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
24104 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
24105 written for append case.
24107 * frontend.adb: Changes to avoid checking max line length in config
24110 * g-os_lib.ads: Minor reformatting
24112 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
24113 wrong in any case. Instead use standard value. Noticed during code
24116 * opt.ads (Max_Line_Length): New field, used to implement removal of
24117 limitation on length of lines when scanning config pragma files.
24119 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
24120 makeutl.ads, makeutl.adb: Minor reformatting
24122 * scn.adb: Do not check line length while scanning config pragma files
24123 Do not check line length while scanning out license information
24125 * scng.adb: Changes to avoid line length checks while parsing config
24128 2004-05-10 GNAT Script <nobody@gnat.com>
24130 * Make-lang.in: Makefile automatically updated
24132 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
24134 * osint.adb (Find_Program_Name): Fix handling of VMS version
24137 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
24139 * g-os_lib.ads (Invalid_Time): New constant
24141 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
24142 return OS_Time instead of time_t to match what is imported by Ada.
24143 Now return -1 if the file doesn't exist, instead of a random value
24145 2004-05-05 Robert Dewar <dewar@gnat.com>
24147 * usage.adb: Add line for -gnatR?s switch
24149 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
24151 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
24152 and for Match (Data_First, Data_last)
24154 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
24155 written when we are dealing with multi-unit files.
24157 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
24159 * Makefile.in: Remove unused targets and variables.
24161 2004-05-05 Vincent Celier <celier@gnat.com>
24163 * switch-m.adb: New gnatmake switch -eI
24165 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
24166 of new gnatmake switch -eInnn.
24168 * makegpr.adb: Take into account new parameters Index and Src_Index in
24171 * clean.adb: Implement support for multi-unit sources, including new
24174 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
24177 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
24178 (Extract_From_Q): New out parameter Index
24179 (Mark, Is_Marked): Subprograms moved to Makeutl
24180 (Switches_Of): New parameter Source_Index
24181 (Add_Switch): New parameter Index
24182 (Check): New parameter Source_Index
24183 (Collect_Arguments): New parameter Source_Index
24184 (Collect_Arguments_And_Compile): New parameter Source_Index
24185 (Compile): New parameter Source_Index
24186 Put subprograms in alphabetical order
24187 Add support for multi-source sources, including in project files.
24189 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
24190 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
24193 * makeusg.adb: New gnatmake switch -eInnn
24195 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
24198 * opt.ads (Main_Index): New variable, defaulted to 0.
24200 * osint.ads, osinte.adb (Add_File): New parameter Index
24201 (Current_Source_Index): New function
24203 * prj.adb: Take into account new components Index and Src_Index
24205 * prj.ads (String_Element): New component Index
24206 (Variable_Value): New component Index
24207 (Array_Element): New component Src_Index
24209 * prj-attr.adb: Indicate that optional index may be specified for
24210 attributes Main, Executable, Spec, Body and some of Switches.
24212 * prj-attr.ads (Attribute_Kind): New values for optional indexes
24213 (Attribute_Record): New component Optional_Index
24215 * prj-com.ads (File_Name_Data): New component Index
24217 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
24219 * prj-env.adb (Put): Output optional index
24221 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
24222 attributes Spec and Body.
24224 * prj-nmsc.adb: Process optional indexes
24226 * prj-pp.adb: Ouput "at" for optional indexes
24228 * prj-proc.adb: Take into account optional indexes
24230 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
24231 Optional_Index. For string literal,
24232 process optional index when Optional_Index is True.
24233 (Parse_Expresion): New Boolean parameter Optional_Index
24235 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
24236 (Set_Source_Index_Of): New procedure
24238 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
24241 * prj-util.ads (Executable_Of): New parameter Index
24242 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
24243 New parameter Src_Index, defaulted to 0.
24245 2004-05-05 Ed Schonberg <schonberg@gnat.com>
24248 * sem_ch3.adb (Access_Definition): If this is an access parameter
24249 whose designated type is imported through a limited_with clause, do
24250 not add the enclosing subprogram to the list of private dependents of
24253 2004-05-05 Ed Schonberg <schonberg@gnat.com>
24256 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
24257 a limited_with clause, and the other is its non-limited view.
24259 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
24261 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
24263 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
24264 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
24265 Stand.Boolean_Literals to produce references to entities
24266 Standard_False and Standard_True from compile-time computed boolean
24269 * stand.ads (Boolean_Literals): New variable, provides the entity
24270 values for False and True, for use by the expander.
24272 2004-05-05 Doug Rupp <rupp@gnat.com>
24274 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
24275 5vinmaop.adb: Unchecked convert Short_Address vice Address
24277 * adaint.c, raise.c: Caste CRTL function return value
24278 to avoid gcc error on 32/64 bit IVMS.
24280 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
24283 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
24285 * 5qsystem.ads (Address): Declare as Long_Integer
24286 (Short_Address): Declare as 32 bit subtype of Address
24287 Declare abstract address operations to avoid gratuitous ambiguities.
24289 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
24291 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
24292 instead of the old Boolean_Entry_Barriers.
24293 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
24295 2004-05-05 GNAT Script <nobody@gnat.com>
24297 * Make-lang.in: Makefile automatically updated
24299 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
24301 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
24303 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
24306 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
24307 alone. Replacing object references by literals is inappropriate in a
24308 so low level context.
24310 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
24312 * a-exexpr.adb: Add comments
24314 2004-05-03 Joel Brobecker <brobecker@gnat.com>
24316 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
24317 declare the Ancestor_Tags array in Type_Specific_Data with a small size
24318 without risking a bounds check error when accessing one of its
24320 (Type_Specific_Data): Define Ancestor_Tags as a small array.
24321 This prevents us from hitting a limitation during the debug info
24322 generation when using stabs.
24324 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
24326 This prevents us from hitting a limitation during the debug info
24327 generation when using stabs.
24329 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
24331 lang-specs.h: Remove -gnatz* from specs.
24333 2004-05-03 Vincent Celier <celier@gnat.com>
24335 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
24337 * Make-lang.in, Makefile.in: Add gprmake
24339 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
24341 * sem_aggr.adb: Fix typo in comment.
24343 2004-05-03 Robert Dewar <dewar@gnat.com>
24345 * make.adb: Minor reformatting
24347 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
24349 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
24350 so that it works when address is not a private type.
24352 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
24353 properly with rewritten unchecked conversions. This prevents
24354 order-of-elaboration issues that can otherwise arise.
24355 (Minimum_Size): Don't check size of access types under VMS
24357 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
24358 interpretations of integer literals as type System.Address.
24360 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
24361 (Is_Descendent_Of): New function
24363 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
24365 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
24366 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
24367 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
24369 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
24370 of the old Max_Entry_Queue_Depth.
24372 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
24373 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
24374 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
24376 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
24377 New entry for proper handling of Max_Entry_Queue_Depth.
24378 New entry for proper handling of No_Dynamic_Interrupts.
24380 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
24381 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
24382 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
24383 the GNAT specific restriction Max_Entry_Queue_Depth.
24384 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
24385 the GNAT specific restriction No_Dynamic_Interrupts.
24387 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
24388 instead of the old Boolean_Entry_Barriers.
24389 Use the new restriction No_Dynamic_Attachment instead of the old
24390 No_Dynamic_Interrupts.
24392 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
24393 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
24395 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
24396 of the old Max_Entry_Queue_Depth.
24398 2004-05-03 GNAT Script <nobody@gnat.com>
24400 * Make-lang.in: Makefile automatically updated
24402 2004-04-29 Ed Schonberg <schonberg@gnat.com>
24404 * checks.adb (Enable_Range_Check): If the prefix of an index component
24405 is an access to an unconstrained array, perform check unconditionally.
24407 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24409 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
24412 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
24414 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
24415 alternate stack setting. There was no support for the tasking cases
24416 and the changes eventually caused a number of side-effect failures in
24417 the non-tasking case too.
24419 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
24421 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
24424 2004-04-29 Vincent Celier <celier@gnat.com>
24426 * make.adb (Gnatmake): Increase max size of argument array for
24427 gnatbind for the potential addition of -F.
24428 If there are Stand-Alone Library projects, invoke gnatbind with -F to
24429 be sure that elaboration flags will be checked.
24431 * switch-c.adb: Correct call to Scan_Pos for -gnateI
24433 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
24435 * sem_warn.adb (Check_References): Move '<access-variable> may be
24436 null' warning out of under Warn_On_No_Value_Assigned.
24438 2004-04-29 Ed Falis <falis@gnat.com>
24440 * gnat_ugn.texi: Fixed texi error
24442 2004-04-29 Robert Dewar <dewar@gnat.com>
24444 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
24445 abstract operations if they come from predefined files.
24447 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
24450 * s-addope.adb: Correct obvious error in mod function
24452 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
24454 * Makefile.in: Add target pairs for powerpc darwin*
24457 * a-intnam-darwin.ads, s-osinte-darwin.adb,
24458 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
24460 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
24462 * Makefile.in: Add target macro definitions for s390*-linux*.
24463 * system-linux-s390.ads: New file.
24464 * system-linux-s390x.ads: New file.
24466 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
24468 * gnat_ugn.texi: Correct argument to @setfilename.
24470 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
24472 * a-exexpr.adb (Unwind_Word): New data type.
24473 (Unwind_Exception): Use it as type of Private1 and Private2.
24475 * raise.c (db_action_for): Fix debug printf.
24477 2004-04-27 Ed Schonberg <schonberg@gnat.com>
24479 * a-wtmoio.ads: Formal type must be a modular type, not a signed
24482 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24484 * decl.c (gnat_to_gnu_entity, case object): Call
24485 __builtin_update_setjmp_buf.
24487 * gigi.h (update_setjmp_buf): Deleted.
24488 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
24490 * misc.c: (update_setjmp_buf): Deleted.
24492 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
24493 around block of RTL.
24495 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
24497 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
24499 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
24500 subprogram for which no pragma All_Calls_Remote applies, store the
24501 address of the real subprogram in the underlying record type, so local
24502 dereferences do not go through the PCS.
24504 2004-04-26 Robert Dewar <dewar@gnat.com>
24506 * i-c.ads: Add some type qualifications to avoid ambiguities when
24507 compiling with s-auxdec.ads and a non-private address type.
24509 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
24511 * Makefile.rtl: Fix error in previous check-in:
24512 Add s-addope.o to non tasking object list (rather than tasking object
24515 2004-04-26 Javier Miranda <miranda@gnat.com>
24517 * sem_aggr.adb: Fix typo in comments
24518 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
24519 Required to check the null-exclusion attribute.
24521 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
24522 case of anonymous access types in record and array components. For a
24523 component definition the level is the same of the enclosing composite
24526 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
24527 that are anonymous access types the level of accessibility depends on
24528 the enclosing type declaration. In order to have this information, set
24529 the scope of the anonymous access type to the enclosing record type
24531 (Array_Type_Declaration): In case of components that are anonymous
24532 access types the level of accessibility depends on the enclosing type
24533 declaration. In order to have this information, set the scope of the
24534 anonymous access type to the enclosing array type declaration.
24536 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
24539 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
24540 renaming of anonymous access-to-constant types allowed if and only if
24541 the renamed object is access-to-constant.
24543 * sem_util.adb (Type_Access_Level): In case of anonymous access types
24544 that are component_definition or discriminants of a nonlimited type,
24545 the level is the same as that of the enclosing component type.
24547 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
24549 * sem_elim.adb: Some minor code reorganization from code reading. Fix
24550 misprint in the function name (File_Name_Match).
24552 2004-04-23 Laurent GUERBY <laurent@guerby.net>
24554 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
24557 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24559 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
24561 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
24563 * adaint.c (__gnat_try_lock): No longer requires that the parent
24564 directory be writable, the directory itself is enough.
24565 (gnat_is_absolute_path): Change profile, so that the call from
24566 GNAT.OS_Lib can be made more efficient.
24568 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
24569 from GNAT.OS_Lib can be made more efficient.
24571 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
24572 one copy of the file name. Found by code reading.
24574 2004-04-23 Vincent Celier <celier@gnat.com>
24576 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
24577 Correct documentation on gnatmake switches transmitted to the compiler
24579 * ali.ads: Minor comment fix
24581 2004-04-23 Javier Miranda <miranda@gnat.com>
24583 * sem_ch6.adb: (Confirming Types): Code cleanup
24585 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
24586 subprogram types: E_Anonymous_Access_Subprogram_Type and
24587 E_Anonymous_Access_Protected_Subprogram_Type.
24589 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
24591 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
24592 whether a pragma All_Calls_Remote applies to the subprogram on which
24594 No functional change is introduced by this revision; the new parameter
24595 will be used to allow calls to local RCI subprograms to be optimized
24596 to not use the PCS in the case where no pragma All_Calls_Remote applies,
24597 as is already done in the PolyORB implementation of the DSA.
24599 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
24600 whether a pragma All_Calls_Remote applies to the subprogram on which
24602 No functional change is introduced by this revision; the new parameter
24603 will be used to allow calls to local RCI subprograms to be optimized
24604 to not use the PCS in the case where no pragma All_Calls_Remote applies,
24605 as is already done in the PolyORB implementation of the DSA.
24607 2004-04-23 Robert Dewar <dewar@gnat.com>
24609 * Makefile.rtl: Add entry for s-addope.o in run time library list
24610 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
24611 * s-addope.ads, s-addope.adb: New files.
24613 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
24614 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
24615 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
24616 System.Address to be non-private and signed.
24618 * sem_elim.adb: Minor reformatting (fairly extensive)
24619 Some minor code reorganization from code reading
24620 Add a couple of ??? comments
24622 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24624 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
24625 (tree_transform, case N_If_Statement): Remove non-determinism.
24627 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
24629 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
24631 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
24632 Eliminate' section.
24634 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
24635 no longer used as a parameter name for Eliminate pragma).
24637 2004-04-22 Laurent GUERBY <laurent@guerby.net>
24639 PR optimization/14984
24640 PR optimization/14985
24641 * trans.c (gigi): Fix non determinism leading to bootstrap
24642 comparison failures.
24644 2004-04-21 Pascal Obry <obry@gnat.com>
24646 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
24647 passed to spawnvp() to properly handle program pathname with spaces on
24650 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
24652 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
24653 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
24654 unlocked in case of exceptions.
24656 2004-04-21 Joel Brobecker <brobecker@gnat.com>
24658 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
24659 This function does not exist anymore.
24661 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
24663 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
24665 * link.c: Move variables to the __gnat name space.
24667 * Makefile.in: list link.o explicitly when needed.
24669 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
24671 2004-04-21 Javier Miranda <miranda@gnat.com>
24673 * einfo.adb (Original_Access_Type): New subprogram
24674 (Set_Original_Access_Type): New subprogram
24675 (Write_Field21_Name): Write the name of the new field
24677 * einfo.ads (Original_Access_Type): New field present in access to
24679 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
24680 E_Anonymous_Access_Protected_Subprogram_Type.
24682 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
24685 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
24686 to anonymous access to subprogram types.
24688 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
24689 to subprogram types.
24691 * sem_ch3.adb (Access_Definition): Complete decoration of entities
24692 corresponding to anonymous access to subprogram types.
24693 (Analyze_Component_Declaration): Add new actual to the call to
24694 subprogram replace_anonymous_access_to_protected_subprogram.
24695 (Array_Type_Declaration): Add new actual to the call to subprogram
24696 replace_anonymous_access_to_protected_subprogram.
24697 (Process_Discriminants): Add new actual to the call to subprogram
24698 replace_anonymous_access_to_protected_subprogram.
24699 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
24701 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
24704 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
24705 access to subprogram types.
24707 * sem_util.adb (Has_Declarations): Addition of package_specification
24710 2004-04-21 Ed Schonberg <schonberg@gnat.com>
24712 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
24713 inlined flags to renamed entity only if in current unit.
24715 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
24717 * s-parint.ads: Add DSA implementation marker.
24719 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
24720 value of System.Partition_Interface.DSA_Implementation to determine
24721 what version of the distributed systems annex is available (no
24722 implementation, GLADE, or PolyORB).
24724 2004-04-21 Joel Brobecker <brobecker@gnat.com>
24726 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
24728 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24730 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
24731 with new type if alias sets differ.
24732 Fixes ACATS c41103b.
24734 2004-04-21 Vincent Celier <celier@gnat.com>
24736 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
24737 Add array Lang_Args for the language specific compiling argument
24740 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
24742 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
24744 * gnat_rm.texi: Update the descripton of the Eliminate pragma
24745 according to the recent changes in the format of the parameters of the
24746 pragma (replacing Homonym_Number with Source_Location).
24748 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
24750 * 5isystem.ads: Removed, unused.
24752 * gnat_rm.texi: Redo 1.13 change.
24754 2004-04-19 Robert Dewar <dewar@gnat.com>
24756 * s-stoele.ads: Clean up definition of Storage_Offset (the new
24757 definition is cleaner, avoids the kludge of explicit Standard operator
24758 references, and also is consistent with a visible System.Address with
24759 no visible operations.
24761 * s-geveop.adb: Add declarations to avoid assumption of visible
24762 operations on type System.Address (since these might not be available
24763 if Address is a non-private type for which the operations
24764 are made abstract).
24766 * sem_eval.adb: Minor reformatting
24768 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
24769 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
24770 reformatting (new function spec format).
24772 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
24773 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
24774 s-caun64.adb: Add declarations to avoid assumption of visible
24775 operations on type System.Address (since these might not be available
24776 if Address is a non-private type for which the operations are made
24779 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
24781 * exp_intr.adb: Minor comment update
24783 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
24785 * 5omastop.adb: Add declarations to avoid assumption of visible
24786 operations on type System.Address (since these might not be available
24787 if Address is a non-private type for which the operations
24788 are made abstract).
24790 2004-04-19 Vincent Celier <celier@gnat.com>
24792 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
24794 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
24797 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
24799 Call Check with Process_Languages.
24800 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
24801 with Process_Languages.
24802 (Recursive_Check): New Boolean parameter Process_Languages. Call
24803 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
24806 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
24808 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
24809 parameter Ada_Main, defaulted to True.
24810 Check for Ada specific characteristics only when Ada_Main is True.
24812 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
24814 * prj.adb: (Project_Empty): Add new Project_Data components.
24816 * prj.ads: New types and tables for non Ada languages.
24817 (Project_Data): New components Languages, Impl_Suffixes,
24818 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
24819 Include_Path, Include_Data_Set.
24821 * prj-env.ads, prj-env.adb: Minor reformatting
24823 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
24824 Put subprograms in alphabetical order
24826 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
24827 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
24830 * mlib-prj.adb: Back out modification in last version, as they are
24832 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
24834 * make.adb: (Mains): Moved to package Makeutl
24835 (Linker_Opts): Moved to package Makeutl
24836 (Is_External_Assignment): Moved to package Makeutl
24837 (Test_If_Relative_Path): Moved to package Makeutl
24838 (Gnatmake): Move sorting of linker options to function
24839 Makeutl.Linker_Options_Switches.
24841 * makeutl.ads, makeutl.adb: New files.
24843 * Makefile.in: Add makeutl.o to the object files for gnatmake
24845 * makeusg.adb: Add line for new switch -eL.
24847 * gnatls.adb (Image): New function.
24848 (Output_Unit): If in verbose mode, output the list of restrictions
24849 specified by pragmas Restrictions.
24851 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
24854 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
24855 needed, to put it in the range 1970 (included) - 2026 (excluded).
24856 (Time_Of): Do not shift Unix_Min_Year (1970).
24857 Shift the date by multiple of 56 years, if needed, to put it in the
24858 range 1970 (included) - 2026 (excluded).
24860 * adaint.h, adaint.c (__gnat_set_executable): New function.
24862 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24864 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
24865 and pop GC context.
24866 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
24867 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
24868 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
24869 (tree_transform, case N_Code_Statement): Likewise.
24870 (gnat_expand_stmt, case LABEL_STMT): Don't look at
24871 LABEL_STMT_FIRST_IN_EH.
24872 (gnat_expand_stmt, case ASM_STMT): New case.
24874 * utils2.c (build_unary_op): Properly set TREE_READONLY of
24875 UNCONSTRAINED_ARRAY_REF.
24877 * utils.c (poplevel): Temporarily push/pop GC context around inline
24878 function expansion.
24880 * decl.c (maybe_variable): Properly set TREE_READONLY of
24881 UNCONSTRAINED_ARRAY_REF.
24882 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
24884 * ada-tree.def: (ASM_STMT): New.
24886 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
24887 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
24888 ASM_STMT_INPUT): New.
24889 (ASM_STMT_CLOBBER): Likewise.
24891 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
24893 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
24894 general rcheck mechanism to raise Program_Error for E.4(18), instead
24895 of a custom raiser in System.Partition_Interface.
24896 Part of general cleanup work before PolyORB integration.
24898 * snames.ads, snames.adb: Add new runtime library entities and names
24901 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
24903 (Build_Subprogram_Id): New subprogram provided by exp_dist
24904 Code reorganisation in preparation for PolyORB integration.
24906 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
24908 (Build_Subprogram_Id): New subprogram provided by exp_dist
24910 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
24911 actual parameter types for call to dereference of an
24912 access-to-subprogram type.
24914 * rtsfind.ads: Add new runtime library entities and names for PolyORB
24917 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
24918 instead, which has the same behaviour here since we never pass it a
24921 * link.c (run_path_option, Solaris case): Use -Wl, as for other
24924 * Makefile.in: adjust object file lists for gnatlink and gnatmake
24925 to account for new dependency upon Interfaces.C.Strings + link.o
24926 For x86 FreeBSD, use 86numaux.
24928 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
24929 from Mlib.Tgt to Mlib.
24931 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
24932 target-independent.
24934 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
24935 target-specific versions of this subprogram, now implemented as a
24936 target-independent function in Mlib.
24938 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
24939 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
24940 (Linker_Library_Path_Option): Remove target-specific versions of this
24941 subprogram, now implemented as a target-independent function in Mlib.
24943 * atree.adb: (Allocate_Initialize_Node): New subprogram.
24944 Factors out node table slots allocation.
24945 (Fix_Parents): New subprogram.
24946 Encapsulate the pattern of fixing up parent pointers for syntactic
24947 children of a rewritten node.
24948 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
24949 (Rewrite): Use New_Copy when creating saved copy of original node.
24950 (Replace): Use Copy_Node to copy nodes.
24952 2004-04-19 Javier Miranda <miranda@gnat.com>
24954 * sprint.adb (Sprint_Node_Actual): Give support to the new
24955 Access_To_Subprogram node available in Access_Definition nodes. In
24956 addition, give support to the AI-231 node fields: null-exclusion,
24957 all-present, constant-present.
24959 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
24961 * sinfo.ads, sinfo.adb:
24962 New field Access_To_Subprogram_Definition in Access_Definition nodes
24964 * sem_ch6.adb (Process_Formals): Move here the code that creates and
24965 decorates internal subtype declaration corresponding to the
24966 null-excluding formal. This code was previously in Set_Actual_Subtypes.
24967 In addition, carry out some code cleanup on this code. In case of
24968 access to protected subprogram call
24969 Replace_Anonymous_Access_To_Protected_Subprogram.
24970 (Set_Actual_Subtypes): Code cleanup.
24972 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
24973 Find_Type in case of anonymous access renamings. Add warning in case of
24974 null-excluding attribute used in anonymous access renaming.
24976 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
24979 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
24981 (Access_Definition): In case of anonymous access to subprograms call
24982 the corresponding semantic routine to decorate the node.
24983 (Access_Subprogram_Declaration): Addition of some comments indicating
24984 some code that probably should be added here. Detected by comparison
24985 with the access_definition subprogram.
24986 (Analyze_Component_Declaration): In case of access to protected
24987 subprogram call Replace_Anonymous_Access_To_Protected.
24988 (Array_Type_Declaration): In case of access to protected subprogram call
24989 Replace_Anonymous_Access_To_Protected_Subprogram.
24990 (Process_Discriminants): In case of access to protected subprogram call
24991 Replace_Anonymous_Access_To_Protected_Subprogram.
24993 * par.adb (P_Access_Definition): New formal that indicates if the
24994 null-exclusion part was present.
24995 (P_Access_Type_Definition): New formal that indicates if the caller has
24996 already parsed the null-excluding part.
24998 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
24999 (P_Identifier_Declarations): Code cleanup and give support to renamings
25000 of anonymous access to subprogram types.
25001 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
25002 (P_Array_Type_Definition): Give support to AI-254.
25003 (P_Component_Items): Give support to AI-254.
25004 (P_Access_Definition): New formal that indicates if the header was
25005 already parsed by the caller.
25006 (P_Access_Type_Definition): New formal that indicates if the caller has
25007 already parsed the null-excluding part.
25009 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
25010 call to P_Access_Definition.
25012 2004-04-19 Geert Bosch <bosch@gnat.com>
25014 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
25015 the delicate semantics of floating-point to integer conversion.
25016 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
25018 * eval_fat.adb (Machine_Mantissa): Moved to spec.
25019 (Machine_Radix): New function.
25021 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
25023 (Machine_Radix): New function also for use in conversion checks.
25025 2004-04-19 Ed Schonberg <schonberg@gnat.com>
25027 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
25029 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
25030 to decorate the access-to-protected subprogram and the equivalent type.
25032 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
25033 to anonymous access to subprogram types.
25035 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
25036 constant-folding, for legality checks in contexts that require an RM
25039 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
25040 temporary but stack checking is not enabled, increment serial number
25041 to so that symbol generation is consistent with and without stack
25044 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
25045 independent on whether stack checking is enabled, caller must check
25046 the corresponding flag.
25048 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
25050 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
25051 parent if it has discriminants.
25052 (Build_Derived_Private_Type): Constructed full view does
25053 not come from source.
25054 (Process_Discriminants): Default discriminants on a tagged type are
25055 legal if this is the internal completion of a private untagged
25058 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
25059 no constraint checks, because it corresponds to an existing object.
25061 * sem_prag.adb (Process_Convention): Pragma applies
25062 only to subprograms in the same declarative part, i.e. the same unit,
25063 not the same scope.
25065 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
25066 ignore type mismatch on a numeric conversion if expression comes from
25069 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
25071 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
25072 Homonym_Number parameter, add processing for Source_Location parameter
25074 (Check_Eliminated): Remove the check for homonym numbers, add the check
25075 for source location traces.
25077 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
25078 with Arg_Source_Location corresponding to the changes in the format of
25081 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
25082 Eliminate pragma corresponding to the changes in the format of the
25083 pragma: Homonym_Number is replaced with Source_Location, two ways of
25084 distinguishing homonyms are mutially-exclusive.
25086 2004-04-19 Joel Brobecker <brobecker@gnat.com>
25088 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
25090 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
25091 No_Dollar_In_Label, no longer necessary, as it is always True.
25092 (Strip_Suffixes): Likewise.
25094 2004-04-19 Gary Dismukes <dismukes@gnat.com>
25096 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
25097 modulus for compatibility with size clause on targets with 16-bit
25100 * layout.adb (Discrimify): In the case of private types, set Vtyp to
25101 full type to fix type mismatches on calls to size functions for
25102 discriminant-dependent array components.
25104 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
25106 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
25109 2004-04-19 Pascal Obry <obry@gnat.com>
25111 * mdll-utl.adb (Locate): New version is idempotent.
25113 2004-04-17 Laurent Guerby <laurent@guerby.net>
25115 PR ada/14988 (partial)
25116 * impunit.adb: Fix typo.
25118 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
25120 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
25121 and install-rts-cert targets. Remove all gnatlib and gnattools
25122 targets and all other rts-* targets (moved to libada). Remove (now)
25123 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
25124 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
25126 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25128 * trans.c (tree_transform): Shortcut returning error_mark_node for
25129 statements in annotate_only_mode.
25130 (tree_transform, case N_Label, case N_Return_Statement,
25131 N_Goto_Statement): Make statement tree instead of generating code.
25132 (tree_transform, case N_Assignment_Statement): No longer check
25133 type_annotate_only.
25134 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
25136 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
25138 (gnat_to_gnu): Collect any RTL generated and deal with it.
25139 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
25140 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
25141 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
25143 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
25145 * ada-tree.def (EXPR_STMT): Fix typo in name.
25146 (BLOCK_STMT, IF_STMT): New nodes.
25148 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
25149 LABEL_STMT_FIRST_IN_EH): New macros.
25150 (RETURN_STMT_EXPR): Likewise.
25152 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
25153 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
25155 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
25157 * atree.ads: Correct documentation on extended nodes.
25159 * link.c: Set run_path_option for FreeBSD.
25161 2004-04-08 Vincent Celier <celier@gnat.com>
25163 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
25164 one of the ALI file, do not link with DEC lib.
25166 * par.adb Remove the last two characters ("%s" or "%b") when checking
25167 if a language defined unit may be recompiled.
25169 2004-04-08 Ed Schonberg <schonberg@gnat.com>
25171 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
25172 removal of abstract operation leaves no possible interpretation for
25175 * sem_eval.adb (Eval_Qualified_Expression): Use
25176 Set_Raises_Constraint_Error on node when needed, so that it does not
25177 get optimized away by subsequent optimizations.
25179 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
25180 operands even when they are not wrapped in a type conversion.
25182 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
25184 * sem_prag.adb (Set_Exported): Warn about making static as result of
25185 export only when the export is coming from source. This may be not
25186 be true e.g. on VMS where we expand export pragmas for exception codes
25187 together with imported or exported exceptions, and we don't want the
25188 user to be warned about something he didn't write.
25190 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
25192 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
25193 duplication between normal entities and those declared as renamings.
25194 No functional change.
25196 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
25197 inline functions returning an unconstrained result.
25199 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
25201 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
25202 conform to what other front-ends do.
25204 2004-04-08 Doug Rupp <rupp@gnat.com>
25206 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
25209 2004-04-06 Pascal Obry <obry@gnat.com>
25211 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
25213 * osint.adb (Program_Name): Do not look past a directory separator.
25215 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
25217 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
25219 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
25220 requirement for preserving a copy of the original assignment node.
25222 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
25224 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
25226 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
25229 2004-04-06 Ed Schonberg <schonberg@gnat.com>
25231 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
25232 operator calls in functional notation, and apply
25233 Universal_Interpretation to operands, not to their type.
25235 2004-04-06 Robert Dewar <dewar@gnat.com>
25237 * 5wdirval.adb: Minor reformatting
25239 2004-04-06 Ed Falis <falis@gnat.com>
25241 * gnat_rm.texi: Improve a reference to the GCC manual
25243 2004-04-05 Vincent Celier <celier@gnat.com>
25245 * adaint.h, adaint.c: Add function __gnat_named_file_length
25247 * impunit.adb: Add Ada.Directories to the list
25249 * Makefile.in: Add VMS and Windows versions of
25250 Ada.Directories.Validity package body.
25252 * Makefile.rtl: Add a-direct and a-dirval
25254 * mlib-tgt.ads: Minor comment update.
25256 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
25257 a-direct.ads, a-direct.adb: New files.
25259 2004-04-05 Vincent Celier <celier@gnat.com>
25262 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
25263 just to the compiler.
25265 2004-04-05 Robert Dewar <dewar@gnat.com>
25267 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
25268 returned string is 1.
25270 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
25272 * eval_fat.ads: Minor reformatting
25274 * g-curexc.ads: Document that lower bound of returned string values
25277 * gnatlink.adb: Add ??? comment for previous change
25278 (need to document why this is VMS specific)
25280 * s-stoele.ads: Minor reformatting
25282 * tbuild.ads: Minor reformatting throughout (new function specs)
25284 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
25287 * scng.adb: Minor reformatting
25289 2004-04-05 Geert Bosch <bosch@gnat.com>
25291 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
25292 (Leading_Part): Still perform truncation to machine number if the
25293 specified radix_digits is greater or equal to machine_mantissa.
25295 2004-04-05 Javier Miranda <miranda@gnat.com>
25297 * par-ch3.adb: Complete documentation of previous change
25298 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
25299 (aliased must appear before constant).
25301 * par-ch4.adb: Complete documentation of previous change.
25303 * par-ch6.adb: Complete documentation of previous change.
25305 * sinfo.ads: Fix typo in commment.
25307 2004-04-05 Ed Schonberg <schonberg@gnat.com>
25309 * sem_ch3.adb (Inherit_Components): If derived type is private and has
25310 stored discriminants, use its discriminants to constrain parent type,
25311 as is done for non-private derived record types.
25313 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
25314 Ada 2005 AI-310: an abstract non-dispatching operation is not a
25315 candidate interpretation in an overloaded call.
25317 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
25318 expression is Null and target type is not an access type (e.g. a
25319 non-private address type).
25321 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
25323 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
25324 statement whose right-hand side is an inlined call, save a copy of the
25325 original assignment subtree to preserve enough consistency for
25326 Analyze_Assignment to proceed.
25328 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
25329 complete assignment subtree which is now unnecessary, as the expansion
25330 of inlined call has been improved to preserve a consistent assignment
25331 tree. Note_Possible_Modification must be called only
25332 after checks have been applied, or else unnecessary checks will
25335 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
25336 of explicit dereferences that do not Come_From_Source:
25337 - be selective on cases where we must go back to the dereferenced
25338 pointer (an assignment to an implicit dereference must not be
25339 recorded as modifying the pointer);
25340 - do not rely on Original_Node being present (Analyze_Assignment
25341 calls Note_Possible_Modification on a copied tree).
25343 * sem_warn.adb (Check_References): When an unset reference to a pointer
25344 that is never assigned is encountered, prefer '<pointer> may be null'
25345 warning over '<pointer> is never assigned a value'.
25347 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
25349 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
25352 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
25354 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
25355 libexc. We currently don't reference anything in this library and
25356 linking it in triggers linker warnings we don't want to see.
25358 * init.c: Update comments.
25360 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25362 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
25363 * utils.c (create_field_decl): Likewise.
25364 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
25366 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
25368 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
25369 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
25370 Add info directory entry and category.
25372 2004-04-02 Jan Hubicka <jh@suse.cz>
25374 * utils.c: Include function.h
25375 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
25377 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
25380 * Make-lang.in: Clean up generation of documentation
25382 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
25384 * xgnatug.adb: Removed, replaced by xgnatugn.adb
25386 * xgnatugn.adb: Replaces xgnatug.adb
25388 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
25390 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
25392 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
25393 gnat_ug_wnt.texi: Removed.
25395 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
25397 * utils2.c: Update copyright notice.
25399 2004-04-01 Robert Dewar <dewar@gnat.com>
25401 * checks.adb: Minor reformatting throughout
25402 Note that prev checkin added RM reference to alignment warning
25404 2004-04-01 Ed Schonberg <schonberg@gnat.com>
25406 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
25407 non-static when building aggregate for bit-packed array.
25409 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
25410 function call that is itself the actual in a procedure call, build
25413 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
25414 a string literal, create a temporary for it, constant folding only
25415 handles scalars here.
25417 2004-04-01 Vincent Celier <celier@gnat.com>
25419 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
25420 Error_Msg_SP): New empty procedures to instantiate the Scanner.
25421 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
25423 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
25424 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
25425 and get the checksum.
25427 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
25429 Increase the Marking_Label at the end of the Multiple_Main_Loop,
25430 instead of at the beginning.
25432 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
25434 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
25437 * osint.ads (Multi_Unit_Index_Character): New Character global variable
25439 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
25442 * par.adb: Remove test on file name to detect language defined units.
25443 Add test on unit name, after parsing, to detect language defined units
25444 that are not compiled with -gnatg (except System.RPC and its children)
25446 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
25447 following units without style checking.
25449 * switch-c.adb: Change -gnatC to -gnateI
25451 * usage.adb: Document new switch -gnateInnn
25453 * scng.adb (Accumulate_Token_Checksum): New procedure
25454 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
25455 word or literal number.
25456 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
25459 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
25462 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
25463 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
25464 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
25465 5vtpopde.adb: Add missing 'constant' keywords.
25467 2004-04-01 Javier Miranda <miranda@gnat.com>
25469 * par-ch4.adb: (P_Allocator): Code cleanup
25471 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
25474 * sinfo.ads: Complete documentation of previous change
25476 2004-04-01 Pascal Obry <obry@gnat.com>
25478 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
25479 only on VMS. This special handling was done because an old GNU/ld bug
25480 on Windows which has been fixed.
25482 2004-04-01 GNAT Script <nobody@gnat.com>
25484 * Make-lang.in: Makefile automatically updated
25486 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25488 * decl.c (gnat_to_gnu_entity, make_type_from_size):
25489 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
25490 * trans.c (tree_transform, convert_with_check): Likewise.
25491 * utils.c (gnat_signed_or_unsigned_type): Likewise.
25492 (build_vms_descriptor, unchecked_convert): Likewise.
25493 * utils2.c (nonbinary_modular_operation): Likewise.
25495 2004-03-29 Javier Miranda <miranda@gnat.com>
25497 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
25498 (Install_Null_Excluding_Check): Local subprogram that determines whether
25499 an access node requires a runtime access check and if so inserts the
25500 appropriate run-time check.
25501 (Apply_Access_Check): Call Install_Null_Excluding check if required
25502 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
25504 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
25506 * einfo.ads: Fix typo in comment
25508 * exp_ch3.adb (Build_Assignment): Generate conversion to the
25509 null-excluding type to force the corresponding run-time check.
25510 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
25511 type to force the corresponding run-time check.
25513 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
25514 the null-excluding type to force the corresponding run-time check.
25516 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
25517 case of access types unless they have the null-excluding attribute.
25519 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
25522 * exp_util.ads: Fix typo in comment
25524 * par.adb (P_Null_Exclusion): New subprogram
25525 (P_Subtype_Indication): New formal that indicates if the null-excluding
25526 part has been scanned-out and it was present
25528 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
25530 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
25531 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
25532 type to force the corresponding run-time check
25533 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
25535 (Resolve_Array_Aggregate): Carry out some static checks
25536 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
25538 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
25539 attribute must be set only if specified by means of the null-excluding
25540 part. In addition, we must also propagate the access-constant attribute
25542 (Access_Subprogram_Declaration, Access_Type_Declaration,
25543 Analyze_Component_Declaration, Analyze_Object_Declaration,
25544 Array_Type_Declaration, Process_Discriminants,
25545 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
25546 and carry out some static checks.
25547 (Build_Derived_Access_Type): Set the null-excluding attribute
25548 (Derived_Type_Declaration, Process_Subtype): Carry out some static
25551 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
25553 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
25555 * sem_ch6.adb (Process_Formals): Carry out some static checks.
25556 (Set_Actual_Subtypes): Generate null-excluding subtype if the
25557 null-excluding part was present; it is not required to be done here in
25558 case of anonymous access types.
25559 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
25562 * sem_res.adb (Resolve_Actuals): Carry out some static check
25563 (Resolve_Null): Allow null in anonymous access
25565 * sinfo.adb: New subprogram Null_Exclusion_Present
25566 All_Present and Constant_Present available on access_definition nodes
25568 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
25569 object_declaration, derived_type_definition, component_definition,
25570 discriminant_specification, access_to_object_definition,
25571 access_function_definition, allocator, access_procedure_definition,
25572 access_definition, parameter_specification, All_Present and
25573 Constant_Present flags available on access_definition nodes.
25575 2004-03-29 Robert Dewar <dewar@gnat.com>
25577 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
25578 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
25579 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
25580 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
25581 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
25582 sem_prag.adb: Updates to handle multiple units/file
25584 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
25586 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
25587 sem_util.adb: Minor reformatting
25589 * sem_ch12.adb: Add comment for previous change
25591 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
25593 * osint.adb (Executable_Prefix): Set Exec_Name to the current
25594 executable name when not initialized. Otherwise, use its current value.
25596 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
25597 initialize it to another executable name than the current one. This
25598 allows to configure paths for an executable name (gnatmake) different
25599 from the current one (gnatdist).
25601 2004-03-29 Ed Schonberg <schonberg@gnat.com>
25603 * exp_ch6.adb (Expand_Call): A call to a function declared in the
25604 current unit cannot be inlined if it appears in the body of a withed
25605 unit, to avoid order of elaboration problems in gigi.
25607 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
25608 information for protected (wrapper) operation as well, to simplify gdb
25611 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
25612 protected body, indicate that the entity for the generated spec comes
25613 from source, to ensure that references are properly generated for it.
25614 (Build_Body_To_Inline): Do not inline a function that returns a
25617 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
25618 apply convention to homonyms that are declared explicitly.
25620 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
25621 that renames an equality operator and the operands are overloaded,
25622 resolve them with the declared formal types, before rewriting as an
25625 2004-03-29 GNAT Script <nobody@gnat.com>
25627 * Make-lang.in: Makefile automatically updated
25629 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
25631 * memtrack.adb: Log realloc calls, which are treated as free followed
25634 2004-03-25 Vincent Celier <celier@gnat.com>
25636 * prj-makr.adb (Process_Directories): Detect when a file contains
25637 several units. Do not include such files in the config pragmas or
25638 in the naming scheme.
25640 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
25641 Resolve links only when not in Trusted_Mode.
25642 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
25643 Do not resolve links for the display names.
25645 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
25646 resolve links when computing the display names.
25648 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
25650 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
25651 attribute reference does not denote a subtype, it can be any
25652 expression that has a classwide type, potentially after an implicit
25653 dereference. In particular, the prefix can be a view conversion for
25654 a classwide type (for which Is_Object_Reference holds), but it can
25655 also be a value conversion for an access-to-classwide type. In the
25656 latter case, there is an implicit dereference, and the original node
25657 for the prefix does not verify Is_Object_Reference.
25659 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
25660 conversion of a discriminant-dependent component of a mutable object
25663 2004-03-25 Ed Schonberg <schonberg@gnat.com>
25665 * freeze.adb (Freeze_Entity): When an inherited subprogram is
25666 inherited, has convention C, and has unconstrained array parameters,
25667 place the corresponding warning on the derived type declaration rather
25668 than the original subprogram.
25670 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
25671 indication on renaming declaration, if formal has a box and actual
25674 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
25675 determine whether to generate an implicit or explicit reference to
25676 the renamed entity.
25678 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
25679 subprogram renaming comes from a defaulted formal subprogram in an
25682 2004-03-25 Gary Dismukes <dismukes@gnat.com>
25684 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
25685 value expressions to ensure that calls within a component definition
25686 will be checked (since those are evaluated during the record type's
25689 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
25691 * s-tpobop.adb: Code clean up:
25692 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
25694 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
25696 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
25698 * Makefile.in: Clean up in the ravenscar run time.
25700 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25702 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
25703 of No_Strict_Aliasing to build_pointer_type_for_mode.
25704 * utils.c (update_pointer_to): Walk pointer and ref chains.
25706 2004-03-22 Cyrille Comar <comar@act-europe.fr>
25708 * ali.ads: Fix Comment about Dynamic_Elab.
25710 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
25711 Has_RACW, Is_Generic, etc.)
25712 (Output_Object, Gnatls): Take into account ALI files not attached to
25715 2004-03-22 Vincent Celier <celier@gnat.com>
25717 * gprep.adb: Change all String_Access to Name_Id
25718 (Is_ASCII_Letter): new function
25719 (Double_File_Name_Buffer): New procedure
25720 (Preprocess_Infile_Name): New procedure
25721 (Process_Files): New procedure
25722 (Gnatprep): Check if output and input are existing directories.
25723 Call Process_Files to do the real job.
25725 2004-03-22 Robert Dewar <dewar@gnat.com>
25727 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
25728 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
25730 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
25732 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
25733 case when the source contains only comments.
25735 2004-03-22 Ed Schonberg <schonberg@gnat.com>
25737 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
25738 declaration for a child subprogram body that acts as a spec, indicate
25739 that the entity in the declaration needs debugging information.
25741 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
25742 full view if the subtype is created for a constrained record component;
25743 gigi has enough information to construct the record, and there is no
25744 place in the tree for the declaration.
25746 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
25747 serial number for the dummy body that is built for analysis, to avoid
25748 inconsistencies in the generation of internal names when compiling
25751 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
25753 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
25756 2004-03-22 GNAT Script <nobody@gnat.com>
25758 * Make-lang.in: Makefile automatically updated
25760 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25762 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
25763 * trans.c (tree_transform, emit_index_check): Likewise.
25764 * utils.c (build_template): Likewise.
25765 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
25766 (maybe_unconstrained_array, unchecked_convert): Likewise.
25767 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
25768 (build_unary_op): Likewise.
25769 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
25770 (fill_vms_descriptor): Likewise.
25771 (build_call_alloc_dealloc): Likewise.
25773 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
25775 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
25778 * gnat_ug.texi: Add info directory category and entry.
25779 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
25780 gnat_ug_wnt.texi: Regenerate.
25782 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
25784 * ada-tree.h: Update copyright notice.
25785 Minor reformatting.
25787 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
25789 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
25790 as regular exception objects and not as mere integers representing the
25791 condition code. The latter approach required some dynamics to mask off
25792 severity bits, which did not fit well into the GCC table based model.
25793 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
25794 exception data objects. We don't it and it would conflict with the other
25795 external symbol we have to generate for such exceptions.
25797 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
25798 the special code for VMS exceptions, since these are now represented
25799 as regular exceptions objects.
25801 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25803 * decl.c (debug_no_type_hash): Remove.
25804 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
25805 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
25807 2004-03-19 Laurent Guerby <laurent@guerby.net>
25809 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
25810 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
25812 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25814 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
25815 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
25816 (TYPE_RM_SIZE_INT): Directly use type.values.
25817 (TREE_LOOP_ID): Clean up check.
25818 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
25819 TYPE_VALUES, not TYPE_FIELDS.
25820 * trans.c (convert_with_check): Delay access of bounds of basetype
25821 until sure is numeric.
25823 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
25825 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
25828 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
25829 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
25830 Specific.Set instead of direct call to e.g pthread_setspecific.
25832 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
25834 * adaint.c: Update comments.
25836 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
25837 GNATLIB_SHARED for FreeBSD.
25839 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
25841 * init.c [VxWorks]: Do not fix the stack size for the environment task.
25842 When needed (stack checking) the stack size is retrieved
25843 from the VxWorks kernel.
25845 * Makefile.in: Flag -nostdinc is required when building the run time
25846 for avoiding looking for files in the base compiler.
25847 Add the VxWorks specific version of the package body for
25848 System.Stack_checking.Operations (5zstchop.adb).
25850 * Make-lang.in: Add the object file for
25851 System.Stack_Checking.Operations.
25853 * Makefile.rtl: Add object file for the package
25854 System.Stack_Checking.Operations.
25856 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
25858 * s-stache.ads, s-stache.adb: Move the operations related to stack
25859 checking from this package to package System.Stack_Checking.Operations.
25860 This way, stack checking operations are only linked in the final
25861 executable when using the -fstack-check flag.
25863 2004-03-18 Doug Rupp <rupp@gnat.com>
25865 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
25868 * 5qsystem.ads, 5xcrtl.ads: New files.
25870 2004-03-18 Vincent Celier <celier@gnat.com>
25872 * prj.adb (Reset): Reset hash table Files_Htable
25874 * prj-env.adb (Source_Paths, Object_Paths): New tables.
25875 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
25876 the procedures Add_To_Path_File.
25877 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
25878 making sure that each directory is present only once and, for object
25879 dirs, when a directory already present is added, the duplicate is
25880 removed and the directory is always put as the last in the table.
25881 Write the path files at the end of these accumulations.
25883 * prj-nmsc.adb (Record_Source): Add source file name in hash table
25884 Files_Htable for all sources.
25886 * prj-proc.adb (Process): Remove restrictions between not directly
25887 related extending projects.
25889 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
25891 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
25892 (Find_Sources): Minor speed optimization.
25894 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
25895 parameter Trusted_Mode.
25897 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
25899 * scn.adb (Determine_License): Take into account a degenerated case
25900 when the source contains only comments.
25902 2004-03-18 Ed Schonberg <schonberg@gnat.com>
25904 * sem_warn.adb (Check_References): For a warning on a selected
25905 component that does not come from source, locate an uninitialized
25906 component of the record type to produce a more precise error message.
25908 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
25910 * 3zsoccon.ads: Fix multicast options.
25912 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
25915 2004-03-15 Robert Dewar <dewar@gnat.com>
25917 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
25918 pragma used for a private type.
25920 * lib-xref.adb (Generate_Reference): Do not generate warning if
25921 reference is in a different unit from the pragma Unreferenced.
25923 * 5vtpopde.adb: Minor reformatting
25924 Fix casing of To_Task_ID
25926 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
25927 flag if we have an unchecked conversion to an access type in the same
25930 2004-03-15 Geert Bosch <bosch@gnat.com>
25932 * a-ngcoty.adb (Modulus): In alternate formula for large real or
25933 imaginary parts, use Double precision throughout.
25935 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
25936 we want to be able to compile run-time with -gnata for testing, but
25937 this may also be instantiated in user code that is compiled with -gnata.
25939 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
25941 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
25942 codes. Having a separate type for this is useful to enforce consistency
25943 throughout the various run-time units.
25944 (Exception_Data): Use Exception_Code for Import_Code.
25946 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
25947 Natural and Integer in various places.
25948 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
25949 with the severity bits masked off.
25950 (Register_VMS_Exception): Handle the additional exception data pointer
25953 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
25954 component, now reflected by an exported accessor.
25955 (is_handled_by): New routine to compute whether the propagated
25956 occurrence matches some handler choice specification. Extracted out of
25957 get_action_description_for, and expanded to take care of the VMS
25959 (get_action_description_for): Use is_handled_by instead of an explicit
25960 complex condition to decide if the current choice at hand catches the
25961 propagated occurrence.
25963 * raise.h (Exception_Code): New type for C.
25965 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
25966 System.Standard_Library.Exception_Code, to allow references from the
25967 pragma import/export expander.
25969 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
25970 New accessors to allow easy access to GNAT exception data
25972 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
25973 redundant Handled_By_Others component, helper for the personality
25974 routine which will now be able to call the appropriate exception data
25977 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
25978 component of Standard_Exception_Type to be the closest possible to
25979 Exception_Code in System.Standard_Library, that we cannot get at this
25980 point. Expand a ??? comment to notify that this type node should
25981 probably be rewritten later on.
25983 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
25984 registration call to include a pointer to the exception object in the
25987 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
25988 instead of int and explicit bitmasks.
25990 2004-03-15 Vincent Celier <celier@gnat.com>
25992 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
25993 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
25995 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
25996 longer needed now that it is in the spec of
25997 System.Tasking.Task_Attributes.
25999 * adaint.h, adaint.c: (__gnat_create_output_file): New function
26001 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
26003 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
26005 * make.adb (Gnatmake): Do not check the executable suffix; it is being
26006 taken care of in Scan_Make_Arg.
26007 (Scan_Make_Arg): Add the executable suffix only if the argument
26008 following -o, in canonical case, does not end with the executable
26009 suffix. When in verbose mode and executable file name does not end
26010 with executable suffix, output the executable name, in canonical case.
26012 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
26013 to avoid warnings when instantiating Ada.Task_Attributes.
26016 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
26017 in the correct order.
26019 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
26020 redirect standard output and error to a file for the invocation of the
26021 compiler, then read the file.
26023 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
26024 directory, instead of the Value.
26025 (Find_Source_Dirs): Remove useless code & comments.
26027 2004-03-15 Ed Schonberg <schonberg@gnat.com>
26029 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
26030 tagged type is inherited, and the parent operation is not frozen yet,
26031 force generation of a freeze node for the inherited operation, so the
26032 corresponding dispatch entry is properly initialized.
26033 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
26034 when looking for user-defined equality operation.
26036 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
26037 boolean when locating primitive equality of tagged component.
26039 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
26040 bit-aligned field and the right-hand side a string literal, introduce
26041 a temporary before expanding assignment into a loop.
26043 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
26044 priority in full, to ensure that any expanded subepxressions of it are
26045 elaborated in the scope of the init_proc.
26047 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
26048 after object declaration, skipping over code that may have been
26049 generated for validity checks.
26051 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
26052 discriminants, ignore the known discriminants of its full view, if
26053 any, to check legality.
26055 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
26056 component if type has unknown discriminants.
26057 (Analyze_Private_Extension_Declaration): Discriminant constraint is
26058 null if type has unknown discriminants.
26060 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
26061 for end label when present.
26063 * s-fileio.adb (Open): When called with a C_Stream, use given name for
26064 temporary file, rather than an empty string.
26066 2004-03-15 Ed Falis <falis@gnat.com>
26068 * s-thread.adb: Removed, no longer used.
26070 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26072 * decl.c (target.h): Now include.
26073 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
26074 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
26075 (validate_size): For POINTER_TYPE, get smallest size permitted on
26078 * fe.h: Sort Einfo decls and add Set_Mechanism.
26080 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
26081 (ada/decl.o): Depends on target.h.
26083 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
26084 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
26086 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
26088 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
26090 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
26091 Insert_Dereference_Action when rewriting an implicit dereference into
26092 an explicit one, this will be taken care of during expansion of the
26093 explicit dereference.
26094 (Expand_N_Slice): Same. Always do the rewriting, even for the case
26095 of non-packed slices, since the dereference action generated by
26096 expansion of the explicit dereference is needed in any case.
26097 (Expand_N_Selected_Component): When rewriting an implicit dereference,
26098 analyze and resolve the rewritten explicit dereference so it is seen
26100 (Insert_Dereference_Action): This procedure is now called only for the
26101 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
26102 dereferences that do not come from source (including explicit
26103 dereferences resulting from rewriting implicit ones), but do not
26104 recursively insert a check for the dereference nodes contained within
26106 (Insert_Dereference_Action): Clarify and correct comment.
26108 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
26111 Move language detection to the top level.
26112 * config-lang.in: Build by default.
26114 2004-03-05 Robert Dewar <dewar@gnat.com>
26116 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
26118 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
26119 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
26120 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
26121 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
26122 unchecked conversion to spec to avoid warnings.
26124 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
26127 * 7stpopsp.adb: Correct casing in To_Task_ID call
26129 * a-strsea.ads, a-strsea.adb: Minor reformatting
26131 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
26133 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
26134 Adjust Max_Msg_Length to be clearly large enough.
26136 * fe.h: Define In_Same_Source_Unit
26138 * osint.adb: Add pragma Warnings Off to suppress warnings
26139 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
26142 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
26144 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
26146 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
26148 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
26150 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
26152 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
26153 node. We now do generate them for gcc back end.
26155 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
26158 * sinput-c.adb: Fix bad name in header.
26159 Add pragma Warnings Off to suppress aliasing warning.
26161 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
26163 * snames.h, snames.ads, snames.adb: Add entry for pragma
26164 No_Strict_Aliasing.
26166 2004-03-05 Vincent Celier <celier@gnat.com>
26168 * prj-com.ads: Add hash table Files_Htable to check when a file name
26169 is already a source of another project.
26171 * prj-nmsc.adb (Record_Source): Before recording a new source, check
26172 if its file name is not already a source of another project. Report an
26175 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
26176 source file name, call gnatpp with all the sources of the main project.
26178 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
26181 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
26182 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
26183 /RUNTIME_SYSTEM=, converted to --RTS=
26184 /NOTABS, converted to -notabs
26186 2004-03-05 Pascal Obry <obry@gnat.com>
26188 * make.adb: Minor reformatting.
26190 2004-03-05 Ed Schonberg <schonberg@gnat.com>
26192 Part of implemention of AI-262.
26193 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
26195 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
26198 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
26199 when component type is a partially constrained class-wide subtype.
26200 (Constrain_Discriminated_Type): If parent type has unknown
26201 discriminants, a constraint is illegal, even if full view has
26203 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
26204 with unknown discriminants whose full view is a discriminated record.
26206 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
26207 flag, to handle properly derivations of tagged types with unknown
26209 (Analyze_Package_Spec, Analyze_Package_Body): Install
26210 Private_With_Clauses before analyzing private part or body.
26212 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
26213 Has_Discriminants can be true for a given type (documentation).
26215 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
26217 * s-restri.ads: Fix license (GPL->GMGPL).
26219 * s-tassta.adb: Minor reformatting.
26221 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
26222 by calls to Exit_One_ATC_Level, since additional clean up is performed
26225 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
26226 by calls to Exit_One_ATC_Level, since additional clean up is performed
26229 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26231 * trans.c: Reflect GCC changes to fix bootstrap problem.
26232 Add warning for suspicious aliasing unchecked conversion.
26234 2004-03-05 GNAT Script <nobody@gnat.com>
26236 * Make-lang.in: Makefile automatically updated
26238 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
26240 * ali.adb (Read_Instantiation_Instance): Do not modify the
26241 current_file_num when reading information about instantiations, since
26242 this corrupts files in later references.
26244 2004-03-02 Vincent Celier <celier@gnat.com>
26246 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
26247 before checking if it is read-only.
26249 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
26250 of SRC_DIRS and eliminate duplicates.
26252 * gprcmd.adb: Replace command "path" with command "path_sep" to return
26253 the path separator.
26254 (Usage): Document path_sep
26256 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
26257 C++ compiler. No need for a script.
26258 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
26259 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
26262 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
26263 where there are Ada sources.
26264 (Set_Ada_Paths): Only add to the include path the source dirs of project
26266 (Add_To_Path): Add the Display_Values of the directories, not their
26269 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
26272 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
26274 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
26275 Value is canonicalized.
26276 (Language_Independent_Check): Do not copy Value to Display_Value when
26277 canonicalizing Value.
26279 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
26280 path to find limited with cycles.
26281 (Parse_Single_Project): Use canonical cased path to find the end of a
26284 2004-03-02 Ed Schonberg <schonberg@gnat.com>
26286 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
26287 and not a child unit.
26289 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
26290 appear in a with_clause.
26292 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
26293 only happen in type_annotate mode, do not try to elaborate it.
26295 * exp_util.adb (Force_Evaluation): If expression is a selected
26296 component on the left of an assignment, use a renaming rather than a
26297 temporary to remove side effects.
26299 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
26300 inlined instance body, which is analyzed before the end of the
26303 2004-03-02 Robert Dewar <dewar@gnat.com>
26305 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
26306 sem_ch4.adb: Use new feature for substitution of keywords in VMS
26308 * errout.ads, errout.adb: Implement new circuit for substitution of
26311 * sem_case.adb (Analyze_Choices): Place message properly when case is
26312 a subtype reference rather than an explicit range.
26314 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
26316 2004-03-02 Doug Rupp <rupp@gnat.com>
26318 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
26320 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
26322 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
26324 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26326 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
26329 2004-02-25 Robert Dewar <dewar@gnat.com>
26331 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
26332 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
26333 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
26334 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
26335 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
26336 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
26337 the defining instance of the type to avoid aliasing problems.
26338 Fix copyright header. Fix bad comments in package header.
26340 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
26342 2004-02-25 Ed Schonberg <schonberg@gnat.com>
26344 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
26345 rewritten as references when aliased through an address clause.
26347 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
26348 whether call can be interpreted as an indirect call to the result of a
26349 parameterless function call returning an access subprogram.
26351 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
26354 * exp_ch7.adb (Make_Clean): Remove generation of calls to
26355 Unlock[_Entries], since this is now done by Service_Entries directly.
26357 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
26359 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
26360 Requeue_Call for better code readability. Change spec and update calls:
26361 PO_Service_Entries now unlock the PO on exit.
26362 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
26363 PO_Service_Entries.
26365 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
26367 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
26369 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
26371 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
26372 protected subprogram call and analyzing the result of such expanding
26373 in case when the called protected subprogram is eliminated.
26375 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
26378 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
26380 * Makefile.in: Clean ups.
26382 2004-02-23 Ed Schonberg <schonberg@gnat.com>
26384 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
26385 protected operations if original subprogram is flagged as eliminated.
26386 (Expand_N_Subprogram_Body): For a protected operation, create
26387 discriminals for next operation before checking whether the operation
26390 * exp_ch9.adb (Expand_N_Protected_Body,
26391 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
26392 for internal protected operations if the original subprogram is
26395 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
26396 declared in a single protected object.
26398 2004-02-23 Vincent Celier <celier@gnat.com>
26400 * prj-attr.adb: Make attribute Builder'Executable an associative array,
26401 case insensitive if file names are case insensitive, instead of a
26402 standard associative array.
26404 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
26405 them as case insensitive on platforms where the file names are case
26408 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
26409 project file has already been parsed that canonical path are compared.
26411 2004-02-23 Robert Dewar <dewar@gnat.com>
26413 * sinput-c.ads: Correct bad unit title in header
26415 * freeze.adb: Minor reformatting
26417 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26419 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
26420 nonaddressable COMPONENT_REF that is removing padding that we are
26421 taking the address of, take the address of the padded record instead
26422 if item is variable size.
26424 2004-02-20 Robert Dewar <dewar@gnat.com>
26426 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
26428 2004-02-20 Ed Schonberg <schonberg@gnat.com>
26430 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
26431 itype references for the constrained designated type of a component
26432 whose base type is already frozen.
26434 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
26436 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
26437 avoid GCC warnings.
26439 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
26441 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
26442 identifier for a phantom package that rewrites the formal package
26443 declaration with a box. The Add semantic decorations for the defining
26444 identifier from the original node (that represents the formal package).
26446 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
26448 * Make-lang.in (ada/stamp-sdefault): Use the top level
26451 2004-02-19 Richard Henderson <rth@redhat.com>
26453 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
26455 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
26457 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
26458 Scan_ALI can be used for multiple ALI files without reinitializing
26461 2004-02-18 Robert Dewar <dewar@gnat.com>
26463 * debug.adb: Minor reformatting.
26465 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26467 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
26468 to zero if there is an address clause.
26470 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
26472 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
26474 2004-02-18 Gary Dismukes <dismukes@gnat.com>
26476 * layout.adb (Layout_Component_List): Revise generation of call to
26477 discriminant-checking function to pass selections of all of the type's
26478 discriminants rather than just the variant-controlling discriminant.
26480 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
26482 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
26483 fail in the current setup and triggers spurious system error messages.
26484 Pretend it occurred and failed instead.
26486 2004-02-18 Vincent Celier <celier@gnat.com>
26488 * bld.adb: Mark FLDFLAGS as saved
26489 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
26490 it is not the root project. Put each directory to be
26491 extended between double quotes to prevent it to be expanded on Windows.
26492 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
26493 the project file. Set them back to their initial values if they have not
26494 been set in the project file.
26496 * gprcmd.adb: (Gprdebug, Debug): New global variables
26497 (Display_Command): New procedure
26498 (Usage): Document new command "linkopts"
26499 Call Display_Command when env var GPRDEBUG has the value "TRUE"
26500 Implement new command "linkopts"
26501 Remove quotes that may be around arguments for "extend"
26502 Always call Normalize_Pathname with arguments formatted for the platform
26504 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
26505 Change @echo to @$(display) in target clean to be able to clean silently
26507 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
26509 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
26512 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
26513 = Extending_All when current project is an extending all project.
26515 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
26516 set to True only for LINK command, after Unix switch -o.
26517 (Process_Arguments): Set Output_File_Expected to True for LINK command
26518 after Unix switch -o. When Output_File_Expected is True, never add an
26519 extension to a file name.
26521 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
26522 option file name, only to the --for-linker= switch.
26523 (Option_File_Name): If option file name do not end with ".opt", append
26526 2004-02-18 GNAT Script <nobody@gnat.com>
26528 * Make-lang.in: Makefile automatically updated
26530 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
26532 * Make-lang.in (stamp-sdefault): Do not depend on
26535 2004-02-12 Zack Weinberg <zack@codesourcery.com>
26537 * config-lang.in: Disable Ada by default until probe logic for
26538 a bootstrap Ada compiler can be moved to the top level configure
26541 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
26543 * decl.c (components_to_record): Don't claim that the internal fields
26544 we make to hold the variant parts are semantically addressable, because
26547 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
26548 adjust the comment describing the modular type form when we can use it.
26549 (Install_PAT): Account for the Esiz renaming.
26551 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
26552 sc_onstack context indication before raising the exception to which
26553 the signal is mapped. Allows better handling of later signals possibly
26554 triggered by the resumed user code if the exception is handled.
26556 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
26558 * 5zinit.adb: Removed, no longer used.
26560 2004-02-12 Robert Dewar <dewar@gnat.com>
26562 * ali.adb: Remove separating space between parameters on R line. Makes
26563 format consistent with format used by the binder for Set_Globals call.
26565 * atree.ads, atree.adb: Minor reformatting (new function header format)
26567 * bindgen.adb: Add Run-Time Globals documentation section containing
26568 detailed documentation of the globals passed from the binder file to
26571 * gnatls.adb: Minor reformatting
26573 * init.c (__gnat_set_globals): Add note pointing to documentation in
26576 * lib-writ.ads, lib-writ.adb: Remove separating space between
26577 parameters on R line.
26578 Makes format consistent with format used by the binder for Set_Globals
26581 * osint.ads: Add 2004 to copyright notice
26584 * snames.ads: Correct capitalization of FIFO_Within_Priorities
26585 Noticed during code reading, documentation issue only
26587 * usage.adb: Remove junk line for obsolete C switch
26588 Noticed during code reading
26590 2004-02-12 Vincent Celier <celier@gnat.com>
26592 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
26593 extend for each directory, so that multiple /** directories are
26594 extended individually.
26595 (Recursive_Process): Set the default for LANGUAGES to ada
26597 * gprcmd.adb: Define new command "ignore", to do nothing.
26598 Implement new comment "path".
26600 * Makefile.generic: Suppress output when SILENT is set
26601 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
26602 used, so that the correct compiler is invoked.
26603 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
26604 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
26606 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
26608 * Makefile.in: Clean ups and remove obsolete targets.
26610 2004-02-12 Ed Schonberg <schonberg@gnat.com>
26612 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
26613 predicate declared in exp_util.
26615 * exp_util.adb: Add comments.
26617 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
26618 visibility before compiling context of the subunit.
26620 * sem_res.adb (Check_Parameterless_Call): If the context expects a
26621 value but the name is a procedure, do not attempt to analyze as a call,
26622 in order to obtain more telling diagnostics.
26624 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
26625 'Access on parameterless function calls.
26626 (Normalize_Actuals): For a parameterless function call with missing
26627 actuals, defer diagnostic until resolution of enclosing call.
26629 * sem_util.adb (Wrong_Type): If the context type is an access to
26630 subprogram and the expression is a procedure name, suggest a missing
26633 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
26634 Nathanael Nerode <neroden@gcc.gnu.org>
26638 Merge with libada-branch:
26639 * config-lang.in: Build libada only when ada is built.
26641 2004-02-09 Ed Schonberg <schonberg@gnat.com>
26643 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
26644 for a tagged type, verify that both formals have the same type.
26646 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
26647 temporary when the formal is an in-parameter and the actual a possibly
26650 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
26651 when expansion is disabled, to ensure proper name capture with
26652 overloaded literals. Condition can be of any boolean type, resolve
26655 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
26656 renaming is for a formal subprogram with a default operator name, and
26657 there is a usable operator that is visible at the point of
26660 2004-02-09 Robert Dewar <dewar@gnat.com>
26662 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
26663 rewrite to ignore errors in ali files, intended to allow tools downward
26664 compatibility with new versions of ali files.
26666 * ali.ads: Add new parameter Ignore_Errors
26668 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
26669 duplicating the error message giving the file with restrictions.
26671 * debug.adb: Add debug flag I for gnatbind
26673 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
26674 operators for the case where the operator is a defining operator.
26676 * exp_ch3.adb: Minor reformatting (new function spec format).
26678 * exp_ch4.adb: Add comment for previous change, and make minor
26679 adjustment to loop to always check for improper loop termination.
26680 Minor reformatting throughout (new function spec format).
26682 * gnatbind.adb: Implement -di debug flag for gnatbind
26684 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
26686 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
26688 * lib-load.adb: Fix bad assertion.
26689 Found by testing and code reading.
26690 Minor reformatting.
26692 * lib-load.ads: Minor reformatting.
26694 * lib-writ.adb: There is only one R line now.
26696 * lib-writ.ads: Add documentation on making downward compatible changes
26697 to ali files so old tools work with new ali files.
26698 There is only one R line now.
26699 Add documentation on format incompatibilities (with special GPS note)
26701 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
26703 * par-load.adb: Minor reformatting
26705 * sem_ch8.adb: Fix to error message from last update
26706 Minor reformatting and restructuring of code from last update
26708 * par-prag.adb, snames.adb, snames.ads, snames.h,
26709 sem_prag.adb: Implement pragma Profile.
26711 * stylesw.adb: Implement -gnatyN switch to turn off all style check
26714 * usage.adb: Add line for -gnatyN switch
26716 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
26718 2004-02-09 Albert Lee <lee@gnat.com>
26720 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
26722 2004-02-09 Ed Schonberg <schonberg@gnat.com>
26724 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
26727 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
26728 is nested in an instance that is not frozen yet, to avoid
26729 order-of-elaboration problems in gigi.
26731 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
26732 body the attribute is legal.
26734 2004-02-09 Robert Dewar <dewar@gnat.com>
26736 * s-rident.ads: Minor comment correction
26738 * targparm.adb: Remove dependence on uintp completely. There was
26739 always a bug in Make in that it called Targparm before initializing
26740 the Uint package. The old code appeared to get away with this, but
26741 the new code did not! This caused an assertion error in gnatmake.
26743 * targparm.ads: Fix bad comment, restriction pragmas with parameters
26744 are indeed fully supported.
26746 2004-02-06 Alan Modra <amodra@bigpond.net.au>
26748 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
26750 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
26752 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
26753 with targetm.calls.promote_prototypes.
26755 2004-02-04 Robert Dewar <dewar@gnat.com>
26757 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
26758 ali.ads, gprcmd.adb: Minor reformatting
26760 * bindgen.adb: Output restrictions string for new style restrictions
26763 * impunit.adb: Add s-rident.ads (System.Rident) and
26764 s-restri (System.Restrictions)
26766 * lib-writ.adb: Fix bug in writing restrictions string (last few
26769 * s-restri.ads, s-restri.adb: Change name Restrictions to
26770 Run_Time_Restrictions to avoid conflict with package name.
26771 Add circuit to read and acquire run time restrictions.
26773 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
26775 * restrict.ads, restrict.adb: Use the new restriction
26776 No_Task_Attributes_Package instead of the old No_Task_Attributes.
26778 * sem_prag.adb: No_Task_Attributes is a synonym of
26779 No_Task_Attributes_Package.
26781 * snames.ads, snames.adb: New entry for proper handling of
26782 No_Task_Attributes.
26784 * s-rident.ads: Adding restriction No_Task_Attributes_Package
26785 (AI-00249) that supersedes the GNAT specific restriction
26786 No_Task_Attributes.
26788 2004-02-04 Ed Schonberg <schonberg@gnat.com>
26791 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
26792 body, an identifier may be wrapped in an unchecked conversion.
26794 2004-02-04 Vincent Celier <celier@gnat.com>
26796 * lib-writ.ads: Comment update for the W lines
26798 * bld.adb: (Expression): An empty string list is static
26800 * fname-uf.adb: Minor comment update
26802 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
26804 * gnatbind.adb: Initialize Cumulative_Restrictions with the
26805 restrictions on the target.
26807 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
26809 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
26812 2004-02-02 Arnaud Charlet <charlet@gnat.com>
26814 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
26816 2004-02-02 Vincent Celier <celier@gnat.com>
26818 * gprcmd.adb (Check_Args): If condition is false, print the invoked
26819 comment before the usage.
26820 Gprcmd: Fail when command is not recognized.
26821 (Usage): Document command "prefix"
26823 * g-md5.adb (Digest): Process last block.
26824 (Update): Do not process last block. Store remaining characters and
26827 * g-md5.ads (Update): Document that several call to update are
26828 equivalent to one call with the concatenated string.
26829 (Context): Add fields to allow new Update behaviour.
26831 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
26832 defaulted to False.
26833 When May_Fail is True and no existing file can be found, return No_File.
26835 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
26838 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
26839 spec file name instead on the W line.
26841 2004-02-02 Robert Dewar <dewar@gnat.com>
26843 * ali.adb: Read and acquire info from new format restrictions lines
26845 * bcheck.adb: Add circuits for checking restrictions with parameters
26847 * bindgen.adb: Output dummy restrictions data
26848 To be changed later
26850 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
26851 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
26852 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
26853 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
26854 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
26856 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
26857 the warning message on access to possibly uninitialized variable S)
26858 Minor changes for new restrictions handling.
26860 * gnatbind.adb: Minor reformatting
26861 Minor changes for new restrictions handling
26862 Move circuit for -r processing here from bcheck (cleaner)
26864 * gnatcmd.adb, gnatlink.adb: Minor reformatting
26866 * lib-writ.adb: Output new format restrictions lines
26868 * lib-writ.ads: Document new R format lines for new restrictions
26871 * s-restri.ads/adb: New files
26873 * Makefile.rtl: Add entry for s-restri.ads/adb
26875 * par-ch3.adb: Fix bad error messages starting with upper case letter
26878 * restrict.adb: Major rewrite throughout for new restrictions handling
26879 Major point is to handle restrictions with parameters
26881 * restrict.ads: Major changes in interface to handle restrictions with
26882 parameters. Also generally simplifies setting of restrictions.
26884 * snames.ads/adb: New entry for proper handling of No_Requeue
26886 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
26887 restriction counting.
26888 Other minor changes for new restrictions handling
26890 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
26891 Restriction_Warnings now allows full parameter notation
26892 Major rewrite of Restrictions for new restrictions handling
26894 2004-02-02 Javier Miranda <miranda@gnat.com>
26896 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
26897 syntax rule for object renaming declarations.
26898 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
26899 component definitions.
26901 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
26903 (Array_Type_Declaration): Give support to access components. In addition
26904 it was also modified to reflect the name of the object in anonymous
26905 array types. The old code did not take into account that it is possible
26906 to have an unconstrained anonymous array with an initial value.
26907 (Check_Or_Process_Discriminants): Allow access discriminant in
26909 (Process_Discriminants): Allow access discriminant in non-limited types
26910 Initialize the new Access_Definition field in N_Object_Renaming_Decl
26911 node. Change Ada0Y to Ada 0Y in comments
26913 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
26914 equality operators.
26915 Change Ada0Y to Ada 0Y in comments
26917 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
26918 renamings Change Ada0Y to Ada 0Y in comments
26920 * sem_type.adb (Find_Unique_Type): Give support to the equality
26921 operators for universal access types
26922 Change Ada0Y to Ada 0Y in comments
26924 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
26926 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
26928 (N_Object_Renaming_Declaration): Addition of Access_Definition field
26929 Change Ada0Y to Ada 0Y in comments
26931 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
26932 component definition and object renaming nodes
26933 Change Ada0Y to Ada 0Y in comments
26935 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
26937 * restrict.adb: Use the new restriction identifier
26938 No_Requeue_Statements instead of the old No_Requeue for defining the
26939 restricted profile.
26941 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
26942 No_Requeue_Statements.
26944 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
26945 that supersedes the GNAT specific restriction No_Requeue. The later is
26946 kept for backward compatibility.
26948 2004-02-02 Ed Schonberg <schonberg@gnat.com>
26950 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
26951 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
26952 pragma and fix incorrect ones.
26954 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
26955 warning if the pragma is redundant.
26957 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
26959 * 5staprop.adb: Add missing 'constant' keywords.
26961 * Makefile.in: use consistent value for SYMLIB on
26962 platforms where libaddr2line is supported.
26964 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26966 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
26969 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
26971 * init.c (__gnat_install_handler): Setup an alternate stack for signal
26972 handlers in the environment thread. This allows proper propagation of
26973 an exception on stack overflows in this thread even when the builtin
26974 ABI stack-checking scheme is used without support for a stack reserve
26977 * utils.c (create_field_decl): Augment the head comment about bitfield
26978 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
26979 here, because the former is not accurate enough at this point.
26980 Let finish_record_type decide instead.
26981 Don't make a bitfield if the field is to be addressable.
26982 Always set a size for the field if the record is packed, to ensure the
26983 checks for bitfield creation are triggered.
26984 (finish_record_type): During last pass over the fields, clear
26985 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
26986 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
26987 from DECL_BIT_FIELD.
26989 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
26991 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
26992 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
26993 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
26995 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
26997 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
26999 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
27000 (ZCX_By_Default): Likewise.
27001 (Front_End_ZCX_Support): Likewise.
27003 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
27004 (Initialize_Lock): Mark Level unreferenced.
27005 (Sleep): Mark Reason unreferenced.
27006 (Timed_Sleep): Likewise.
27007 (Wakeup): Likewise.
27008 (Exit_Task): Use Result.
27009 (Check_No_Locks): Mark Self_ID unreferenced.
27011 * 5gtasinf.adb (New_Sproc): Make Attr constant.
27012 (Bound_Thread_Attributes): Make Sproc constant.
27013 (New_Bound_Thread_Attributes): Likewise.
27015 2004-01-26 Ed Schonberg <schonberg@gnat.com>
27017 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
27018 one-dimensional array an slice assignments, when component type is
27021 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
27022 component type is controlled, and control_actions are in effect, use
27023 TSS procedure rather than generating inline code.
27025 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
27026 arrays with controlled components.
27028 2004-01-26 Vincent Celier <celier@gnat.com>
27030 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
27031 command line for the non VMS case.
27033 * gnatlink.adb (Process_Binder_File): When building object file, if
27034 GNU linker is used, put all object paths between quotes, to prevent ld
27035 error when there are unusual characters (such as '!') in the paths.
27037 * Makefile.generic: When there are sources in Ada and the main is in
27038 C/C++, invoke gnatmake with -B, instead of -z.
27040 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
27041 from VMS_Conversion.
27042 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
27043 specification of argument file on the command line.
27045 2004-01-26 Bernard Banner <banner@gnat.com>
27047 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
27049 2004-01-26 Ed Schonberg <schonberg@gnat.com>
27051 * snames.adb: Update copyright notice.
27052 Add info on slice assignment for controlled arrays.
27054 2004-01-23 Robert Dewar <dewar@gnat.com>
27056 * exp_aggr.adb: Minor reformatting
27058 * exp_ch9.adb: Minor code clean up
27060 Fix bad character in comment
27063 * targparm.adb (Get_Target_Parameters): Give clean abort error on
27064 unexpected end of file, along with more detailed message.
27066 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27068 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
27071 * decl.c (copy_alias_set): New function.
27072 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
27074 2004-01-23 Doug Rupp <rupp@gnat.com>
27076 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
27077 lib$${file} in case subsequent character is not a separator.
27079 2004-01-23 Vincent Celier <celier@gnat.com>
27081 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
27082 when the GCC version is at least 3.
27084 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
27085 Remove all "Opt.", to prepare for opt split
27087 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
27088 Extends_All. Set to True when the project parsed is an extending all
27089 project. Fails for importing an extending all project only when the
27090 imported project is an extending all project.
27091 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
27092 depending on the value of Extends_All returned.
27094 * prj-proc.adb (Process): Check that no project shares its object
27095 directory with a project that extends it, directly or indirectly,
27096 including a virtual project.
27097 Check that no project extended by another project shares its object
27098 directory with another also extended project.
27100 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
27101 Kind = N_With_Clause
27103 * prj-tree.ads: Minor reformatting
27104 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
27106 2004-01-23 Ed Schonberg <schonberg@gnat.com>
27108 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
27109 applies to a type with an incomplete view, use full view in Name of
27110 clause, for consistency with uses of Get_Attribute_Definition_Clause.
27112 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
27114 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
27115 SCHED_RR, since other values are not supported by this policy.
27116 (Initialize): Move initialization of mutex attribute to package
27117 elaboration, to prevent early access to this variable.
27119 * Makefile.in: Remove mention of Makefile.adalib, unused.
27121 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
27122 1ssecsta.ads: Removed, unused.
27124 2004-01-21 Javier Miranda <miranda@gnat.com>
27126 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
27127 entity if already built in the current scope.
27129 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
27130 reminder in internal scopes. Required for nested limited aggregates.
27132 2004-01-21 Doug Rupp <rupp@gnat.com>
27134 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
27135 VMS. Replace all occurences of libgnat- and libgnarl- with
27136 libgnat$(hyphen) and libgnarl$(hyphen).
27137 Fixed shared library build problem on VMS.
27139 2004-01-21 Robert Dewar <dewar@gnat.com>
27141 * mlib-prj.adb: Minor reformatting
27143 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
27145 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
27146 'constant' keywords for declaration of pointers that are not modified.
27148 * exp_pakd.adb: Fix English in comment.
27150 2004-01-21 Ed Schonberg <schonberg@gnat.com>
27153 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
27154 copy all attributes of the parent, including the foreign language
27157 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
27160 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
27161 for 'delay until' statement.
27163 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
27165 * Make-lang.in: Replace $(docdir) with doc.
27166 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
27167 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
27168 to use consistent MAKEINFO rule.
27169 (ada.man, ada.srcman): Dummy entry.
27170 (ADA_INFOFILES): Define.
27171 (ada.info, ada.srcinfo): New rules.
27173 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
27175 * utils.c: Update copyright notice, missed in previous change.
27177 2004-01-19 Vincent Celier <celier@gnat.com>
27179 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
27180 args if Bind is True. Set First_ALI, if not already done.
27181 (Build_Library): For Stand Alone Libraries, extract from one ALI file
27182 an eventual --RTS switch, for gnatbind, and all backend switches +
27183 --RTS, for linking.
27185 2004-01-19 Robert Dewar <dewar@gnat.com>
27187 * sem_attr.adb, memtrack.adb: Minor reformatting
27189 2004-01-19 Ed Schonberg <schonberg@gnat.com>
27191 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
27192 that rename enumeration literals. This is properly done in sem_eval.
27194 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
27195 to functions that rename enumeration literals.
27197 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
27198 functions that rename enumeration literals.
27200 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
27202 * Make-lang.in (utils.o): Depend on target.h.
27203 * utils.c: Include target.h.
27204 (process_attributes): Use targetm.have_named_sections instead
27205 of ASM_OUTPUT_SECTION_NAME.
27207 2004-01-16 Andreas Jaeger <aj@suse.de>
27209 * Makefile.in: Add $(DESTDIR).
27211 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
27213 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
27214 also when not defining if a Size clause applies. That information is
27217 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
27219 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
27220 symbolic links for the shared gnat run time when needed.
27222 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
27224 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
27225 for writing, and terminate with an error message if not.
27227 2004-01-15 Ed Schonberg <schonberg@gnat.com>
27229 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
27230 warning on an access to subprogram in an instance, when the target
27231 type is declared in the same generic unit.
27232 (Eval_Attribute): If 'access is known to fail accessibility check,
27233 rewrite as a raise statement.
27235 2004-01-15 GNAT Script <nobody@gnat.com>
27237 * Make-lang.in: Makefile automatically updated
27239 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
27241 * Make-lang.in (ada.srcextra): Dummy entry.
27243 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
27245 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
27247 2004-01-13 Ed Schonberg <schonberg@gnat.com>
27249 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
27250 components that are initialized with aggregates.
27252 2004-01-13 Vincent Celier <celier@gnat.com>
27254 * gnatlink.adb (Process_Binder_File): To find directory of shared
27255 libgcc, if "gcc-lib" is not a subdirectory, look for the last
27256 subdirectory "lib" in the path of the shared libgnat or libgnarl.
27258 * make.adb (Gnatmake): If GCC version is at least 3, link with
27259 -shared-libgcc, when there is at least one shared library project.
27261 * opt.ads (GCC_Version): New integer constant.
27263 * adaint.c (get_gcc_version): New function.
27265 2004-01-13 Robert Dewar <dewar@gnat.com>
27267 * sem_dist.adb, sem_res.adb, sem_util.adb,
27268 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
27269 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
27271 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
27273 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
27274 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
27277 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
27279 * misc.c: Remove trailing spaces.
27280 Update copyright notice missed in previous change.
27283 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
27286 * Makefile.generic: Update copyright.
27287 Add license notice.
27289 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
27290 of prefix/share/make.
27292 * Makefile.prolog: Update copyright.
27293 Add license notice.
27295 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
27297 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
27298 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
27299 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
27302 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
27305 2004-01-12 Javier Miranda <miranda@gnat.com>
27307 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
27308 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
27309 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
27310 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
27311 Component_Definition node.
27313 2004-01-12 Ed Falis <falis@gnat.com>
27315 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
27317 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
27319 * link.c: Change default libgnat kind to STATIC for FreeBSD.
27321 2004-01-12 Bernard Banner <banner@gnat.com>
27323 * Makefile.in: map 86numaux to a-numaux for x86_64
27325 2004-01-12 Ed Schonberg <schonberg@gnat.com>
27327 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
27328 generated to rename a generic actual, go to the actual itself, the
27329 subtype is not a user-visible entity.
27331 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
27332 part is a private subtype, reset the visibility of its full view, if
27333 any, to be consistent.
27336 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
27337 to use a generic package G as a formal package for another generic
27340 2004-01-12 Robert Dewar <dewar@gnat.com>
27342 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
27344 * usage.adb: Remove mention of obsolete -gnatwb switch
27345 Noticed during code reading
27347 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
27349 * 1ssecsta.adb: Minor changes for -gnatwa warnings
27351 2004-01-12 GNAT Script <nobody@gnat.com>
27353 * Make-lang.in: Makefile automatically updated
27355 2004-01-09 Mark Mitchell <mark@codesourcery.com>
27357 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
27359 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27361 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
27363 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
27365 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
27366 Update comment and copyright date.
27367 * stamp-xgnatug: Delete.
27369 2004-01-05 Robert Dewar <dewar@gnat.com>
27371 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
27372 be modified by the binder generated main program if the -D switch is
27375 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
27376 imported functions (since now we expect this to be done for imported
27379 * 5vtaprop.adb: Add several ??? for sections requiring more comments
27380 Minor reformatting throughout
27382 * 5zinit.adb: Minor reformatting
27383 Add 2004 to copyright date
27384 Minor changes to avoid -gnatwa warnings
27385 Correct some instances of using OR instead of OR ELSE (noted while
27386 doing reformatting)
27388 * sprint.adb: Minor updates to avoid -gnatwa warnings
27390 * s-secsta.ads, s-secsta.adb:
27391 (SS_Get_Max): New function to obtain high water mark for ss stack
27392 Default_Secondary_Stack is not a constant since it may be modified by
27393 the binder generated main program if the -D switch is used.
27395 * switch-b.adb: New -Dnnn switch for binder
27398 Make -gnatg imply all warnings currently in -gnatwa
27400 * vms_conv.adb: Minor reformatting
27401 Add 2004 to copyright notice
27402 Add 2004 to printed copyright notice
27404 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
27405 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
27406 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
27407 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
27408 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
27409 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
27410 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
27411 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
27412 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
27413 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
27414 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
27415 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
27416 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
27417 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
27418 checks.adb, clean.adb, cstand.adb, einfo.ads,
27419 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
27420 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
27421 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
27422 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
27423 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
27424 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
27425 Minor reformatting and code clean ups.
27426 Minor changes to prevent -gnatwa warnings
27428 * ali.adb: Minor reformatting and cleanup of code
27429 Acquire new SS indication of secondary stack use from ali files
27431 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
27432 (since now we expect this to be done for imported functions)
27434 * bindgen.adb: Generate call to modify default secondary stack size if
27437 * bindusg.adb: Add line for new -D switch
27439 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
27440 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
27441 Add circuitry for both records and arrays to avoid gigi
27442 processing if the type involved has non-bit-aligned components
27444 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
27445 N_String_Literal node always references an E_String_Literal_Subtype
27446 entity. This may not be true in the future.
27447 (Possible_Bit_Aligned_Component): Move processing of
27448 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
27450 * exp_ch6.adb (Expand_Thread_Body): Pick up
27451 Default_Secondary_Stack_Size as variable so that we get value modified
27452 by possible -Dnnn binder parameter.
27454 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
27455 (Type_May_Have_Bit_Aligned_Components): New function.
27457 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
27458 (Type_May_Have_Bit_Aligned_Components): New function.
27460 * fe.h: (Set_Identifier_Casing): Fix prototype.
27461 Add declaration for Sem_Elim.Eliminate_Error_Msg.
27462 Minor reformatting.
27464 * freeze.adb (Freeze_Entity): Add RM reference to error message about
27465 importing constant atomic/volatile objects.
27466 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
27467 unless explicit Pure_Function pragma given, to avoid insidious bug of
27468 call to non-pure imported function getting eliminated.
27470 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
27471 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
27472 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
27473 Add 2004 to printed copyright notice
27475 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
27478 * Makefile.rtl: Add entry for g-sestin.o
27479 g-sestin.ads: New file.
27481 * mdll.adb: Minor changes to avoid -gnatwa warnings
27483 * mlib-tgt.adb: Minor reformatting
27485 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
27486 New switch Sec_Stack_Used (GNAT, GNATBIND)
27487 Make Default_Secondary_Stack_Size a variable instead of a constant,
27488 so that it can be modified by the new -Dnnn bind switch.
27490 * rtsfind.adb (Load_Fail): Give full error message in configurable
27491 run-time mode if all_errors mode is set. This was not done in the case
27492 of a file not found, which was an oversight.
27493 Note if secondary stack unit is used by compiler.
27495 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
27496 ineffective elaborate all pragmas on non-visible packages (this
27497 happened when a renamed subprogram was called). Now the elaborate all
27498 always goes on the package containing the renaming rather than the one
27499 containing the renamed subprogram.
27501 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
27502 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
27504 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
27505 has an Etype that references an E_String_Literal.
27506 (Eval_String_Literal): Avoid assumption that N_String_Literal node
27507 always references an E_String_Literal_Subtype entity. This may not
27508 be true in the future.
27510 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
27513 * sem_res.adb (Resolve): Specialize msg for function name used in proc
27516 2004-01-05 Ed Falis <falis@gnat.com>
27518 * g-debuti.adb: Replaced direct boolean operator with short-circuit
27521 2004-01-05 Vincent Celier <celier@gnat.com>
27523 * bld.adb: Minor comment updates
27524 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
27527 * make.adb (Gnatmake): Special process for files to compile/check when
27528 -B is specified. Fail when there are only foreign mains in attribute
27529 Main of the project file and -B is not specified. Do not skip bind/link
27530 steps when -B is specified.
27532 * makeusg.adb: Document new switch -B
27534 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
27536 * switch-m.adb: (Scan_Make_Switches): Process -B switch
27538 * vms_data.ads: Add new GNAT PRETTY qualifier
27539 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
27541 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27543 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
27546 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
27547 Set_Identifier_Casing.
27549 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
27550 has size that overflows.
27552 2004-01-05 Gary Dismukes <dismukes@gnat.com>
27554 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
27555 -gnatwa warning on static condition.
27557 2004-01-05 Doug Rupp <rupp@gnat.com>
27559 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
27561 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
27563 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
27564 all attributes, including read-only attribute.
27566 2004-01-05 Pascal Obry <obry@gnat.com>
27568 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
27569 library naming scheme.
27571 * mlib-prj.adb (Build_Library): Generate different names for the static
27572 or dynamic version of the GNAT runtime. This is needed to support the
27573 new shared library naming scheme.
27574 (Process_Binder_File): Add detection of shared library in binder file
27575 based on the new naming scheme.
27577 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
27578 scheme for the shared runtime libraries.
27581 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
27583 (install-gnatlib): Do not create symlinks for shared libraries.
27584 (gnatlib-shared-default): Idem.
27585 (gnatlib-shared-dual-win32): New target. Not used for now as the
27586 auto-import feature does not support arrays/records.
27587 (gnatlib-shared-win32): Do not create copy for the shared libraries.
27588 (gnatlib-shared-vms): Fix shared runtime libraries names.
27590 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
27591 dependent runtime shared library name.
27593 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
27595 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
27598 2004-01-05 Ed Schonberg <schonberg@gnat.com>
27600 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
27601 protected objects when allocator has a subtype indication, not a
27602 qualified expression. Note that qualified expressions may have to be
27603 checked when limited aggregates are implemented.
27605 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
27606 pure, emit warning.
27607 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
27608 subprogram is imported, remove warning.
27610 2004-01-05 Geert Bosch <bosch@gnat.com>
27612 * s-poosiz.adb: Update copyright notice.
27613 (Allocate): Use Task_Lock to protect against concurrent access.
27614 (Deallocate): Likewise.
27616 2004-01-05 Joel Brobecker <brobecker@gnat.com>
27618 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
27621 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
27623 * gnat_ug.texi: Force a CVS commit by updating copyright.
27624 * gnat_ug_vxw.texi: Regenerate.
27625 * gnat_ug_wnt.texi: Regenerate.
27626 * gnat_ug_vms.texi: Regenerate.
27627 * gnat_ug_unx.texi: Regenerate.
27629 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
27631 * trans.c: Remove uses of "register" specifier in
27632 declarations of local variables.
27634 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
27636 * stamp-xgnatug: New stamp file.
27637 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
27638 (ada/doctools/xgnatug): Add $(build_exeext).
27639 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
27640 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
27642 2003-12-17 Ed Falis <falis@gnat.com>
27644 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
27647 * a-exextr.adb: Add context clause for
27648 Ada.Exceptions.Last_Chance_Handler.
27650 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
27652 * cstand.adb (Create_Standard): Change the way how the declaration of
27653 the Duration type is created (making it the same way as it is for all
27654 the other standard types).
27656 2003-12-17 Robert Dewar <dewar@gnat.com>
27658 * s-crtl.ads: Fix header format
27659 Change Pure to Preelaborate
27661 2003-12-17 Ed Schonberg <schonberg@gnat.com>
27663 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
27664 the expression type only if it is declared in the current unit.
27666 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
27667 are universal and already analyzed, as can occur in constrained
27668 subcomponents that depend on discriminants, when one constraint is a
27671 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
27672 type Any_Fixed is legal as the argument of a conversion, if only one
27673 fixed-point type is in context.
27675 2003-12-17 GNAT Script <nobody@gnat.com>
27677 * Make-lang.in: Makefile automatically updated
27679 2003-12-15 Robert Dewar <dewar@gnat.com>
27681 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
27684 2003-12-15 Vincent Celier <celier@gnat.com>
27686 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
27687 (Gnatchop): Do not set failure status when reporting the number of
27690 2003-12-15 Doug Rupp <rupp@gnat.com>
27692 * s-ctrl.ads: New file.
27694 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
27696 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
27697 (GNATBIND_OBJS): Add ada/s-crtl.o.
27699 * Makefile.in [VMS]: Clean up ifeq rules.
27701 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
27702 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
27703 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
27704 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
27705 s-tasdeb.adb: Update copyright.
27706 Import System.CRTL.
27707 Make minor modifications to use System.CRTL declared functions instead
27708 of importing locally.
27710 2003-12-15 GNAT Script <nobody@gnat.com>
27712 * Make-lang.in: Makefile automatically updated
27714 2003-12-11 Ed Falis <falis@gnat.com>
27716 * 5zinit.adb: Clean up.
27718 * 5zintman.adb (Notify_Exception): replaced case statement with a call
27719 to __gnat_map_signal, imported from init.c to support
27720 signal -> exception mappings that depend on the vxWorks version.
27723 Created and exported __gnat_map_signal to support signal -> exception
27724 mapping that is dependent on the VxWorks version.
27725 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
27727 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
27729 * 5wosinte.ads: Link with -mthreads switch.
27731 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
27733 * init.c (__gnat_install_handler [NetBSD]): Set
27734 __gnat_handler_installed, as done on all other platforms.
27735 Remove duplicated code.
27737 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
27739 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
27741 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
27743 * sinfo.ads: Fix inconsistent example code in comment.
27745 2003-12-11 Robert Dewar <dewar@gnat.com>
27747 * a-tiinau.adb: Add a couple of comments
27749 * sem_ch3.adb: Minor reformatting
27752 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
27753 Minor reformatting throughout
27755 2003-12-11 Ed Schonberg <schonberg@gnat.com>
27757 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
27758 bounds of a loop, create a separate block in order to generate proper
27759 cleanup actions to prevent memory leaks.
27761 * sem_res.adb (Resolve_Call): After a call to
27762 Establish_Transient_Scope, the call may be rewritten and relocated, in
27763 which case no further processing is needed.
27765 * sem_util.adb: (Wrong_Type): Refine previous fix.
27766 Fixes ACATS regressions.
27769 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
27772 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
27774 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
27775 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
27778 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
27781 2003-12-08 Robert Dewar <dewar@gnat.com>
27783 * 7sintman.adb: Minor reformatting
27785 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
27786 standard linker options to get standard libraries linked. We now plan
27787 to provide dummy versions of these libraries to match the appropriate
27788 configurable run-time (e.g. if a library is not needed at all, provide
27789 a dummy empty library).
27791 * targparm.ads: Configurable_Run_Time mode no longer affects linker
27792 options (-L parameters and standard libraries). What we plan to do is
27793 to provide dummy libraries where the libraries are not required.
27795 * gnatbind.adb: Minor comment improvement
27797 2003-12-08 Javier Miranda <miranda@gnat.com>
27799 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
27800 aggregate in the parent. Otherwise constants with limited aggregates
27801 are not supported. Add new formal to pass the component type (Ctype).
27802 It is required to call the corresponding IP subprogram in case of
27803 default initialized components.
27804 (Gen_Assign): In case of default-initialized component, generate a
27805 call to the IP subprogram associated with the component.
27806 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
27807 of aggregate with default initialized components.
27808 (Has_Default_Init_Comps): Improve implementation to recursively check
27809 all the present expressions.
27811 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
27812 to indicate that the initialization call corresponds to a
27813 default-initialized component of an aggregate.
27814 In case of default initialized aggregate with tasks this parameter is
27815 used to generate a null string (this is just a workaround that must be
27816 improved later). In case of discriminants, this parameter is used to
27817 generate a selected component node that gives access to the discriminant
27820 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
27821 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
27822 allocated aggregates with default-initialized components.
27824 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
27825 the box notation is used in positional aggregates.
27827 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
27829 * lib.ads: Fix typo in comment
27831 2003-12-08 Vincent Celier <celier@gnat.com>
27833 * prj.adb (Project_Empty): New component Unkept_Comments
27834 (Scan): Remove procedure; moved to Prj.Err.
27836 * prj.ads (Project_Data): New Boolean component Unkept_Comments
27837 (Scan): Remove procedure; moved to Prj.Err.
27839 * prj-dect.adb: Manage comments for the different declarations.
27841 * prj-part.adb (With_Record): New component Node
27842 (Parse): New Boolean parameter Store_Comments, defaulted to False.
27843 Set the scanner to return ends of line and comments as tokens, if
27844 Store_Comments is True.
27845 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
27846 comments are associated with these nodes. Store the node IDs in the
27848 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
27850 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
27851 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
27852 current project. Call Tree.Restore afterwards. Set the various nodes
27853 for comment storage (Next_End, End_Of_Line, Previous_Line,
27856 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
27857 defaulted to False.
27859 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
27860 to False. When Truncated is True, truncate the string, never go to the
27862 (Write_End_Of_Line_Comment): New procedure
27863 (Print): Process comments for nodes N_With_Clause,
27864 N_Package_Declaration, N_String_Type_Declaration,
27865 N_Attribute_Declaration, N_Typed_Variable_Declaration,
27866 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
27867 Process nodes N_Comment.
27869 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
27870 without comments and there are some comments, set the flag
27871 Unkept_Comments to True.
27872 (Scan): If there are comments, set the flag Unkept_Comments to True and
27873 clear the comments.
27874 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
27875 (Next_End_Nodes: New table
27876 (Comment_Zones_Of): New function
27877 (Scan): New procedure; moved from Prj. Accumulate comments in the
27878 Comments table and set end of line comments, comments after, after end
27880 (Add_Comments): New procedure
27881 (Save, Restore, Seset_State): New procedures
27882 (There_Are_Unkept_Comments): New function
27883 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
27884 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
27886 (First_Comment_After, First_Comment_After_End): New functions
27887 (First_Comment_Before, First_Comment_Before_End): New functions
27888 (Next_Comment): New function
27889 (End_Of_Line_Comment, Follows_Empty_Line,
27890 Is_Followed_By_Empty_Line): New functions
27891 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
27892 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
27893 (Set_Next_Comment): New procedure
27894 (Default_Project_Node): Associate comment before if the node can store
27897 * scans.ads (Token_Type): New enumeration value Tok_Comment
27898 (Comment_Id): New global variable
27900 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
27901 defaulted to False.
27902 (Scan): Store position of start of comment. If comments are tokens, set
27903 Comment_Id and set Token to Tok_Comment when scanning a comment.
27904 (Set_Comment_As_Token): New procedure
27906 * sinput-p.adb: Update Copyright notice
27907 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
27908 that no longer exists.
27910 2003-12-08 Javier Miranda <miranda@gnat.com>
27912 * sem_aggr.adb: Add dependence on Exp_Tss package
27913 Correct typo in comment
27914 (Resolve_Aggregate): In case of array aggregates set the estimated
27915 type of the aggregate before calling resolve. This is needed to know
27916 the name of the corresponding IP in case of limited array aggregates.
27917 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
27918 in case of default initialized array components.
27920 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
27921 types. Required to give support to limited aggregates in generic
27924 2003-12-08 Ed Schonberg <schonberg@gnat.com>
27926 * sem_ch3.adb (Check_Initialization): For legality purposes, an
27927 inlined body functions like an instantiation.
27928 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
27929 until bounds are analyzed, to diagnose premature use of type.
27931 * sem_util.adb (Wrong_Type): Improve error message when the type of
27932 the expression is used prematurely.
27934 2003-12-08 GNAT Script <nobody@gnat.com>
27936 * Make-lang.in: Makefile automatically updated
27938 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
27940 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
27941 they are automatically generated by Make-lang.in and cause nothing but
27942 maintenance troubles.
27944 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
27946 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
27947 version of this unit).
27949 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
27951 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
27952 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
27953 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
27954 the body of System.Interrupt_Management common to several targets.
27955 Update copyright notice when appropriate.
27957 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
27960 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
27961 to ensure that the kernel fills in the interrupted context structure
27962 before calling a signal handler, which is necessary to be able to
27963 unwind past it. Update the copyright notice.
27965 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
27967 * a-elchha.ads: New file.
27969 * a-elchha.adb: New default last chance handler. Contents taken from
27970 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
27972 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
27973 is moved to a-elchha.adb to provide a target-independent default last
27976 * Makefile.rtl: Add a-elchha.o
27978 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
27980 2003-12-05 Ed Schonberg <schonberg@gnat.com>
27982 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
27983 declared in an instance, do not inline the call if the instance is not
27984 frozen yet, to prevent order of elaboration problems.
27986 * sem_prag.adb: Add comments for previous fix.
27988 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
27990 * g-table.adb: Use the right variable in Set_Item.
27991 Update copyright notice.
27993 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
27995 * Makefile.in: Remove unused rules.
27997 2003-12-05 Vincent Celier <celier@gnat.com>
27999 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
28000 -nostdlib. Not needed here after all.
28002 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
28005 * adaint.h, adaint.c, g-os_lib.ads:
28006 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
28007 on some platforms (including FreeBSD), it is a 64 bit value.
28008 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
28010 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
28012 * gnatvsn.ads (Library_Version): Now contain only the relevant
28014 (Verbose_Library_Version): New constant.
28016 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
28017 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
28018 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
28020 * gnatlbr.adb: Clean up: replace Library_Version by
28021 Verbose_Library_Version.
28023 * make.adb, lib-writ.adb, exp_attr.adb:
28024 Clean up: replace Library_Version by Verbose_Library_Version.
28026 * 5lintman.adb: Removed.
28029 Update and simplify computation of LIBRARY_VERSION.
28030 Fix computation of GSMATCH_VERSION.
28031 5lintman.adb is no longer used: replaced by 7sintman.adb.
28033 2003-12-03 Robert Dewar <dewar@gnat.com>
28036 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
28037 name. Modified to consider small non-bit-packed arrays as troublesome
28038 and in need of component-by-component assigment expansion.
28040 2003-12-03 Vincent Celier <celier@gnat.com>
28042 * lang-specs.h: Process nostdlib as nostdinc
28044 * back_end.adb: Update Copyright notice
28045 (Scan_Compiler_Arguments): Process -nostdlib directly.
28047 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
28050 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
28051 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
28052 included in HIE_NONE_TARGET_PAIRS.
28054 2003-12-03 Ed Schonberg <schonberg@gnat.com>
28057 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
28058 is legal in an instance, because legality is cheched in the template.
28061 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
28062 appplied to an unchecked conversion of a formal parameter.
28065 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
28068 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
28070 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
28071 routines. The second one is new functionality to deal with backtracing
28072 through signal handlers.
28073 (unwind): Split into the two separate subroutines above.
28074 Update the documentation, and deal properly with sizeof (REG) different
28075 from sizeof (void*).
28077 2003-12-01 Nicolas Setton <setton@act-europe.fr>
28079 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
28080 so that the debugger can reliably access the value of the parameter,
28081 and therefore is able to display the exception name when an exception
28082 breakpoint is reached.
28084 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
28086 * fmap.adb: Fix typo in warning message.
28088 * g-socket.ads, g-socket.adb: Make Free a visible instance of
28089 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
28091 2003-12-01 Vincent Celier <celier@gnat.com>
28093 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
28095 (Build_Library): Get the switches only if Default_Switches is declared
28098 2003-12-01 Ed Schonberg <schonberg@gnat.com>
28100 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
28101 actuals that are indexed components, reanalyze actual to ensure that
28102 packed array references are properly expanded.
28104 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
28105 attempted assignment to a discriminant.
28107 2003-12-01 Robert Dewar <dewar@gnat.com>
28109 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
28112 * switch-c.adb: Minor reformatting of comments
28114 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
28116 * Makefile.in: Clean ups.
28118 2003-12-01 GNAT Script <nobody@gnat.com>
28120 * Make-lang.in: Makefile automatically updated
28122 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
28124 * 5wsystem.ads: Disable zero cost exception, not ready yet.
28126 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
28128 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
28129 to force serialization.
28131 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
28133 * g-socket.ads, g-socket.adb:
28134 Clarify documentation of function Stream. Introduce a Free procedure
28135 to release the returned Stream once it becomes unused.
28137 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
28139 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
28141 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
28142 since NT 4 cannot handle timeout values that are too large,
28143 e.g. DWORD'Last - 1.
28145 2003-11-26 Ed Schonberg <schonberg@gnat.com>
28148 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
28149 in procedure calls and whose expansion must be deferred.
28151 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
28155 (Build_Derived_Array_Type): Create operator for unconstrained type
28156 if ancestor is unconstrained.
28158 2003-11-26 Vincent Celier <celier@gnat.com>
28160 * make.adb (Project_Object_Directory): New global variable
28161 (Change_To_Object_Directory): New procedure
28162 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
28163 of Change_Dir directly. Do not change working directory to object
28164 directory of main project after each compilation.
28165 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
28167 Change to object directory of main project before binding step.
28168 (Initialize): Initialize Project_Object_Directory to No_Project
28171 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
28172 binding a Stand-Alone Library.
28174 * output.adb: Update Copyright notice
28175 (Write_Char): Output buffer when full
28177 2003-11-26 Robert Dewar <dewar@gnat.com>
28179 * sem_ch13.adb: (Check_Size): Reset size if size is too small
28182 (Check_Size): Fix documentation to include bit-packed array case
28184 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
28186 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
28188 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
28190 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
28193 * utils.c (init_gigi_decls): Change name of built-in setjmp to
28194 __builtin_setjmp, since this is apparently needed by recent
28197 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28199 * adadecode.c: Only include ctype.h if not IN_GCC.
28200 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
28202 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
28205 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
28206 signals and interrupts.
28208 * 5zintman.ads: New File.
28210 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
28211 add exception signals to the set of unmasked signals.
28214 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
28215 between signals and interrupts.
28216 Add to Unblocked_Signal_Mask the set of signals that are in
28220 Adding a check to see whether the Interrupt_ID we want to unmask is in
28221 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
28222 reason is that the index type of the Keep_Unmasked array is not always
28223 Interrupt_ID; it may be a subtype of Interrupt_ID.
28225 2003-11-24 Gary Dismukes <dismukes@gnat.com>
28228 (Remove_Side_Effects): Condition constantness of object created for a
28229 an unchecked type conversion on the constantness of the expression
28230 to ensure the correct value for 'Constrained when passing components
28231 of view-converted class-wide objects.
28233 2003-11-24 Robert Dewar <dewar@gnat.com>
28235 * par-load.adb (Load): Improve handling of misspelled and missing units
28236 Removes several cases of compilation abandoned messages
28238 * lib.adb: (Remove_Unit): New procedure
28240 * lib.ads: (Remove_Unit): New procedure
28242 * lib-load.adb: Minor reformatting
28244 2003-11-24 Vincent Celier <celier@gnat.com>
28247 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
28248 (Marking_Label): Label to mark processed source files. Incremented for
28250 (Gnatmake): Increase Marking_Labet for each executable
28251 (Is_Marked): Compare against marking label
28252 (Mark): Mark with marking label
28254 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
28257 Move the declaration of the TSD for System.Threads to System.Soft_Links.
28260 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
28261 (rts-cert): build a single relocatable object for the run-time lib.
28264 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
28267 Use gnatls rather than gcc to obtain the location of GNAT RTL for
28270 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
28272 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
28273 can not use it as before (that is, as a variable) when dumping it into
28274 the tree file. Add a local variable to store the result of this
28275 function and to be used as the string to be written into the tree.
28277 * scn.adb (Initialize_Scanner): Add comments explaining the recent
28280 * sinput.adb (Source_First, Source_Last): In case of
28281 Internal_Source_File, replace returning attributes of
28282 Internal_Source_Ptr (which is wrong) with returning attributes of
28285 2003-11-24 Ed Schonberg <schonberg@gnat.com>
28288 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
28289 used for implicit concatenation operators.
28293 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
28294 task bodies that are in the scope of a Suppress pragma.
28295 (Check_A Call): Use the flag to prevent spurious elaboration checks.
28297 * sinfo.ads, sinfo.adb:
28298 New flag No_Elaboration_Check on function/procedure calls, to properly
28299 suppress checks on calls in task bodies that are within a local suppress
28303 (Expand_Concatenate_Other): Use the proper integer type for the
28304 expression for the upper bound, to avoid universal_integer computations
28307 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
28309 * .cvsignore: Delete.
28311 2003-11-21 Andreas Schwab <schwab@suse.de>
28313 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
28315 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
28317 * 5wsystem.ads: Enable zero cost exception.
28319 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
28321 * 5ztiitho.adb: Remove an unreferenced variable.
28323 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
28325 * adaint.c: For FreeBSD, use mkstemp.
28327 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
28329 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
28331 2003-11-21 Robert Dewar <dewar@gnat.com>
28333 * bld.adb: Remove useless USE of gnatvsn
28335 * gnatchop.adb: Minor reformatting
28336 Clean up version handling to be more consistent
28338 * gnatxref.adb: Minor reformatting
28340 * gprcmd.adb: Minor reformatting
28341 Fix output of copyright to be more consistent with other tools
28343 2003-11-21 Vincent Celier <celier@gnat.com>
28345 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
28347 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
28349 * atree.adb (Initialize): Add initializations for global variables
28350 used in New_Copy_Tree.
28352 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
28353 Internal_Source_File as the actual).
28354 Put the set of statements creating Any_Character before the set of
28355 statements creating Any_Array to have Any_Character fully initialized
28356 when it is used in creating Any_Array.
28358 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
28359 not call Scan in case if the actual is Internal_Source_File
28360 Add 2003 to copyright note.
28362 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
28363 processing Internal_Source_File.
28365 * types.ads: Add the constant Internal_Source_File representing the
28366 source buffer for artificial source-code-like strings created within
28367 the compiler (the definition of Source_File_Index is changed).
28369 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
28371 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
28372 56system.ads: New file, FreeBSD version.
28374 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
28376 * Make-lang.in (ada.extraclean): Delete.
28378 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
28380 * gnatmem.adb: Clean up verbose output.
28382 * gprcmd.adb: Change copyright to FSF.
28384 2003-11-19 Vincent Celier <celier@gnat.com>
28386 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
28387 and Version (ignored).
28389 * symbols.ads: (Policy): New type
28390 (Initialize): New parameter Reference, Symbol_Policy and
28392 Remove parameter Force.
28393 Minor reformatting.
28395 * snames.ads, snames.adbadb: New standard names
28396 Library_Reference_Symbol_File and Library_Symbol_Policy
28399 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
28403 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
28405 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
28407 * prj.adb: (Project_Empty): New component Symbol_Data
28409 * prj.ads: (Policy, Symbol_Record): New types
28410 (Project_Data): New component Symbol_Data
28413 New attributes Library_Symbol_File, Library_Symbol_Policy and
28414 Library_Reference_Symbol_File.
28417 (Ada_Check): When project is a Stand-Alone library project, process
28418 attribute Library_Symbol_File, Library_Symbol_Policy and
28419 Library_Reference_Symbol_File.
28421 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
28422 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
28423 5sml-tgt.adb (Build_Dynamic_Library): New parameter
28424 Symbol_Data (ignored).
28426 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
28427 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
28428 functions Option_File_Name and Version_String. Set new options of
28429 gnatsym related to symbol file, symbol policy and reference symbol
28433 Extensive modifications to take into account the reference symbol file,
28434 the symbol policy, the library version and to put in the symbol file the
28435 minor and major IDs.
28437 * bld.adb (Process_Declarative_Items): Put second argument of
28438 gprcmd to_absolute between single quotes, to avoid problems with
28441 * bld-io.adb: Update Copyright notice.
28442 (Flush): Remove last character of a line, if it is a back slash, to
28443 avoid make problems.
28446 Implement new scheme with reference symbol file and symbol policy.
28448 * g-os_lib.ads: (Is_Directory): Clarify comment
28450 2003-11-19 Robert Dewar <dewar@gnat.com>
28452 * atree.adb: Move New_Copy_Tree global variables to head of package
28454 * errout.adb: Minor reformatting
28456 2003-11-19 Javier Miranda <miranda@gnat.com>
28458 * sem_ch4.adb: (Diagnose_Call): Improve error message.
28459 Add reference to Ada0Y (AI-50217)
28461 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
28462 sem_util.adb: Add reference to AI-50217
28464 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
28466 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
28468 * sem_aggr.adb: Complete documentation of AI-287 changes
28470 * par-ch4.adb: Document previous changes.
28472 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
28473 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
28476 * exp_aggr.adb: Add references to AI-287 in previous changes
28478 2003-11-19 Ed Schonberg <schonberg@gnat.com>
28481 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
28482 in the rewriting is the result of an inlined call.
28484 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
28485 parameter is a type conversion, use original node to construct the
28486 post-call assignment, because expression may have been rewritten, e.g.
28487 if it is a packed array.
28490 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
28491 body, just as it is in an instance.
28492 Categorization routines
28494 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
28495 Instantiate_Object): Set proper sloc reference for message on missing
28498 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
28500 * Makefile.in: Add FreeBSD libgnat pairs.
28502 * usage.adb: Fix typo in usage message.
28504 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
28506 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
28507 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
28508 pragma Thread_Body.
28509 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
28511 * s-thread.adb: This file is now a dummy implementation of
28514 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
28516 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
28518 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
28520 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
28521 instanciation references in the parent type description.
28523 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28525 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
28527 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
28528 TYPE_PRECISION directly from esize.
28530 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
28533 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
28535 * init.c: Initialization routines for FreeBSD
28537 * link.c: Link info for FreeBSD
28539 * sysdep.c: Add the case of FreeBSD
28541 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
28543 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
28544 already called in System.Threads.
28546 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
28547 environment task, as it has been moved to System.Threads.Initialization.
28549 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
28551 * adaint.c (__gnatlib_install_locks): Only reference
28552 __gnat_install_locks on VMS, since other platforms can avoid using
28553 --enable-threads=gnat
28555 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28557 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
28559 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
28560 TYPE_PACKED_ARRAY_TYPE_P.
28561 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
28563 Part of PR ada/12806
28564 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
28565 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
28567 2003-11-17 Vincent Celier <celier@gnat.com>
28569 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
28571 Do not set exit status to Failure when Warning is True.
28572 (Gnatchop): Make errors "no compilation units found" and
28573 "no source files written" warnings only.
28575 * make.adb (Gnatmake): When using a project file, set
28576 Look_In_Primary_Dir to False.
28577 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
28578 and Local_Configuration_Pragmas in the project where they are declared
28579 not an extending project which might have inherited them.
28581 * osint.adb (Locate_File): If Name is already an absolute path, do not
28582 look for a directory.
28584 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
28585 -gnats (Check_Syntax) is used, issue only a warning, not an error.
28587 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
28588 in objects of type Variable_Value.
28590 * prj.ads: (Variable_Value): New component Project
28592 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
28593 is in a project extended by Project.
28595 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
28596 Project of Variable_Values to this new parameter value.
28597 (Expression): Set component Project of Variable_Values.
28598 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
28599 Set the component Project in array elements.
28601 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
28603 * errout.adb: (Initialize): Add initialization for error nodes.
28605 * sem_ch12.adb (Initialize): Add missing initializations for
28606 Exchanged_Views and Hidden_Entities.
28608 2003-11-17 Ed Schonberg <schonberg@gnat.com>
28610 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
28611 already instantiated tree for use in subsequent inlining.
28612 (Analyze_Associations, Instantiate_Formal_Subprogram,
28613 Instantiate_Object): improve error message for mismatch in
28616 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
28617 instantiations of subprograms declared in instances.
28619 2003-11-17 Javier Miranda <miranda@gnat.com>
28621 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
28622 executed only under the Extensions_Allowed flag.
28624 2003-11-17 Robert Dewar <dewar@gnat.com>
28626 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
28628 (Address_Image): Fix bug of returning 0x instead of 0x0
28629 Minor reformatting (function specs).
28631 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
28632 (missed case of 33-63)
28634 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
28636 * s-thread.adb: Add comments for pragma Restriction
28638 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
28639 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
28641 2003-11-17 Ed Falis <falis@gnat.com>
28643 * s-thread.adb: Added No_Tasking restriction for this implementation.
28645 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
28647 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
28648 instanciation references in the parent type description.
28650 2003-11-17 GNAT Script <nobody@gnat.com>
28652 * Make-lang.in: Makefile automatically updated
28654 2003-11-16 Jason Merrill <jason@redhat.com>
28656 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
28657 and TAGS files that include them for each front end.
28659 2003-11-14 Andreas Jaeger <aj@suse.de>
28661 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
28662 is the canonical version.
28663 * misc.c (gnat_handle_option): Likewise.
28665 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
28667 * 5nsystem.ads: New file for x86_64-linux-gnu.
28669 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
28671 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
28673 * comperr.adb: Fix logic in previous change.
28675 2003-11-13 Vincent Celier <celier@gnat.com>
28677 * 5bml-tgt.adb (Build_Dynamic_Library): Use
28678 Osint.Include_Dir_Default_Prefix instead of
28679 Sdefault.Include_Dir_Default_Name.
28681 * gnatlbr.adb: Update Copyright notice
28682 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
28683 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
28684 instead of Sdefault.Object_Dir_Default_Name
28687 (Process_Binder_File): Never suppress the option following -Xlinker
28690 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
28691 Sdefault.Object_Dir_Default_Name.
28693 * osint.ads, osint.adb:
28694 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
28695 Minor reformatting.
28697 * vms_conv.ads: Minor reformating
28698 Remove GNAT STANDARD and GNAT PSTA
28701 Allow GNAT MAKE to have several files on the command line.
28702 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
28703 Sdefault.Object_Dir_Default_Name.
28705 Remove data for GNAT STANDARD
28708 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
28709 Remove data for GNAT STANDARD
28710 Remove options and documentation for -gnatwb/-gnatwB: these warning
28711 options no longer exist.
28713 2003-11-13 Ed Falis <falis@gnat.com>
28715 * 5zthrini.adb: (Init_RTS): Made visible
28718 (Register): Removed unnecessary call to taskVarGet that checked whether
28719 an ATSD was already set as a task var for the argument thread.
28722 Updated comment to reflect that this is a VxWorks version
28723 Added context clause for System.Threads.Initialization
28724 Added call to System.Threads.Initialization.Init_RTS
28726 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
28729 (Init_RTS): New procedure, for the initialization of the run-time lib.
28732 Remove dependancy on System.Init, so that this file can be used in the
28733 AE653 sequential run-time lib.
28735 2003-11-13 Robert Dewar <dewar@gnat.com>
28737 * bindgen.adb: Minor reformatting
28739 2003-11-13 Ed Schonberg <schonberg@gnat.com>
28742 (Apply_Discriminant_Check): Do no apply check if target type is derived
28743 from source type with no applicable constraint.
28746 (Ensure_System_Dependency): Do not apply the style checks that may have
28747 been specified for the main unit.
28750 (Find_Selected_Component): Further improvement in error message, with
28754 (Resolve): Handle properly the case of an illegal overloaded protected
28757 2003-11-13 Javier Miranda <miranda@gnat.com>
28760 (Has_Default_Init_Comps): New function to check the presence of
28761 default initialization in an aggregate.
28762 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
28763 extension aggregate of a limited record. In addition, a new formal
28764 was added to do not initialize the record controller (if any) during
28765 this recursive expansion of ancestors.
28766 (Init_Controller): Add support for limited record components.
28767 (Expand_Record_Aggregate): In case of default initialized components
28768 convert the aggregate into a set of assignments.
28770 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
28771 describing the new syntax.
28772 Nothing else needed to be done because this subprogram delegates part of
28773 its work to P_Precord_Or_Array_Component_Association.
28774 (P_Record_Or_Array_Component_Association): Give support to the new
28775 syntax for default initialization of components.
28778 (Resolve_Aggregate): Relax the strictness of the frontend in case of
28779 limited aggregates.
28780 (Resolve_Record_Aggregate): Give support to default initialized
28782 (Get_Value): In case of default initialized components, duplicate
28783 the corresponding default expression (from the record type
28784 declaration). In case of default initialization in the *others*
28785 choice, do not check that all components have the same type.
28786 (Resolve_Extension_Aggregate): Give support to limited extension
28790 (Check_Initialization): Relax the strictness of the front-end in case
28791 of aggregate and extension aggregates. This test is now done in
28792 Get_Value in a per-component manner.
28794 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
28795 expression corresponds to a limited aggregate. This test is now done
28798 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
28801 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
28802 present in an N_Component_Association node
28804 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
28806 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
28807 type-conformant entry only if they are homographs.
28809 2003-11-13 GNAT Script <nobody@gnat.com>
28811 * Make-lang.in: Makefile automatically updated
28813 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28815 * adadecode.c: Use <> form of include for ctype.h.
28816 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
28818 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28820 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
28821 Works around PR middle-end/6552.
28823 2003-11-10 Ed Falis <falis@gnat.com>
28825 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
28827 * 5zinit.adb: (Install_Handler): Moved back to spec
28828 (Install_Signal_Handlers): Deleted
28830 * 5zthrini.adb: Added context clause for System.Storage_Elements
28831 (Register): Only handles creation of taskVar; initialization moved to
28833 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
28834 Added declaration of environment task secondary stack and
28837 * s-thread.adb: Implement bodies for thread body processing
28840 Added comment identifying supported targets for pragma Thread_Body.
28842 2003-11-10 Pascal Obry <obry@gnat.com>
28844 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
28848 (Open): Properly check for string length before copying into the buffer.
28849 Raises Name_Error if buffer is too small. Note that this was a potential
28852 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
28854 * bindgen.adb, comperr.adb: Code clean ups.
28855 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
28857 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
28859 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
28861 2003-11-10 Vincent Celier <celier@gnat.com>
28864 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
28867 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
28869 * prj.adb: (Project_Empty): Add new boolean component Virtual
28871 * prj.ads: (Virtual_Prefix): New constant string
28872 (Project_Data): New boolean component Virtual
28874 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
28875 a library project is extended by a virtual extending project.
28878 Modifications throughout to implement extending-all project, including:
28879 (Virtual_Hash, Processed_Hash): New hash tables
28880 (Create_Virtual_Extending_Project): New procedure
28881 (Look_For_Virtual_Projects_For): New procedure
28884 (Process): After checking the projects, if main project is an
28885 extending-all project, set the object directory of all virtual extending
28886 project to the object directory of the main project.
28887 Adjust error message when a virtual extending project has the same
28888 object directory as an project being extended.
28889 (Recursive_Process): If name starts with the virtual prefix, set Virtual
28890 to True in the project data.
28893 (Default_Project_Node): Add new boolean component Extending_All
28894 (Is_Extending_All): New function
28895 (Set_Is_Extending_All): New procedure
28897 * prj-tree.ads: (Is_Extending_All): New function
28898 (Set_Is_Extending_All): New procedure
28899 (Project_Node_Record): New boolean component Extending_All
28901 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
28904 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
28906 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
28907 "gprcmd prefix" to define it.
28909 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
28911 * einfo.ads: Fix a typo and remove an extraneous word in comments.
28914 (Create_Dummy_Package_Unit): Set the scope of the entity for the
28915 created dummy package to Standard_Standard, not to itself, to
28916 defend other parts of the front-end against encoutering a cycle in
28920 (Analyze_With_Clause): When setting the entities for the successive
28921 N_Expanded_Names that constitute the name of a child unit, do not
28922 attempt to go further than Standard_Standard in the chain of scopes.
28923 This case arises from the placeholder units created by
28924 Create_Dummy_Package_Unit in the case of a with_clause for a
28925 nonexistent child unit.
28927 2003-11-10 Ed Schonberg <schonberg@gnat.com>
28930 (Expand_Thread_Body): Place subprogram on scope stack, so that new
28931 declarations are given the proper scope.
28934 (Check_Expr_Constants): Reject an expression that contains a constant
28935 created during expansion, and that appears after the object to which
28936 the address clause applies.
28938 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
28939 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
28940 that uses 'Range of a function call with controlled components, so
28941 that the function result can be finalized before starting the loop.
28944 (Find_Selected_Component): Improve error message when prefix is
28945 an implicit dereference of an incomplete type.
28947 2003-11-10 Robert Dewar <dewar@gnat.com>
28949 * opt.ads: New Print_Standard flag for -gnatS switch
28951 * sem_ch13.adb: Remove some additional checks for unaligned arrays
28953 * cstand.adb (Create_Standard): Print out package standard if -gnatS
28956 * debug.adb: Update doc for -gnatds to discuss relationship with new
28959 * sinfo.adb: Add new field Entity_Or_Associated_Node
28961 * sinfo.ads: Add new field Entity_Or_Associated_Node
28962 Update documentation for Associated_Node and Entity fields to clarify
28963 relationship and usage.
28966 (Write_Id): Properly process Associated_Node field in generic template
28969 Recognize new -gnatS switch for printing package Standard
28970 This replaces gnatpsta
28973 Add line for new -gnatS switch for printing package Standard
28974 This replaces gnatpsta
28976 2003-11-10 Andreas Jaeger <aj@suse.de>
28978 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
28981 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
28983 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
28986 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
28988 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
28991 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
28993 * sysdep.c: Add handling of cygwin.
28995 2003-11-10 GNAT Script <nobody@gnat.com>
28997 * Make-lang.in: Makefile automatically updated
28999 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
29002 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
29003 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
29004 Replace GNAT_ROOT by GCC_ROOT.
29006 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
29008 2003-11-06 Zack Weinberg <zack@codesourcery.com>
29010 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
29011 and update for changed meaning of GET_MODE_BITSIZE.
29013 2003-11-04 Doug Rupp <rupp@gnat.com>
29015 * sysdep.c: Problem discovered during IA64 VMS port.
29016 [VMS] #include <unixio.h> to get proper prototypes.
29019 Issues discovered/problems fixed during IA64 VMS port.
29020 [VMS] #define _POSIX_EXIT for proper semantics.
29021 [VMS] #include <unixio.h> for proper prototypes.
29022 [VMS] (fork): #define IA64 version.
29023 (__gnat_os_exit): Remove unnecessary VMS specific code.
29025 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29027 Part of PR ada/12806
29028 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
29032 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
29035 * targtyps.c, decl.c, misc.c,
29036 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
29037 routines to work around change in FP sizing semantics in GCC.
29040 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
29042 * gigi.h: (enumerate_modes): New function.
29044 * Make-lang.in: (ada/misc.o): Add real.h.
29046 * misc.c: (enumerate_modes): New function.
29048 2003-11-04 Robert Dewar <dewar@gnat.com>
29050 * 3vtrasym.adb: Minor reformatting
29051 Use terminology encoded/decoded name, rather than C++ specific notion
29052 of mangling (this is the terminology used throughout GNAT).
29054 * einfo.h: Regenerated
29056 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
29059 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
29061 * par-prag.adb: Add dummy entry for Thread_Body pragma
29064 Add entries for System.Threads entities for thread body processing
29067 (Analyze_Pragma, Access attributes): Check these are not applied to a
29068 thread body, since this is not permitted
29070 * sem_prag.adb: Add processing for Thread_Body pragma.
29074 (Resolve_Call): Check for incorrect attempt to call a thread body
29075 procedure with a direct call.
29077 * snames.ads, snames.adb: Add entry for Thread_Body pragma
29078 Add names associated with thread body expansion
29080 * snames.h: Add entry for Thread_Body pragma
29082 * s-thread.adb: Add entries for thread body processing
29083 These are dummy bodies so far
29085 * s-thread.ads: Add documentation on thread body handling.
29086 Add entries for thread body processing.
29088 2003-11-04 Javier Miranda <miranda@gnat.com>
29091 (Build_Limited_Views): Return after posting an error in case of limited
29092 with_clause on subprograms, generics, instances or generic renamings
29093 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
29094 on subprograms, generics, instances or generic renamings
29096 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
29098 * raise.c (setup_to_install): Correct mistake in last revision; two
29099 arguments out of order.
29101 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
29102 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
29103 notice, missed in previous change.
29104 Remove trailing blanks and other style errors introduced in previous
29107 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
29109 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
29110 rid of the wrapper for a LJM type, ensuring we don't do that if the
29111 field is addressable. This avoids potential low level type view
29112 mismatches later on, for instance in a by-reference argument passing
29115 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29117 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
29118 aligned at byte boundary.
29120 2003-11-04 Joel Brobecker <brobecker@gnat.com>
29122 * decl.c (components_to_record): Do not delete the empty variants from
29123 the end of the union type.
29125 2003-11-04 Ed Schonberg <schonberg@gnat.com>
29127 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
29128 operation for a derived type, an explicit declaration may use a local
29129 subtype of Boolean.
29131 2003-11-04 Vincent Celier <celier@gnat.com>
29133 * make.adb (Gnatmake): Allow main sources on the command line with a
29134 library project when it is only for compilation (no binding or
29137 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29139 * Makefile.in: Remove many duplicate variables.
29141 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
29143 * Make-lang.in (dvi): Move targets to $(docobjdir).
29144 (gnat_ug_vms.dvi): Simplify rule and adjust target.
29145 (gnat_ug_wnt.dvi): Likewise.
29146 (gnat_ug_unx.dvi): Likewise.
29147 (gnat_ug_vxw.dvi): Likewise.
29148 (gnat_rm.dvi): Likewise.
29149 (gnat-style.dvi): Likewise.
29151 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
29153 * gigi.h: Missed commit from update for C90.
29155 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
29157 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
29159 2003-10-31 Andreas Schwab <schwab@suse.de>
29161 * raise.c (get_action_description_for): Fix typo in last change.
29163 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
29166 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
29167 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
29169 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
29171 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
29172 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
29173 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
29174 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
29175 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
29177 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
29180 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
29181 numbers when symbol name is too long.
29183 2003-10-30 Ed Falis <falis@gnat.com>
29185 * g-signal.ads, g-signal.adb: New files
29187 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
29189 * Makefile.rtl: Introduce GNAT.Signals
29191 2003-10-30 Robert Dewar <dewar@gnat.com>
29193 * freeze.adb: Minor reformatting
29195 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
29197 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
29198 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
29199 New handling of Id_Check parameter to improve recognition of keywords
29200 used as identifiers.
29201 Update copyright notice to include 2003
29203 2003-10-29 Robert Dewar <dewar@gnat.com>
29205 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
29206 sem_ch10.adb: Minor reformatting
29208 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
29209 (Expand_Assign_Record): Test right hand side for bit unaligned as well
29211 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
29213 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
29214 Support for TBK$SYMBOLIZE-based symbolic traceback.
29216 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
29219 Revert previous change, that did not work well when pragma No_Run_Time
29220 was used in conjunction with a run-time other than ZFP.
29222 2003-10-29 Vincent Celier <celier@gnat.com>
29225 (Gnatmake): When there are no Ada mains in attribute Main, disable the
29226 bind and link steps only is switch -z is not used.
29228 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
29230 * Makefile.generic: Remove duplicated setting of CC.
29232 * Makefile.prolog: Set CC to gcc by default, to override make's
29235 * einfo.h: Regenerated.
29237 2003-10-29 Ed Schonberg <schonberg@gnat.com>
29239 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
29240 current body, after compiling subunit.
29242 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
29243 when in deleted code, because gigi needs properly ordered freeze
29244 actions to annotate types.
29246 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
29247 prevent the premature freezing of record type that contains
29248 subcomponents with a private type that does not yet have a completion.
29250 2003-10-29 Javier Miranda <miranda@gnat.com>
29253 (Analyze_Package_Instantiation): Check that instances can not be used in
29254 limited with_clauses.
29257 (Analyze_Package_Renaming): Check that limited withed packages cannot
29258 be renamed. Improve text on error messages related to limited
29261 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
29263 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
29264 Update copyright notice.
29266 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
29267 (Install_Limited_Context_Clauses): New subprogram that isolates all the
29268 checks required for limited context_clauses and installs the limited
29270 (Install_Limited_Withed_Unit): Complete its documentation.
29271 (Analyze_Context): Check that limited with_clauses are only allowed in
29273 (Install_Context): Call Install_Limited_Context_Clauses after the
29274 parents have been installed.
29275 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
29276 package as 'From_With_Type'; this mark indicates that the limited view
29277 is installed. Used to check bad usages of limited with_clauses.
29278 (Build_Limited_Views): Do not add shadow entities to the scope's list
29279 of entities. Do not add real entities to the Non_Limited_Views chain.
29280 Improve error notification.
29281 (Remove_Context_Clauses): Remove context clauses in two phases:
29282 limited views first and regular views later (to maintain the
29284 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
29285 its visible entities.
29287 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
29289 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
29290 with any type that Is_Fixed_Point_Type.
29292 * sinfo.ads: Fix documentation for Associated_Node attribute.
29294 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
29296 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
29297 both '-gnatc' and '-gnatt' are specified.
29299 * atree.adb (Initialize): Add initialization for Node_Count (set to
29302 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29304 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
29305 do not consider as Pure.
29307 Part of implementation of function-at-a-time:
29309 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
29310 (tree_transform): Add new argument to build_component_ref.
29311 (tree_transform, case N_Assignment_Statement): Make and return an
29313 (tree_transform): If result IS_STMT, set flags and return it.
29314 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
29316 * utils2.c (build_simple_component_ref, build_component_ref): Add new
29318 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
29319 (build_allocator): Likewise.
29321 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
29322 Add new arg to build_component_ref.
29323 (maybe_unconstrained_array, unchecked_convert): Likewise.
29325 * ada-tree.def (EXPR_STMT): New code.
29327 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
29329 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
29330 build_component_ref calls.
29332 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
29334 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
29335 (build_component_ref): Add new argument, NO_FOLD_P.
29337 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
29339 * Makefile.generic: Add missing substitution on object_deps handling.
29342 * Make-lang.in (check-ada): Enable ACATS test suite.
29344 2003-10-27 Robert Dewar <dewar@gnat.com>
29347 (Freeze_Array_Type): We do not need an initialization routine for types
29348 derived from String or Wide_String. They should be treated the same
29349 as String and Wide_String themselves. This caused problems with the
29350 use of Initialize_Scalars.
29353 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
29354 composites. This allows use of component clauses that are not byte
29358 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
29359 is an attempt to pack an array of atomic objects.
29361 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
29363 2003-10-27 Pascal Obry <obry@gnat.com>
29366 (Basename): Check for drive letters in a pathname only on DOS based OS.
29368 2003-10-27 Vincent Celier <celier@gnat.com>
29371 (Gnatmake): When unable to change dir to the object dir, display the
29372 content of the parent dir of the obj dir, to try to understand why this
29375 2003-10-27 GNAT Script <nobody@gnat.com>
29377 * Make-lang.in: Makefile automatically updated
29379 2003-10-27 Ed Schonberg <schonberg@gnat.com>
29382 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
29383 should not be done in Save/Restore_Scope_Stack, because it is performed
29387 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
29388 whether use clauses should be removed/restored.
29391 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
29392 whether use clauses should be removed/restored.
29394 2003-10-26 Andreas Jaeger <aj@suse.de>
29396 * Makefile.in: Remove duplicated lines.
29398 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
29400 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
29401 minimize the differences with ACT tree.
29403 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
29404 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
29405 Gnatvsn.Gnat_Static_Version_String to reduce differences between
29408 2003-10-24 Pascal Obry <obry@gnat.com>
29411 * adadecode.c (ostrcpy): New function.
29412 (__gnat_decode): Use ostrcpy of strcpy.
29413 (has_prefix): Set first parameter a const.
29414 (has_suffix): Set first parameter a const.
29415 Update copyright notice. Fix source name in header.
29416 Removes a trailing space.
29418 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
29421 Remove the test against being in No_Run_Time_Mode before generating a
29422 call to Register_Tag. It is redundant with the test against the
29423 availability of the function Register_Tag.
29425 2003-10-24 Vincent Celier <celier@gnat.com>
29427 * g-catiio.adb: (Month_Name): Correct spelling of February
29429 * make.adb: (Mains): New package
29430 (Initialize): Call Mains.Delete
29431 (Gnatmake): Check that each main on the command line is a source of a
29432 project file and, if there are several mains, each of them is a source
29433 of the same project file.
29434 (Gnatmake): When a foreign language is specified in attribute Languages,
29435 no main is specified on the command line and attribute Mains is not
29436 empty, only build the Ada main. If there is no Ada main, just compile
29437 the Ada sources and their closure.
29438 (Gnatmake): If a main is specified on the command line with directory
29439 information, check that the source exists and, if it does, that the path
29440 is the actual path of a source of a project.
29443 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
29444 Full_Path is True, return the full path instead of the simple file name.
29445 (Project_Of): New function
29448 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
29449 defaulted to False.
29450 (Project_Of): New function
29452 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
29454 * Makefile.generic:
29455 Ensure objects of main project are always checked and rebuilt if needed.
29456 Set CC to gcc by default.
29457 Prepare new handling of link by creating a global archive (not activated
29460 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
29461 stringt.h: Update copyright notice. Remove trailing blanks.
29462 Fix source name in header.
29464 2003-10-24 Robert Dewar <dewar@gnat.com>
29466 * sem_ch12.adb: Minor reformatting
29469 Minor reformatting (including new function return style throughout)
29472 Minor reformatting (including new function return style throughout)
29474 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
29476 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
29477 stringt.h: Update copyright notice. Remove trailing blanks.
29478 Fix source name in header.
29480 2003-10-24 GNAT Script <nobody@gnat.com>
29482 * Make-lang.in: Makefile automatically updated
29484 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
29486 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
29487 stringt.h: Convert to ISO C90 declarations and definitions.
29489 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
29492 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
29493 External_Tag attribute definition clauses.
29495 2003-10-23 Ed Schonberg <schonberg@gnat.com>
29498 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
29499 child unit, generate a fully qualified name to avoid spurious errors
29500 when the context contains renamings of different child units with
29501 the same simple name.
29503 * exp_dbug.ads: Add documentation on name qualification for renamings
29506 2003-10-23 Robert Dewar <dewar@gnat.com>
29508 * g-regpat.ads, g-regpat.adb: Minor reformatting
29510 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
29512 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
29514 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29516 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
29519 * urealp.h: (Machine): Update to proper definition.
29521 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
29523 * init.c, adaint.c: Minor reformatting.
29525 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
29527 * adaint.c (w32_epoch_offset): Define static const at file level.
29528 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
29529 rather than t_create, t_access in call to GetFileTime. Use union
29530 to convert between FILETIME and unsigned long long.
29531 (__gnat_file_time_name): Test for invalid file handle.
29532 (__gnat_set_filetime_name): Support win32 targets using
29533 w32api SetFileTime.
29535 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
29537 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
29539 * ctrl_c.c (__gnat_int_handler): Remove declaration.
29541 * decl.c (creat_concat_name): Const-ify prefix.
29543 * adaint.c: Include ctype.h if __MINGW32__.
29544 (__gnat_readlink): Mark arguments as possibly unused.
29545 (__gnat_symlink): Likewise.
29546 (__gnat_is_symbolic_link): Likewise.
29547 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
29549 (__gnat_file_time_name): Don't declare struct stat statbuf when
29551 (__gnat_is_absolute_path): Add parenthesis around condition of
29552 'if' statement to avoid warning.
29553 (__gnat_plist_init): Specify void as parameter.
29554 (plist_enter): Likewise.
29555 (plist_leave): Likewise.
29556 (remove_handle): Make static. Initialize prev.
29558 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
29561 * Makefile.in: Disable build of gnatpsta.
29562 * cstreams.c (__gnat_full_name): Minor improvements and clean up
29563 of previous change.
29565 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29567 * tracebak.c (MAX): Avoid redefinition warning.
29569 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
29570 Change msg to const char *.
29571 (__gnat_install_handler): Remove ss, unused.
29572 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
29574 * cstreams.c (__gnat_full_name): Declare p only when used.
29575 (__gnat_full_name) [sgi] Return buffer.
29577 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
29579 * mingw32.h: New file.
29580 * gnat_wrapper.adb: New file.
29582 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
29584 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
29585 string match a pre compiled regular expression (the corresponding
29586 version of the function working on a raw regular expression)
29587 Fix typos in various comments
29588 Update copyright notice in spec
29590 2003-10-21 Gary Dismukes <dismukes@gnat.com>
29593 (Component_Needs_Simple_Initialization): Return False when the type is a
29594 packed bit array. Revise spec comments to document this case.
29597 (Expand_Pragma_Import): Set any expression on the imported object to
29598 empty to avoid initializing imported objects (in particular this
29599 covers the case of zero-initialization of bit arrays).
29600 Update copyright notice.
29602 2003-10-21 Ed Schonberg <schonberg@gnat.com>
29605 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
29606 a subunit is missing.
29607 (Instantiate_Subprogram_Body): If body of function is missing, set type
29608 of return expression explicitly in dummy body, to prevent cascaded
29609 errors when a subunit is missing.
29613 (Access_Subprogram_Declaration): Verify that return type is valid.
29617 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
29622 (Corresponding_Discriminant): If the scope of the discriminant is a
29623 private type without discriminant, use its full view.
29626 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
29628 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
29629 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
29630 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
29631 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
29632 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
29633 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
29634 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
29635 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
29636 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
29637 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
29638 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
29639 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
29640 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
29641 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
29642 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
29643 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
29644 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
29645 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
29646 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
29647 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
29648 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
29649 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
29650 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
29651 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
29652 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
29653 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
29654 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
29655 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
29656 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
29657 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
29658 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
29659 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
29660 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
29661 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
29662 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
29663 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
29664 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
29665 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
29666 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
29667 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
29668 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
29669 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
29670 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
29671 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
29672 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
29673 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
29674 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
29675 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
29676 vms_conv.ads, vms_conv.adb, vms_data.ads,
29677 vxaddr2line.adb: Files added. Merge with ACT tree.
29679 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
29680 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
29681 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
29682 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
29683 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
29684 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
29685 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
29686 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
29687 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
29688 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
29690 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
29691 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
29692 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
29693 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
29694 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
29695 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
29696 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
29697 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
29698 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
29699 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
29700 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
29701 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
29702 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
29703 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
29704 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
29705 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
29706 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
29707 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
29708 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
29709 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
29710 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
29711 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
29712 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
29713 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
29714 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
29715 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
29716 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
29717 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
29718 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
29719 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
29720 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
29721 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
29722 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
29723 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
29724 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
29725 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
29726 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
29727 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
29728 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
29729 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
29730 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
29731 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
29732 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
29733 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
29734 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
29735 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
29736 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
29737 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
29738 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
29739 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
29740 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
29741 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
29742 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
29743 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
29744 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
29745 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
29746 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
29747 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
29748 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
29749 checks.adb, checks.ads, cio.c, comperr.adb,
29750 comperr.ads, csets.adb, cstand.adb, cstreams.c,
29751 debug_a.adb, debug_a.ads, debug.adb, decl.c,
29752 einfo.adb, einfo.ads, errout.adb, errout.ads,
29753 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
29754 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
29755 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
29756 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
29757 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
29758 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
29759 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
29760 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
29761 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
29762 fe.h, fmap.adb, fmap.ads, fname.adb,
29763 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
29764 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
29765 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
29766 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
29767 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
29768 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
29769 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
29770 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
29771 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
29772 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
29773 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
29774 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
29775 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
29776 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
29777 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
29778 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
29779 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
29780 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
29781 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
29782 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
29783 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
29784 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
29785 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
29786 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
29787 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
29788 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
29789 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
29790 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
29791 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
29792 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
29793 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
29794 layout.adb, lib.adb, lib.ads, lib-list.adb,
29795 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
29796 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
29797 link.c, live.adb, make.adb, make.ads,
29798 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
29799 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
29800 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
29801 misc.c, mkdir.c, mlib.adb, mlib.ads,
29802 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
29803 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
29804 namet.adb, namet.ads, namet.h, nlists.ads,
29805 nlists.h, nmake.adt, opt.adb, opt.ads,
29806 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
29807 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
29808 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
29809 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
29810 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
29811 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
29812 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
29813 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
29814 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
29815 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
29816 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
29817 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
29818 prj-util.adb, prj-util.ads, raise.c, raise.h,
29819 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
29820 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
29821 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
29822 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
29823 scans.ads, scn.adb, scn.ads, s-crc32.adb,
29824 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
29825 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
29826 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
29827 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
29828 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
29829 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
29830 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
29831 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
29832 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
29833 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
29834 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
29835 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
29836 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
29837 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
29838 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
29839 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
29840 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
29841 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
29842 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
29843 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
29844 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
29845 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
29846 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
29847 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
29848 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
29849 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
29850 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
29851 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
29852 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
29853 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
29854 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
29855 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
29856 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
29857 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
29858 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
29859 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
29860 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
29861 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
29862 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
29863 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
29864 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
29865 stringt.adb, stringt.ads, stringt.h, style.ads,
29866 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
29867 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
29868 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
29869 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
29870 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
29871 table.adb, table.ads, targparm.adb, targparm.ads,
29872 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
29873 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
29874 ttypes.ads, types.ads, types.h, uintp.adb,
29875 uintp.ads, uintp.h, uname.adb, urealp.adb,
29876 urealp.ads, urealp.h, usage.adb, utils2.c,
29877 utils.c, validsw.adb, validsw.ads, widechar.adb,
29878 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
29879 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
29880 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
29881 gnatvsn.ads: Merge with ACT tree.
29883 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
29885 2003-10-20 Mark Mitchell <mark@codesourcery.com>
29887 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
29888 (gnat_ug_vmx.info): Likewise.
29889 (gnat_ug_vxw.info): Likewise.
29890 (gnat_ug_wnt.info): Likewise.
29891 (gnat_rm.info): Likewise.
29892 (gnat-style.info): Likewise.
29894 * Make-lang.in (ada.install-info): Remove target.
29895 (info): New target.
29896 (install-info): Likewise.
29897 (gnat_ug_unx.info): Simplify rule.
29898 (gnat_ug_vmx.info): Likewise.
29899 (gnat_ug_vxw.info): Likewise.
29900 (gnat_ug_wnt.info): Likewise.
29901 (gnat_rm.info): Likewise.
29902 (gnat-style.info): Likewise.
29904 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
29906 * Make-lang.in: Replace uses of $(target_alias) with
29907 $(target_noncanonical).
29908 * ada/Makefile.in: Remove unused mention of $(target_alias).
29910 2003-10-06 Mark Mitchell <mark@codesourcery.com>
29912 * Make-lang.in (ada.info): Replace with ...
29914 (ada.dvi): Replace with ...
29917 2003-09-29 Zack Weinberg <zack@codesourcery.com>
29919 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
29920 initialize dconstp5 and dconstmp5.
29922 2003-09-28 Richard Henderson <rth@redhat.com>
29924 * trans.c (tree_transform): Update call to expand_asm_operands.
29926 2003-09-21 Richard Henderson <rth@redhat.com>
29928 * trans.c, utils.c: Revert.
29930 2003-09-21 Richard Henderson <rth@redhat.com>
29932 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
29935 2003-09-04 Michael Matz <matz@suse.de>
29937 * misc.c: Include "target.h".
29938 * Make-lang.in (misc.o): Add dependency on target.h.
29940 2003-09-03 DJ Delorie <dj@redhat.com>
29942 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
29945 2003-08-30 Zack Weinberg <zack@codesourcery.com>
29947 * Makefile.in: Update substitutions to match changes to
29948 configure. Use include directives instead of @-insertions
29949 to read in host and target fragments. Add a rule to
29950 regenerate ada/Makefile.
29952 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
29954 * lang-options.h: Remove.
29955 * lang.opt: Add help text.
29957 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
29959 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
29962 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
29964 * misc.c (gnat_handle_option): Don't handle filenames.
29966 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
29968 * Make-lang.in: Replace PWD with PWD_COMMAND.
29969 * Makefile.adalib: Likewise.
29970 * Makefile.in: Likewise.
29972 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
29974 * misc.c (gnat_argv): Revert last change.
29975 (gnat_handle_option, gnat_init_options): Copy arguments.
29977 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
29979 * misc.c (gnat_argv): Make const.
29981 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
29983 * misc.c (save_argc, save_argv): Keep non-static!
29985 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
29987 * misc.c (save_argc, save_argv): Make static.
29988 (gnat_init_options): New prototype.
29989 (gnat_init_options): Update.
29991 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
29993 * gnat_ug.texi: Remove unlikely characters from @vars.
29994 * gnat_ug_vms.texi: Regenerate.
29996 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
29998 * misc.c (record_code_position): Adjust emit_note call.
30000 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
30002 * misc.c (gnat_handle_option): Don't check for missing arguments.
30004 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
30006 * utils.c (end_subprog_body): Adjust expand_function_end call.
30008 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
30010 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
30013 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
30015 * lang.opt: Declare Ada.
30016 * misc.c (gnat_init_options): Update.
30018 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
30020 * utils.c (begin_subprog_body): Adjust init_function_start call.
30022 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
30024 * Make-lang.in: Update to use options.c and options.h.
30025 * misc.c: Include options.h not aoptions.h.
30026 (gnat_handle_option): Abort on unrecognized switch.
30027 (gnat_init_options): Request Ada switches.
30029 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
30031 * lang.opt: Add -Wall.
30032 * misc.c (gnat_handle_option): Handle it.
30034 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
30036 * misc.c (gnat_handle_option): Fix warnings.
30038 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
30040 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
30042 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
30044 * Make-lang.in: Update to handle command-line options.
30045 * lang.opt: New file.
30046 * misc.c: Include aoptions.h.
30047 (cl_options_count, cl_options): Remove.
30048 (gnat_handle_option): New.
30049 (gnat_decode_option): Remove.
30050 (LANG_HOOKS_DECODE_OPTION): Remove.
30051 (LANG_HOOKS_HANDLE_OPTION): Override.
30053 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
30055 * init.c, misc.c, trans.c, utils.c: Remove dead code.
30057 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
30059 * Makefile.in: Replace "host_canonical" with "host" for autoconf
30062 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
30064 * Make-lang.in: Update.
30065 * misc.c: Include opts.h. Define cl_options_count and cl_options.
30067 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
30069 * misc.c (gnat_init_options): Update.
30071 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
30073 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
30074 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
30075 __attribute__ ((__unused__)).
30077 2003-06-05 Jan Hubicka <jh@suse.cz>
30079 * Make-lang.in: Add support for stageprofile and stagefeedback
30081 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
30083 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
30084 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
30086 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
30088 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
30089 Remove non-VMS directive.
30090 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
30092 (Examples of gnatls Usage): Remove VMS alternative.
30094 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
30097 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
30098 and turn ZCX_By_Default back to False since the underlying support
30099 is not quite there yet.
30101 2003-06-01 Andreas Jaeger <aj@suse.de>
30103 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
30104 and ROUND_TYPE_SIZE_UNIT.
30106 2003-05-22 Geert Bosch <bosch@gnat.com>
30108 * gnat_rm.texi : Remove reference to Ada Core Technologies.
30110 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
30112 * trans.c (tree_transform): Use location_t and input_location
30114 (build_unit_elab): Likewise.
30115 * utils.c (create_label_decl): Likewise.
30117 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
30119 * trans.c (tree_transform, build_unit_elab,
30120 set_lineno): Rename lineno to input_line.
30121 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
30122 end_subprog_body): Likewise.
30123 * utils2.c (build_call_raise): Likewise.
30125 2003-05-01 Laurent Guerby <guerby@acm.org>
30128 * 5iosinte.ads: Increase pthread_cond_t size to match recent
30129 LinuxThread and NPTL version, merge from ACT.
30131 2003-04-28 Zack Weinberg <zack@codesourcery.com>
30133 * utils.c (convert): No need to clear TREE_CST_RTL.
30135 2003-04-23 Geert Bosch <bosch@gnat.com>
30137 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
30138 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
30139 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
30140 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
30141 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
30142 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
30143 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
30144 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
30145 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
30146 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
30147 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
30148 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
30149 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
30150 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
30151 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
30152 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
30153 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
30154 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
30155 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
30156 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
30157 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
30158 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
30159 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
30160 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
30161 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
30162 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
30163 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
30164 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
30165 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
30166 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
30167 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
30168 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
30169 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
30170 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
30171 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
30172 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
30173 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
30174 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
30175 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
30176 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
30177 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
30178 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
30179 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
30180 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
30181 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
30182 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
30183 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
30184 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
30185 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
30186 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
30187 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
30188 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
30189 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
30190 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
30191 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
30192 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
30193 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
30194 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
30195 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
30196 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
30197 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
30198 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
30199 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
30200 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
30201 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
30202 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
30203 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
30204 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
30205 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
30206 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
30207 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
30208 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
30209 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
30210 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
30211 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
30212 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
30213 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
30214 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
30215 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
30216 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
30217 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
30218 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
30219 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
30220 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
30221 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
30222 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
30223 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
30224 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
30225 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
30226 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
30227 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
30228 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
30229 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
30230 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
30231 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
30232 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
30233 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
30234 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
30235 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
30236 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
30237 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
30238 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
30239 ali.adb, ali.ads, alloc.ads, argv.c,
30240 atree.adb, atree.ads, atree.h, aux-io.c,
30241 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
30242 binde.adb, binde.ads, binderr.adb, binderr.ads,
30243 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
30244 butil.adb, butil.ads, cal.c, calendar.ads,
30245 casing.adb, casing.ads, ceinfo.adb, checks.adb,
30246 checks.ads, cio.c, comperr.adb, comperr.ads,
30247 config-lang.in, csets.adb, csets.ads, csinfo.adb,
30248 cstand.adb, cstand.ads, cuintp.c, debug.adb,
30249 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
30250 dec-io.ads, dec.ads, deftarg.c, directio.ads,
30251 einfo.adb, einfo.ads, elists.adb, elists.ads,
30252 elists.h, errno.c, errout.adb, errout.ads,
30253 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
30254 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
30255 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
30256 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
30257 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
30258 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
30259 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
30260 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
30261 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
30262 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
30263 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
30264 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
30265 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
30266 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
30267 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
30268 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
30269 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
30270 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
30271 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
30272 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
30273 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
30274 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
30275 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
30276 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
30277 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
30278 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
30279 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
30280 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
30281 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
30282 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
30283 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
30284 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
30285 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
30286 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
30287 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
30288 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
30289 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
30290 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
30291 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
30292 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
30293 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
30294 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
30295 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
30296 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
30297 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
30298 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
30299 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
30300 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
30301 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
30302 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
30303 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
30304 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
30305 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
30306 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
30307 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
30308 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
30309 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
30310 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
30311 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
30312 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
30313 lib.adb, lib.ads, live.adb, live.ads,
30314 machcode.ads, make.adb, make.ads, makeusg.adb,
30315 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
30316 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
30317 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
30318 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
30319 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
30320 mlib.ads, namet.adb, namet.ads, nlists.adb,
30321 nlists.ads, opt.adb, opt.ads, osint-b.adb,
30322 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
30323 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
30324 osint.ads, output.adb, output.ads, par-ch10.adb,
30325 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
30326 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
30327 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
30328 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
30329 par-tchk.adb, par-util.adb, par.adb, par.ads,
30330 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
30331 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
30332 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
30333 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
30334 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
30335 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
30336 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
30337 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
30338 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
30339 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
30340 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
30341 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
30342 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
30343 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
30344 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
30345 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
30346 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
30347 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
30348 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
30349 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
30350 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
30351 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
30352 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
30353 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
30354 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
30355 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
30356 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
30357 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
30358 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
30359 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
30360 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
30361 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
30362 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
30363 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
30364 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
30365 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
30366 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
30367 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
30368 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
30369 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
30370 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
30371 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
30372 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
30373 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
30374 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
30375 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
30376 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
30377 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
30378 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
30379 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
30380 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
30381 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
30382 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
30383 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
30384 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
30385 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
30386 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
30387 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
30388 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
30389 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
30390 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
30391 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
30392 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
30393 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
30394 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
30395 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
30396 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
30397 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
30398 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
30399 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
30400 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
30401 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
30402 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
30403 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
30404 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
30405 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
30406 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
30407 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
30408 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
30409 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
30410 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
30411 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
30412 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
30413 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
30414 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
30415 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
30416 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
30417 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
30418 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
30419 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
30420 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
30421 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
30422 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
30423 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
30424 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
30425 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
30426 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
30427 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
30428 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
30429 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
30430 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
30431 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
30432 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
30433 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
30434 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
30435 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
30436 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
30437 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
30438 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
30439 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
30440 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
30441 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
30442 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
30443 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
30444 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
30445 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
30446 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
30447 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
30448 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
30449 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
30450 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
30451 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
30452 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
30453 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
30454 snames.ads, sprint.adb, sprint.ads, stand.adb,
30455 stand.ads, stringt.adb, stringt.ads, style.adb,
30456 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
30457 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
30458 switch-m.ads, switch.adb, switch.ads, system.ads,
30459 table.adb, table.ads, targparm.adb, targparm.ads,
30460 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
30461 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
30462 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
30463 ttypef.ads, ttypes.ads, types.adb, types.ads,
30464 uintp.adb, uintp.ads, uname.adb, uname.ads,
30465 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
30466 usage.adb, usage.ads, validsw.adb, validsw.ads,
30467 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
30468 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
30469 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
30470 formatting and other trivial changes from ACT.
30472 2003-04-12 Zack Weinberg <zack@codesourcery.com>
30474 * gigi.h, utils2.c (build_constructor):
30475 Rename gnat_build_constructor. Use build_constructor.
30476 * decl.c (gnat_to_gnu_entity)
30477 * trans.c (tree_transform, pos_to_constructor, extract_values)
30478 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
30479 (unchecked_convert)
30480 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
30481 (fill_vms_descriptor):
30484 2003-04-06 Zack Weinberg <zack@codesourcery.com>
30486 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
30487 * misc.c (gnat_tree_size): New function.
30488 (LANG_HOOKS_TREE_SIZE): Override.
30490 2003-04-03 Jason Merrill <jason@redhat.com>
30492 * misc.c (gnat_adjust_rli): #if 0.
30494 2003-03-31 Geert Bosch <bosch@gnat.com>
30497 * link.c : Fix misspelled "const" keyword
30499 2003-03-23 Mark Mitchell <mark@codesourcery.com>
30502 * utils2.c: Adjust calls to put_var_into_stack.
30504 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
30506 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
30508 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
30510 * misc.c (gnat_init): Update for new prototype.
30512 2003-03-05 Olivier Hainque <hainque@gnat.com>
30515 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
30516 warning, and fix return type for the IN_RTS && !SJLJ case.
30518 2003-03-04 Tom Tromey <tromey@redhat.com>
30520 * Make-lang.in (ada.tags): New target.
30522 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
30525 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
30526 wrapper, which name remains constant whatever underlying GCC
30529 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
30530 the stable interface needed for a-except.
30532 2003-03-02 Andreas Jaeger <aj@suse.de>
30534 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30535 gnat_ug_wnt.texi: Regenerate.
30537 2003-03-02 Laurent Guerby <guerby@acm.org>
30539 * Makefile.in (install-gnatlib): Match previous change there
30542 2003-02-28 Andreas Schwab <schwab@suse.de>
30544 * Make-lang.in (install-gnatlib): Change to ada directory before
30545 running make instead of using ada/Makefile directly.
30547 2003-02-18 Ben Elliston <bje@redhat.com>
30549 Part of PR ada/9406
30550 * gnat_ug.texi (Binder output file): Grammar fix.
30552 2003-02-18 Ben Elliston <bje@redhat.com>
30555 * 5qtaprop.adb (Sleep): Fix typo in comment.
30557 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
30559 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
30560 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30561 gnat_ug_wnt.texi: Regenerate.
30563 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
30565 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
30566 be created if necessary.
30567 (ada.install-common): Let $(DESTDIR)$(bindir) be created
30568 if necessary. Remove erroneous and redundant gnatchop
30569 installation commands. Test for gnatdll before attempting
30571 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
30572 and gnatdll from all plausible locations.
30574 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
30576 * utils2.c (build_unary_op): Don't check flag_volatile.
30577 * gnat_ug.texi: Remove -fvolatile from example.
30578 * gnat_ug_vxw.texi: Likewise.
30580 2003-01-29 Laurent Guerby <guerby@acm.org>
30583 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
30584 * Makefile.in: match previous change.
30585 * Make-lang.in: match previous change.
30587 2003-01-29 Joel Sherrill <joel@OARcorp.com>
30589 * 5rosinte.ads: Add SIGXCPU.
30590 * 5rtpopsp.adb: New file.
30591 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
30592 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
30593 specific file 5rtpopsp.adb.
30594 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
30595 is likely needed for all newlib targets.
30596 * init.c: Add RTEMS specific version of __gnat_initialize().
30598 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30600 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
30602 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30604 * init.c (__gnat_error_handler): Make msg const.
30606 * gmem.c (convert_addresses): Move declaration ...
30607 * adaint.h: ... here.
30608 * adaint.c (convert_addresses): Adapt addrs type to match
30611 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
30613 2003-01-24 Andreas Schwab <schwab@suse.de>
30615 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
30616 size_t to avoid warning.
30618 2003-01-21 Zack Weinberg <zack@codesourcery.com>
30620 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
30622 2003-01-09 Geoffrey Keating <geoffk@apple.com>
30624 * gnat_rm.texi: Remove RCS version number.
30626 * ada-tree.h (union lang_tree_node): Add chain_next option.
30628 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
30630 * Make-lang.in (ada.install-info, ada.install-common,
30631 ada.uninstall): Prepend $(DESTDIR) to the destination
30632 directory in all (un)installation commands.
30633 * Makefile.in (install-gnatlib, install-rts): Ditto.
30635 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
30637 * gnat_rm.texi, gnat_ug.texi: Use @copying.
30638 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30639 gnat_ug_wnt.texi: Regenerate.
30641 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
30643 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
30645 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
30646 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
30647 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
30648 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
30649 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
30650 $(srcdir)/doc/include/gcc-common.texi.
30652 2002-12-15 Geert Bosch <bosch@gnat.com>
30654 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
30656 2002-12-14 Geert Bosch <bosch@gnat.com>
30659 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
30660 case of a body created for a Renaming_As_Body, on which
30661 conformance checks are not performed.
30663 2002-11-30 Zack Weinberg <zack@codesourcery.com>
30665 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
30666 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
30667 not already included.
30668 * Make-lang.in: Update dependencies.
30670 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
30671 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
30672 solution to buffer overflow bug on GNU/Linux.
30674 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
30678 * bindgen.adb: Remove all references to Public_Version.
30679 * comperr.adb: Remove all references to Public_Version and
30680 GNATPRO_Version; correct bug reporting instructions.
30681 * comperr.ads: Change to match bug box.
30682 * gnatvsn.ads: Remove all references to Public version and
30685 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
30688 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
30692 * config-lang.in: Remove diff_excludes.
30694 2002-11-05 Graham Stott <graham.stott@btinternet.com>
30697 * trans.c (gnu_pending_elaboration_lists): New GC root.
30698 (build_unit_elab): Use..
30700 2002-10-30 Geert Bosch <bosch@gnat.com>
30703 * misc.c : Include optabs.h
30705 * Make-lang.in (misc.o): Add dependency on optabs.h
30707 2002-10-29 Geert Bosch <bosch@gnat.com>
30710 * Make-lang.in (gnatbind): Depend on CONFIG_H
30712 2002-10-29 Geert bosch <bosch@gnat.com>
30715 * misc.c: Unrevert misc.c (1.13)
30717 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
30719 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
30720 maintainership comments.
30722 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
30725 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
30726 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
30727 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
30728 7staprop.adb: Correct statements in comments about
30729 maintainership of GNAT.
30732 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
30733 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
30734 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
30735 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
30736 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
30737 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
30738 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
30739 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
30740 comments about maintainership of GNAT.
30742 PR ada/6919 (forward port of patch for PR ada/5904)
30743 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
30744 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
30745 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
30746 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
30747 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
30748 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
30749 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
30750 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
30751 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
30752 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
30753 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
30754 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
30755 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
30756 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
30757 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
30758 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
30759 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
30760 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
30761 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
30762 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
30763 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
30764 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
30765 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
30766 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
30767 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
30768 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
30769 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
30770 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
30771 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
30772 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
30773 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
30774 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
30775 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
30776 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
30777 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
30778 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
30779 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
30780 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
30781 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
30782 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
30783 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
30784 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
30785 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
30786 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
30787 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
30788 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
30789 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
30790 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
30791 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
30792 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
30793 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
30794 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
30795 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
30796 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
30797 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
30798 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
30799 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
30800 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
30801 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
30802 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
30803 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
30804 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
30805 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
30806 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
30807 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
30808 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
30809 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
30810 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
30811 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
30812 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
30813 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
30814 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
30815 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
30816 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
30817 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
30818 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
30819 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
30820 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
30821 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
30822 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
30823 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
30824 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
30825 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
30826 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
30827 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
30828 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
30829 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
30830 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
30831 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
30832 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
30833 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
30834 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
30835 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
30836 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
30837 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
30838 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
30839 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
30840 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
30841 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
30842 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
30843 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
30844 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
30845 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
30846 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
30847 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
30848 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
30849 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
30850 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
30851 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
30852 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
30853 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
30854 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
30855 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
30856 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
30857 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
30858 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
30859 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
30860 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
30861 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
30862 par-endh.adb par-labl.adb par-load.adb par-prag.adb
30863 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
30864 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
30865 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
30866 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
30867 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
30868 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
30869 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
30870 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
30871 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
30872 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
30873 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
30874 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
30875 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
30876 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
30877 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
30878 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
30879 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
30880 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
30881 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
30882 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
30883 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
30884 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
30885 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
30886 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
30887 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
30888 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
30889 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
30890 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
30891 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
30892 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
30893 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
30894 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
30895 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
30896 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
30897 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
30898 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
30899 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
30900 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
30901 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
30902 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
30903 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
30904 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
30905 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
30906 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
30907 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
30908 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
30909 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
30910 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
30911 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
30912 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
30913 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
30914 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
30915 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
30916 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
30917 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
30918 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
30919 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
30920 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
30921 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
30922 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
30923 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
30924 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
30925 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
30926 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
30927 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
30928 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
30929 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
30930 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
30931 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
30932 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
30933 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
30934 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
30935 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
30936 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
30937 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
30938 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
30939 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
30940 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
30941 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
30942 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
30943 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
30944 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
30945 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
30946 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
30947 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
30948 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
30949 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
30950 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
30951 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
30952 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
30953 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
30954 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
30955 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
30956 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
30957 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
30958 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
30959 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
30960 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
30961 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
30962 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
30963 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
30964 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
30965 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
30966 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
30967 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
30968 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
30969 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
30970 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
30971 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
30972 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
30973 stringt.ads stringt.h style.adb style.ads stylesw.adb
30974 stylesw.ads switch.adb switch.ads sysdep.c system.ads
30975 table.adb table.ads targparm.adb targparm.ads targtyps.c
30976 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
30977 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
30978 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
30979 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
30980 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
30981 usage.ads utils.c utils2.c validsw.adb validsw.ads
30982 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
30983 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
30984 xtreeprs.adb: Correct statements in comments about maintainership
30987 2002-09-23 Zack Weinberg <zack@codesourcery.com>
30989 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
30990 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
30991 * gnatvsn.ads: Gnat_Version_String is now a function.
30992 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
30993 copy the C version_string into a String and return it.
30994 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
30995 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
30996 Remove pragma Ident (Gnat_Version_String). If this was the
30997 sole use of package Gnatvsn, remove the with statement too.
30998 * gnat1drv.adb: Tweak -gnatv output.
31000 2002-09-17 Richard Henderson <rth@redhat.com>
31002 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
31003 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
31004 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
31005 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
31006 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
31007 and real_2expN instead of a loop.
31008 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
31009 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
31011 2002-08-25 Andre Leis <a.leis@gmx.net>
31012 David Billinghurst (David.Billinghurst@riotinto.com>
31014 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
31016 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31018 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
31019 Remove $(CONFIG_H) dependency.
31021 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
31023 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
31025 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31027 * adadecode.c (ada_demangle): Use xstrdup in lieu of
31029 * misc.c (gnat_decode_option): Likewise.
31031 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
31033 * make.adb (Add_Switch): Make Generic_Position a procedure. The
31034 function approach did not work well because of a side effect (the
31035 function call could reallocate the table which was being indexed
31036 using its result). Fixes ada/4851. [RESURRECTED]
31038 2002-07-01 Roger Sayle <roger@eyesopen.com>
31040 * ada/utils.c (builtin_function): Accept an additional parameter.
31042 2002-06-28 Andreas Jaeger <aj@suse.de>
31045 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
31048 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31050 * Makefile.in (SHELL): Set to @SHELL@.
31052 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31054 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
31055 array size calculation.
31057 2002-06-04 Andreas Jaeger <aj@suse.de>
31059 * Make-lang.in (gnatbind): Readd rule that has been lost in last
31062 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
31064 Merge from pch-branch:
31066 * config-lang.in (gtfiles): Add ada-tree.h.
31067 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
31068 (SET_TYPE_MODULUS): New.
31069 (SET_TYPE_INDEX): New.
31070 (SET_TYPE_DIGITS_VALUE): New.
31071 (SET_TYPE_RM_SIZE): New.
31072 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
31073 (SET_TYPE_ADA_SIZE): New.
31074 (SET_TYPE_ACTUAL_BOUNDS): New.
31075 (SET_DECL_CONST_CORRESPONDING_VAR): New.
31076 (SET_DECL_ORIGINAL_FIELD): New.
31077 (TREE_LOOP_ID): Correct typo.
31078 * decl.c: Use new macros.
31079 * utils.c: Include debug.h, use new macros.
31080 * utils2.c: Use new macros.
31082 * ada-tree.h: Update all macros for new tree description.
31083 (struct tree_loop_id): New.
31084 (union lang_tree_node): New.
31085 (struct lang_decl): New.
31086 (struct lang_type): New.
31087 * misc.c (gnat_mark_tree): Delete.
31088 (LANG_HOOKS_MARK_TREE): Delete.
31089 * trans.c (tree_transform): No longer any need to cast
31092 * utils.c (struct language_function): New dummy structure.
31094 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
31095 (misc.o): Likewise.
31096 (utils.o): Likewise; also gtype-ada.h.
31097 * Make-lang.in (gnat1): Add dependency on s-gtype.
31098 (gnatbind): Add dependency on $(CONFIG_H).
31099 * utils.c: Correct last #include.
31100 (stuct e_stack): Remove unnecessary 'static'.
31101 (mark_e_stack): Remove unused prototype.
31103 * scn-nlit.adb: Remove whitespace after version number to
31104 keep lines under 80 chars.
31105 * snames.adb: Likewise.
31106 * treepr.ads: Likewise.
31108 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
31109 (misc.o): Likewise.
31110 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
31111 * config-lang.in (gtfiles): New.
31112 * decl.c: Use gengtype for roots.
31113 * gigi.h: Use gengtype for roots.
31114 * trans.c: Use gengtype for roots.
31115 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
31117 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
31119 * misc.c (gnat_init): Adjust setting of internal_error_function.
31121 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
31123 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
31124 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31125 gnat_ug_wnt.texi: Regenerate.
31127 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
31129 * 5ntaprop.adb (with System.OS_Primitives): Remove.
31131 * cstreams.c (max_path_len): Move from here ...
31132 * adaint.c (__gnat_max_path_len): ... to here.
31133 * adaint.c (__gnat_max_path_len): Declare.
31134 * g-dirope.adb (Max_Path): Adjust.
31135 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
31136 * i-cstrea.ads (max_path_len): Adjust.
31137 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
31138 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
31140 * Makefile.in, Make-lang.in: Documentation is now built in
31141 Make-lang.in. Store Info and generated Texinfo files in the
31143 * gnat_ug.texi: Remove CVS keywords, correct version number.
31144 Set file name correctly.
31146 * gnat_ug_*.texi: Add.
31147 * .cvsignore: Ignore generated Texinfo files.
31149 2002-05-30 Zack Weinberg <zack@codesourcery.com>
31151 * ada.h: Add MI guard macro.
31152 (SUBTYPE): Define constants with an anonymous enum, not static
31154 (IN): Cast constants to appropriate type before use.
31156 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
31158 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
31161 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31163 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
31164 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
31165 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
31166 (ALL_ADA_CFLAGS): Likewise.
31167 (ADA_INCLUDES): Likewise.
31168 Adapt for new working dir.
31169 (GNATBIND): Use Makefile.in version.
31170 (.SUFFIXES): Copy from Makefile.in.
31171 (ada-warn): Define.
31172 (.adb.o, .ads.o): Copy from Makefile.in.
31173 Added $(OUTPUT_OPTION).
31174 (GNAT1_C_OBJS): Moved from Makefile.in.
31175 Prefix with ada subdir.
31176 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
31177 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
31178 Adapt for new working dir.
31179 (EXTRA_GNATBIND_OBJS): Likewise.
31180 (ADA_BACKEND): Moved from Makefile.in.
31181 Renamed to avoid conflict with global BACKEND.
31183 (TARGET_ADA_SRCS): Moved from Makefile.in.
31184 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
31186 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
31187 (ada_extra_files): Moved from Makefile.in.
31188 Prefix with ada subdir.
31189 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
31190 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
31191 (ada/nmake.ads): Likewise.
31192 (update-sources): Moved from Makefile.in.
31193 Prefix with ada subdir.
31194 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
31195 (ADA_TREE_H): Likewise.
31196 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
31197 (ada/memtrack.o): Likewise.
31198 (ada/adadecode.o): Likewise.
31199 Update dependencies.
31200 (ada/adaint.o): New.
31201 (ada/argv.o): Moved from Makefile.in.
31202 Prefix with ada subdir.
31203 Update dependencies.
31204 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
31205 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
31206 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
31207 Prefix with ada subdir.
31208 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
31209 (GNAT DEPENDENCIES): Regenerate.
31210 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
31211 toplevel Makefile.in.
31212 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
31213 (TARGET_ADA_SRCS): Removed.
31214 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
31215 (GNATBIND_OBJS): Likewise.
31216 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
31217 (BACKEND): Removed.
31218 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
31219 (TREE_H): Likewise.
31220 (ada_extra_files): Likewise.
31221 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
31222 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
31223 (update-sources): Likewise.
31224 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
31225 (ADA_TREE_H): Likewise.
31226 (adadecoce.o): Likewise.
31227 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
31228 (GNAT DEPENDENCIES): Likewise.
31230 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31232 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
31233 * Makefile.in: Likewise.
31235 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31237 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
31238 Restore $(CONFIG_H) and prefix.o dependencies.
31239 (ada.stage[1-4]): Depend on stage?-start.
31241 * Makefile.in (b_gnatb.c): Depend on interfac.o.
31243 2002-05-02 Jim Wilson <wilson@redhat.com>
31245 * utils.c (finish_record_type): Change record_size to record_type.
31247 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
31249 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
31250 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
31251 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
31253 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
31255 * misc.c (gnat_parse_file): Update.
31257 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
31259 * misc.c (gnat_init): Don't set lang_attribute_common.
31261 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
31263 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
31265 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
31267 * gnat_ug.texi: New file.
31269 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
31270 instead of gfdl.texi
31272 * xgnatug.adb, ug_words: New files.
31274 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
31275 gnat_rm and gnat-style manuals.
31277 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
31279 * gigi.h (incomplete_type_error): Remove.
31280 * utils.c (incomplete_type_error): Remove.
31282 2002-04-16 Mark Mitchell <mark@codesourcery.com>
31284 * trans.c (tree_transform): Add has_scope argument to
31285 expand_start_stmt_expr.
31287 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
31289 * gigi.h (truthvalue_conversion): Rename.
31290 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
31291 * trans.c (tree_transform): Update.
31292 * utils2.c (truthvalue_conversion): Rename, update.
31293 (build_binary_op, build_unary_op): Update.
31295 2002-04-04 Laurent Guerby <guerby@acm.org>
31297 * make.adb: Implement -margs, remove restriction about file name placement.
31298 * makeusg.adb: Documentation update.
31299 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
31300 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
31302 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
31304 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
31305 (builtin_function): Similarly.
31307 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
31309 * decl.c (gnat_to_gnu_entity): Update.
31310 * gigi.h (mark_addressable): Rename.
31311 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
31312 * trans.c (tree_transform): Update.
31313 * utils.c (create_var_decl): Update.
31314 * util2.c (build_binary_op, build_unary_op,
31315 fill_vms_descriptor): Update.
31316 (mark_addressable): Rename, update.
31318 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
31320 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
31322 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
31323 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
31324 * trans.c (tree_transform, convert_with_check): Update.
31325 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
31328 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
31330 * gigi.h (finish_incomplete_decl): Rename.
31331 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
31332 * utils.c (gnat_init_decl_processing): Don't set hook.
31333 (finish_incomplete_decl): Rename.
31335 2002-03-29 Andreas Schwab <schwab@suse.de>
31337 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
31340 2001-03-28 Robert Dewar <dewar@gnat.com>
31343 (Remove_Checks): New procedure
31346 (Remove_Checks): New procedure
31349 Use new Duplicate_Subexpr functions
31350 (Duplicate_Subexpr_No_Checks): New procedure
31351 (Duplicate_Subexpr_No_Checks_Orig): New procedure
31352 (Duplicate_Subexpr): Restore original form (checks duplicated)
31353 (Duplicate_Subexpr): Call Remove_Checks
31356 (Duplicate_Subexpr_No_Checks): New procedure
31357 (Duplicate_Subexpr_No_Checks_Orig): New procedure
31358 Add 2002 to copyright notice
31360 * sem_util.adb: Use new Duplicate_Subexpr functions
31363 (Eval_Indexed_Component): This is the place to call
31364 Constant_Array_Ref and to replace the value. We simply merge
31365 the code of this function in here, since it is now no longer
31366 used elsewhere. This fixes the problem of the back end not
31367 realizing we were clever enough to see that this was
31369 (Expr_Val): Remove call to Constant_Array_Ref
31370 (Expr_Rep_Val): Remove call to Constant_Array_Ref
31372 (Constant_Array_Ref): Deal with string literals (patch
31373 suggested by Zack Weinberg on the gcc list)
31375 2001-03-28 Ed Schonberg <schonber@gnat.com>
31377 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
31378 Duplicate_Subexpr_Move_Checks.
31380 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
31381 Duplicate_Subexpr_Move_Checks.
31383 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
31384 value of array exists before retrieving it (it may a private
31385 protected component in a function).
31387 2002-03-28 Geert Bosch <bosch@gnat.com>
31389 * prj-pp.adb : New file.
31391 * prj-pp.ads : New file.
31393 2002-03-28 Andreas Jaeger <aj@suse.de>
31395 * Makefile.in (stamp-sdefault): Fix path for Makefile.
31397 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
31399 * misc.c (gnat_expand_expr): Move prototype.
31401 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
31403 * misc.c (insert_default_attributes): Remove.
31405 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
31407 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
31408 (gnat_init): Don't set hook.
31409 (gnat_expand_expr): Fix prototype.
31411 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
31413 * misc.c (ggc_p): Remove.
31415 2002-03-27 Geert Bosch <bosch@gnat.com>
31417 * prj-makr.ads, prj-makr.adb : New files.
31419 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
31421 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
31422 (lang_mark_tree): Make static, rename.
31424 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
31426 * misc.c (maybe_build_cleanup): Remove.
31428 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
31430 * gigi.h (yyparse): Remove.
31432 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
31434 * gnat_rm.texi: Sync with ACT version.
31435 (From Ben Brosgol <brosgol@gnat.com>)
31437 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
31439 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
31440 (gnat_init): Remove old hook.
31442 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
31444 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
31445 (yyparse): Rename gnat_parse_file.
31447 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
31449 Delete all lines containing "$Revision:".
31450 * xeinfo.adb: Don't look for revision numbers.
31451 * xnmake.adb: Likewise.
31452 * xsinfo.adb: Likewise.
31453 * xsnames.adb: Likewise.
31454 * xtreeprs.adb: Likewise.
31456 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31458 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
31459 gnat_tree_code_name): Delete.
31460 (tree_code_type, tree_code_length, tree_code_name): Define.
31461 (gnat_init): Don't try to copy into the various tree_code
31464 2002-03-11 Richard Henderson <rth@redhat.com>
31466 * Makefile.in (.NOTPARALLEL): Add fake tag.
31468 2002-03-07 Geert Bosch <bosch@gnat.com>
31470 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
31471 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
31472 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
31473 switch-m.adb, switch-m.ads : New files.
31475 2002-03-07 Geert Bosch <bosch@gnat.com>
31477 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
31478 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
31479 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
31480 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
31481 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
31482 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
31483 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
31484 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
31485 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
31486 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
31487 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
31488 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
31489 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
31490 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
31491 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
31492 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
31493 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
31494 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
31495 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
31496 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
31497 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
31498 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
31499 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
31500 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
31501 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
31502 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
31503 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
31504 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
31505 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
31506 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
31507 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
31508 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
31509 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
31510 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
31511 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
31512 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
31513 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
31514 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
31515 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
31516 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
31517 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
31518 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
31519 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
31520 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
31521 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
31522 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
31523 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
31524 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
31525 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
31526 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
31527 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
31528 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
31529 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
31530 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
31531 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
31532 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
31533 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
31534 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
31535 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
31536 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
31537 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
31538 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
31539 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
31540 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
31541 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
31542 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
31543 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
31544 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
31545 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
31546 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
31547 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
31548 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
31549 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
31550 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
31551 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
31552 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
31553 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
31554 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
31555 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
31556 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
31557 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
31558 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
31559 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
31560 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
31561 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
31562 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
31563 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
31564 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
31565 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
31566 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
31567 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
31568 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
31569 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
31570 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
31571 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
31572 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
31573 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
31575 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
31576 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
31577 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
31578 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
31580 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
31581 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
31583 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
31584 to mdll-fil.ad[bs] and mdll-util.ad[bs]
31586 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
31587 from mdllfile.ad[bs] and mdlltool.ad[bs]
31589 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31591 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
31592 lieu of explicit sizeof/sizeof.
31594 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
31596 * misc.c (copy_lang_decl): Remove.
31598 2002-02-27 Zack Weinberg <zack@codesourcery.com>
31600 * misc.c: Delete traditional-mode-related code copied from the
31601 C front end but not used, or used only to permit the compiler
31604 2002-02-07 Richard Henderson <rth@redhat.com>
31606 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
31607 * adaint.h (__gnat_to_gm_time): Update prototype.
31609 2002-01-30 Richard Henderson <rth@redhat.com>
31611 * trans.c (tree_transform) [N_Loop_Statement]: Use
31612 expand_exit_loop_top_cond.
31614 2001-12-23 Richard Henderson <rth@redhat.com>
31616 * utils.c (end_subprog_body): Push GC context around
31617 rest_of_compilation for nested functions.
31619 2001-12-23 Richard Henderson <rth@redhat.com>
31621 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
31623 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
31625 * gnat-style.texi (Declarations and Types): Remove ancient style
31626 rule which was mandated by code generation issues.
31628 * gnat-style.texi (header): Add @dircategory, @direntry.
31629 (title page): Remove date.
31630 (general) Add @./@: where approriate, and two spaces after the
31631 full stop at the end of a sentence. Use @samp markup when
31632 referring concrete lexical entities (keywords, attribute names
31633 etc.), and @syntax for ARM grammar elements. Use @r for English
31634 text in comments. Use @emph for emphasis. Change "if-statements"
31635 etc. to "if statements" (without @samp). Break long lines. Make
31636 casing of section names consistent.
31637 (Identifiers): Use @samp markup for variable names.
31638 (Comments): Use @samp markup for comment characters. Line-end
31639 comments may follow any Ada code, not just statements. Fix
31640 misspelling of "Integer" as "integer".
31641 (Loop statements): Do not use variable name "I", use "J".
31642 (Subprogram Declarations): Document alignment.
31643 (Subprogram Bodies, Block statements): Document empty line before
31646 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
31648 * make.adb (Add_Switch): Make Generic_Position a procedure. The
31649 function approach did not work well because of a side effect (the
31650 function call could reallocate the table which was being indexed
31651 using its result). Fixes ada/4851.
31653 2001-12-19 Robert Dewar <dewar@gnat.com>
31655 * bindgen.adb: Minor reformatting
31657 * cstand.adb: Minor reformatting
31659 * fmap.adb: Minor reformatting
31660 Change name from Add for Add_To_File_Map (Add is much too generic)
31661 Change Path_Name_Of to Mapped_Path_Name
31662 Change File_Name_Of to Mapped_File_Name
31663 Fix copyright dates in header
31666 Change name from Add for Add_To_File_Map (Add is much too generic)
31667 Change Path_Name_Of to Mapped_Path_Name
31668 Change File_Name_Of to Mapped_File_Name
31669 Fix copyright dates in header
31671 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
31672 Add use clause for Fmap.
31674 * make.adb: Minor reformatting
31676 * osint.adb: Minor reformatting. Change of names in Fmap.
31677 Add use clause for Fmap.
31679 * prj-env.adb: Minor reformatting
31681 * prj-env.ads: Minor reformatting
31683 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
31684 error found (there were odd exceptions to this general rule in
31685 -gnatec/-gnatem processing)
31687 2001-12-19 Olivier Hainque <hainque@gnat.com>
31689 * raise.c (__gnat_eh_personality): Exception handling personality
31690 routine for Ada. Still in rough state, inspired from the C++ version
31691 and still containing a bunch of debugging artifacts.
31692 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
31693 inspired from the C++ library.
31695 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
31696 exception handling integration.
31698 2001-12-19 Arnaud Charlet <charlet@gnat.com>
31700 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
31701 (HIE_SOURCES): Add s-secsta.ad{s,b}.
31702 (HIE_OBJS): Add s-fat*.o
31703 (RAVEN_SOURCES): Remove files that are no longer required. Add
31704 interrupt handling files.
31705 (RAVEN_MOD): Removed, no longer needed.
31707 2001-12-19 Robert Dewar <dewar@gnat.com>
31709 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
31710 Add 2001 to copyright date
31712 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
31713 need to force universal inlining for these cases.
31715 2001-12-19 Arnaud Charlet <charlet@gnat.com>
31717 * s-taprob.adb: Minor clean ups so that this unit can be used in
31720 * exp_ch7.adb: Allow use of secondary stack in HI mode.
31721 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
31723 2001-12-19 Vincent Celier <celier@gnat.com>
31725 * prj-tree.ads (Project_Node_Record): Add comments for components
31726 Pkg_Id and Case_Insensitive.
31728 2001-12-19 Pascal Obry <obry@gnat.com>
31730 * g-socket.adb: Minor reformatting. Found while reading code.
31732 2001-12-19 Robert Dewar <dewar@gnat.com>
31734 * prj-tree.ads: Minor reformatting
31736 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
31738 * config-lang.in (diff_excludes): Remove.
31740 2001-12-17 Ed Schonberg <schonber@gnat.com>
31742 * sem_res.adb (Resolve_Selected_Component): do not generate a
31743 discriminant check if the selected component is a component of
31744 the argument of an initialization procedure.
31746 * trans.c (tree_transform, case of arithmetic operators): If result
31747 type is private, the gnu_type is the base type of the full view,
31748 given that the full view itself may be a subtype.
31750 2001-12-17 Robert Dewar <dewar@gnat.com>
31752 * sem_res.adb: Minor reformatting
31754 * trans.c (tree_transform, case N_Real_Literal): Add missing third
31755 parameter in call to Machine (unknown horrible effects from this
31758 * urealp.h: Add definition of Round_Even for call to Machine
31759 Add third parameter for Machine
31761 2001-12-17 Ed Schonberg <schonber@gnat.com>
31763 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
31764 predefined units in No_Run_Time mode.
31766 2001-12-17 Richard Kenner <kenner@gnat.com>
31768 * misc.c (insn-codes.h): Now include.
31770 2001-12-17 Olivier Hainque <hainque@gnat.com>
31772 * a-except.adb: Preparation work for future integration of the GCC 3
31773 exception handling mechanism
31774 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
31775 to factorize previous code sequences and make them externally callable,
31776 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
31777 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
31778 Use the new notification routines.
31780 2001-12-17 Emmanuel Briot <briot@gnat.com>
31782 * prj-tree.ads (First_Choice_Of): Document the when others case
31784 2001-12-17 Arnaud Charlet <charlet@gnat.com>
31786 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
31787 HI-E mode, in order to support Ravenscar profile properly.
31789 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
31790 mode on 32 bits targets.
31792 2001-12-17 Vincent Celier <celier@gnat.com>
31794 * fmap.adb: Initial version.
31796 * fmap.ads: Initial version.
31798 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
31799 If search is successfully done, add to mapping.
31801 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
31804 (Gnatmake): Add new local variable Mapping_File_Name.
31805 Create mapping file when using project file(s).
31806 Delete mapping file before exiting.
31808 * opt.ads (Mapping_File_Name): New variable
31810 * osint.adb (Find_File): Use path name found in mapping, if any.
31812 * prj-env.adb (Create_Mapping_File): New procedure
31814 * prj-env.ads (Create_Mapping_File): New procedure.
31816 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
31819 * usage.adb: Add entry for new switch -gnatem.
31821 * Makefile.in: Add dependencies for fmap.o.
31823 2001-12-17 Ed Schonberg <schonber@gnat.com>
31825 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
31826 is a package instantiation rewritten as a package body.
31827 (Install_Withed_Unit): Undo previous change, now redundant.
31829 2001-12-17 Gary Dismukes <dismukes@gnat.com>
31832 (Compute_Length): Move conversion to Unsigned to callers.
31833 (Get_Max_Size): Convert Len expression to Unsigned after calls to
31834 Compute_Length and Determine_Range.
31835 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
31836 Compute_Length and Determine_Range.
31837 Above changes fix problem with length computation for supernull arrays
31838 where Max (Len, 0) wasn't getting applied due to the Unsigned
31839 conversion used by Compute_Length.
31841 2001-12-17 Arnaud Charlet <charlet@gnat.com>
31844 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
31845 System.Secondary_Stack.
31846 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
31848 Remove unused entity RE_Exception_Data.
31850 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
31852 * rident.ads (No_Secondary_Stack): New restriction.
31854 2001-12-17 Joel Brobecker <brobecke@gnat.com>
31856 * gnat_rm.texi: Fix minor typos. Found while reading the section
31857 regarding "Bit_Order Clauses" that was sent to a customer.
31858 Very interesting documentation!
31860 2001-12-17 Robert Dewar <dewar@gnat.com>
31862 * sem_case.adb (Choice_Image): Avoid creating improper character
31863 literal names by using the routine Set_Character_Literal_Name. This
31864 fixes bombs in certain error message cases.
31866 2001-12-17 Arnaud Charlet <charlet@gnat.com>
31868 * a-reatim.adb: Minor reformatting.
31870 2001-12-17 Ed Schonberg <schonber@gnat.com>
31872 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
31873 case where the formal is an extension of another formal in the current
31874 unit or in a parent generic unit.
31876 2001-12-17 Arnaud Charlet <charlet@gnat.com>
31878 * s-tposen.adb: Update comments. Minor reformatting.
31879 Minor code clean up.
31881 * s-tarest.adb: Update comments. Minor code reorganization.
31883 2001-12-17 Gary Dismukes <dismukes@gnat.com>
31885 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
31888 2001-12-17 Robert Dewar <dewar@gnat.com>
31890 * exp_attr.adb: Minor reformatting
31892 2001-12-17 Ed Schonberg <schonber@gnat.com>
31894 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
31895 derivations nested within a child unit: verify that the parent
31896 type is declared in an outer scope.
31898 2001-12-17 Robert Dewar <dewar@gnat.com>
31900 * sem_ch12.adb: Minor reformatting
31902 2001-12-17 Ed Schonberg <schonber@gnat.com>
31904 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
31905 warning if current unit is a predefined one, from which bodies may
31908 2001-12-17 Robert Dewar <dewar@gnat.com>
31910 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
31911 Fix header format. Add 2001 to copyright date.
31913 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
31914 which caused CE during compilation if checks were enabled.
31916 2001-12-17 Vincent Celier <celier@gnat.com>
31919 (Switches_Of): New function
31920 (Test_If_Relative_Path): New procedure
31921 (Add_Switches): Use new function Switches_Of
31922 (Collect_Arguments_And_Compile): Use new function Switches_Of.
31923 When using a project file, test if there are any relative
31924 search path. Fail if there are any.
31925 (Gnatmake): Only add switches for the primary directory when not using
31926 a project file. When using a project file, change directory to the
31927 object directory of the main project file. When using a project file,
31928 test if there are any relative search path. Fail if there are any.
31929 When using a project file, fail if specified executable is relative
31930 path with directory information, and prepend executable, if not
31931 specified as an absolute path, with the exec directory. Make sure
31932 that only one -o switch is transmitted to the linker.
31934 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
31937 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
31938 when using a non standard naming scheme.
31939 (Check_Ada_Naming_Scheme): Make sure that error messages
31940 do not raise exceptions.
31941 (Is_Illegal_Append): Return True if there is no dot in the suffix.
31942 (Language_Independent_Check): Check the exec directory.
31944 * prj.adb (Project_Empty): Add new component Exec_Directory
31947 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
31948 (Project_Data): Add component Exec_Directory
31950 * snames.adb: Updated to match snames.ads revision 1.215
31952 * snames.ads: Added Exec_Dir
31954 2001-12-17 Robert Dewar <dewar@gnat.com>
31956 * make.adb: Minor reformatting
31958 * prj-nmsc.adb: Minor reformatting
31960 * snames.adb: Updated to match snames.ads
31962 * snames.ads: Alphebetize entries for project file
31964 2001-12-17 Ed Schonberg <schonber@gnat.com>
31966 * trans.c (process_freeze_entity): Do nothing if the entity is a
31967 subprogram that was already elaborated.
31969 2001-12-17 Richard Kenner <kenner@gnat.com>
31971 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
31972 and Esize if object is referenced via pointer.
31974 2001-12-17 Ed Schonberg <schonber@gnat.com>
31976 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
31977 is discrete before analyzing choices.
31979 2001-12-17 Joel Brobecker <brobecke@gnat.com>
31981 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
31982 containing the name of the Ada Main Program. This string is mainly
31983 intended for the debugger.
31984 (Gen_Output_File_C): Do the equivalent change when generating a C file.
31986 2001-12-17 Robert Dewar <dewar@gnat.com>
31988 * ali.adb: Set new Dummy_Entry field in dependency entry
31990 * ali.ads: Add Dummy_Entry field to source dependency table
31992 * bcheck.adb (Check_Consistency): Ignore dummy D lines
31994 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
31996 * lib-writ.ads: Document dummy D lines for missing files.
31998 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
32000 2001-12-17 Robert Dewar <dewar@gnat.com>
32002 * ali.adb: Type reference does not reset current file.
32004 * ali.adb: Recognize and scan renaming reference
32006 * ali.ads: Add spec for storing renaming references.
32008 * lib-xref.ads: Add documentation for handling of renaming references
32010 * lib-xref.adb: Implement output of renaming reference.
32013 (Determine_Range): Document local variables
32014 (Determine_Range): Make sure Hbound is initialized. It looks as though
32015 there could be a real problem here with an uninitialized reference
32016 to Hbound, but no actual example of failure has been found.
32018 2001-12-17 Laurent Pautet <pautet@gnat.com>
32021 Fix comment of Shutdown_Socket and Close_Socket. These functions
32022 should not fail silently because if they are called twice, this
32023 probably means that there is a race condition in the user program.
32024 Anyway, this behaviour is consistent with the rest of this unit.
32025 When an error occurs, an exception is raised with the error message
32026 as exception message.
32028 2001-12-17 Robert Dewar <dewar@gnat.com>
32030 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
32031 that it happens before modification of Sloc values for -gnatD.
32033 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
32034 so that it happens before modification of Sloc values for -gnatD.
32036 * switch.adb: Minor reformatting
32038 2001-12-15 Richard Henderson <rth@redhat.com>
32040 * sem_ch7.adb: Wrap comment.
32042 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
32044 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
32045 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
32046 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
32047 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
32048 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
32049 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
32050 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
32051 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
32052 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
32053 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
32054 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
32055 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
32056 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
32057 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
32058 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
32059 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
32060 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
32061 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
32062 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
32063 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
32064 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
32065 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
32066 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
32067 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
32070 2001-12-14 Vincent Celier <celier@gnat.com>
32072 * osint.adb(Create_Debug_File): When an object file is specified,
32073 put the .dg file in the same directory as the object file.
32075 2001-12-14 Robert Dewar <dewar@gnat.com>
32077 * osint.adb: Minor reformatting
32079 * lib-xref.adb (Output_Instantiation): New procedure to generate
32080 instantiation references.
32082 * lib-xref.ads: Add documentation of handling of generic references.
32084 * ali.adb (Read_Instantiation_Ref): New procedure to read
32085 instantiation references
32087 * ali.ads: Add spec for storing instantiation references
32089 * bindusg.adb: Minor reformatting
32091 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32093 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32095 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32097 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32101 Add 2001 to copyright date
32102 Add entry for Latin-5 (Cyrillic ISO-8859-5)
32104 2001-12-14 Matt Gingell <gingell@gnat.com>
32106 * adaint.c: mktemp is a macro on Lynx and can not be used as an
32109 2001-12-14 Richard Kenner <kenner@gnat.com>
32111 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
32112 if operand is CONSTRUCTOR.
32114 2001-12-14 Ed Schonberg <schonber@gnat.com>
32116 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
32117 before emiting check on right-hand side, so that exception information
32120 2001-12-14 Richard Kenner <kenner@gnat.com>
32122 * utils.c (create_var_decl): Throw away initializing expression
32123 if just annotating types and non-constant.
32125 2001-12-14 Vincent Celier <celier@gnat.com>
32127 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
32130 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
32132 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
32134 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
32136 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
32138 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
32140 * ChangeLog: Remove piece of diff output.
32142 2001-12-14 Geert Bosch <bosch@gnat.com>
32144 * config-lang.in: Update copyright notice
32146 * layout.adb: Remove commented out code.
32148 * mdllfile.ads: Update copyright notice. Fix header format.
32150 * sem_case.ads: Likewise.
32152 * sem_ch3.adb: Minor reformatting.
32154 2001-12-12 Geert Bosch <bosch@gnat.com>
32156 * freeze.ads: Update copyright date.
32158 * g-comlin.ads: Minor reformatting.
32160 * gnat-style.texi: Fix typo.
32162 2001-12-12 Geert Bosch <bosch@gnat.com>
32164 * einfo.h: Regenerate.
32166 2001-12-12 Ed Schonberg <schonber@gnat.com>
32168 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
32169 on known node types, rather than untyped fields. Further cleanups.
32171 2001-12-12 Robert Dewar <dewar@gnat.com>
32174 (Save_Entity_Descendant): Minor comment update.
32175 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
32176 of an N_Attribute_Reference node. As per note below, this does not
32177 eliminate need for Associated_Node in attribute ref nodes.
32178 (Associated_Node): Documentation explicitly mentions attribute
32179 reference nodes, since this field is used in such nodes.
32181 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
32183 2001-12-12 Robert Dewar <dewar@gnat.com>
32185 * s-stalib.adb: Add more comments on with statements being needed
32187 * par-ch12.adb: Minor reformatting
32189 * prj-dect.ads: Fix copyright header
32191 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
32192 inputs fit in 32 bits, but the result still overflows.
32194 * s-fatgen.ads: Minor comment improvement
32196 2001-12-12 Ed Schonberg <schonber@gnat.com>
32198 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
32199 formal derived type, look for an inherited component from the full
32200 view of the parent, if any.
32202 2001-12-12 Robert Dewar <dewar@gnat.com>
32204 * checks.ads (Apply_Alignment_Check): New procedure.
32206 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
32207 ensure that the alignment of objects with address clauses is
32208 appropriate, and raise PE if not.
32210 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
32211 Exp_Pakd.Known_Aligned_Enough
32213 * mdllfile.ads: Minor reformatting
32215 * mlib-fil.ads: Minor reformatting
32217 2001-12-12 Ed Schonberg <schonber@gnat.com>
32219 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
32220 fix to any component reference if enclosing record has non-standard
32223 2001-12-12 Vincent Celier <celier@gnat.com>
32225 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
32228 2001-12-12 Ed Schonberg <schonber@gnat.com>
32230 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
32233 2001-12-12 Robert Dewar <dewar@gnat.com>
32235 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
32237 2001-12-12 Emmanuel Briot <briot@gnat.com>
32239 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
32240 and it adds dependencies to system.io.
32242 2001-12-12 Pascal Obry <obry@gnat.com>
32244 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
32247 2001-12-11 Ed Schonberg <schonber@gnat.com>
32249 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
32250 that is the parent of other generics, the instance body replaces the
32251 instance node. Retrieve the instance of the spec, which is the one
32252 that is visible in clients and within the body.
32254 2001-12-11 Vincent Celier <celier@gnat.com>
32256 * gnatmain.adb: Initial version.
32258 * gnatmain.ads: Initial version.
32260 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
32262 * snames.adb: Updated to match snames.ads.
32264 * snames.ads: Added Gnatstub.
32266 2001-12-11 Vincent Celier <celier@gnat.com>
32268 * prj-attr.adb (Initialization_Data): Change name from
32269 Initialisation_Data.
32271 2001-12-11 Emmanuel Briot <briot@gnat.com>
32273 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
32274 + and * applied to backslashed expressions like \r.
32276 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
32278 * g-os_lib.ads: String_List type added, Argument_List type is now
32279 subtype of String_List.
32281 2001-12-11 Robert Dewar <dewar@gnat.com>
32283 * g-os_lib.ads: Change copyright to FSF
32284 Add comments for String_List type
32286 2001-12-11 Vincent Celier <celier@gnat.com>
32288 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
32289 string to the buffer).
32291 2001-12-11 Ed Schonberg <schonber@gnat.com>
32293 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
32296 * sem_attr.adb: Simplify previous fix for Address.
32297 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
32298 to avoid anomalies where the bound of the type appears to raise
32301 2001-12-11 Robert Dewar <dewar@gnat.com>
32303 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
32306 2001-12-11 Ed Schonberg <schonber@gnat.com>
32308 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
32309 renamed unit before checking for recursive instantiations.
32311 2001-12-11 Emmanuel Briot <briot@gnat.com>
32313 * prj.ads: Add comments for some of the fields.
32315 2001-12-11 Robert Dewar <dewar@gnat.com>
32317 * lib-xref.adb (Output_Refs): Don't output type references outside
32318 the main unit if they are not otherwise referenced.
32320 2001-12-11 Ed Schonberg <schonber@gnat.com>
32322 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
32323 code and diagnose additional illegal uses
32325 * sem_util.adb (Is_Object_Reference): An indexed component is an
32326 object only if the prefix is.
32328 2001-12-11 Vincent Celier <celier@gnat.com>
32330 * g-diopit.adb: Initial version.
32332 * g-diopit.ads: Initial version.
32335 (Expand_Path): Avoid use of Unbounded_String
32336 (Find, Wildcard_Iterator): Moved to child package Iteration
32338 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
32340 2001-12-11 Robert Dewar <dewar@gnat.com>
32342 * sem_attr.adb: Minor reformatting
32344 2001-12-11 Ed Schonberg <schonber@gnat.com>
32346 * sem_ch3.adb: Clarify some ???.
32348 2001-12-11 Robert Dewar <dewar@gnat.com>
32350 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
32351 Exp_Pakd.Known_Aligned_Enough
32353 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
32354 version is moved to Exp_Ch13.
32356 2001-12-11 Robert Dewar <dewar@gnat.com>
32358 * einfo.ads: Minor reformatting
32360 * exp_ch5.adb: Add comment for previous.change
32362 * ali.adb: New interface for extended typeref stuff.
32364 * ali.ads: New interface for typeref stuff.
32366 * checks.adb (Apply_Alignment_Check): New procedure.
32368 * debug.adb: Add -gnatdM for modified ALI output
32370 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
32372 * lib-xref.adb: Extend generation of <..> notation to cover
32373 subtype/object types. Note that this is a complete rewrite,
32374 getting rid of the very nasty quadratic algorithm previously
32375 used for derived type output.
32377 * lib-xref.ads: Extend description of <..> notation to cover
32378 subtype/object types. Uses {..} for these other cases.
32379 Also use (..) for pointer types.
32381 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
32383 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
32384 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
32386 2001-12-11 Vincent Celier <celier@gnat.com>
32389 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
32390 Changed /BIND_ONLY to /ACTIONS=BIND
32391 Changed /LINK_ONLY to /ACTIONS=LINK
32393 2001-12-11 Ed Schonberg <schonber@gnat.com>
32395 * sem_ch8.adb (Find_Selected_Component): improved search for a
32396 candidate package in case of error.
32398 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
32399 chain back on scope stack before reinstalling use clauses.
32401 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
32402 is enabled, do not kill the code for the condition, to preserve
32405 2001-12-11 Robert Dewar <dewar@gnat.com>
32407 * checks.adb (Insert_Valid_Check): Apply validity check to expression
32408 of conversion, not to result of conversion.
32410 2001-12-11 Ed Schonberg <schonber@gnat.com>
32412 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
32413 before freezing parent. If the declarations are mutually recursive,
32414 an access to the current record type may be frozen before the
32415 derivation is complete.
32417 2001-12-05 Vincent Celier <celier@gnat.com>
32419 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
32420 -c /COMPILE_ONLY, -l /LINK_ONLY
32423 (Bind_Only): New Flag
32424 (Link_Only): New flag
32426 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
32429 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
32432 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
32433 (Gnatmake): Set the step flags. Only perform a step if the
32434 corresponding step flag is True.
32435 (Scan_Make_Arg): Reset the bind and link step flags when -u
32436 or -gnatc has been specified.
32438 2001-12-05 Ed Schonberg <schonber@gnat.com>
32440 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
32441 get bounds from right operand.
32443 * sem_eval.adb: Minor reformatting
32445 * exp_util.adb (Make_Literal_Range): use bound of literal rather
32446 than Index'First, its lower bound may be different from 1.
32448 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
32451 2001-12-05 Vincent Celier <celier@gnat.com>
32453 * prj-nmsc.adb Minor reformatting
32455 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
32456 set and libraries are not supported.
32458 2001-12-05 Ed Schonberg <schonber@gnat.com>
32460 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
32461 private view explicitly, so the back-end can treat as a global
32464 2001-12-05 Ed Schonberg <schonber@gnat.com>
32466 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
32467 unit, always replace instance node with new body, for ASIS use.
32469 2001-12-05 Vincent Celier <celier@gnat.com>
32471 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
32472 libraries are not supported and both attributes Library_Name and
32473 Library_Dir are specified.
32475 * prj-proc.adb (Expression): Set location of Result to location of
32478 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
32479 (prj-nmsc is now importing MLib.Tgt)
32481 * prj-proc.adb: Put the change indicated above that was forgotten.
32483 2001-12-05 Robert Dewar <dewar@gnat.com>
32485 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
32487 2001-12-05 Ed Schonberg <schonber@gnat.com>
32489 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
32490 constraint, introduce explicit subtype declaration and derive from it.
32492 * sem_ch3.adb: Minor reformatting
32494 2001-12-05 Robert Dewar <dewar@gnat.com>
32496 * checks.adb (Determine_Range): Increase cache size for checks.
32499 * exp_ch6.adb: Minor reformatting
32500 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
32501 a parameter whose root type is System.Address, since treating such
32502 subprograms as pure in the code generator is almost surely a mistake
32503 that will lead to unexpected results.
32505 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
32506 change handling of conversions.
32508 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
32510 2001-12-05 Ed Schonberg <schonber@gnat.com>
32512 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
32513 aggregate with static wrong size, attach generated Raise node to
32516 2001-12-05 Robert Dewar <dewar@gnat.com>
32518 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
32519 Fixes compilation abandoned bomb in B24009B.
32521 2001-12-05 Ed Schonberg <schonber@gnat.com>
32524 Document use of Associated_Node on Selected_Components.
32525 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
32526 to clarify use of untyped descendant fields.
32528 2001-12-05 Robert Dewar <dewar@gnat.com>
32530 * prj-dect.ads: Add ??? comment
32531 Add 2001 to copyright notice (was not done in after all)
32533 * prj-part.adb: Minor reformatting. Reword one awkward error message.
32535 * prj.ads: Minor reformatting throughout, and add some ??? comments
32537 * snames.ads: Minor reformatting
32539 2001-12-05 Geert Bosch <bosch@gnat.com>
32541 * snames.adb: Autoupdate
32543 2001-12-05 Vincent Celier <celier@gnat.com>
32545 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
32547 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
32549 * prj-env.adb: Minor comment changes (modifying -> extends).
32551 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
32553 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
32556 * prj.adb (Initialize): Change Modifying to Extends.
32558 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
32560 * prj.ads: Minor comment change (Modifying -> extending).
32562 * snames.ads: Change modifying to extends.
32564 2001-12-05 Robert Dewar <dewar@gnat.com>
32566 * sem_warn.adb: Remove stuff for conditionals, we are not going to
32569 * sem_warn.ads: Remove stuff for conditionals, we are not going to
32570 do this after all. Add 2001 to copyright notice
32572 2001-12-04 Geert Bosch <bosch@gnat.com>
32574 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
32576 2001-12-04 Robert Dewar <dewar@gnat.com>
32578 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
32579 location if we already have errors. Stops some cases of cascaded
32582 * errout.adb: Improve comment.
32584 2001-12-04 Robert Dewar <dewar@gnat.com>
32587 (Analyze_Formal_Type_Definition): Defend against Error.
32588 (Analyze_Formal_Subprogram): Defend against Error.
32590 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
32591 remove following semicolon if present. Removes cascaded error.
32593 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
32596 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
32597 exceptions equals 0.
32598 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
32599 Fixes PIWG E tests (which have to be run with -gnatL).
32601 2001-12-04 Robert Dewar <dewar@gnat.com>
32603 * einfo.ads: Minor reformatting
32605 2001-12-04 Ed Schonberg <schonber@gnat.com>
32607 * einfo.ads: Block_Node points to the identifier of the block, not to
32608 the block node itself, to preserve the link when the block is
32609 rewritten, e.g. within an if-statement with a static condition.
32611 * inline.adb (Cleanup_Scopes): recover block statement from block
32612 entity using new meaning of Block_Node.
32614 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
32615 identifier of block node, rather than to node itself.
32617 2001-12-04 Gary Dismukes <dismukes@gnat.com>
32620 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
32621 (Discrimify): Go back to setting the Etypes of the selected component
32622 because the Vname component does not exist at this point and will
32623 fail name resolution. Also set Analyzed.
32624 Remove with and use of Sem_Res.
32626 2001-12-04 Arnaud Charlet <charlet@gnat.com>
32628 * Makefile.in: (HIE_SOURCES): add s-fat*.
32630 2001-12-04 Robert Dewar <dewar@gnat.com>
32633 (Compile_Time_Known_Attribute): New procedure.
32634 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
32635 proper range check.
32637 2001-12-04 Ed Schonberg <schonber@gnat.com>
32639 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
32640 processing discriminants to diagnose illegal default values.
32642 2001-12-04 Ed Schonberg <schonber@gnat.com>
32644 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
32645 access discriminant within a type extension that constrains its
32646 parent discriminants.
32648 2001-12-04 Ed Schonberg <schonber@gnat.com>
32650 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
32651 is malformed, use instance of Any_Id to allow analysis to proceed.
32653 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
32654 type definition is illegal.
32655 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
32658 2001-12-04 Ed Schonberg <schonber@gnat.com>
32660 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
32663 2001-12-04 Robert Dewar <dewar@gnat.com>
32665 * errout.adb: Minor reformatting
32667 2001-12-04 Robert Dewar <dewar@gnat.com>
32669 * exp_util.adb: Minor reformatting from last change
32671 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
32672 which is a rewriting of an expression, traverse the original
32673 expression to remove warnings that may have been posted on it.
32675 2001-12-04 Ed Schonberg <schonber@gnat.com>
32677 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
32678 record that has other packed components.
32680 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
32682 * adaint.c: Minor cleanups.
32684 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
32686 * adaint.c: Do not use utime.h on vxworks.
32688 2001-12-04 Arnaud Charlet <charlet@gnat.com>
32690 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
32691 more confusion than it solves.
32693 2001-12-04 Geert bosch <bosch@gnat.com>
32695 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
32697 2001-12-04 Geert Bosch <bosch@gnat.com>
32699 * Makefile.in (update-sources): New target.
32700 For use by gcc_release script.
32702 2001-12-04 Ed Schonberg <schonber@gnat.com>
32704 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
32705 a configuration pragma, it is now legal wherever a pragma can appear.
32707 2001-12-04 Zack Weinberg <zack@codesourcery.com>
32709 * Makefile.in: Don't set ALL. Delete @cross_defines@,
32710 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
32711 is now @CROSS@ -DIN_GCC; update comment.
32713 2001-12-04 Robert Dewar <dewar@gnat.com>
32715 * einfo.adb (Has_Pragma_Pure_Function): New flag.
32716 Fix problem that stopped ceinfo from working
32718 * einfo.ads (Has_Pragma_Pure_Function): New flag.
32720 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
32722 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
32725 (File_Time_Stamp): New procedure.
32726 (Preserve_Mode): New boolean.
32727 (Write_Unit): Pass time stamp.
32728 Implement -p switch (preserve time stamps).
32730 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
32732 * gnatchop.adb: Do usage info for -p switch
32734 * adaint.h (__gnat_set_file_time_name): New function
32736 * adaint.c (__gnat_set_file_time_name): Implement
32738 * adaint.h: Fix typo
32740 2001-12-03 Robert Dewar <dewar@gnat.com>
32742 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
32743 have Associated_Node.
32745 2001-12-03 Robert Dewar <dewar@gnat.com>
32747 * prj-proc.adb: Minor reformatting
32749 * make.adb: Minor reformatting
32751 2001-12-03 Geert Bosch <bosch@gnat.com>
32753 * make.adb: Minor reformatting.
32755 2001-12-03 Robert Dewar <dewar@gnat.com>
32757 * sem_ch12.adb: Minor reformatting
32759 2001-12-03 Ed Schonberg <schonber@gnat.com>
32761 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
32762 push Standard on the stack before analyzing the instance body,
32763 in order to have a clean visibility environment.
32765 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
32767 2001-12-03 Ed Schonberg <schonber@gnat.com>
32769 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
32770 instantiation of a body that contains an inlined body.
32772 2001-12-03 Ed Schonberg <schonber@gnat.com>
32775 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
32776 to prevent freezing within formal packages.
32777 (Freeze_Subprogram_Body): If body comes from another instance that
32778 appeared before its own body, place freeze node at end of current
32779 declarative part, to prevent a back-end crash.
32780 (Inline_Instance_Body): Handle properly a package instance within
32781 a subprogram instance that is a child unit.
32783 2001-12-01 Graham Stott <grahams@redhat.com>
32785 * Makefile.in (misc.o): Add missing $(srcdir) prefix
32786 and add optabs.h dependency.
32788 * misc.c: Include optabs.h
32789 (gnat_tree_code_type): Make static and const.
32790 (gnat_tree_code_length): Likewise.
32791 (gnat_tree_code_name): Likewise.
32792 (update_setjmp_buf): Obtain operands mode from insn_data.
32794 2001-11-29 Richard Henderson <rth@redhat.com>
32796 * init.c: Remove obsolete dwarf2 frame.h section.
32798 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
32800 * Make-lang.in (ada.generated-manpages): New dummy target.
32802 2001-11-29 Ed Schonberg <schonber@gnat.com>
32804 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
32805 into Command, an array conversion is illegal here. Uncovered by
32808 2001-11-28 Geert Bosch <bosch@gnat.com>
32810 * init.c: Minor whitespace changes.
32812 2001-11-28 Doug Rupp <rupp@gnat.com>
32814 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
32817 2001-11-28 Zack Weinberg <zack@codesourcery.com>
32819 * misc.c (gnat_expand_constant): Move declaration above
32820 definition of lang_hooks.
32821 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
32822 (gnat_init): lang_expand_constant no longer exists.
32824 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
32825 always have vprintf.
32826 (gnat_init): Always call set_internal_error_function.
32828 2001-11-27 Andreas Jaeger <aj@suse.de>
32830 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
32832 2001-11-27 Laurent Guerby <guerby@acm.org>
32834 * Makefile.in: Regenerate Ada dependencies.
32836 2001-11-26 Richard Henderson <rth@redhat.com>
32838 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
32839 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
32840 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
32842 2001-11-25 Laurent Guerby <guerby@acm.org>
32844 * sysdep.c (rts_get_*): Fix style.
32846 2001-11-19 Laurent Guerby <guerby@acm.org>
32848 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
32849 since it is of no apparent use and cause warnings.
32851 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
32853 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
32855 (gnat_init): Don't return NULL.
32856 (finish_parse): Remove.
32858 2001-11-17 Laurent Guerby <guerby@acm.org>
32860 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
32861 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
32862 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
32863 * lang-spec.h: Add missing struct field to silence warnings.
32864 * sysdep.c (rts_get_*): Provide K&R prototype.
32865 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
32866 * traceback.c (Unlock_Task, Lock_Task): Likewise.
32867 * tracebak.c (__gnat_backtrace): Remove unused variable.
32868 * utils.c (end_subprog_body): Move to K&R style.
32870 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32872 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
32874 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
32876 * misc.c (gnat_init): Change prototype. Include the
32877 functionality of the old init_parse and init_decl_processing.
32878 (gnat_init_decl_processing): New prototype.
32879 (init_parse): Remove.
32880 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
32882 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
32884 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
32885 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
32886 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
32887 set_yydebug): Remove.
32889 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
32891 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
32892 (struct lang_hooks): Constify.
32893 (language_string, lang_identify): Remove.
32894 * utils.c (init_decl_processing): Update.
32896 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
32898 * misc.c: Include langhooks-def.h.
32899 * Makefile.in: Update.
32901 2001-10-30 Robert Dewar <dewar@gnat.com>
32904 (Check_Identifier): Rewrite circuit to be compatible with use of letters
32905 in the upper half of ASCII.
32906 (Check_Identifier): Minor reformatting
32908 2001-10-30 Geert Bosch <bosch@gnat.com>
32910 * (Associated_Node, Set_Associated_Node): Do not check for
32913 2001-10-30 Robert Dewar <dewar@gnat.com>
32915 * a-reatim.ads: Minor reformatting
32917 2001-10-30 Robert Dewar <dewar@gnat.com>
32919 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
32920 undocumented declarations.
32922 2001-10-30 Pascal Obry <obry@gnat.com>
32924 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
32925 to the binder and linker.
32928 * mdll.ads: Fix layout. Update copyright notice.
32930 * mdll.adb: Fix layout. Update copyright notice.
32932 2001-10-30 Robert Dewar <dewar@gnat.com>
32934 * usage.adb: Minor fix to output for -gnaty.
32936 2001-10-30 Ed Schonberg <schonber@gnat.com>
32938 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
32939 to accommodate all its possible values.
32941 * a-reatim.adb (Split): Special-case handling of Time_Span_First
32942 and of small absolute values of T.
32944 2001-10-30 Richard Kenner <kenner@gnat.com>
32946 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
32947 set_mem_attributes since not needed and wrong if RESULT if a REG;
32948 fixes ACATS failures.
32950 2001-10-30 Geert Bosch <bosch@gnat.com>
32952 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
32953 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
32955 2001-10-30 Robert Dewar <dewar@gnat.com>
32957 * bindusg.adb: Undocument -f switch.
32959 * gnatcmd.adb: Remove /FULL_ELABORATION.
32961 * opt.ads (Force_RM_Elaboration_Order): Document that this is
32964 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
32966 * gnatbind.adb: Minor update of warning msg.
32968 2001-10-30 Vincent Celier <celier@gnat.com>
32970 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
32971 for project file switches (-P (/PROJECT_FILE=),
32972 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
32975 2001-10-30 Geert Bosch <bosch@gnat.com>
32977 * decl.c: Minor whitespace fixes.
32979 2001-10-30 Richard Kenner <kenner@gnat.com>
32981 * utils2.c (build_allocator): Test for SIZE overflow in array case too
32983 2001-10-30 Geert Bosch <bosch@gnat.com>
32985 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
32986 Found due to GCC 3.0 warning of using uninitialized value.
32989 (Get_Max_Size): Use variant record for tracking value/expression.
32990 Makes logic clearer and prevents warnings for uninitialized variables.
32991 (Layout_Array_Type): Use variant record for tracking value/expression.
32992 Makes logic clearer and prevents warnings for uninitialized variables.
32994 2001-10-30 Robert Dewar <dewar@gnat.com>
32996 * lib.adb: Minor reformatting
32998 * s-taprop.ads: Minor reformatting
33000 2001-10-29 Laurent Guerby <guerby@acm.org>
33003 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
33005 (_gnat_error_handler): Make MSG const.
33007 2001-10-29 Richard Kenner <kenner@gnat.com>
33009 * sysdep.c: Fix localtime_r problem on LynxOS.
33010 Also remove #elif to avoid warnings.
33012 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
33015 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
33017 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
33019 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
33020 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
33021 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
33022 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
33023 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
33024 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
33025 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
33026 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
33027 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
33028 types.ads, urealp.adb: Fix spelling errors.
33030 2001-10-27 Laurent Guerby <guerby@acm.org>
33032 * trans.c (gigi): Fix non determinism leading to bootstrap
33033 comparison failures for debugging information.
33035 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
33037 * gnat_rm.texi: Use @./@: where appropriate.
33039 2001-10-26 Robert Dewar <dewar@gnat.com>
33041 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
33043 2001-10-26 Richard Kenner <kenner@gnat.com>
33045 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
33047 2001-10-26 Richard Kenner <kenner@gnat.com>
33049 * decl.c (validate_size): Modify message for bad size to avoid
33050 implication that compiler is modifying the size.
33052 2001-10-26 Robert Dewar <dewar@gnat.com>
33054 * prj-util.adb: Minor reformatting. Fix bad header format.
33056 2001-10-26 Robert Dewar <dewar@gnat.com>
33058 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
33060 * sinfo.ads: Clarify use of Associated_Node (documentation only).
33062 * sem_ch12.adb: Change Node4 to Associated_Node. Change
33063 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
33064 much more narrowly in places where needed. These are cleanups.
33066 2001-10-26 Joel Brobecker <brobecke@gnat.com>
33068 * 5zosinte.ads (null_pthread): new constant.
33071 (Initialize_TCB): Initialize thread ID to null, to be able to verify
33072 later that this field has been set.
33073 (Finalize_TCB): ditto.
33074 (Suspend_Task): Verify that the thread ID is not null before using it.
33075 (Resume_Task): ditto.
33078 (Resume_All_Tasks): Lock the tasks list before using it.
33079 (Suspend_All_Tasks): ditto.
33081 2001-10-26 Richard Kenner <kenner@gnat.com>
33083 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
33084 Make constant variant of designated type for Is_Access_Constant.
33085 Call update_pointer_to with main variant.
33087 * trans.c (process_freeze_entity, process_type):
33088 Call update_pointer_to on main variant.
33090 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
33091 If main variant, update all other variants.
33093 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
33096 2001-10-26 Robert Dewar <dewar@gnat.com>
33098 * prj-util.adb: Minor reformatting
33100 2001-10-26 Robert Dewar <dewar@gnat.com>
33102 * prj-util.adb: Minor reformatting
33104 2001-10-26 Robert Dewar <dewar@gnat.com>
33106 * prj-attr.adb: Minor reformatting throughout
33108 2001-10-26 Robert Dewar <dewar@gnat.com>
33110 * prj-attr.ads: Minor reformatting
33111 Add ??? comment (this whole spec has almost no comments)
33113 2001-10-26 Vincent Celier <celier@gnat.com>
33115 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
33116 ("//") that precede the drive letter on Interix.
33118 2001-10-26 Geert Bosch <bosch@gnat.com>
33120 * gnat_rm.texi: Add GNAT Reference Manual.
33122 2001-10-25 Robert Dewar <dewar@gnat.com>
33124 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
33125 is Error. Similar change for other renaming cases.
33127 2001-10-25 Robert Dewar <dewar@gnat.com>
33129 * s-atacco.ads: Add pragma Inline_Always for functions.
33130 Fix header format. Add copyright 2001
33132 2001-10-25 Ed Schonberg <schonber@gnat.com>
33134 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
33135 return Error rather than Empty so that analysis can proceed.
33137 2001-10-25 Ed Schonberg <schonber@gnat.com>
33139 * sem_util.adb (Enter_Name): better handling of cascaded error
33140 messages when a unit appears in its own context.
33142 2001-10-25 Ed Schonberg <schonber@gnat.com>
33144 * sem_util.adb (Defining_Entity): in case of error, attach created
33145 entity to specification, so that semantic analysis can proceed.
33147 2001-10-25 Robert Dewar <dewar@gnat.com>
33150 (Defining_Entity): Deal with Error.
33151 (Process_End_Label): Deal with bad end label for.
33153 2001-10-25 Ed Schonberg <schonber@gnat.com>
33155 * sem_elab.adb (Check_A_Call): refine message when call is in an
33156 instance but callee is not declared in the generic unit.
33158 2001-10-25 Ed Schonberg <schonber@gnat.com>
33160 * sem_elab.adb (Check_A_Call): check for renaming before finding the
33161 enclosing unit, which may already be different from the calling unit.
33163 2001-10-25 Geert Bosch <bosch@gnat.com>
33165 * 4gintnam.ads: fix header format.
33167 2001-10-25 Ed Schonberg <schonber@gnat.com>
33169 * sem_res.adb (Resolve_Call): if the call is actually an indexing
33170 operation on the result of a parameterless call, perform elaboration
33171 check after the node has been properly rewritten.
33173 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
33174 inlined within the generic tree, the defining identifier is not a
33177 2001-10-25 Ed Schonberg <schonber@gnat.com>
33179 * sem_res.adb (Resolve): special-case resolution of Null in an
33180 instance or an inlined body to avoid view conflicts.
33182 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
33183 compatibility by retrieving the access type of the generic copy.
33185 2001-10-25 Robert Dewar <dewar@gnat.com>
33188 (Analyze_Number_Declaration): Handle error expression.
33189 (Signed_Integer_Type_Declaration): Handle error bound.
33190 (Analyze_Subtype_Indication): Handle error range.
33192 * sem_util.adb (Get_Index_Bounds): Check for Error.
33194 2001-10-25 Robert Dewar <dewar@gnat.com>
33196 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
33197 in no run time mode.
33199 2001-10-25 Pascal Obry <obry@gnat.com>
33201 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
33202 mode case for ALLOC case.
33204 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
33205 all platforms. Improvement of last change.
33207 2001-10-25 Robert Dewar <dewar@gnat.com>
33209 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
33211 2001-10-25 Geert Bosch <bosch@gnat.com>
33213 * osint.adb (Is_Relative): Remove duplicate.
33215 2001-10-25 Pascal Obry <obry@gnat.com>
33217 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
33218 pathnames in UNIX and DOS style with drive letter.
33219 (Is_Relative): new routine.
33221 * osint.adb: Minor reformatting
33223 * osint.adb (Is_Relative): implementation using
33224 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
33226 2001-10-25 Pascal Obry <obry@gnat.com>
33228 * g-dirope.adb (Basename): correctly compute offset between the
33229 original Path and the translated one.
33231 * g-dirope.adb: (Base_Name): add some comments.
33233 2001-10-25 Robert Dewar <dewar@gnat.com>
33235 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
33236 in HIE mode, avoids compilation abandoned message
33238 * exp_imgv.adb: Correct typo in previous change
33240 * exp_imgv.adb: Correct typo in previous change (not my day!)
33242 2001-10-25 Robert Dewar <dewar@gnat.com>
33244 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
33246 2001-10-25 Pascal Obry <obry@gnat.com>
33248 * g-awk.ads: Move all pragma inlines next to the routine
33249 declarations. This is more uniform with other GNAT spec.
33251 2001-10-22 Geert Bosch <bosch@gnat.com>
33253 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
33255 2001-10-19 Geert Bosch <bosch@gnat.com>
33257 * Makefile.in (tools, gnattools): Remove gnatmem.
33259 2001-10-17 Richard Henderson <rth@redhat.com>
33261 * Makefile.in (misc.o): Depend on langhooks.h.
33262 * misc.c: Include it.
33263 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
33264 (LANG_HOOKS_DECODE_OPTION): New.
33265 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
33267 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
33269 * trans.c (tree_transform): Adjust to recent change in
33270 expand_asm_operands to implement named asm operands.
33272 2001-10-11 Ed Schonberg <schonber@gnat.com>
33274 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
33275 renaming of discriminant for mutable record type.
33277 2001-10-11 Robert Dewar <dewar@gnat.com>
33279 * validsw.adb: Properly save -gnatVn status.
33281 2001-10-11 Robert Dewar <dewar@gnat.com>
33283 * usage.adb: Add lines for V switch.
33285 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
33286 (/VALIDITY_CHECKING).
33288 2001-10-11 Ed Schonberg <schonber@gnat.com>
33290 * sem_type.adb (Add_One_Interp): an operator for a type declared in
33291 an extension of System is known to be visible.
33293 2001-10-11 Ed Schonberg <schonber@gnat.com>
33295 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
33296 properly. Fixes regression on ACATS C34005G.
33298 2001-10-11 Robert Dewar <dewar@gnat.com>
33300 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
33301 loop in generic instance, since this is likely not very useful.
33303 2001-10-11 Robert Dewar <dewar@gnat.com>
33305 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
33306 the error message for high integrity mode.
33308 * rtsfind.adb (RTE): Give message if we try to find an entity that
33309 is not available in high integrity mode.
33312 (OK_To_Use_In_HIE_Mode): New array.
33313 (RTE): May return Empty in high integrity mode.
33315 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
33316 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
33318 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
33319 unit if not inlined always and in no runtime mode. Fixes problem
33320 caused by new Rtsfind changes.
33322 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
33325 * rtsfind.adb (RTE): Make sure we do not try to load unit after
33326 giving message for entity not available in high integrity mode.
33328 2001-10-11 Pascal Obry <obry@gnat.com>
33330 * impunit.adb: Add GNAT.CRC32.
33332 2001-10-11 Ed Schonberg <schonber@gnat.com>
33334 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
33335 properly the case where one universal operand in a non-static
33336 exponentiation of a real literal.
33338 2001-10-11 Ed Schonberg <schonber@gnat.com>
33340 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
33341 clause, return the gobal finalization list, for lack of anthing else.
33343 2001-10-11 Ed Schonberg <schonber@gnat.com>
33345 * exp_ch7.adb (Make_Transient_Block): if statement is within
33346 exception handler, always use new transient scope to place Clean
33349 2001-10-11 Pascal Obry <obry@gnat.com>
33352 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
33353 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
33354 (GNATLS_RTL_OBJS): add g-crc32.o
33355 (GNATMAKE_RTL_OBJS): add g-crc32.o
33358 (CRC_Match): new function.
33359 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
33360 instead of the previous simple checksum algorithm.
33361 (Time_Stamp_Mismatch): use CRC_Match for comparison.
33362 (Set_Source_Table): idem.
33365 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
33366 instead of simple checksum.
33367 (CRC_Match): new function.
33368 (CRC_Error): new constant.
33370 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
33371 a CRC now and not a simple checksum. A CRC uses lower-case hex
33372 letters, fixes ambiguity in parsing.
33374 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
33375 is what this variable will store.
33377 * bcheck.adb: Change reference to chechsum in comments by CRC.
33378 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
33379 rename All_Checksum_Match to All_CRC_Match. Change due to API
33380 renaming since now GNAT does not use a simple checksum but a
33381 CRC using GNAT.CRC32.
33383 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
33384 now and not anymore a simple checksum.
33386 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
33389 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
33392 (Restore_Scan_State): rename Checksum to CRC.
33393 (Save_Scan_State): idem.
33397 (Checksum): rename to CRC.
33398 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
33400 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
33401 GNAT.CRC32). Update copyright notice.
33403 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
33404 GNAT.CRC32). Update copyright notice.
33407 (Accumulate_Checksum): removed.
33408 (Update): new procedure. Add a wide-character into the CRC.
33411 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
33412 (Load_File): fix initialization of S (change Source_Checksum to
33415 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
33416 Source_CRC in S initialization.
33418 * sinput.adb (Source_Checksum): renamed to Source_CRC.
33420 * sinput.ads (Source_Checksum): renamed to Source_CRC.
33421 Update comments for the CRC.
33423 * types.adb (Hex): Use lowercase for the letter part.
33425 * types.ads (Get_Hex_String): Returns the hexadecimal representation
33426 for a word. This is currently used only for CRC. In previous version,
33427 the checksum was using a representation with all letter being
33428 upper-case. With the new implementation (using CRC) we do not remove
33429 the 32th bit of the CRC, so we can have an upper-case starting letter
33430 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
33431 It is ambigous since the CRC was optional and could be followed by
33432 options like EB, EE. So now this routines uses lower-case letter for
33433 the hexadecimal representation. Strange enough only lower case letters
33434 where checked in Scan_ALI (even if this was not a possible case).
33436 * gnatvsn.ads (Library_Version): changed to 3.15a.
33438 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
33441 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
33444 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
33445 Add 2001 to copyright notice
33446 (Accumulate_Checksum): Modify to use System.CRC32.
33448 * ali-util.ads: Redo changes of previous revision to continue to use
33449 the word Checksum. Add 2001 to copyright notice.
33451 * ali.adb: Undo some of previous changes, not needed.
33452 Keep the change for lower case letters in the checksum.
33454 * ali.ads: Undo previous change not needed.
33456 * bcheck.adb: Undo most of previous change, not needed.
33457 But do use Checksums_Match for checksum comparison.
33459 * gnatls.adb: Undo most of previous change, not needed.
33460 But do use Checksums_Match for comparing checksums.
33462 * lib-load.adb: Undo previous change, not needed.
33464 * lib-writ.adb: Undo previous change, not needed.
33466 * lib-writ.ads: Document that checksums use lower case,
33467 not upper case letters.
33469 * scans.adb: Undo previous change, not needed
33471 * scans.ads: Undo previous change, not needed.
33473 * scn-nlit.adb: Undo previous changes, not needed.
33475 * scn-slit.adb: Undo previous change, not needed. Fix header format.
33478 (Accumulate_Checksum): Use System.CRC32.
33479 (Initialize_Checksum): New procedure.
33480 Remove other changes of previous revision.
33482 * sinput-p.adb: Undo previous change, not needed.
33484 * sinput.adb: Undo previous change, not needed.
33486 * sinput-l.adb: Undo previous change, not needed.
33488 * sinput.ads: Undo previous change, not needed. Keep only comment
33489 on new checksum algorithm
33491 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
33492 Also remove a-tags and a-stream from GNAT sources.
33494 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
33496 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
33498 2001-10-11 Geert Bosch <bosch@gnat.com>
33500 * einfo.h: Regenerate.
33502 * nmake.ads: Regenerate.
33504 * nmake.adb: Regenerate.
33506 * sinfo.h: Regenerate.
33508 * treeprs.adb: Regenerate.
33510 2001-10-10 Geert Bosch <bosch@gnat.com>
33512 * gnat-style.texi: New file describing coding guidelines for Ada.
33514 2001-10-10 Ed Schonberg <schonber@gnat.com>
33516 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
33519 2001-10-10 Geert Bosch <bosch@gnat.com>
33521 * snames.ads: Add new names for project facility.
33523 * snames.adb: Update to reflect snames.ads changes.
33525 * snames.h: Update to reflect snames.ads changes.
33527 2001-10-10 Vincent Celier <celier@gnat.com>
33530 (Add_Switches): reflect the changes for the switches attributes
33531 Default_Switches indexed by the programming language,
33532 Switches indexed by the file name.
33533 (Collect_Arguments_And_Compile): Idem.
33534 Reflect the attribute name changes.
33537 (Initialisation_Data): Change the names of some packages and
33539 (Initialize): process case insensitive associative arrays.
33542 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
33545 (Parse_Attribute_Declaration): For case insensitive associative
33546 arrays, set the index string to lower case.
33549 Reflect the changes of the project attributes.
33552 Replace Check_Naming_Scheme by Ada_Check and
33553 Language_Independent_Check.
33556 Replaced Check_Naming_Scheme by 2 procedures:
33557 Ada_Check and Language_Independent_Check.
33560 (Process_Declarative_Items): For case-insensitive associative
33561 arrays, set the index string to lower case.
33562 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
33563 Prj.Nmsc.Check_Naming_Scheme.
33566 (Case_Insensitive): New function
33567 (Set_Case_Insensitive): New procedure
33570 (Case_Insensitive): New function
33571 (Set_Case_Insensitive): New procedure
33572 (Project_Node_Record): New flag Case_Insensitive.
33575 (Value_Of): new function to get the string value of a single
33576 string variable or attribute.
33579 (Value_Of): new function to get the string value of a single
33580 string variable or attribute.
33583 (Ada_Default_Spec_Suffix): New function
33584 (Ada_Default_Impl_Suffix): New function
33585 Change definitions of several constants to reflect
33586 new components of record types.
33589 (Naming_Data): Change several components to reflect new
33590 elements of naming schemes.
33591 (Project_Data): New flags Sources_Present and
33592 Language_Independent_Checked.
33593 (Ada_Default_Spec_Suffix): New function.
33594 (Ada_Default_Impl_Suffix): New function.
33597 Modification of predefined names for project manager: added
33598 Implementation, Specification_Exceptions, Implementation_Exceptions,
33599 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
33600 Default_Switches, _Languages, Builder, Cross_Reference,
33601 Finder. Removed Body_Part, Specification_Append, Body_Append,
33602 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
33605 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
33608 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
33609 not that it is Nil_Variable_Value.
33611 * prj.ads: Add ??? for uncommented declarations
33613 2001-10-10 Ed Schonberg <schonber@gnat.com>
33615 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
33616 constant, do not indicate possible modification, so that gigi can
33617 treat it as a bona fide constant.
33619 2001-10-10 Robert Dewar <dewar@gnat.com>
33621 * sem_prag.adb: Add processing for pragma External.
33623 * snames.ads: Add entry for pragma External.
33625 * par-prag.adb: Add pragma External.
33627 * snames.adb: Updated to match snames.ads.
33629 2001-10-10 Ed Schonberg <schonber@gnat.com>
33631 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
33632 a dynamic task if the allocator appears in an indexed assignment
33633 or selected component assignment.
33635 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
33636 For a dynamic task in an assignment statement, use target of
33637 assignment to generate meaningful name.
33639 2001-10-10 Ed Schonberg <schonber@gnat.com>
33641 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
33644 * einfo.ads: Body_Entity is also defined for generic package.
33645 Documentation change only
33647 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
33648 others_choice for a discriminated component initialization,
33649 convert discriminant references into the corresponding discriminals.
33651 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
33652 only if original type is private and expression has to be wrapped
33656 (Apply_Constraint_Check): Do not perform length check
33657 if expression is an aggregate with only an others_choice.
33658 (Length_N_Cond): two references to the same in_parameter
33659 (typically the discriminal in an init_proc) denote the same value.
33660 Two useful optimization uncovered by bugfixes above.
33662 2001-10-10 Robert Dewar <dewar@gnat.com>
33664 * xeinfo.adb: Change int to char in translation of enumeration types.
33665 This fixes a problem in the C representation of component alignment.
33666 Add 2001 to copyright notice
33668 2001-10-10 Richard Kenner <kenner@gnat.com>
33670 * decl.c: (validate_size): Do check size of object of integral type
33671 if it is a packed array type.
33673 2001-10-10 Richard Kenner <kenner@gnat.com>
33675 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
33676 VAR_DECL for constant if not Is_Public but -O0.
33678 2001-10-10 Richard Kenner <kenner@gnat.com>
33680 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
33682 2001-10-10 Geert Bosch <bosch@gnat.com>
33684 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
33685 use '/' as switch character, allowing for absolute file names.
33687 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
33689 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
33692 2001-10-08 Geert Bosch <bosch@gnat.com>
33694 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
33695 Automatically build utilities when files need to be regenerated.
33697 2001-10-08 Geert Bosch <bosch@gnat.com>
33699 * xsnames.adb: New utility for updating snames.ads and snames.adb
33701 2001-10-08 Zack Weinberg <zack@codesourcery.com>
33703 * Make-lang.in (ADAFLAGS): Add -W -Wall.
33704 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
33705 (gnat1): Also depend on attribs.o.
33706 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
33707 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
33708 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
33709 (ADAFLAGS): Add -W -Wall.
33710 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
33713 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
33714 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
33715 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
33716 Use $(ADAC), not $(CC), as compilation command.
33718 (gnattools): Depend directly on tools to build, don't use
33720 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
33722 * einfo.h, sinfo.h: New files (autogenerated).
33724 2001-10-08 Richard Henderson <rth@redhat.com>
33726 * comperr.adb (Abort_In_Progress): New.
33727 (Compiler_Abort): Use it to prevent recursion.
33729 2001-10-08 Robert Dewar <dewar@gnat.com>
33731 * atree.adb: Set Error_Posted in Error node, helps error recovery.
33733 * par-endh.adb (Output_End_Expected): We should also not test
33734 Error_Posted on the Error node, since now it is always set.
33736 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
33737 to help error recovery. Part of general work on 9407-004.
33739 * par.adb: Add ??? for misuse of error
33742 (Resolve): Defend against Error, fixes 9407-003.
33743 (Resolve_Discrete_Subtype_Indication): Defend against Error.
33745 * sinfo.ads (N_Error): Now has Etype field (which will be set
33746 to Any_Type to help error recovery).
33748 2001-10-08 Richard Kenner (kenner@gnat.com)
33750 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
33751 Consistently set MEM attributes from expression; fixes
33752 bootstrap failure on x86.
33754 2001-10-08 Geert Bosch (bosch@gnat.com)
33756 * 5oosinte.adb: Add 2001 to copyright notice.
33758 2001-10-08 Geert Bosch (bosch@gnat.com)
33760 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
33762 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
33764 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
33766 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
33768 2001-10-05 Geert Bosch (bosch@gnat.com)
33770 * adaint.h: Small formatting fix.
33772 2001-10-04 Geert Bosch <bosch@gnat.com>
33774 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
33775 Arg is int, not FILE *, in dummy version of functions.
33777 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
33778 Arg is int, not FILE *.
33780 2001-10-04 Geert Bosch <bosch@gnat.com>
33782 * 3lsoccon.ads: Added file, missed with initial check ins.
33784 * 4lintnam.ads: Fix header format.
33785 Change Linux to GNU/Linux.
33787 * 5iosinte.adb: Change Linux to GNU/Linux.
33789 * 5iosinte.ads: Change Linux to GNU/Linux.
33791 * 5itaprop.adb: Change Linux to GNU/Linux.
33793 * 5itaspri.ads: Change Linux to GNU/Linux.
33794 Update copyright notice.
33796 * 5lintman.adb: Change Linux to GNU/Linux.
33798 * 5lml-tgt.adb: Change Linux to GNU/Linux.
33800 * 5losinte.ads: Change Linux to GNU/Linux.
33802 * 5lsystem.ads: Change Linux to GNU/Linux.
33804 * 5qosinte.adb: Change Linux to GNU/Linux.
33806 * 5qosinte.ads: Change Linux to GNU/Linux.
33808 * 5qparame.ads: Change Linux to GNU/Linux.
33810 * 5qtaprop.adb: Change Linux to GNU/Linux.
33812 * 5qtaspri.ads: Change Linux to GNU/Linux.
33813 Add 2001 to copyright notice.
33815 * 5vintman.ads: Change Linux to GNU/Linux.
33816 Fix header format. Add 2001 to copyright notice.
33818 * g-soccon.ads: Change Linux to GNU/Linux.
33820 * g-trasym.ads: Change Linux to GNU/Linux.
33821 Add 2001 to copyright notice.
33823 * memtrack.adb: Change Linux to GNU/Linux.
33825 * s-intman.ads: Change Linux to GNU/Linux.
33826 Add 2001 to copyright notice. Fix header format.
33828 * s-stache.adb: Change Linux to GNU/Linux.
33830 * adaint.c: Change Linux to GNU/Linux.
33832 * cio.c: Change Linux to GNU/Linux.
33834 * cstreams.c: Change Linux to GNU/Linux.
33836 * init.c: Change Linux to GNU/Linux.
33838 * gmem.c: Change Linux to GNU/Linux.
33840 * tracebak.c: Change Linux to GNU/Linux.
33843 2001-10-02 Geert Bosch <bosch@gnat.com>
33845 * misc.c (insert_default_attributes): Add dummy version.