1 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
3 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
4 object covered by 13.3(19) volatile.
6 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
10 * utils.c (unchecked_convert): Use a subtype as the intermediate type
11 in the special VIEW_CONVERT_EXPR case.
13 2007-09-12 Robert Dewar <dewar@adacore.com>
15 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
17 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
18 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
19 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
20 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
21 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
22 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
23 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
24 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
25 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
26 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
27 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
28 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
29 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
30 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
31 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
32 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
33 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
34 pragma Compiler_Unit and adds it to relevant library units.
36 2007-09-12 Ed Schonberg <schonberg@adacore.com>
38 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
39 a box need not correspond to any component.
41 2007-09-12 Robert Dewar <dewar@adacore.com>
43 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
44 the tasking version of the Ada run time when foreign threads are
45 present and there are no explicit Ada tasks or tasking constructs.
47 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
49 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
51 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
52 the usage of switch -y.
54 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
55 when switch -y is present.
57 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
58 leap seconds in Ada.Calendar and its children.
60 2007-09-12 Jose Ruiz <ruiz@adacore.com>
62 * a-extiti.ads (Timer): The discriminant is a "not null access
63 constant" in the Reference Manual.
64 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
66 2007-09-12 Robert Dewar <dewar@adacore.com>
68 * a-swuwha.adb: Remove junk RM header
70 2007-09-12 Vincent Celier <celier@adacore.com>
72 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
75 * g-bytswa.ads: Minor reformatting
77 2007-09-12 Thomas Quinot <quinot@adacore.com>
79 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
80 Add new constant Thread_Blocking_IO, always True by default, set False
81 on a per-runtime basis.
82 (Need_Netdb_Buffer): New constant.
84 2007-09-12 Arnaud Charlet <charlet@adacore.com>
86 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
87 Added renames for corresponding functions in System.Partition_Interface.
89 2007-09-12 Doug Rupp <rupp@adacore.com>
91 * Makefile.in: Remove VMS specific System.CRTL packages which are no
94 * s-crtl-vms64.ads: Removed.
96 2007-09-12 Olivier Hainque <hainque@adacore.com>
98 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
99 with discriminant constraints, generalize the code for BIT_FIELDs
100 to PACKED fields of constant size and propagate DECL_PACKED.
102 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
104 * decl.c (array_type_has_nonaliased_component): New predicate.
105 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
106 set the TYPE_NONALIASED_COMPONENT flag on the type.
107 <E_Array_Subtype>: Likewise.
108 * gigi.h (type_for_nonaliased_component_p): Declare.
109 * utils.c (type_for_nonaliased_component_p): New predicate.
110 (create_field_decl): Invoke the above predicate to set the
111 DECL_NONADDRESSABLE_P flag on the field.
113 2007-09-11 Javier Miranda <miranda@adacore.com>
115 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
116 in library level record type entities if we are generating statically
117 allocated dispatch tables.
119 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
120 importing/exporting the _tag declaration by new code
121 importing/exporting the dispatch table wrapper. This change allows us
122 to statically allocate of the TSD.
123 (Make_DT.Export_DT): New procedure.
124 (Build_Static_DT): New function.
125 (Has_DT): New function.
127 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
128 True_Constant and Current_Value. Required to statically
129 allocate the dispatch tables.
130 (Check_Allocator): Make function iterative instead of recursive.
131 Also return inner allocator node, when present, so that we do not have
132 to look for that node again in the caller.
134 2007-09-11 Jan Hubicka <jh@suse.cz>
136 * misc.c (gnat_expand_body): Kill.
137 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
139 2007-09-10 Robert Dewar <dewar@adacore.com>
141 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
142 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
143 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
144 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
145 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
146 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
147 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
148 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
149 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
150 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
151 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
152 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
153 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
154 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
155 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
156 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
157 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
158 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
159 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
160 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
161 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
162 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
163 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
164 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
165 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
166 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
167 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
168 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
169 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
170 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
171 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
172 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
173 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
174 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
175 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
176 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
177 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
178 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
179 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
180 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
181 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
182 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
183 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
184 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
185 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
186 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
187 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
188 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
189 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
190 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
191 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
192 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
193 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
194 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
195 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
196 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
197 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
198 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
199 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
200 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
201 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
202 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
203 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
204 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
205 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
206 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
207 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
208 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
209 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
210 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
211 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
212 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
213 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
214 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
215 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
216 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
217 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
218 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
219 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
220 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
221 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
222 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
223 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
225 2007-09-10 Emmanuel Briot <briot@adacore.com>
227 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
230 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
232 * adaint.c (__gnat_translate_vms): new function.
234 2007-09-10 Gary Dismukes <dismukes@adacore.com>
235 Thomas Quinot <quinot@adacore.com>
237 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
238 create an abstract subprogram in the case of 'Input. For 'Output we now
239 create a real spec/body when the type is abstract, since it can
240 potentially be called.
241 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
242 body for 'Output when the type is abstract (only the creation of the
243 body for 'Input is excluded when the type is abstract).
244 (Stream_Operation_OK): Add an additional condition in the return
245 statement, so that False will be returned for TTS_Stream_Input if the
246 associated tagged type is an abstract extension. Add comments for
248 (Expand_N_Object_Declaration): For the case of a shared passive
249 variable, insert init proc call only after the shared variable
250 procedures have been processed, because the IP call needs to undergo
251 shared passive variable reference expansion, which requires these
252 procedures to be available (and elaborated).
254 2007-09-10 Vincent Celier <celier@adacore.com>
256 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
257 parameter Runtime_Project.
259 2007-09-10 Ed Schonberg <schonberg@adacore.com>
261 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
262 given a box association, the type of the component is discriminated,
263 and the value of the discriminant is the discriminant of the enclosing
264 type, retrieve its value from the aggregate itself, where it must have
267 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
268 to remove other spurious ambiguities on arithmetic operations involving
269 literals and addresses, on systems where Address is a visible integer
270 type, when the operator is called in functional notation.
271 (Try_Primitive_Operation): Within an instance, a call in prefixed form
272 is legal when the types match, even if the operation is currently
275 2007-09-10 Ed Schonberg <schonberg@adacore.com>
277 * sem_ch12.adb (Build_Local_Package): A formal package with no
278 associations is legal if all formals have defaults. It is not
279 equivalent to a formal declared with a box.
281 2007-09-10 Sergey Rybin <rybin@adacore.com>
283 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
285 2007-09-10 Sergey Rybin <rybin@adacore.com>
287 * gnat_ugn.texi: Add description of the new '-lratio' option
288 Update 7.3.1 section about availability of the feature.
290 2007-09-10 Thomas Quinot <quinot@adacore.com>
292 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
295 2007-09-10 Olivier Hainque <hainque@adacore.com>
297 * Makefile.in: (mips-irix section): Activate build of libgmem.
299 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
301 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
304 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
306 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
307 a debug renaming declaration specially.
309 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
311 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
312 which a constant renaming is treated as a normal object declaration.
313 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
314 the N_Indexed_Component case.
315 <N_Indexed_Component>: Fall through to above case.
316 <N_Object_Renaming_Declaration>: Return true for all composite types.
318 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
320 * decl.c (make_packable_type): If the new type has been given BLKmode,
321 try again to get an integral mode for it.
323 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
325 Re-apply accidentally reverted change:
327 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
329 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
330 get_action_description_for): Replace _Unwind_Word with _uleb128_t
331 and _Unwind_SWord with _sleb128_t.
333 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
335 * trans.c (convert_with_check): Update call to real_2expN.
337 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
339 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
340 * utils.c (end_subprog_body): Likewise.
342 2007-09-03 Nick Clifton <nickc@redhat.com>
344 * Make-lang.in: Change copyright header to refer to version 3 of
345 the GNU General Public License and to point readers at the
346 COPYING3 file and the FSF's license web page.
347 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
348 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
349 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
350 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
353 2007-08-31 Vincent Celier <celier@adacore.com>
357 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
358 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
359 (Check_Version_And_Help): New procedure in package Switch to process
360 switches --version and --help.
361 Use Check_Version_And_Help in GNAT tools
364 (Compile_Sources): Make sure that sources that are "excluded" are not
366 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
367 project file is used.
368 (Version_Switch): Remove, moved to Switch
369 (Help_Switch): Remove, moved to Switch
370 (Display_Version): Remove, moved to Switch
372 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
373 package Switch to process switches --version and --help.
374 (Display_Version): New procedure
376 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
378 2007-08-31 Javier Miranda <miranda@adacore.com>
380 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
383 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
385 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
386 (Mark_Non_Null): If the node for which we just generated an access check
387 is a reference to an *in* parameter and the reference appears in the
388 declarative part of a subprogram body, mark the node as known non null.
390 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
392 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
393 structure of E_Exception to reflect the new flag.
394 (Is_Raised, Set_Is_Raised): New inlined routines.
395 Update the usage of available flag to reflect the addition of Is_Raised.
396 (Is_Raised, Set_Is_Raised): Bodies of new routines.
397 (Write_Entity_Flags): Write the status of flag Is_Raised.
398 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
399 spurious ambiguities when integer literals appear in the context of an
400 address type that is a visible integer type.
402 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
403 exceptions never being raised.
404 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
407 2007-08-31 Javier Miranda <miranda@adacore.com>
409 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
410 statement when compiling under restriction No_Exceptions_Proparation.
412 2007-08-31 Ed Schonberg <schonberg@adacore.com>
414 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
415 initialization aggregate for the type, generate itype references for
416 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
418 2007-08-31 Gary Dismukes <dismukes@adacore.com>
420 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
421 library-level package renaming, pass the declaration associated with
422 the renaming's special debug variable to Qualify_Entity_Names to ensure
423 that its encoded name is properly qualified.
425 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
426 occurring in the list of entities to qualify, and do not attempt to
427 traverse an entity list in that case. Variables associated with
428 ` library-level package renamings can now occur in the table.
430 * exp_dbug.ads: Revise documentation of the encoding for renaming
433 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
435 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
436 access type points to an unconstrained array.
438 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
440 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
443 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
444 simple redundant qualifications. The check is performed whenever the
445 expression is a non-overloaded identifier.
446 (Resolve_Type_Conversion): Enchance the redundant type conversion check
447 to include loop parameters.
448 (Valid_Conversion): Avoid generation of spurious error message.
450 2007-08-31 Bob Duff <duff@adacore.com>
452 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
453 concatenations of string literals into a single literal, in order to
454 avoid very deep recursion in the front end, which was causing stack
457 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
458 string, and the right operand is a string literal (the case of "" &
459 "..."), optimize by avoiding copying the right operand -- just use the
460 value of the right operand directly.
462 * stringt.adb (Store_String_Chars): Optimize by growing the
463 String_Chars table all at once, rather than appending characters one by
465 (Write_String_Table_Entry): If the string to be printed is very long,
466 just print the first few characters, followed by the length. Otherwise,
467 doing "pn(n)" in the debugger can take an extremely long time.
469 * sem_prag.adb (Process_Interface_Name): Replace loop doing
470 Store_String_Char with Store_String_Chars.
472 2007-08-31 Vincent Celier <celier@adacore.com>
474 * prj-attr.adb: Add new attribute Excluded_Source_Files
476 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
477 Locally_Removed_Files.
479 * snames.ads, snames.adb: New standard name Excluded_Source_Files
481 2007-08-31 Ed Schonberg <schonberg@adacore.com>
483 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
484 clauses of subunits, ignore limited_with_clauses that are illegal and
485 have not been fully analyzed.
487 2007-08-31 Ed Schonberg <schonberg@adacore.com>
489 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
490 flag, for effiency. It is called when analyzing arithmetic operators
491 and also for actuals in calls that are universal_integers. The flag is
492 set for the predefined type address, and for any type or subtype
495 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
496 Universal_Integer, when the formal is a descendent of address and the
497 call appears in user code.
498 (Analyze_Selected_Component): if the prefix is a private extension, the
499 tag component is visible.
501 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
504 2007-08-31 Robert Dewar <dewar@adacore.com>
506 * s-fileio.adb (Open): Normalize file name to lower case in non-case
507 sensitive file name systems to avoid unexpected mismatch in Vista.
509 2007-08-31 Vincent Celier <celier@adacore.com>
511 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
513 2007-08-31 Vincent Celier <celier@adacore.com>
515 * symbols-vms.adb (Initialize): Read symbol files with continuation
517 (Finalize): If symbol is long, split the line
519 2007-08-31 Vincent Celier <celier@adacore.com>
521 * fmap.ads: Minor comment updates
523 2007-08-31 GNAT Script <nobody@adacore.com>
525 * Make-lang.in: Makefile automatically updated
527 2007-08-31 Bob Duff <duff@adacore.com>
529 * sinfo.ads: Minor comment fix.
531 2007-08-31 Thomas Quinot <quinot@adacore.com>
533 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
535 Documentation cleanup only.
537 2007-08-31 Sergey Rybin <rybin@adacore.com>
539 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
540 gnatpp '--separate-stmt-name' option.
541 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
544 * gnat_ugn.texi: Add description for the new gnatpp
545 '--separate-stmt-name' and '--use-on-new-line' options.
547 2007-08-31 Ben Elliston <bje@au.ibm.com>
549 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
550 when compiling for powerpc64-*-linux.
551 * system-linux-ppc64.ads: New file.
553 2007-08-22 Krister Walfridsson <cato@df.lth.se>
555 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
558 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
560 * misc.c (gnat_type_max_size): Constify.
562 2007-08-16 Gary Dismukes <dismukes@adacore.com>
564 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
565 associated with Standard_Debug_Renaming_Type, to be used as the type of
566 the special variables whose names provide debugger encodings for
567 renaming declarations.
569 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
570 (Set_Debug_Renaming_Link): Change to set Node25.
571 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
572 (Write_Field25_Name): Add case for E_Variable to output
573 "Debug_Renaming_Link".
574 (Write_Field23_Name): Correct the output string for "Limited_View".
576 * exp_dbug.adb: Add with and use of Tbuild.
577 (Debug_Renaming_Declaration): Replace creation of an enumeration type
578 and literal with creation of a variable of type
579 Standard_Debug_Renaming_Type whose name encodes both the renamed object
580 and the entity of the renaming declaration.
581 (Qualify_Entity_Name): Add the delayed qualification of the entity name
582 part of the name of a variable that has a Debug_Renaming_Link.
584 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
585 special type to be associated with variables that provide debugger
586 encodings for renaming declarations.
588 2007-08-16 Gary Dismukes <dismukes@adacore.com>
589 Ed Schonberg <schonberg@adacore.com>
590 Javier Miranda <miranda@adacore.com>
592 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
593 ancestor part given by an aggregate to test for an unchecked conversion,
594 since this can occur in some cases when the ancestor part is a function
595 call, and we don't want to fall into the recursive call to this
596 procedure in that case.
598 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
599 stream attributes on limited types to account for user-specified
600 attributes as well as whether Input (resp. Output) becomes available
601 due to Read (resp. Write) being available for the type. Change Boolean
602 variable to the more accurate name
603 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
604 double-"not" predicate at beginning of return statement to more
607 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
608 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
609 in a block statement and use that as the first statement of the
610 expanded return rather than incorrectly using the handled sequence as
613 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
614 operation, generate an explicit freeze node for it rather than
615 generating extra formals, to ensure that gigi has the proper order of
616 elaboration for anonymous subtypes in the signature of the subprograms.
617 (Build_In_Place_Formal): Move assertion to beginning of loop.
618 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
619 applied to a function call (occurs for some cases of 'Input).
620 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
621 applied to a function call (occurs for some cases of 'Input).
623 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
624 2005, generate an extended return statement enclosing the result object
627 * freeze.adb (Freeze_Record_Type): Extend the current management of
628 components that are access type with an allocator as default value: add
629 missing support to the use of qualified expressions of the
630 allocator (which also cause freezing of the designated type!)
631 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
632 dispatching operation, since extra formals may be needed by calls to
633 build-in-place functions (such as stream 'Input).
635 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
636 formals for 'Constrained and accessibility level in the case of a
637 predefined dispatching operation.
639 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
640 point, no need to find the parent node.
642 2007-08-16 Javier Miranda <miranda@adacore.com>
644 * exp_attr.adb (Attribute_Priority): Add missing support for entries
647 2007-08-16 Javier Miranda <miranda@adacore.com>
649 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
650 is not really required and can introduce regression with the debugger.
651 The original problem is fixed with the patch written for checks.adb.
653 2007-08-16 Thomas Quinot <quinot@adacore.com>
655 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
656 Range_Check on Allocated_Table.
658 2007-08-16 Vincent Celier <celier@adacore.com>
660 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
661 Including_Non_Switch set to False.
662 (Gnatmake): For the compiler, call Test_If_Relative_Path with
663 Including_Non_Switch set to False.
665 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
666 parameter Including_Non_Switch, defaulted to True. When
667 Including_Non_Switch is False, options that are not switches and
668 appear as relative path are not converted to absolute paths.
670 2007-08-16 Nicolas Roche <roche@adacore.com>
672 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
675 * Make-lang.in: Update dependencies
677 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
679 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
680 currently inspected is a selected component, retrieve the entity of
682 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
683 from the immediate ancestor of Main_Unit_Entity.
684 (Install_Limited_Withed_Unit): Do not install the limited view of
685 package P if P is reachable through an ancestor chain from package C
686 and C also has a with clause for P in its body.
687 (Has_Limited_With_Clause): New routine.
688 (Has_With_Clause): New routine.
690 2007-08-16 Ed Schonberg <schonberg@adacore.com>
692 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
693 generic for an enclosing instance is a global reference, even though
694 its scope is the enclosing instance.
696 2007-08-16 Gary Dismukes <dismukes@adacore.com>
697 Javier Miranda <miranda@adacore.com>
699 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
700 initialize a limited object.
701 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
703 Make sure Has_Complex_Representation is inherited by derived type.
705 2007-08-16 Robert Dewar <dewar@adacore.com>
707 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
710 2007-08-16 Ed Schonberg <schonberg@adacore.com>
712 * sem_disp.adb (Check_Dispatching_Operation): If the operation
713 implements an operation inherited from a progenitor interface, verify
714 that they are subtype-conformant.
716 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
717 Bob Duff <duff@adacore.com>
718 Nicolas Setton <setton@adacore.com>
720 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
721 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
722 the statement which is being resolved comes from a predefined library
723 unit, all non-predefined library interpretations are skipped.
724 (Resolve_Op_Concat): If string concatenation was folded in the parser,
725 but the "&" is user defined, give an error, because the folding would
728 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
729 the parser has folded a long sequence of concatenations of string
732 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
733 and "JMP_BUF" variables as artificial.
734 (N_String_Literal): Do not use alloca for very long string literals. Use
735 xmalloc/free instead. Otherwise the stack might overflow.
737 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
740 2007-08-16 Vincent Celier <celier@adacore.com>
742 * vms_conv.adb (Process_Argument): Ensure that project related options
743 are not put in the -cargs section when using GNAT COMPILE.
745 2007-08-16 Robert Dewar <dewar@adacore.com>
747 * gnat_ugn.texi: Add note on preprocessing (output file not written)
749 2007-08-16 Thomas Quinot <quinot@adacore.com>
751 * a-tags.adb: Minor reformatting.
753 2007-08-16 Bob Duff <duff@adacore.com>
755 * sem_type.ads, sem_ch4.adb: Minor reformatting.
757 2007-08-14 Thomas Quinot <quinot@adacore.com>
759 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
760 s-osinte-interix.ads, system-interix.ads: Removed.
762 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
764 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
765 calls to Check_Within_Time_Bounds.
766 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
767 (Difference): Account for possible rounding of the resulting difference
769 2007-08-14 Robert Dewar <dewar@adacore.com>
771 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
772 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
773 s-osinte-solaris.adb, s-osinte-solaris.ads,
774 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
776 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
777 switch -gnatyS. Enable -gnatyS in GNAT style check mode
779 2007-08-14 Robert Dewar <dewar@adacore.com>
780 Ed Schonberg <schonberg@adacore.com>
782 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
783 Suppress unmodified in-out parameter warning in some cases
784 This patch is a also fairly significant change to the way suppressible
787 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
788 needed for access to concurrent record types generated by the expander.
789 (Generate_Range_Check): When generating a temporary to capture the
790 value of a conversion that requires a range check, set the type of the
791 temporary before rewriting the node, so that the type is always
792 properly placed for back-end use.
793 (Apply_Float_Conversion_Check): Handle case where the conversion is
795 (Get_Discriminal): Code reformatting. Climb the scope stack looking
796 for a protected type in order to examine its discriminants.
798 2007-08-14 Robert Dewar <dewar@adacore.com>
799 Gary Dismukes <dismukes@adacore.com>
800 Ed Schonberg <schonberg@adacore.com>
801 Thomas Quinot <quinot@adacore.com>
803 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
804 a-stwisu.adb, a-strsup.adb: Fix warnings for range
807 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
808 (Get_Allocator_Final_List): For the case of an anonymous access type
809 that has a specified Associated_Final_Chain, do not go up to the
811 (Expand_N_Type_Conversion): Test for the case of renamings of access
812 parameters when deciding whether to apply a run-time accessibility
814 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
815 aggregate code before allocator, and ahead of declaration for
816 temporary, to prevent access before elaboration when the allocator is
817 an actual for an access parameter.
818 (Expand_N_Type_Conversion): On an access type conversion involving an
819 access parameter, do not apply an accessibility check when the
820 operand's original node was an attribute other than 'Access. We now
821 create access conversions for the expansion of 'Unchecked_Access and
822 'Unrestricted_Access in certain cases and clearly accessibility should
823 not be checked for those.
825 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
826 includes a type conversion of a packed component that has been expanded,
827 recover the original expression for the object, and use this expression
828 in the post-call assignment statement, so that the assignment is made
829 to the object and not to a back-end temporary.
830 (Freeze_Subprogram): In case of primitives of tagged types not defined
831 at the library level force generation of code to register the primitive
832 in the dispatch table. In addition some code reorganization has been
833 done to leave the implementation clear.
834 (Expand_Call): When expanding an inherited implicit conversion,
835 preserve the type of the inherited function after the intrinsic
836 operation has been expanded.
838 * exp_ch2.ads, exp_ch2.adb
839 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
840 of an entry formal appearing in an assignment statement does not assign
842 (Expand_Current_Value): Instead of calling a routine to determine
843 whether the prefix of an attribute reference should be optimized or
844 not, prevent the optimization of such prefixes all together.
846 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
847 component whose prefix is known to be of an access type is an implicit
848 dereference and does not assign to the prefix.
850 2007-08-14 Ed Schonberg <schonberg@adacore.com>
851 Robert Dewar <dewar@adacore.com>
853 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
854 itype is visited, make an entry into table to link associated node and
856 Add comments and correct harmless error in Build_NCT_Hash_Tables
857 (Array_Aggr_Subtype): Associate each itype created for an index type to
858 the corresponding range construct, and not to the aggregate itself. to
859 maintain a one-to-one correspondence between itype and its associated
860 node, to prevent errors when complex expression is copied.
861 Fix mishandling of multiple levels of parens
863 * sem_aggr.adb: Create a limited view of an incomplete type, to make
864 treatment of limited views uniform for all visible declarations in a
865 limited_withed package.
866 (New_Copy_Tree): If hash table is being used and itype is visited,
867 make an entry into table to link associated node and new itype.
868 (Resolve_Record_Aggregate): Do not add an others box association for a
869 discriminated record component that has only discriminants, when there
870 is a box association for the component itself.
872 * par-ch4.adb: Fix mishandling of multiple levels of parens
874 2007-08-14 Robert Dewar <dewar@adacore.com>
876 * comperr.adb: Fix problem with suppressing warning messages from gigi
878 * erroutc.ads, erroutc.adb, errout.ads,
879 errout.adb (Write_Eol): Remove trailing spaces before writing the line
880 (Write_Eol_Keep_Blanks): New procedure to write a line, including
881 possible trailing spaces.
882 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
883 Fix problem with suppressing warning messages from back end
884 Improve handling of deleted warnings
887 Fix problem with suppressing warning messages from back end
888 Handle setting of Static_Dispatch_Tables flag.
891 Fix problem with suppressing warning messages from back end
893 * exp_intr.adb: Improve handling of deleted warnings
895 2007-08-14 Robert Dewar <dewar@adacore.com>
897 * debug.adb: Improve -gnatdI to cover all cases of serialization
898 Add documentation of dZ, d.t
900 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
902 (Sprint_Node_Actual): Generate new output associated with implicit
903 importation and implicit exportation of object declarations.
905 2007-08-14 Ed Schonberg <schonberg@adacore.com>
906 Robert Dewar <dewar@adacore.com>
907 Javier Miranda <miranda@adacore.com>
908 Gary Dismukes <dismukes@adacore.com>
910 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
911 to make treatment of limited views uniform for all visible declarations
912 in a limited_withed package.
913 Improve warnings for in out parameters
914 (Set_Related_Interaface/Related_Interface): Allow the use of this
915 attribute with constants.
916 (Write_Field26_Name): Handle attribute Related_Interface in constants.
917 Warn on duplicate pragma Preelaborable_Initialialization
919 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
920 generation of a freezing node to ensure proper management of null
921 excluding access types in the backend.
922 (Create_Extra_Formals): Test base type of the formal when checking for
923 the need to add an extra accessibility-level formal. Pass the entity E
924 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
925 originally being done in a couple of cases), to ensure that the
926 Extra_Formals list gets set on the entity E when the first entity is
928 (Conforming_Types): Add missing calls to Base_Type to the code that
929 handles anonymous access types. This is required to handle the
930 general case because Process_Formals builds internal subtype entities
931 to handle null-excluding access types.
932 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
933 functions that need it, even when not marked Requires_Overriding.
934 Improve warnings for in out parameters
935 (Analyze_Function_Return): Warn for disallowed null return
936 Warn on return from procedure with unset out parameter
937 Ensure consistent use of # in error messages
938 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
939 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
940 the implicit conversion of the expression done for anonymous access
941 types. This is required to generate the code of the null excluding
944 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
945 A formal parameter is never publicly referenceable outside of its body.
946 (Check_References): For an unreferenced formal parameter in an accept
947 statement, use the same warning circuitry as for subprogram formal
949 (Warn_On_Unreferenced_Entity): New subprogram, taken from
950 Output_Unreferenced_Messages, containing the part of that routine that
951 is now reused for entry formals as described above.
952 (Goto_Spec_Entity): New function
953 (Check_References): Do not give IN OUT warning for dispatching operation
954 Improve warnings for in out parameters
955 (Test_Ref): Check that the entity is not undefinite before calling
956 Scope_Within, in order to avoid infinite loops.
957 Warn on return from procedure with unset out parameter
958 Improved warnings for unused variables
960 2007-08-14 Robert Dewar <dewar@adacore.com>
961 Javier Miranda <miranda@adacore.com>
962 Gary Dismukes <dismukes@adacore.com>
964 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
965 (Expand_N_Attribute_Reference): Further unify the handling of the
966 three forms of access attributes, using common code now for all three
967 cases. Add a test for the case of applying an access attribute to
968 an explicit dereference when the context is an access-to-interface
969 type. In that case we need to apply the conversion to the prefix
970 of the explicit dereference rather than the prefix of the attribute.
971 (Attribute_Version, UET_Address): Set entity as internal to ensure
972 proper dg output of implicit importation.
973 (Expand_Access_To_Type): Removed.
974 (Expand_N_Attribute_Reference): Merge the code from the three cases
975 of access attributes, since the processing is largely identical for
976 these cases. The substantive fix here is to process the case of a
977 type name prefix (current instance case) before handling the case
978 of interface prefixes.
980 2007-08-14 Thomas Quinot <quinot@adacore.com>
981 Ed Schonberg <schonberg@adacore.com>
982 Javier Miranda <miranda@adacore.com>
983 Robert Dewar <dewar@adacore.com>
985 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
986 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
987 type that is an anonymous access to controlled object, establish
988 an associated finalization chain to avoid corrupting the global
989 finalization list when a dynamically allocated object designated
990 by such a component is deallocated.
991 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
992 functions that need it, even when not marked Requires_Overriding.
993 (Initialize_Tag): Replace call to has_discriminants by call to
994 Is_Variable_Size_Record in the circuitry that handles the
995 initialization of secondary tags.
996 (Is_Variable_Size_Record): New implementation.
997 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
998 Suppress_Initialization pragma for a derived type.
999 (Is_Variable_Size_Record): New subprogram.
1000 (Build_Offset_To_Top_Functions): New implementation that simplifies the
1001 initial version of this routine and also fixes problems causing
1002 incomplete initialization of the table of interfaces.
1003 (Build_Init_Procedure): Improve the generation of code to initialize the
1004 the tag components of secondary dispatch tables.
1005 (Init_Secondary_Tags): New implementation that simplifies the previous
1006 version of this routine.
1007 (Make_DT): Add parameter to indicate when type has been frozen by an
1008 object declaration, for diagnostic purposes.
1009 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
1010 diagnose attemps to freeze a subprogram when some untagged type of its
1011 profile is a private type whose full view has not been analyzed yet.
1012 (Freeze_Array_Type): Generate init proc for packed array if either
1013 Initialize or Normalize_Scalars is set.
1014 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
1015 constructing the new profile, copy the null_exclusion indicator for each
1016 parameter, to ensure full conformance of the new body with the spec.
1018 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
1019 Create wrappers for constructor functions that need it, even when not
1020 marked Requires_Overriding.
1021 (Covers): Handle properly designated types of anonymous access types,
1022 whose non-limited views are themselves incomplete types.
1023 (Add_Entry): Use an entity to store the abstract operation which hides
1025 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
1026 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
1027 initialization aggregate.
1028 (Function_Interp_May_Be_Hidden): Rename to
1029 Function_Interp_Has_Abstract_Op.
1030 (Has_Compatible_Type): Remove machinery that skips interpretations if
1031 they are labeled as potentially hidden by an abstract operator.
1032 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
1033 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
1034 (Write_Overloads): Output the abstract operator if present.
1035 (Add_Entry): Before inserting a new entry into the interpretation table
1036 for a node, determine whether the entry will be disabled by an abstract
1038 (Binary_Op_Interp_May_Be_Hidden): New routine.
1039 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
1041 (Function_Interp_May_Be_Hidden): New routine.
1042 (Has_Compatible_Type): Do not consider interpretations hidden by
1043 abstract operators when trying to determine whether two types are
1045 (Has_Hidden_Interp): New routine.
1046 (Set_May_Be_Hidden_Interp): New routine.
1047 (Write_Overloads): Write the status of flag May_Be_Hidden.
1049 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1050 Javier Miranda <miranda@adacore.com>
1052 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
1053 types declared in the declarative part of a nested package body or in
1054 the proper body of a stub.
1055 (Set_All_DT_Position): Add missing check to avoid wrong assignation
1056 of the same dispatch table slot to renamed primitives.
1057 (Make_Select_Specific_Data_Table): Handle private types.
1058 (Tagged_Kind): Handle private types.
1059 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
1060 output of implicit importation and exportation.
1061 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
1062 first formal of the thunk is always associated with the controlling
1063 type. In addition perform the following code cleanup: remove formal
1064 Thunk_Alias which is no longer required, cleanup evaluation of the
1065 the controlling type, and update the documentation.
1066 Replace occurrence of Default_Prim_Op_Count by
1067 Max_Predef_Prims. Addition of compile-time check to verify
1068 that the value of Max_Predef_Prims is correct.
1069 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
1070 (Make_DT): Add parameter to indicate when type has been frozen by an
1071 object declaration, for diagnostic purposes.
1072 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
1073 construction of statically allocated dispatch tables.
1074 (Make_DT): In case of library-level tagged types export the declaration
1075 of the primary tag. Remove generation of tags (now done by Make_Tags).
1076 Additional modifications to handle non-static generation of dispatch
1077 tables. Take care of building tables for asynchronous interface types
1078 (Make_Tags): New subprogram that generates the entities associated with
1079 the primary and secondary tags of Typ and fills the contents of Access_
1080 Disp_Table. In case of library-level tagged types imports the forward
1081 declaration of the primary tag that will be declared later by Make_DT.
1082 (Expand_Interface_Conversion): In case of access types to interfaces
1083 replace an itype declaration by an explicit type declaration to avoid
1084 problems associated with the scope of such itype in transient blocks.
1086 2007-08-14 Robert Dewar <dewar@adacore.com>
1087 Ed Schonberg <schonberg@adacore.com>
1088 Javier Miranda <miranda@adacore.com>
1090 * exp_util.ads, exp_util.adb:
1091 This patch replaces a number of occurrences of explicit tests for N_Null
1092 with calls to Known_Null. This improves tracking of null values, since
1093 Known_Null also catches null constants, and variables currently known to
1094 be null, so we get better tracking.
1095 (Ensure_Defined): create an itype reference only in the scope of the
1097 (Side_Effect_Free): A selected component of an access type that
1098 denotes a component with a rep clause must be treated as not
1099 side-effect free, because if it is part of a linked structure its
1100 value may be affected by a renaming.
1101 (Expand_Subtype_From_Expr): For limited objects initialized with build
1102 in place function calls, do nothing; otherwise we prematurely introduce
1103 an N_Reference node in the expression initializing the object, which
1104 breaks the circuitry that detects and adds the additional arguments to
1105 the called function. Bug found working in the new patch for statically
1106 allocated dispatch tables.
1107 (Is_Library_Level_Tagged_Type): New subprogram.
1108 (Remove_Side_Effects): If the expression of an elementary type is an
1109 operator treat as a function call.
1110 (Make_Literal_Range): If the index type of the array is not integer, use
1111 attributes properly to compute the constraint on the resulting aggregate
1114 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
1115 class-wide type whose base type is an incomplete private type, leave
1116 class-wide type unfrozen so that freeze nodes can be generated
1117 properly at a later point.
1118 (Freeze_Entity, array case): Handle case of pragma Pack and component
1119 size attributre clause for same array.
1121 2007-08-14 Vincent Celier <celier@adacore.com>
1123 * prj.ads, prj.adb: Update Project Manager to new attribute names for
1125 Allow all valid declarations in configuration project files
1126 (Reset): Initialize all tables and hash tables in the project tree data
1127 Major update of the Project Manager and of the project aware tools,
1128 including gprmake, so that the same sources in the GNAT repository
1129 can be used by gprbuild.
1130 (Slash_Id): Change type to be Path_Name_Type
1131 (Slash): Return a Path_Name_Type instead of a File_Name_Type
1133 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
1135 Update Project Manager to new attribute names for ghprbuild
1136 Allow all valid declarations in configuration project files
1137 Major update of the Project Manager and of the project aware tools,
1138 including gprmake, so that the same sources in the GNAT repository
1139 can be used by gprbuild.
1142 Major update of the Project Manager and of the project aware tools,
1143 including gprmake, so that the same sources in the GNAT repository
1144 can be used by gprbuild.
1146 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
1147 insensitive flag for attributes with optional index.
1148 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
1149 array attribute, put the index in lower case.
1150 Update Project Manager to new attribute names for ghprbuild
1151 Allow all valid declarations in configuration project files
1152 Major update of the Project Manager and of the project aware tools,
1153 including gprmake, so that the same sources in the GNAT repository
1154 can be used by gprbuild.
1156 * prj-env.ads, prj-env.adb:
1157 Major update of the Project Manager and of the project aware tools,
1158 including gprmake, so that the same sources in the GNAT repository
1159 can be used by gprbuild.
1160 (Get_Reference): Change type of parameter Path to Path_Name_Type
1162 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
1163 removing '-' from the path to start with the first character of the
1165 Major update of the Project Manager and of the project aware tools,
1166 including gprmake, so that the same sources in the GNAT repository
1167 can be used by gprbuild.
1168 Major update of the Project Manager and of the project aware tools,
1169 including gprmake, so that the same sources in the GNAT repository
1170 can be used by gprbuild.
1172 * prj-nmsc.ads, prj-nmsc.adb:
1173 Update Project Manager to new attribute names for ghprbuild
1174 Allow all valid declarations in configuration project files
1175 (Search_Directories): Detect subunits that are specified with an
1176 attribute Body in package Naming. Do not replace a source/unit in the
1177 same project when the order of the source dirs are known. Detect
1178 duplicate sources/units in the same project when the order of the
1179 source dirs are not known.
1180 (Check_Ada_Name): Allow all identifiers that are not reserved words
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.
1185 (Look_For_Sources): If the list of sources is empty, set the object
1186 directory of non extending project to nil.
1187 Change type of path name variables to be Path_Name_Type
1188 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
1189 otherwise creating missing directories will fail.
1191 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
1192 prj-part.ads, prj-part.adb:
1193 Major update of the Project Manager and of the project aware tools,
1194 including gprmake, so that the same sources in the GNAT repository
1195 can be used by gprbuild.
1197 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
1198 insensitive flag for attributes with optional index.
1199 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
1200 array attribute, put the index in lower case.
1201 (Parse_Variable_Reference): Allow the current project name to be used in
1202 the prefix of an attribute reference.
1204 * prj-util.ads, prj-util.adb
1205 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
1206 defaulted to False. When True, always check against indexes in lower
1209 * snames.ads, snames.h, snames.adb:
1210 Update Project Manager to new attribute names for gprbuild
1211 Allow all valid declarations in configuration project files
1213 2007-08-14 Robert Dewar <dewar@adacore.com>
1214 Ed Schonberg <schonberg@adacore.com>
1216 * opt.ads: Warning for non-local exception propagation now off by
1218 New switch -gnatI to disable representation clauses
1219 Implement new pragma Implicit_Packing
1222 Warning for non-local exception propagation now off by default
1223 Add warning for unchecked conversion of pointers wi different
1225 New switch -gnatI to disable representation clauses
1227 * usage.adb: new switch -gnatyS
1229 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
1230 note that aggregates of anonymous array types are not flagged.
1231 -gnatwc now includes membership tests optimized away
1232 -gnatw.x warnings are now off by default
1233 Added conditional compilation Appendix
1234 Add documentation of -gnatI
1235 Add documentation for new -gnatyS style check
1236 Update documentation about SAL and auto-init on Windows.
1239 Add documentation for pragma Check_Name and 'Enabled attribute
1240 Document that Eliminate on dispatching operation is ignored
1241 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
1242 Document pragma Main
1243 Document pragma Implicit_Packing
1245 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
1246 different conventions
1247 New switch -gnatI to disable representation clauses
1249 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
1250 recognized, report the invalid characters including "-gnat" instead of
1251 just the first character in the switch.
1252 New switch -gnatI to disable representation clauses
1253 Set Warn_On_Object_Renames_Function true for -gnatg
1255 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
1256 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
1257 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
1258 to switch -aP (add directory to project search dir).
1260 * par-prag.adb: Implement new pragma Implicit_Packing
1262 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
1263 type as having a non-standard representation, to force expansion on
1264 conversion to related types.
1265 (Analyze_Pragma): Warn on misspelled pragma
1266 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
1267 Ensure consistent use of # in error messages
1268 Implement pragma Implicit_Packing
1270 2007-08-14 Olivier Hainque <hainque@adacore.com>
1271 Eric Botcazou <ebotcazou@adacore.com>
1273 * targtyps.c (get_target_maximum_default_alignment): New function.
1275 that the compiler might choose by default for a type or object.
1276 (get_target_default_allocator_alignment): New function. Alignment known
1277 to be honored by the target default allocator.
1278 (get_target_maximum_allowed_alignment): New function. Maximum alignment
1279 we might accept for any type or object on the target.
1280 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
1282 * gigi.h (get_target_maximum_default_alignment): Declare new function.
1283 (get_target_default_allocator_alignment): Likewise.
1284 (get_target_maximum_allowed_alignment): Likewise.
1287 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
1288 result of a function call, first try to use a stabilized reference for
1289 a constant renaming too.
1290 (validate_alignment): Use target_maximum_allowed_alignment instead of
1291 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
1292 (gnat_to_gnu_entity): Use common nodes directly.
1293 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
1294 alignment and size for the object.
1295 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
1296 and N_Procedure_Call_Statement.
1297 (takes_address): Rename to lvalue_required_p, add third parameter
1298 'aliased' and adjust recursive calls.
1299 <N_Indexed_Component>: Update 'aliased' from the array type.
1300 <N_Selected_Component>: New case.
1301 <N_Object_Renaming_Declaration>: New Likewise.
1302 (Identifier_to_gnu): Adjust for above changes.
1303 (maybe_stabilize_reference) <CONST_DECL>: New case.
1305 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
1306 between type variants.
1307 (build_simple_component_ref): Likewise.
1308 (build_call_alloc_dealloc): Use target_default_allocator_alignment
1309 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
1310 aligning type circuitry for allocations from the default storage pool.
1311 (build_allocator): Likewise.
1312 (build_simple_component_ref): Manually fold the reference for a
1313 constructor if the record type contains a template.
1315 * utils.c (value_zerop): Delete.
1316 (gnat_init_decl_processing): Emit debug info for common types.
1317 (rest_of_record_type_compilation): If a union contains a field
1318 with a non-constant qualifier, treat it as variable-sized.
1319 (finish_record_type): Give the stub TYPE_DECL a name.
1320 (rest_of_record_type_compilation): Likewise.
1321 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
1322 types are equivalent array types.
1323 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
1324 even if the type is not passed by reference.
1325 (static_ctors, static_dtors): Delete.
1326 (end_subprog_body): Do not record constructors and destructors.
1327 (build_global_cdtor): Delete.
1328 (gnat_write_global_declarations): Do not call build_global_cdtor.
1330 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
1331 -fRTS=rtp is specified.
1332 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
1335 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
1336 of the personality function with SJLJ exceptions.
1338 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
1339 the name of the personality function with SJLJ exceptions.
1341 2007-08-14 Robert Dewar <dewar@adacore.com>
1342 Ed Schonberg <schonberg@adacore.com>
1344 * par.ads, par.adb: Improve handling of extra right parens.
1345 (Par): Remove flag From_Limited_With_Clause.
1347 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
1348 Improve handling of extra right parens.
1350 2007-08-14 Robert Dewar <dewar@adacore.com>
1352 * par-tchk.adb (TF_Semicolon): Improve error recovery
1354 2007-08-14 Robert Dewar <dewar@adacore.com>
1355 Ed Schonberg <schonberg@adacore.com>
1357 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
1358 enumeration type, mark all literals as referenced.
1359 (Eval_Attribute, case 'Image): If the argument is an enumeration
1360 literal and names are available, constant-fold but mark nevertheless as
1362 Clean up function names.
1363 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
1365 (Requires_Simple_Name_Prefix): Removed.
1367 2007-08-14 Robert Dewar <dewar@adacore.com>
1368 Ed Schonberg <schonberg@adacore.com>
1370 * sem_ch11.adb: Improved warnings for unused variables
1372 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
1373 is a synchronized interface, the derived type is limited.
1374 (Analyze_Object_Declaration): Mark the potential coextensions in the
1375 definition and expression of an object declaration node.
1376 (Build_Derived_Type): For the completion of a private type declaration
1377 with a derived type declaration, chain the parent type's representation
1378 items to the last representation item of the derived type (not the
1379 first one) if they are not present already.
1380 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
1381 object declaration of forward references to tags.
1382 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
1383 subprogram types can appear as access discriminants of synchronized
1385 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
1386 given in prefixed form as a selected component.
1387 (Process_Discriminants): If not all discriminants have defaults, place
1388 error message on a default that is present.
1389 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
1390 extend a synchronized tagged type.
1391 Improved warnings for unused variables
1392 (Is_Visible_Component): Fix a visibility hole on a component inherited
1393 by a private extension when parent is itself declared as a private
1394 extension, and the derivation is in a child unit.
1395 (Find_Hidden_Interface): Move spec from the package body.
1397 2007-08-14 Robert Dewar <dewar@adacore.com>
1398 Ed Schonberg <schonberg@adacore.com>
1400 * sem_ch5.adb: Improve warnings on redundant assignments
1402 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
1404 (Is_Synchronized_Tagged_Type): New subprogram that returns true
1405 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
1406 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
1407 is set to False. Improves handling of Known_[Not_]Null.
1408 (Wrong_Type): Special case address arithmetic attempt
1409 (Collect_Abstract_Interfaces): Add new formal to allow collecting
1410 abstract interfaces just using the partial view of private types.
1411 (Has_Abstract_Interfaces): Add new formal to allow checking types
1412 covering interfaces using the partial view of private types.
1413 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
1414 component still needs to be defined in this case, but is never
1415 initialized as VMs are using other dispatching mechanisms.
1416 (Abstract_Interface_List): For a protected type, use base type to get
1418 Improve warnings on redundant assignments
1419 (Is_Variable): Handle properly an implicit dereference of a prefixed
1421 (Build_Actual_Subtype): If this is an actual subtype for an
1422 unconstrained formal parameter, use the sloc of the body for the new
1423 declaration, to prevent anomalises in the debugger.
1425 2007-08-14 Robert Dewar <dewar@adacore.com>
1427 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
1428 dispatching operation
1430 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1431 Gary Dismukes <dismukes@adacore.com>
1434 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
1435 expanded aggregate code before allocator, and ahead of declaration for
1436 temporary, to prevent access before elaboration when the allocator is
1437 an actual for an access parameter.
1438 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
1439 the TSD and the table of interfaces.
1440 (Convert_To_Assignments): Augment the test for delaying aggregate
1441 expansion for limited return statements to include the case of extended
1442 returns, to prevent creation of an unwanted transient scope.
1443 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
1444 (Expand_Array_Aggregate): Handle aggregates associated with
1445 statically allocated dispatch tables.
1446 (Expand_Record_Aggregate): Handle aggregates associated with
1447 statically allocated dispatch tables.
1448 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
1449 of anonymous access type.
1451 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1453 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
1454 is a variable that renames a slice, use the variable itself in the
1455 expannsion when the renamed expression itself may be modified between
1456 the declaration of the renaming and the array assignment.
1458 2007-08-14 Jerome Guitton <guitton@adacore.com>
1460 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
1461 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
1462 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
1463 New functions; dummy implementations.
1465 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
1466 functions, used to implement the multi-tasks mode routines on VxWorks.
1468 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
1470 binding to the VxWorks routines which have changed between VxWorks 5
1472 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
1473 which are not callable from a RTP.
1475 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
1476 implemented for the multi-tasks mode on VxWorks 5 and 6.
1478 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
1480 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
1483 2007-08-14 Vincent Celier <celier@adacore.com>
1485 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
1486 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
1487 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
1488 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
1489 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
1490 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
1491 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
1493 (Major_Id_Name): New function.
1494 mlib-tgt.ads/mlib.tgt.adb:
1495 (Library_Major_Minor_Id_Supported): New function, default returns True
1496 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
1497 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
1498 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
1499 Implementation of Library_Major_Minor_Id_Supported returns False
1501 (Clean_Library_Directory): If major/minor ids are supported, clean all
1503 Major update of the Project Manager and of the project aware tools,
1504 including gprmake, so that the same sources in the GNAT repository
1505 can be used by gprbuild.
1507 2007-08-14 Olivier Hainque <hainque@adacore.com>
1509 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
1510 (GCC_ZCX_Support): Switch to True.
1512 * s-intman-solaris.adb (Notify_Exception): Call
1513 Adjust_Context_For_Raise before raising, as expected for signal
1514 handlers in general.
1516 * s-intman-posix.adb (Notify_Exception): Remove declaration of
1517 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
1518 to other implementation bodies.
1520 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
1521 be visible by multiple implementation bodies.
1523 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
1524 only for conditions coming from hardware.
1525 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
1526 adjustments to signal context prior to exception raise from signal
1528 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
1530 Solaris section: (__gnat_adjust_context_for_raise): New function.
1531 Implementation of the machine context adjustments to perform prior to
1532 raise from a signal handler. Version for both sparc and x86.
1533 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
1534 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
1535 prior to raising as expected for any handler, before possible nested
1536 faults to make sure all the contexts in a chain have been adjusted by
1537 the time we propagate.
1539 2007-08-14 Pascal Obry <obry@adacore.com>
1541 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
1542 (SYSTEM_INFO): New record.
1543 (SetThreadIdealProcessor): New imported routine needed for supporting
1544 task_info pragma on Windows.
1546 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
1547 info can be applied to the current host.
1548 (Create_Task): Set the ideal processor if information is present.
1550 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
1551 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
1553 2007-08-14 Olivier Hainque <hainque@adacore.com>
1555 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
1556 stack size and initial stack pointer value for a given task.
1557 (Enter_Task): Get the stack attributes of the task we are entering and
1558 let the stack checking engine know about them.
1560 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
1561 Let the stack-checking engine know about the initial sp value and stack
1562 size associated with the current task.
1563 (Set_Stack_Info): If a stack base has been notified for the current
1564 task, honor it. Fallback to the previous less accurate method otherwise.
1566 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
1568 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1570 * sem_ch10.adb: Create a limited view of an incomplete type, to make
1571 treatment of limited views uniform for all visible declarations in a
1572 limited_withed package.
1573 Set flag indicating that a subprogram body for a child unit has a
1575 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
1576 separate declaration, remove the unit name from visibility after
1577 compilation, so that environment is clean for subsequent compilations.
1578 (Install_Limited_Context_Clauses): Do not install a
1579 limited_private_with_clause unless the current unit is a body or a
1581 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
1582 in the same fashion.
1583 (Install_Limited_Withed_Unit): Do not install a limited with clause if
1584 it applies to the declaration of the current package body.
1585 (Remove_Private_With_Clauses): If there is a regular with_clause for
1586 the unit, delete Private_With_Clause from context, to prevent improper
1587 hiding when processing subsequent nested packages and instantiations.
1589 2007-08-14 Jose Ruiz <ruiz@adacore.com>
1591 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
1592 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
1593 representing absolute path names.
1594 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
1596 * cstreams.c (__gnat_full_name for VxWorks): Use
1597 __gnat_is_absolute_path to detect whether we need to add the current
1598 directory to normalize the path.
1600 2007-08-14 Javier Miranda <miranda@adacore.com>
1603 a-tags.adb (Displace): Associate a message with the raised CE
1605 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
1606 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
1607 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
1609 (Default_Prim_Op_Count): Removed.
1610 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
1611 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
1612 Remove pragma Inline_Always.
1614 * rtsfind.ads (Default_Prim_Op_Count): Removed
1615 (Max_Predef_Prims): New entity
1616 (RE_Expanded_Name): Removed
1617 (RE_HT_Link): Removed
1618 (RE_Iface_Tag): Remmoved
1619 (RE_Ifaces_Table): Removed
1620 (RE_Interfaces_Array): Removed
1621 (RE_Interface_Data_Element): Removed
1622 (RE_Nb_Ifaces): Removed
1623 (RE_RC_Offset): Removed
1624 (RE_Static_Offset_To_Top): Removed
1626 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
1628 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
1629 Prim_Op_Count by Max_Predef_Prims.
1631 2007-08-14 Thomas Quinot <quinot@adacore.com>
1632 Vincent Celier <celier@adacore.com>
1634 * binde.adb (Elab_All_Links): Remove unnecessary call to
1635 Generic_Separately_Compiled (if a unit satisfies this predicate, there
1636 won't be an associated Afile).
1637 (Elab_All_Links): Fail if a referenced unit cannot be found
1640 Fix comments in bindgen regarding consistency checks done in Bcheck:
1641 the checks are made across units within a partition, not across several
1643 Fix generation of C binder file for VxWorks.
1645 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
1646 Generic_May_Lack_ALI, more descriptive of the current use of the
1647 predicate, and update documentation.
1649 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
1650 reorganization and documentation update for the case of predefined
1651 library generics (for which we do not reference an Afile).
1653 2007-08-14 Robert Dewar <dewar@adacore.com>
1655 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
1656 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
1657 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
1658 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
1659 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
1660 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
1661 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
1662 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
1663 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
1664 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
1665 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
1666 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
1667 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
1668 g-altcon.adb: Minor reformatting
1670 ada-tree.h: Delete empty line.
1672 ali.ads: Minor reformatting
1673 Clarification of comments.
1674 Minor spelling correction
1676 * exp_dbug.adb: Add Warnings Off to suppress new warning
1678 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
1681 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
1684 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
1686 * a-textio.ads: Reorder the standard input/output/error declarations
1689 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
1691 * par-ch2.adb: Recognize RM specially in errout
1692 Change 'R'M to RM in all error messages
1694 * scng.adb: Recognize RM specially in errout
1696 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
1697 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
1699 * s-direio.adb: Add missing routine header box.
1701 * sem_attr.ads: Add ??? comments
1703 * sem_eval.adb: Recognize RM specially in errout
1704 Change 'R'M to RM in all error messages
1706 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
1708 * s-tasinf.ads: Fix minor comment typo.
1710 * a-cihama.adb: Minor comment addition
1712 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
1715 * s-tasinf-tru64.ads: Fix minor comment typo.
1717 * itypes.ads: Comment update.
1719 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
1722 * argv.c: Added protection against null gnat_argv and gnat_envp.
1724 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
1725 warning message when Tolerate_Consistency_Errors is True.
1727 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
1728 Any_Id, as this subprogram is only applicable to *type* entities (it
1729 sets RM_Size). Instead initialize just Esize and Alignment.
1731 2007-08-14 Bob Duff <duff@adacore.com>
1733 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
1734 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
1735 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
1736 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
1737 a-coorse.ads (Next): Applied pragma Inline.
1738 Make all Containers packages Remote_Types (unless they are already
1740 (Previous): applied pragma Inline
1741 (Elements_Type): is now a record instead of an array
1743 2007-08-14 Thomas Quinot <quinot@adacore.com>
1745 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
1747 (Set_Item): When the new item is an element of the currently allocated
1748 table passed by reference, save a copy on the stack if we're going
1749 to reallocate. Also, in Table.Set_Item, make sure we test the proper
1750 variable to determine whether to call Set_Last.
1752 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
1753 symbols-vms.adb, symbols-processing-vms-alpha.adb,
1754 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
1755 some occurrences of the pattern
1757 T.Table (T.Last) := Value;
1758 with a cleaner call to
1761 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1762 Gary Dismukes <dismukes@adacore.com>
1763 Thomas Quinot <quinot@adacore.com>
1765 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
1766 derived type with interface progenitors use the analyzed formal as the
1767 parent of the actual, to create renamings for all the inherited
1768 operations in Derive_Subprograms.
1769 (Collect_Previous_Instances): new procedure within of
1770 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
1771 unit being loaded, to ensure that the generation of global symbols is
1772 consistent in different compilation modes.
1773 (Is_Tagged_Ancestor): New function testing the ancestor relation that
1774 takes progenitor types into account.
1775 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
1776 traversing over the primitives of the formal and actual types to locate
1777 any abstract subprograms of the actual type that correspond to a
1778 nonabstract subprogram of the formal type's ancestor type(s), and issue
1779 an error if such is found.
1780 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
1781 Instantiate_Package_Body, Instantiate_Subprogram_Body):
1782 Remove bogus guard around calls to Inherit_Context.
1783 (Reset_Entity): If the entity is the selector of a selected component
1784 that denotes a named number, propagate constant-folding to the generic
1785 template only if the named number is global to the generic unit.
1786 (Set_Instance_Env): Only reset the compilation switches when compiling
1787 a predefined or internal unit.
1789 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1791 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
1792 parameter to determine whether operation applies to the prefix.
1793 (Complete_Object_Operation): If actual has an access type and
1794 controlling formal is not an in_parameter, reject the actual if it is
1795 an access_to_constant type.
1796 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
1797 type, the candidate operations are found in the scope of declaration of
1798 the type, because the type has no primitive subprograms.
1799 (Analyze_Selected_Component): If prefix is class-wide, and root type is
1800 a private extension, only examine visible components before trying to
1801 analyze as a prefixed call.
1802 Change Entity_List to Type_To_Use, for better readability.
1803 (Has_Fixed_Op): Use base type when checking whether the type of an
1804 operator has a user-defined multiplication/division
1805 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
1806 user-defined operators are available for fixed-point types.
1808 2007-08-14 Thomas Quinot <quinot@adacore.com>
1809 Ed Schonberg <schonberg@adacore.com>
1811 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
1812 formal At_Any_Place indicating, when True, that we want to test for
1813 availability of the stream attribute at any place (as opposed to the
1814 current visibility context only).
1815 (Missing_Read_Write_Attributes): A stream attribute is missing for the
1816 purpose of enforcing E.2.2(8) only if it is not available at any place.
1817 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
1818 when checking the legality of an extension aggregate in a preelaborable
1819 package. Treat the literal null as a valid default expression in a
1820 component declaration for a type with preelaborable initialization.
1821 A limited interface is a legal progenitor for the designated type of a
1822 remote access to class-wide type.
1824 2007-08-14 Thomas Quinot <quinot@adacore.com>
1825 Ed Schonberg <schonberg@adacore.com>
1827 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
1828 reference): Use correct entity as denoted entity for the selector of
1830 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
1831 setting the Referenced_As_LHS flag for entities that are implicitly
1833 (Find_Type): If the type is an internally generated incomplete type,
1834 mark the full view as referenced, to prevent spurious warnings.
1835 (Find_Selected_Component, Has_Components): Handle properly non-limited
1836 views that are themselves incomplete types.
1837 Handle interfaces visible through limited-with clauses.
1838 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
1839 subprogram generic actual for which we have generated a renaming.
1840 Warn when the renaming introduces a homonym of
1841 the renamed entity, and the renamed entity is directly visible.
1843 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1844 Hristian Kirtchev <kirtchev@adacore.com>
1846 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
1847 appear in the subtree to the current allocator if it is not a static
1849 (Resolve_Allocator): Perform cleanup if resolution has determined that
1850 the allocator is not a coextension.
1851 (Resolve): Skip an interpretation hidden by an abstract operator only
1852 when the type of the interpretation matches that of the context.
1853 (Resolve): When looping through all possible interpretations of a node,
1854 do not consider those that are hidden by abstract operators.
1855 (Resolve_Actuals): When verifying that an access to class-wide object
1856 is an actual for a controlling formal, ignore anonymous access to
1857 subprograms whose return type is an access to class_wide type.
1858 (Resolve_Slice): If the prefix of the slice is a selected component
1859 whose type depends on discriminants, build its actual subtype before
1860 applying range checks on the bounds of the slice.
1861 (Valid_Conversion): In an instance or inlined body, compare root types,
1862 to prevent anomalies between private and public views.
1863 (Resolve): Improve error message for ambiguous fixed multiplication
1864 expressions that involve universal_fixed multiplying operations.
1866 2007-08-14 Javier Miranda <miranda@adacore.com>
1867 Hristian Kirtchev <kirtchev@adacore.com>
1869 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
1870 location to allow the correct generation of errors in case of
1871 restrictions applied to the expanded code.
1872 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
1873 function if the condition does not reference them.
1874 (Expand_Entry_Body_Declarations): Mark the index constant as having a
1877 2007-08-14 Thomas Quinot <quinot@adacore.com>
1879 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
1880 typecode parameters for a union (in a variant record), remove
1881 extraneous layer of Any wrapping for member label.
1882 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
1883 elabration statements, register the package with the name server
1884 at the beginning, not at the end, of the elaboration statements so
1885 that they can create remote access to subprogram values that designate
1886 remote subprograms from the package.
1888 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
1890 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
1891 values to compute the number of seconds since the Unix Epoc in order to
1892 account for Daylight Savings Time. Perform special processing for dates
1893 that are earlier than the Unix Epoc to obtain a negative number.
1895 2007-08-14 Emmanuel Briot <briot@adacore.com>
1897 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
1900 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
1902 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
1903 binder-generated file is not in Ada.
1904 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
1905 recorded in the ALI file.
1906 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
1908 2007-08-14 Vincent Celier <celier@adacore.com>
1910 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
1911 (Output_Source): Do nothing if parameter is No_Sdep_Id
1913 * make.adb (Gnatmake): Do not rebuild an archive simply because a
1914 shared library it imports has a later time stamp.
1915 (Check): Resolve the symbolic links in the path name of the object
1917 Check that the ALI file is in the correct object directory
1918 Check if a file name does not correspond to the mapping of units
1920 (Display_Version): New procedure
1921 (Initialize): Process switches --version and --help
1922 Use type Path_Name_Type for path name
1924 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
1926 * impunit.adb: Re-organize System.Random_Numbers and
1927 GNAT.Random_Numbers and add to builds.
1929 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
1931 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
1933 * a-assert.ads, a-assert.adb: New files.
1935 2007-08-14 Gary Dismukes <dismukes@adacore.com>
1937 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
1938 if AAMP_On_Target is True, then the size of the type encompasses two
1939 addresses (a static link and a subprogram address), except in the case
1940 of library-level access types.
1942 2007-08-14 Vincent Celier <celier@adacore.com>
1944 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
1946 (Write_Eol_Keep_Blanks): New procedure to write a line, including
1947 possible trailing spaces.
1948 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
1950 2007-08-14 Javier Miranda <miranda@adacore.com>
1952 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
1953 null-excluding access types.
1955 2007-08-14 Javier Miranda <miranda@adacore.com>
1957 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
1958 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
1959 of private types add missing check on matching interfaces in the
1960 partial and full declarations.
1961 (Analyze_Protected_Type): Code cleanup.
1962 (Analyze_Task_Type): Code cleanup.
1964 2007-08-14 Javier Miranda <miranda@adacore.com>
1966 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
1967 generated interface thunk.
1969 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1971 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
1972 obsolescent warning on application of 'Class to an incomplete type.
1974 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
1975 prevent obsolescent warning on application of 'Class to an incomplete
1978 2007-08-14 Pascal Obry <obry@adacore.com>
1980 * s-fileio.adb (Is_Open): Add check for usability of the underlying
1983 2007-08-14 Cyrille Comar <comar@adacore.com>
1985 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
1986 since it is potentially used in cases implying double finalization of
1989 2007-08-14 Jose Ruiz <ruiz@adacore.com>
1991 * s-tasini.adb (Get_Stack_Info): Move this function to
1992 System.Soft_Links.Tasking because it is common to the full and the
1993 restricted run times.
1994 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
1995 in SSL.Tasking.Init_Tasking_Soft_Links.
1997 * s-solita.adb (Get_Stack_Info): Function moved from
1998 System.Tasking.Initialization because it is common to the full and the
1999 restricted run times.
2000 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
2002 2007-08-14 Arnaud Charlet <charlet@adacore.com>
2004 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
2005 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
2006 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
2009 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
2012 2007-08-14 Gary Dismukes <dismukes@adacore.com>
2014 * s-veboop.adb (SU): New named number initialized to
2015 System.Storage_Unit.
2016 (True_Val): The initialization expression is revised to use SU (=
2017 Storage_Unit) rather than assuming 8 for the component size of an
2018 unpacked Boolean array.
2020 2007-08-14 Tristan Gingold <gingold@adacore.com>
2022 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
2024 * tb-ivms.c: New file.
2026 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
2028 2007-08-14 Geert Bosch <bosch@adacore.com>
2030 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
2031 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
2032 Add required linker pragmas for automatically linking with the gnalasup
2033 linear algebra support library, and the systems math library.
2034 Rename cdot to cdotu and zdot to zdotu.
2035 Update header comment to describe purpose of package.
2037 2007-08-14 Thomas Quinot <quinot@adacore.com>
2039 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
2040 an explicitly specified Associated_Final_Chain, use that list.
2041 (Expand_N_Package_Body): Build dispatch tables of library level tagged
2043 (Expand_N_Package_Declaration): Build dispatch tables of library level
2044 tagged types. Minor code cleanup.
2046 2007-08-14 Vincent Celier <celier@adacore.com>
2048 * gnatchop.adb (Terminate_Program): Remove exception and use
2049 Types.Terminate_Program instead.
2051 * osint.ads, osint.adb (Current_Exit_Status): New global variable
2052 (Find_Program_Name): Added protection against empty name.
2053 (OS_Exit_Through_Exception): New procedure
2055 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
2056 (OS_Exit_Default): New procedure that contains the previous
2057 implementation of procedure OS_Exit.
2058 (Final_Value): Remove obsolete Interix stuff.
2060 2007-08-14 Thomas Quinot <quinot@adacore.com>
2062 * g-socket.ads: Reorganize example code so that it also works on
2065 2007-08-14 Tristan Gingold <gingold@adacore.com>
2067 * g-trasym.ads: AIX now supports symbolic backtraces.
2069 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2071 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
2072 units being loaded to detect circularities. A circularity may be
2073 present even if the current chain of pending units to load starts from
2074 a limited_with_clause.
2076 * lib-load.ads: Change profile of Load_Unit to use a with_clause
2077 rather than a boolean flag, in order to detect circularities in
2080 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
2081 than propagating the From_Limited_With flag, in order to handle
2082 properly circularities involving with_clauses.
2084 2007-08-14 Nicolas Setton <setton@adacore.com>
2086 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
2089 2007-08-14 Arnaud Charlet <charlet@adacore.com>
2091 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
2092 to build for libgnala.
2093 libgnat: Add rules to build libgnala.a
2094 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
2095 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
2096 Add s-osinte-vxworks-kernel.adb to the target pairs of the
2097 kernel run-time lib for VxWorks 6, which would provide a different
2098 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
2099 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
2100 running ZCX by default.
2101 Add g-sttsne-locking to LynxOS version.
2102 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
2103 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
2105 * system-darwin-x86.ads: New file.
2107 * Make-lang.in: Delete files before copying onto them, so if they are
2108 read-only, the copy won't fail.
2111 2007-08-14 Pascal Obry <obry@adacore.com>
2113 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
2116 2007-08-14 Vincent Celier <celier@adacore.com>
2118 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
2119 (Gcc): Initialize Gcc_Name at the first call
2121 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2123 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
2124 with_clauses of the enclosing unit when analyzing the package
2125 specification of a nested instance.
2127 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
2129 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
2130 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
2131 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
2132 layout of N_Allocator.
2134 2007-08-14 Thomas Quinot <quinot@adacore.com>
2136 * rtsfind.adb (Check_RPC): Add PCS version check.
2138 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
2139 (Gnat_Free_Software): New function.
2141 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
2142 the PCS_Version value from s-parint, used to check that it is consistent
2143 with what exp_dist expects.
2145 * s-parint.ads (PCS_Version): New entity for checking consistency
2146 between exp_dist and PCS.
2148 * gen-soccon.c: (SO_REUSEPORT): New constant.
2150 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
2152 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
2153 variable Sub_Second to Duration in order to accomodate a larger range
2154 of arithmetic operations.
2156 2007-08-14 Bob Duff <duff@adacore.com>
2158 * g-sttsne-locking.ads: Move comments from spec to body.
2159 * g-sttsne-locking.adb: Move comments from spec to body.
2160 * g-sttsne-vxworks.ads: Removed.
2161 * g-sttsne-vxworks.adb: Removed.
2163 2007-08-11 Ian Lance Taylor <iant@google.com>
2165 * misc.c (gnat_get_alias_set): Change return type to
2168 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2170 * decl.c, utils2.c: Fix whitespace in last change.
2172 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2174 * decl.c (compare_field_bitpos): Constify.
2175 * utils2.c (compare_elmt_bitpos): Likewise.
2177 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
2179 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
2180 anonymous access type.
2181 (pthread_sigmask): Now take an access sigset_t.
2183 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
2185 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
2187 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
2189 PR tree-optimization/25737
2190 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
2192 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2194 * trans.c (Attribute_to_gnu): When subtracting an
2195 offset from a pointer, use POINTER_PLUS_EXPR with
2196 NEGATE_EXPR instead of MINUS_EXPR.
2197 (gnat_to_gnu): Likewise.
2198 * utils.c (convert): When converting between
2199 thin pointers, use POINTER_PLUS_EXPR and sizetype
2201 * utils2.c (known_alignment): POINTER_PLUS_EXPR
2202 have the same semantics as PLUS_EXPR for alignment.
2203 (build_binary_op): Add support for the semantics of
2204 POINTER_PLUS_EXPR's operands.
2205 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
2207 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
2209 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
2210 of get_signed_or_unsigned_type.
2211 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
2213 2007-06-11 Bob Duff <duff@adacore.com>
2214 Thomas Quinot <quinot@adacore.com>
2216 * g-stsifd-sockets.adb (Create): Work around strange behavior of
2217 'bind' on windows that causes 'connect' to fail intermittently, by
2218 retrying the 'bind'.
2219 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
2221 2007-06-10 Duncan Sands <baldrick@free.fr>
2223 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
2224 than to void, for the fields when making a new fat pointer type.
2225 (gnat_substitute_in_type): Now substitute_in_type.
2226 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
2227 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
2228 * utils.c (update_pointer_to): Update fat pointers by updating the
2229 dummy node pointers used for the fields.
2231 2007-06-06 Thomas Quinot <quinot@adacore.com>
2232 Bob Duff <duff@adacore.com>
2234 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
2235 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
2236 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
2237 constant Thread_Blocking_IO, always True by default, set False
2238 on a per-runtime basis.
2239 (Need_Netdb_Buffer): New constant.
2241 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
2242 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
2245 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
2246 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
2247 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
2248 child package Task_Safe_NetDB
2249 (Host_Error_Messages): Add stub body.
2250 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
2252 * g-soccon-mingw.ads: Add Windows-specific constants.
2253 (Need_Netdb_Buffer): New constant.
2254 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
2255 wrapper and import inet_addr(3) from the standard sockets library
2257 (In_Addr): Add alignment clause.
2258 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
2260 2007-06-06 Robert Dewar <dewar@adacore.com>
2262 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
2263 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
2264 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
2265 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
2266 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
2267 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
2268 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
2269 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
2270 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
2271 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
2272 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
2273 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
2274 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
2275 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
2276 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
2277 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
2278 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
2279 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
2280 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
2281 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
2282 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
2283 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
2284 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
2285 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
2286 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
2287 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
2288 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
2289 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
2290 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
2291 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
2292 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
2293 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
2294 Unchecked_* by Ada.Unchecked_*
2296 2007-06-06 Robert Dewar <dewar@adacore.com>
2298 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
2299 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
2300 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
2301 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
2302 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
2303 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
2305 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
2306 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
2307 s-tasloc.adb, s-tasloc.ads: New files.
2309 2007-06-06 Bob Duff <duff@adacore.com>
2312 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
2313 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
2314 (Send_Signal, Close): Raise Invalid_Process if the process id is
2316 (Pattern_Matcher_Access): Is now a general access type to be able to
2319 2007-06-06 Thomas Quinot <quinot@adacore.com>
2320 Arnaud Charlet <charlet@adacore.com>
2322 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
2323 (SIGEMT is now used instead of SIGTERM on AIX).
2325 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
2326 (Time_Slice_Supported): Set to True.
2327 Use SIGEMT instead of SIGTERM as SIGADAABORT.
2329 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
2331 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
2332 (Time, Time)): Use To_Relative_Time rather than manual calculation to
2333 express the bounds of Duration as Time. Raise Time_Error when the
2334 result is greater or equal to the higher bound of Duration (on the
2336 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
2338 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
2340 ("-" (Time, Time)): Reorder code.
2341 (All_Leap_Seconds): Removed.
2342 (Arithmetic_Operations.Add): Remove sign related kludge.
2343 (Arithmetic_Operations.Difference): Control the leaps seconds processing
2344 with flag Leap_Support.
2345 (Arithmetic_Operations.Subtract): Remove sign related kludge.
2346 (Check_Within_Time_Bounds): New procedure.
2347 (Clock): Control the leap seconds processing with flag Leap_Support.
2348 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
2349 (Formatting_Operations.Split): Control the leap seconds processing with
2351 (Formatting_Operations.Time_Of): Control the leaps seconds processing
2352 with flag Leap_Support. Adjust the year, month and day (if applicable)
2353 when the value of day seconds designates a new day.
2354 (Split): Use parameter associations for better readability. Integrate
2356 (Time_Of): Use parameter associations for better readability. Integrate
2359 * a-calfor.adb (Split): Use parameter associations for better
2360 readability. Integrate flag Is_Ada_05.
2361 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
2362 better readability. Integrate flag Is_Ada_05.
2364 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2366 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
2367 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
2368 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
2369 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
2370 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
2371 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
2372 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
2373 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
2374 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
2375 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
2376 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
2377 time when entering this routine to detect a backward clock setting
2378 (manual setting or DST adjustment), to avoid waiting for a longer delay
2380 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
2381 Remove handling of deferred priority change, and replace by setting the
2382 task priority directly, as required by AI-188.
2384 (Max_Task_Image_Length): New constant.
2385 Replace Warnings (Off) by Unreferenced pragma, cleaner.
2386 (Dynamic_Priority_Support): Removed, no longer needed.
2387 (Poll_Base_Priority_Change): Ditto.
2388 (Set_Ceiling): Add this procedure to change the ceiling priority
2389 associated to a lock. This is a dummy implementation because dynamic
2390 priority ceilings are not supported by the underlying system.
2392 * a-dynpri.adb (Set_Priority): Take into account case where Target is
2393 accepting a RV with its priority boosted.
2394 Remove handling of deferred priority change, and replace by setting the
2395 task priority directly, as required by AI-188.
2397 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
2399 Remove handling of deferred priority change, and replace by setting the
2400 task priority directly, as required by AI-188.
2401 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
2404 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
2405 (Poll_Base_Priority_Change): Removed.
2406 Code clean up: use SSL.Current_Target_Exception.
2408 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
2409 to run as this is a potentially dispatching point.
2410 (Call_Synchronous): Use Local_Defer_Abort.
2411 (Callable): Relax assertion.
2412 (Selective_Wait): Relax assertion in case abort is not allowed.
2413 Remove handling of deferred priority change, and replace by setting the
2414 task priority directly, as required by AI-188.
2416 * s-tasuti.adb (Make_Passive): Adjust assertions.
2417 Remove handling of deferred priority change, and replace by setting the
2418 task priority directly, as required by AI-188.
2420 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2422 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
2423 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
2424 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
2425 system-vxworks-mips.ads, system-vxworks-alpha.ads,
2426 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
2427 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
2428 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
2429 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
2430 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
2431 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
2432 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
2433 This patch changes the largest non-binary modulus from 2**31-1 to
2435 (Compiler_System_Version): Removed, no longer used.
2436 Clean up system files by removing flags only used on a single target.
2437 Also remove obsolete flags, only used during bootstrap from system.ads
2438 (Address): Add a pragma Preelaborable_Initialization.
2440 * system-aix.ads: Ditto.
2441 (GCC_ZCX_Support): Set to true.
2442 Update priority range on AIX and map Ada priorities to target
2443 priorities appropriately for different scheduling policies.
2445 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
2447 2007-06-06 Vincent Celier <celier@adacore.com>
2449 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
2450 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
2452 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
2453 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
2454 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
2455 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2456 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
2457 MLib.Tgt, containing the default versions of the exported subprograms.
2458 For each platform, create a specific version of the body of new child
2459 package MLib.Tgt.Specific that contains only the body of subprograms
2460 that are different from the default.
2461 (Archive_Builder_Append_Options): New function.
2463 2007-06-06 Matthew Gingell <gingell@adacore.com>
2465 * s-osinte-aix.adb: Map Ada priorities to target priorities
2466 appropriately for different scheduling policies.
2468 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2470 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
2472 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
2473 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
2475 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
2477 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
2478 Noop on VMS, added for interface commonality.
2480 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
2481 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2482 Olivier Hainque <hainque@adacore.com>
2484 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
2485 renamed expression of a full renaming at toplevel.
2486 (gnat_to_gnu_entity, case object): If not defining, do not look inside
2487 the values the constant is initialized to if it is an N_Allocator.
2488 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
2489 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
2490 (make_aligning_type): Accept an extra ROOM argument for storage to be
2491 made available before the aligned field, and an extra BASE_ALIGN
2492 argument for callers to pass the alignment guaranteed to be honored for
2493 the whole aligning object. Avoid call to finish_record_type, which only
2494 interferes with the sizes we want to set.
2495 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
2496 make_aligning_type for super-aligned objects on stack.
2497 (components_to_record): Pass the adjusted size of the type when creating
2498 fields in the qualified union for the variant part.
2499 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
2500 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
2502 (maybe_pad_type): Set TYPE_USER_ALIGN.
2503 (make_aligning_type): Likewise.
2504 ALIGN argument is unsigned int.
2505 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
2506 (gnat_to_gnu_param): Likewise, for parameters.
2507 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
2508 if it is constant and stems from a function call.
2509 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
2510 of the record is specified. Adjust accordingly.
2511 (adjust_packed): New static function.
2512 (gnat_to_gnu_field): Use it to adjust the packedness setting.
2513 (components_to_record): Likewise.
2514 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
2515 side-effects if the object is deemed constant.
2516 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
2517 type instead of merely finalizing it. Tidy.
2518 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
2519 <E_Access_Type>: Likewise.
2520 (defer_debug_incomplete_list): Rename to defer_finalize_list.
2521 (defer_debug_level): Delete.
2522 (gnat_to_gnu_entity) <debug_deferred>: Likewise
2523 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
2525 <E_Record_Type>: Do not explicitly defer finalizing the type.
2526 Adjust for write_record_type_debug_info renaming.
2527 <E_Subprogram_Type>: Likewise.
2528 Finalize deferred types right after deferred incomplete types are
2530 (rest_of_type_decl_compilation): New global function.
2531 (components_to_record): Rename defer_debug parameter to do_not_finalize.
2532 (components_to_record): Propagate the packedness to the fields of the
2533 qualified union type if there is a variant part.
2534 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
2535 instead of inline code to adjust the XUT field offsets.
2536 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
2537 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
2538 and write the debug info if the type derives from a discriminated one.
2539 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
2540 <E_Array_Subtype>: Likewise.
2541 <E_String_Literal_Subtype>: Likewise.
2542 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
2543 an alignment clause.
2544 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
2545 before giving warning.
2546 (prepend_one_attribute_to): New function, helper to prepend an attribute
2547 to an attribute list.
2548 (gnat_to_gnu_entity) <E_Procedure>: Use it.
2549 (prepend_attributes): Likewise.
2550 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
2551 <E_Array_Type>: Declare the padding type for the element type, if any.
2552 <E_Array_Subtype>: Likewise.
2553 (defer_limited_with): New variable.
2554 (Gigi_Equivalent_Type): New function.
2555 (gnat_to_gnu_entity): Use it at start and use result throughout.
2556 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
2557 Gigi_Equivalent_Type, support Limited_With, allow two levels of
2558 indirection, precompute if unconstrained array to simplify logic, and
2559 use defer_limited_with to defer elaboration of some types from limited
2561 (finalize_from_with_types): New function.
2563 2007-06-06 Gary Dismukes <dismukes@adacore.com>
2564 Eric Botcazou <ebotcazou@adacore.com>
2565 Tristan Gingold <gingold@adacore.com>
2566 Olivier Hainque <hainque@adacore.com>
2568 * trans.c (Identifier_to_gnu): Change test for deferred constant by
2569 adding guard that the entity is an E_Constant before testing presence
2570 of Full_view (and remove unnecessary test that entity is not a type).
2571 For a CONST_DECL used by reference, manually retrieve
2572 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
2573 (struct language_function): Move from utils.c to here.
2574 (struct parm_attr): New structure.
2575 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
2576 (f_parm_attr_cache): New macro.
2577 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
2578 expressions for the 'First, 'Last and 'Length attributes of the
2579 unconstrained array IN parameters.
2580 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
2581 Allocate the information structure for the function earlier, as well
2582 as the language-specific part.
2583 If the parameter attributes cache has been populated, evaluate the
2584 cached expressions on entry.
2585 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
2586 N_Procedure_Call_Statement and N_Indexed_Component.
2587 (Pragma_to_gnu): Translate inspection_point to an asm statement
2588 containaing a comment and a reference to the object (either its address
2589 for BLKmode or its value).
2590 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
2591 to go to DECL_INITIAL. Together with the size constraint relaxation
2592 in create_var_decl, enlarges the set of situations in which an
2593 identifier may be used as an initializer without implying elaboration
2595 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
2596 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
2598 (maybe_stabilize_reference): Remove lvalues_only parameter.
2599 (gnat_stabilize_reference): Adjust for above change.
2600 (gnat_to_gnu): Do not set location information on the result
2601 if it is a reference.
2602 (add_cleanup): Add gnat_node parameter and set the location of the
2604 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
2605 (Exception_Handler_to_gnu_zcx): Likewise.
2606 (gigi): Remove the cgraph node if the elaboration procedure is empty.
2607 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
2608 the former right after the latter.
2609 (start_stmt_group): Make global.
2610 (end_stmt_group): Likewise.
2611 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
2613 (gnu_program_error_label_stack): Likewise.
2614 (gigi): Initialize them.
2615 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
2616 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
2618 (push_exception_label_stack): New function.
2619 (takes_address): New function.
2621 * utils.c (struct language_function): Move to trans.c from here.
2622 (unchecked_convert): Do not wrap up integer constants in
2624 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
2625 the latter for aggregate types, unexpected by later passes, and relax an
2626 arbitrary size constraint on the former.
2627 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
2628 to compare the sizes.
2629 (convert_vms_descriptor): When converting to a fat pointer type, be
2630 prepared for a S descriptor at runtime in spite of a SB specification.
2631 (shift_unc_components_for_thin_pointers): New function.
2632 (write_record_type_debug_info): For variable-sized fields, cap the
2633 alignment of the pointer to the computed alignment.
2634 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
2635 If REP_LEVEL is 2, do not compute the sizes.
2636 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
2637 (build_unc_object_type): Likewise.
2638 (declare_debug_type): New function.
2640 * ada-tree.def: USE_STMT: removed (not emitted anymore).
2642 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
2643 no statement is expandable anymore.
2644 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
2645 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
2646 when the user requested it explicitely.
2647 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
2649 (get_alias_set): Return alias set 0 for a type if
2650 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
2652 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
2653 (DECL_FUNCTION_STUB): New accessor macro.
2654 (SET_DECL_FUNCTION_STUB): New setter macro.
2656 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
2658 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
2661 2007-06-06 Jose Ruiz <ruiz@adacore.com>
2663 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
2664 Rename to Abort_Task_Interrupt to be able to keep the same interface
2665 as the rest of the targets.
2667 * s-osinte-vxworks.ads s-osinte-vxworks.adb
2668 (To_VxWorks_Priority): Remove explicit "in" mode indicator
2670 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
2673 2007-06-06 Robert Dewar <dewar@adacore.com>
2675 * a-chahan.ads: Remove obsolescent pragmas
2677 * a-chlat1.ads: Minor reformatting
2679 2007-06-06 Robert Dewar <dewar@adacore.com>
2681 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
2684 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
2687 * errout.ads (Finalize): Changed interface
2688 (Output_Messages): New procedure
2689 (Compilation_Errors): New Interface
2691 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
2692 Finalize/Output_Messages interface for Errout
2693 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
2696 2007-06-06 Thomas Quinot <quinot@adacore.com>
2697 Olivier Hainque <hainque@adacore.com>
2698 Robert Dewar <dewar@adacore.com>
2700 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
2702 (Raise_Current_Excep): Call Debug_Raise_Exception just before
2703 propagation starts, to let debuggers know about the event in a reliable
2705 (Local_Raise): Moved to System.Exceptions
2706 More convenient to have this as a separate unit
2708 * s-except.adb, s-except.ads: New files.
2710 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
2711 Debug_Unhandled_Exception in System.Exceptions where it belongs
2712 together with a couple of other debug helpers.
2713 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
2714 the former Unhandled_Exception.
2716 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
2717 (Warn_No_Exception_Propagation): New procedure
2718 (Warn_If_No_Propagation): Rewritten for new warning generation
2719 (Expand_Exception_Handlers): New warning generation
2720 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
2721 (Add_Exception_Label): Use Special_Exception_Package_Used for test
2722 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
2723 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
2724 even if restriction is set (makes life easier in Check_Returns)
2725 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
2726 checking exception identities.
2727 (Expand_Local_Exception_Handlers): Do not optimize when all others case
2728 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
2729 block for handler (used by Check_Returns)
2730 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
2731 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
2732 remove all exception handlers when optimizing local raise statements.
2733 (Find_Local_Handler): Use Get_Renamed_Entity
2734 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
2735 marked analyzed after expanding exception handlers, do not generate
2736 redundant cleanup actions, because they have been constructed already.
2738 2007-06-06 Thomas Quinot <quinot@adacore.com>
2740 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
2741 presence of this categorization pragma is mandated by the language.
2742 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
2745 2007-06-06 Vincent Celier <celier@adacore.com>
2746 Robert Dewar <dewar@adacore.com>
2748 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
2749 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
2750 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
2751 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
2752 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
2753 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
2754 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
2755 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
2756 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
2757 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
2758 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
2760 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
2761 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
2762 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
2763 Use variables of types File_Name_Type and Unit_Name_Type in error
2765 (Get_Name): Add parameter Ignore_Special, and set it reading file name
2766 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
2768 Define flags Flag217-Flag230 with associated subprograms
2769 (Flag_Word5): New record type.
2770 (Flag_Word5_Ptr): New access type.
2771 (To_Flag_Word5): New unchecked conversion.
2772 (To_Flag_Word5_Ptr): Likewise.
2773 (Flag216): New function.
2774 (Set_Flag216): New procedure.
2776 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2778 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
2781 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
2783 2007-06-06 Javier Miranda <miranda@adacore.com>
2785 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
2787 (Object_Specific_Data_Array): This is now internal to the package.
2788 (Object_Specific_Data): This is now internal to the package.
2789 (Select_Specific_Data_Element): This is now internal to the package.
2790 (Select_Specific_Data_Array): This is now internal to the package.
2791 (Select_Specific_Data): This is now internal to the package.
2792 (Offset_To_Top_Function_Ptr): This is now public.
2793 (To_Offset_To_Top_Function_Ptr): Removed.
2794 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
2795 local to subprogram Offset_To_Top.
2796 (Predefined_DT): Removed.
2797 (Typeinfo_Ptr): Removed.
2798 (OSD): This function is now internal to this package.
2799 (SSD): This function is now internal to this package.
2800 (DT): New function that displaces the pointer to the table of primitives
2801 to get access to the enclosing wrapper record.
2802 (IW_Membership): Code cleanup.
2803 (Offset_To_Top): Code cleanup.
2804 (Predefined_DT): Removed.
2805 (Register_Interface_Tag): Removed.
2806 (Set_Interface_Table): Removed.
2807 (Set_Offset_Index): Removed.
2808 (Set_Offset_To_Top): Code cleanup.
2810 (Set_Signature): Removed.
2812 (Set_Tagged_Kind): Removed.
2813 (Typeinfo_Ptr): Removed.
2815 (Displace): Add missing check on null actual.
2817 * exp_disp.ads, exp_disp.adb
2818 (Select_Expansion_Utilities): Removed.
2819 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
2820 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
2821 the interface requires a new parameter.
2822 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
2823 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
2824 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
2825 Done to remove package Select_Expansion_Utilities.
2826 (Make_DT): New implementation for statically allocated dispatch tables.
2827 (Make_Secondary_DT): Moved to the scope of Make_DT.
2828 (Register_Primitive): Code cleanup plus incoporate the use of the new
2829 function DT_Address_Attribute.
2830 (Expand_Interface_Thunk): The profile of this subprogram has been
2831 changed to return the Thunk_Id and the corresponding code.
2832 (Fill_DT_Entry): Removed. Its functionality is now provided by
2833 subprogram Register_Primitive.
2834 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
2835 subprogram Register_Primitive.
2836 (Register_Primitive): New subprogram that incorporates the previous
2837 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
2838 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
2839 was only required to call Make_DT_Access_Action, which is now removed.
2840 (Ada_Actions): Removed
2841 (Action_Is_Proc): Removed
2842 (Action_Nb_Arg): Removed
2843 Replace all the calls to Make_DT_Access_Action by direct calls to
2844 Make_Procedure_Call_Statement or Make_Function_Call.
2845 (Set_DTC_Entity_Value): New subprogram.
2846 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
2847 (Expand_Interface_Thunk): Add missing support for primitives that are
2848 functions with a controlling result (case in which there is no need
2849 to generate the thunk).
2851 * exp_atag.ads, exp_atag.adb
2852 (Build_DT): New subprogram that displaces the pointer to reference the
2853 base of the wrapper record.
2854 (Build_Typeinfo_Offset): Removed.
2855 (RTE_Tag_Node): Removed.
2856 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
2857 (Build_Get_RC_Offset): Removed.
2858 (Build_Inherit_Predefined_Prims): Removed.
2859 (Build_Inherit_TSD: Removed.
2860 (Build_New_TSD): Removed.
2861 (Build_Set_External_Tag): Removed.
2862 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
2863 (Build_Set_Prim_Op_Address): Add documentation.
2864 (Build_Set_TSD): Removed.
2866 * rtsfind.ads, rtsfind.adb
2867 (Load_Fail): If load fails and we are not in configurable run-time
2868 mode, then raise Unrecoverable_Error.
2869 (Text_IO_Kludge): Generate an error message if a run-time library is
2870 not available in a given run-time (ie. zfp run-time).
2871 (RTE_Record_Component): Add code to check that the component we search
2872 for is not found in two records in the given run-time package.
2873 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
2874 (RE_DT_Predef_Prims_Offset): New entity
2875 (RE_Static_Offset_To_Top): New entity
2876 (RE_HT_Link): New entity.
2877 (System_Address_Image): Addition of this run-time package.
2878 (RE_Address_Image): New entity.
2879 (RE_Abstract_Interface): Removed.
2880 (RE_Default_Prim_Op_Count): Removed.
2881 (RE_DT_Entry_Size): Removed.
2882 (RE_DT_Min_Prologue_Size): Removed.
2883 (RE_DT_Prologue_Size): Removed.
2884 (RE_Ifaces_Table_Ptr): Removed.
2885 (RE_Interface_Data_Ptr): Removed.
2886 (RE_Type_Specific_Data): Removed.
2887 (RE_Primary_DT): Removed.
2888 (RE_Register_Interface_Tag): Removed.
2889 (RE_Set_Offset_Index): Removed.
2890 (RE_Set_OSD): Removed.
2891 (RE_Set_SSD): Removed.
2892 (RE_Set_Signature): Removed.
2893 (RE_Set_Tagged_Kind): Removed.
2894 (RE_Address_Array): New entity.
2895 (RE_DT): New entity.
2896 (RE_Iface_Tag): New entity.
2897 (RE_Interfaces_Table): New entity.
2898 (RE_No_Dispatch_Table): New entity.
2899 (RE_NDT_Prims_Ptr): New entity.
2900 (RE_NDT_TSD): New entity.
2901 (RE_Num_Prims): New entity.
2902 (RE_Offset_To_Top_Function_Ptr): New entity.
2903 (RE_OSD_Table): New entity.
2904 (RE_OSD_Num_Prims): New entity.
2905 (RE_Predef_Prims): New entity
2906 (RE_Predef_Prims_Table_Ptr): New entity.
2907 (RE_Primary_DT): New entity.
2908 (RE_Signature): New entity.
2909 (RE_SSD): New entity.
2910 (RE_TSD): New entity.
2911 (RE_Type_Specific_Data): New entity.
2912 (RE_Tag_Kind): New entity.
2914 2007-06-06 Thomas Quinot <quinot@adacore.com>
2916 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
2917 C imported variable.
2918 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
2921 2007-06-06 Robert Dewar <dewar@adacore.com>
2923 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
2926 2007-06-06 Vincent Celier <celier@adacore.com>
2928 * a-tifiio.adb (Put, internal): For negative numbers, check that there
2929 is room for at least one digit and the minus sign.
2930 (Put.Put_Character): Never put a character outside of the range of
2933 2007-06-06 Olivier Hainque <hainque@adacore.com>
2934 Eric Botcazou <ebotcazou@adacore.com>
2936 * utils2.c (build_allocator): Provide the extra arguments to
2937 make_aligning_type for super-aligned objects allocated from the default
2938 pool. Leave enough room for a pointer before the aligning field, and
2939 store the system's allocator return value there.
2940 (build_call_alloc_dealloc): When releasing a super-aligned object,
2941 retrieve the system's allocator return value from where build_allocator
2942 has stored it, just ahead of the adjusted address we are passed.
2943 (build_call_raise): Handle properly the generation of line numbers when
2944 the node is marked No_Location.
2945 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
2946 by using DECL_UID on ties.
2947 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
2949 (build_call_raise): Handle converting exception into goto; support new
2951 (build_component_ref): Add new arg to build_call_raise.
2953 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
2955 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
2956 "." in the case of nnn.xxx when nnn terminates with an underscore.
2957 Parse the remaining "#" or ":" in the case of nnn#.xxx#
2959 2007-06-06 Robert Dewar <dewar@adacore.com>
2961 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
2963 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2964 Vincent Celier <celier@adacore.com>
2965 Robert Dewar <dewar@adacore.com>
2967 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
2969 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
2970 ((destructor)) for adafinal, even when switch -a is used.
2971 Do not issue pragma Linker_Destructor for adafinal when switch -a is
2973 (Gen_Object_Files_Options): Add formatting of Linker Options, when
2974 Output_Linker_Option_List is set. Suppress this formatting when
2975 Zero_Formatting is set.
2976 Add case for CLI_Target.
2977 (System_Restrictions_Used): New flag, used to avoid generating with of
2978 System_Restrictions and initialization of the data unless there is
2979 some use of System.Restrictions in the partition.
2980 (Check_System_Restrictions_Used): New procedure
2982 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
2983 since we only with this unit in the binder file if it is used elsewhere
2986 2007-06-06 Vincent Celier <celier@adacore.com>
2988 * bindusg.adb: Add line for @<response file>
2989 Add lines for new switches -R and -Z
2991 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
2992 hierarchy in the list of files of the closure when -R is used
2993 (Gnatbind): Accept arguments starting with '@' to indicate response
2994 files and take the arguments from the response files.
2995 If List_Closure is set, display the referenced files
2997 2007-06-06 Javier Miranda <miranda@adacore.com>
2998 Robert Dewar <dewar@adacore.com>
2999 Ed Schonberg <schonberg@adacore.com>
3001 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
3002 which the address-clause is applied to in-mode actuals (allowed by
3004 (Apply_Discriminant_Check): Do not generate a check if the type is
3005 constrained by a current instance.
3006 (Activate_Division_Check): New procedure
3007 (Activate_Overflow_Check): New procedure
3008 (Activate_Range_Check): New procedure
3009 Call these new Activate procedures instead of setting flags directly
3010 (Apply_Array_Size_Check): Removed, no longer needed.
3011 Code clean up: remove obsolete code related to GCC 2.
3012 (Get_E_Length): Protect against bomb in case scope is standard
3013 (Selected_Range_Checks): If the node to be checked is a conversion to
3014 an unconstrained array type, and the expression is a slice, use the
3015 bounds of the slice to construct the required constraint checks.
3016 Improve NOT NULL error messages
3017 (Apply_Constraint_Check): If the context is a null-excluding access
3018 type, diagnose properly the literal null.
3020 2007-06-06 Pascal Obry <obry@adacore.com>
3022 * clean.adb (Clean_Archive): Use untouched casing for the archive name
3023 and the corresponding .deps file.
3024 (Clean_Interface_Copy_Directory): Use untouched casing for the library
3025 src directory. Minor code-clean-up. Use untouched casing for files
3026 read into the library src dir.
3027 (Clean_Library_Directory): Idem.
3028 (Parse_Cmd_Line): Accept new switch -aP
3030 2007-06-06 Javier Miranda <miranda@adacore.com>
3031 Ed Schonberg <schonberg@adacore.com>
3032 Robert Dewar <dewar@adacore.com>
3033 Eric Botcazou <ebotcazou@adacore.com>
3034 Arnaud Charlet <charlet@adacore.com>
3036 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
3037 applicable to types that have the With_Type flag set. Returns the
3038 non-limited view of the type, if available, otherwise the type itself.
3039 For class-wide types, there is no direct link in the tree, so we have
3040 to retrieve the class-wide type of the non-limited view of the Etype.
3041 New attributes Static_Initialization and Static_Elaboration_Desired.
3042 Remove the pragma Thread_Body, and the associated flag
3043 Is_Thread_Body in entities, and all related code.
3044 (Suppress_Value_Tracking_On_Call): New flag
3045 E_Exception has Esize and Alignment fields
3046 (Universal_Aliasing): New function.
3047 (Set_Universal_Aliasing): New procedure.
3048 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
3049 (Check_Nested_Access): New procedure.
3050 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
3051 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
3052 (Related_Interface): New attribute. Present in dispatch table pointer
3053 components of records. Set to point to the entity of the corresponding
3055 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
3056 (Original_Access_Type): Remove, not needed.
3057 (Root_Type): Handle properly subtypes of class-wide-types.
3060 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
3061 class-wide types visible through limited-with clauses.
3062 (Try_Primitive_Operation): When examining all primitive operations of a
3063 tagged type, do not consider subprograms labeled as hidden unless they
3064 belong to a private generic type with a tagged parent.
3065 (Try_Object_Operation): Extensive rewriting, to handle properly various
3066 overloading cases, when several ancestors may have class-wide operations
3067 that are possible candidates, and when the overloaded functions return
3068 array types and have defaulted parameters so that the call may be
3069 interpreted as an indexing.
3070 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
3071 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
3072 successive actuals before analyzing the call itself.
3073 (Try_Primitive_Operation): A primitive operation is compatible with the
3074 prefix if the prefix has a synchronized type and the type of the formal
3075 is its corresponding record, as can be the case when the primitive
3076 operation is declared outside of the body of the type.
3077 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
3078 perform homonym traversal, looking for class-wide operation matches
3079 (formerly done in statements of Try_Class_Wide_Operation). Matches on
3080 access parameters are now restricted to anonymous access types.
3081 (Mark_Allocator): An allocator with a discriminant association parent is
3083 (Try_One_Prefix_Interpretation): If the type of the object is
3084 incomplete, as can be happen when it is a limited view obtained through
3085 a limited_with_clause, the selected component is not part of a prefixed
3087 (Complete_Object_Operation): Diagnose properly an object that is not
3088 aliased when the corresponding controlling formal is an access
3090 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
3091 ambiguous calls in prefixed notation, where two primitives differ only
3092 in that the controlling argument of one is an access parameter.
3094 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
3095 whether a function that returns an unconstrained type can be inlined.
3096 (Process_Formals): Diagnose properly the illegal use of an incomplete
3097 type in the profile of an access_to_subprogram declaration.
3098 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
3099 operations are attached to the corresponding record.
3100 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
3101 When processing a primitive of a concurrent type which implements an
3102 interface change the type of all controlling formals to that of the
3103 corresponding record type.
3104 (Check_Synchronized_Overriding): Relax the conditional logic when trying
3105 to determine the tagged type to which a primitive belongs.
3106 (Check_Conventions): Capture condition to ignore a primitive operation
3107 (which is shared between the loop in Check_Conventions and the one in
3108 Check_Convention) in a new local function Skip_Check.
3109 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
3110 confusion with Check_Conventions' own Prim_Op local variable.
3111 (Create_Extra_Formals): Test for a tagged result type rather than a
3112 controlling result when determining whether to add a BIP_Alloc_Form
3113 formal and a BIP_Final_List formal to the function.
3114 (Check_Conformance); For parameters that are anonymous access types,
3115 subtype conformance requires that the not null and the constant
3116 indicators must match
3117 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
3118 to retrieve the appropriate type when processing a concurrent type
3119 declared within a generic. Minor comment reformatting. Change invocation
3120 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
3122 (Analyze_Subprogram_Body): If the return type of a function is an
3123 anonymous access to the limited view of a class-wide type, and the
3124 non-limited view of the type is available, update the type of the
3125 function so that code can be generated.
3126 (Process_Formals): In case of access-subtype itype whose designated
3127 type is also an itype (situation that happens now with access to
3128 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
3129 attribute to avoid backend problems.
3130 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
3131 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
3132 anonymous types' designated types are same before testing
3133 Subtypes_Statically_Match.
3134 (Create_Extra_Formals): Test for a named access parameter that is a
3135 controlling formal as an additional condition for adding an
3136 accessibility level formal. This can occur in the subp type created for
3137 dispatching calls in Expand_Dispatching_Call, and allows calling
3138 Create_Extra_Formals from that procedure rather than special-casing the
3139 extra formals there.
3140 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
3141 when the function has a controlling result.
3142 (Check_Returns): Add much more knowledge of the optimization of local
3143 raise statements to gotos, to retain proper warnings in this case.
3144 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
3145 nodes when looking for last statement.
3147 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
3148 class-wide types visible through limited with clauses.
3149 (Add_One_Interp): If the operands are anonymous access types, the
3150 predefined operator on universal_access is immediately visibles
3151 (Find_Unique_Type): Handle anonymous access to subprogram types just as
3152 other anonymous access types.
3153 (Disambiguate): Take into account CIL convention.
3154 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
3156 2007-06-06 Robert Dewar <dewar@adacore.com>
3158 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
3159 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
3160 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
3161 Fix lower bound of tables.
3164 * nlists.adb: Ditto.
3165 (Prev_Node, Next_Node): Change index type to Int so that it properly
3166 covers the range First_Node_Id - 1 up.
3168 2007-06-06 Javier Miranda <miranda@adacore.com>
3169 Ed Schonberg <schonberg@adacore.com>
3170 Bob Duff <duff@adacore.com>
3171 Hristian Kirtchev <kirtchev@adacore.com>
3173 * exp_aggr.ads, exp_aggr.adb:
3174 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
3175 in extension aggregates.
3176 (Flatten): Other conditions being met, an aggregate is static if the
3177 low bound given by component associations is different from the low
3178 bound of the base index type.
3179 (Packed_Array_Aggregate_Handled): If the component type is itself a
3180 packed array or record, the front-end must expand into assignments.
3181 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
3182 Init_Pr, instead of Ancestor_Is_Expression.
3183 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
3184 coextension chain root, either generate a list controller or use the
3185 already existing one.
3186 (Static_Array_Aggregate): New procedure to construct a positional
3187 aggregate that can be handled by the backend, when all bounds and
3188 components are compile-time known constants.
3189 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
3190 types covering interface types into assignments.
3191 (Replace_Type): move to Build_Record_Aggr_Code.
3192 (Expand_Record_Aggr_Code): if the target of the aggregate is an
3193 interface type, convert to the definite type of the aggregate itself,
3194 so that needed components are visible.
3195 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
3196 components and the context is an extended return statement do not
3197 create a transient block for it, to prevent premature finalization
3198 before the return is executed.
3199 (Gen_Assign): Do not generate a call to deep adjust routine if the
3200 component type is itself an array of controlled (sub)-components
3201 initialized with an inner aggregate.
3202 (Component_Check): New name for Static_Check. This name is now more
3203 appropriate, and documentation is added which was missing.
3204 (Component_Check): Add test for bit aligned component value
3205 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
3206 Tagged_Comps, name is more appropriate given added function below.
3207 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
3209 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
3210 Javier Miranda <miranda@adacore.com>
3211 Robert Dewar <dewar@adacore.com>
3213 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
3214 Terminated: Add unchecked type conversion from System.Address to
3215 System.Tasking.Task_Id when calling the predefined primitive
3217 Disable new Ada 05 accessibility check for JVM.NET targets, which
3218 cannot be implemented in a practical way.
3219 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
3220 the sources always references the tag of the actual object. Therefore,
3221 if 'Tag is applied in the sources to class-wide interface objects we
3222 generate code that displaces "this" to reference the base of the object.
3223 (Expand_N_Attribute_Reference, case Size): Return specified size if
3225 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
3226 has code that displaces the pointer of the object to manage interface
3227 types. However this code must not be executed when the prefix is a
3228 subprogram. This bug caused the wrong expansion of the internally
3229 generated assignment that fills the dispatch table when the primitive
3230 is a function returning a class-wide interface type.
3231 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
3232 Set_Attribute_Name for Name_Unaligned_Valid.
3234 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3235 Gary Dismukes <dismukes@adacore.com>
3237 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
3238 If the initialization is the equivalent aggregate of the initialization
3239 procedure of the type, do not remove it.
3240 (Expand_N_Attribute_Definition_Clause): Exclude access variables
3241 initialized to null from having their expression reset to empty and
3242 note this exception in the comment.
3244 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
3245 Robert Dewar <dewar@adacore.com>
3246 Ed Schonberg <schonberg@adacore.com>
3247 Gary Dismukes <dismukes@adacore.com>
3249 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
3250 Add "with" and "use" clauses for Sem_Attr.
3251 (Expand_Current_Value): Do not replace occurences of attribute
3252 references where the prefix must be a simple name.
3254 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
3255 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
3256 Attribute_Requires_Simple_Name_Prefix.
3257 (Name_Modifies_Prefix): Body of new function.
3258 (Requires_Simple_Name_Prefix): Body of new function.
3259 (Resolve_Attribute, case Access): Improve error message for case of
3260 mismatched conventions.
3261 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
3263 (Analyze_Attribute, case 'Access): If the type of the prefix is a
3264 constrained subtype for a nominal unconstrained type, use its base type
3265 to check for conformance with the context.
3266 (Resolve_Attribute): Remove test of the access type being associated
3267 with a return statement from condition for performing accessibility
3268 checks on access attributes, since this case is now captured by
3269 Is_Local_Anonymous_Access.
3270 (Analyze_Access_Attribute): Set Address_Taken on entity
3271 (Analyze_Attribute, case Address): Set Address_Taken on entity
3272 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
3273 validating an access attribute whose prefix is a current instance.
3274 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
3275 applied to dispatching operations, if freezing is required then we set
3276 the attribute Has_Delayed_Freeze in the prefix's entity.
3277 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
3278 current scope if access of local subprogram taken
3279 (Analyze_Access_Attribute): Check legality of self-reference even if the
3280 expression comes from source, as when a single component association in
3281 an aggregate has a box association.
3282 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
3283 the prefix if it is a protected operation and the attribute is
3284 Unrestricted_Access.
3285 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
3286 reference to the base type of the context, to force a constraint check
3287 when the context is an access subtype with an explicit constraint.
3288 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
3289 node is rewritten as an interface conversion. leave unanalyzed after
3290 resolution, to ensure that type checking against the context will take
3293 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3294 Javier Miranda <miranda@adacore.com>
3295 Robert Dewar <dewar@adacore.com>
3297 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
3298 wrapper when the full view of the controlling type of an inherited
3299 function that dispatches on result implements interfaces.
3300 (Expand_N_Object_Declaration): In cases where the type of the
3301 declaration is anonymous access, create finalization list for it.
3302 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
3303 if the object has no explicit initialization, to match description of
3304 functionality of pragam Persistent_BSS.
3305 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
3306 new function to build static aggregates, to replace initialization call
3307 when static initialization is desired.
3308 (Freeze_Type): Generate a list controller for an access type whenever
3309 its designated type has controlled anonymous access discriminants.
3310 (Build_Equivalent_Aggregate): New procedure to compute a static
3311 aggregate to be used as default initialization for composite types,
3312 instead of a generating a call to the initialization procedure for the
3314 (Build_Initialization_Call): When available, replace a call to the
3315 initialization procedure with a copy of the equivalent static aggregate
3317 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
3318 declarations for objects of a class-wide interface type, rather than
3319 just identifiers, to prevent visibility problems.
3320 (Expand_N_Object_Declaration): When expanding the declaration for an
3321 object of a class-wide interface type, preserve the homonym chain of
3322 the original entity before exchanging it with that of the generated
3323 renaming declaration.
3324 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
3325 active, because there is no way to handle the exception.
3326 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
3327 to do a minimum decoration of the Access_Disp_Table list.
3328 (Expand_Record_Controller): Avoid the addition of the controller between
3329 the component containing the tag of a secondary dispatch table and its
3330 adjacent component that stores the offset to the base of the object.
3331 This latter component is only generated when the parent type has
3332 discriminants ---documented in Add_Interface_Tag_Components).
3333 (Apply_Array_Size_Check): Removed, no longer needed.
3334 (Expand_N_Full_Type_Declaration): If the type has anonymous access
3335 components, create a Master_Entity for it only if it contains tasks.
3336 (Build_Init_Procedure): Suppress the tag assignment compiling under
3338 (Freeze_Record_Type): Remove code associated with creation of dispatch
3340 (Init_Secondary_Tags): Update type of actuals when generating calls to
3341 Ada.Tags.Set_Offset_To_Top
3342 (Stream_Operation_OK): Disable use of streams compiling under no
3344 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
3345 if Has_Init_Expression set.
3346 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
3347 Register_Primitive, which provides the same functionality.
3348 (Requires_Init_Proc): Return false in case of interface types.
3349 (Add_Secondary_Tables): Use the new attribute Related_Interface to
3351 (Predefined_Primitive_Freeze): Do not assume that an internal entity
3352 is always associated with a predefined primitive because the internal
3353 entities associated with interface types are not predefined primitives.
3354 Therefore, the call to Is_Internal is replaced by a call to the
3355 function Is_Predefined_Dispatching_Operation.
3356 (Make_Eq_If): When generating the list of comparisons for the
3357 components of a given variant, omit the controller component that is
3358 present if the variant has controlled components.
3360 2007-06-06 Javier Miranda <miranda@adacore.com>
3361 Hristian Kirtchev <kirtchev@adacore.com>
3362 Bob Duff <duff@adacore.com>
3364 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
3365 handle the creation of finalization lists and calls for nested
3366 coextensions when the root of the chains is part of a return statement.
3367 (Inside_A_Return_Statement): New function inside Complete_Coextension_
3369 (Expand_Record_Equality): Skip components that are interface types.
3370 (Displace_Allocator_Pointer): Add missing support for interface subtypes
3371 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
3372 with Rewrite_Coextension. Change the condition for detecting coextension
3374 (Is_Local_Access_Discriminant): Removed.
3375 (Rewrite_Coextension): New routine which rewrites a static coextension
3376 as a temporary and uses its unrestricted access in the construction of
3378 (Complete_Coextension_Finalization): New routine. Generate finalization
3379 attachment calls to all delayed coextensions.
3380 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
3381 the allocator is not a coextension itself and has delayed coextensions.
3382 If the current allocator is controlled, but also a coextension, delay
3383 the generation of the finalization attachment call.
3384 Rename local variable "Node" to "Nod" in order to avoid confusion with
3386 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
3387 limited types that are not inherently limited. Such an allocator is
3388 illegal, but is generated by the expander for a return statement, to
3389 copy the result onto the secondary stack. This is the only case where a
3390 limited object can be copied. Generate code to displace the pointer
3391 to the object if the qualified expression is a class-wide interface
3392 object. Such displacement was missing and hence the copy of the object
3394 (Apply_Accessibility_Check): Handle allocated objects initialized in
3396 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
3397 and Expand_Allocator_Expression. Allocating class-wide interface objects
3398 this routine displaces the pointer to the allocated object to reference
3399 the component referencing the corresponding secondary dispatch table.
3400 Expand_Allocator_Expression): Add missing support to allocate class-wide
3401 interface objects initialized with a qualified expression.
3402 (Get_Allocator_Final_List): Test for an anonymous access type that is a
3403 function result type, and use the finalization list associated with the
3404 function scope in that case (such an anonymous type should not be
3405 treated like an access parameter's type).
3407 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3408 Gary Dismukes <dismukes@adacore.com>
3409 Javier Miranda <miranda@adacore.com>
3411 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
3412 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
3413 required exception handler.
3414 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
3415 properly the case of a function whose return type is a limited
3416 class-wide interface type. Modify the code of the accessibility
3417 check to handle class-wide interface objects. In this case we need to
3418 displace "this" to reference the primary dispatch table to get access
3419 to the TSD of the object (to evaluate its accessibility level).
3420 (Expand_N_Extended_Return_Statement): Test for a tagged result type
3421 rather than a controlling result as one of the conditions for
3422 generating tests of the implicit BIP_Alloc_Form formal. The
3423 initialization assignment is also handled according to whether the
3424 result is tagged instead of controlling.
3425 In the case where the init assignment is inserted in the "then" part of
3426 the allocation conditional, rewrite the target to be a dereference of
3427 the implicit BIP_Object_Access formal.
3428 If the returned value is unconstrained and created on the secondary
3429 stack, mark the enclosing block and function so that the secondary
3430 stack is not reclaimed on return.
3431 Treat returns from functions with controlling results similarly to
3432 returns from functions with unconstrained result subtypes.
3433 If the object returned is unconstrained, and an allocator must be
3434 created for it, analyze the allocator once the block for the extended
3435 return is installed, to ensure that finalizable components
3436 of the expression use the proper finalization list. Guard the call to
3437 Move_Final_List with a check that there is something to finalize.
3438 (Make_Tag_Ctrl_Assignment): Use "old" handling
3439 of controlled type assignment for virtual machines, since new code uses
3440 unsupported features (such as direct access to bytes in memory).
3442 2007-06-06 Gary Dismukes <dismukes@adacore.com>
3443 Ed Schonberg <schonberg@adacore.com>
3445 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
3446 accessibility actual, check for the case of an aliased object that has
3447 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
3448 we fall into processing for the attribute rather than the name of the
3450 (Expand_Inline_Call): If an actual is a literal, and the corresponding
3451 formal has its address taken in the body, create a temporary to capture
3452 value. If the return type is a limited interface, do not treat the
3453 return value as Controlled.
3454 (Is_In_Place_Function): If the return type is a limited interface,
3455 treat as returning in place. The actual returned object may not always
3456 be limited, but the caller has to assume that it is returned in place.
3457 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
3458 context of an allocator, use the correct finalization chain (that is,
3459 the chain belonging to the access type, rather than the chain belonging
3460 to the current scope).
3461 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
3462 result type rather than a controlling result as a precondition for
3463 adding an allocation form actual to a build-in-place call.
3464 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
3465 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
3466 primitive in the dispatch tables. This work is now done by Make_DT when
3468 (Register_Predefined_DT_Entry): Removed.
3469 (Add_Return): If end label is not present, use sloc of last statement
3470 for generated return statement in procedure, for better gdb behavior
3472 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
3473 object address nodes to ensure proper processing by routines like
3475 (Expand_Call): Fix generation of validity check for parameter
3476 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
3477 the allocation form parameter if the result subtype is constrained,
3478 except when the function has a controlling result.
3479 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
3480 rather than Is_Controlled and Has_Controlled_Component, since we want to
3481 include class-wide result types in this treatment. Also test for a
3482 controlling result, since that also requires passing a finalization
3484 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
3485 even when the result subtype is constrained, to handle calls involving
3486 controlling results.
3487 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
3488 is now called even when the result subtype is constrained, to handle
3489 calls involving controlling results.
3490 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
3491 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
3492 now performs the test).
3493 (Make_Build_In_Place_Call_In_Object_Declaration):
3494 Add_Alloc_Form_Actual_* is now called even when the result subtype is
3495 constrained, to handle calls involving controlling results.
3496 (Add_Return): Accomodate rewritten pattern from local raise to goto
3497 transformation, so that we still recognize an transfer statement
3498 and do the right thing here in that case.
3499 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
3500 and end of subprogram code.
3501 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
3502 support for primitives that are functions (without formals) with a
3504 (Inherited_From_Formal): If the actual subtype has not generic parent
3505 type, it is not an actual for a formal derived type, and there is no
3506 operation to inherit from the formal.
3508 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3509 Thomas Quinot <quinot@adacore.com>
3511 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
3512 inserted cleanup code appropriately for GDB use.
3513 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
3514 exception handler for Deep_Adjust or Deep_Finalize.
3515 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
3516 Raise_From_Controlled_Operation is available, use a call to that
3517 subprogram instead of a plain "raise Program_Error" node to raise
3518 Program_Error if an exception is propagated from an Adjust or Finalize
3520 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
3521 appears in the optional statement list of a triggering alternative, the
3522 scope actions can be inserted directly there, and not in the list that
3523 includes the asynchronous select itself.
3525 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3526 Robert Dewar <dewar@adacore.com>
3527 Hristian Kirtchev <kirtchev@adacore.com>
3529 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
3530 generated exception handler appropriately when debugging generated code.
3531 Deal properly with No_Exception_Propagation restriction mode.
3532 (Expand_N_Abort_Statement): Add an unchecked type conversion from
3533 System.Address to System.Tasking.Task_Id when processing the result of
3534 the predefined primitive _disp_get_task_id.
3535 (Expand_N_Asynchronous_Select): Clarify comment.
3536 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
3537 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
3538 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
3539 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
3540 privals and for generated call to Complete_Entry_Body, for better gdb
3542 (Copy_Result_Type): Utility to construct a parameter and result profile
3543 for protected functions whose return type is an anonymous access to
3545 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
3547 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
3548 point when the local-raise-to-goto transformation has taken place.
3550 2007-06-06 Javier Miranda <miranda@adacore.com>
3551 Nicolas Setton <setton@adacore.com>
3553 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
3554 functionality when the backend is generating code.
3555 Otherwise any serious error
3556 reported by the backend calling the frontend routine Error_Msg
3557 changes the Compilation_Mode to Check_Semantics, disables the
3558 functionality of this routine and causes the generation of
3559 spureous additional errors.
3561 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
3562 debugging information now generated by the compiler for fat-pointer
3564 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
3566 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
3568 2007-06-06 Thomas Quinot <quinot@adacore.com>
3570 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
3571 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
3572 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
3573 For a remote call to a function with a classwide return type, apply an
3574 E.4(18) check to the returned value.
3575 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
3576 stream attributes of the designated type of an RACW, as they are not
3577 dispatching primitive operations.
3579 2007-06-06 Geert Bosch <bosch@adacore.com>
3581 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
3583 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
3585 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
3586 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
3588 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
3590 2007-06-06 Javier Miranda <miranda@adacore.com>
3592 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
3593 attribute compiling package Ada.Tags under No_Run_Time_Mode.
3595 2007-06-06 Javier Miranda <miranda@adacore.com>
3597 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
3598 deallocation of class-wide interface objects.
3599 (Expand_Dispatching_Constructor_Call): Take into account that if the
3600 result of the dispatching constructor is an interface type, the
3601 function returns a class-wide interface type; otherwise the returned
3602 object would be actual. The frontend previously accepted returning
3603 interface types because Expand_Interface_Actuals silently performed
3604 the management of the returned type "as if" it were a class-wide
3606 (Expand_Dispatching_Constructor_Call): Replace call to
3607 Make_DT_Access_Action by direct call to Make_Function_Call.
3609 2007-06-06 Robert Dewar <dewar@adacore.com>
3610 Ed Schonberg <schonberg@adacore.com>
3612 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
3613 compute masking constant, since we now set Esize properly to the
3615 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
3616 to match the alignment.
3617 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
3618 packed arrays of 8 bits or less.
3620 * freeze.adb (Freeze_Entity): When freezing the formals of a
3621 subprogram, freeze the designated type of a parameter of an access type
3622 only if it is an access parameter.
3623 Increase size of C convention enumeration object
3624 (Freeze_Entity, array type case): Make sure Esize value is properly
3625 adjusted for the alignment if it is known.
3626 (Freeze_Entity, array type case): When checking bit packed arrays for
3627 the size being incorrect, check RM_Size, not Esize.
3628 (Freeze_Record_Type): Check for bad discriminated record convention
3629 (In_Exp_Body): Return true if the body is generated for a subprogram
3630 renaming, either an attribute renaming or a renaming as body.
3631 (Check_Itype): If the designated type of an anonymous access component
3632 is a non-protected subprogram type, indicate that it is frozen, to
3633 prevent out-of-scope freeze node at some subsequent call.
3634 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
3635 only if the subprogram is neither imported nor exported, as well as the
3636 NCA descriptor class if the subprogram is exported.
3638 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3639 Arnaud Charlet <charlet@adacore.com>
3640 Robert Dewar <dewar@adacore.com>
3641 Gary Dismukes <dismukes@adacore.com>
3643 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
3644 default initialization on an imported object, when there is no
3645 initialization call generated for it.
3646 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
3649 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
3650 Static_Elaboration_Desired.
3651 Remove pragma Thread_Body.
3652 Implement a new pragma No_Body
3653 Removes the Explicit_Overriding pragma
3654 Remove Optional_Overriding pragma
3655 (Prag): Deal with Universal_Aliasing.
3656 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
3657 Pragma_CIL_Constructor): New names.
3659 * sem_cat.adb (Validate_Object_Declaration): An initialization that
3660 uses the equivalent aggregate of a type must be treated as an implicit
3662 (Get_Categorization): Check a unit for pragma Preelaborate only if it
3663 has none of the other categories.
3664 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
3665 to apply Import to an object renaming declaration.
3667 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
3668 from a C++ class should be declared as limited and that it will be
3669 considererd limited.
3670 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
3671 should be declared as limited and that it will be considererd limited.
3672 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
3673 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
3674 (Analyze_Pragma): Deal with Universal_Aliasing.
3675 (Sig_Flags): Likewise.
3676 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
3677 (Overflow_Checks_Unsuppressed): New flag.
3678 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
3679 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
3680 case of JVM or .NET targets, and compiling user code.
3681 Add debugging convenience routine rv
3683 2007-06-06 Robert Dewar <dewar@adacore.com>
3685 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
3687 (Build_Elementary_Input_Call): For floating-point use right type in the
3688 absence of strange size or stream size clauses.
3689 (Build_Elementary_Write_Call): Same fix
3690 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
3691 set to value that does not match base type size.
3693 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3695 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
3696 object of a limited type can be initialized with a call to a function
3697 that returns in place. If the limited type has unknown discriminants,
3698 and the underlying type is a constrained composite type, build an actual
3699 subtype from the function call, as is done for private types.
3700 (Side_Effect_Free): An expression that is the renaming of an object or
3701 whose prefix is the renaming of a object, is not side-effect free
3702 because it may be assigned through the renaming and its value must be
3703 captured in a temporary.
3704 (Has_Controlled_Coextensions): New routine.
3705 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
3706 as is done for other limited types.
3707 (Non_Limited_Designated_Type): new predicate.
3708 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
3710 Remove all handling of with_type clauses.
3712 * par-ch10.adb: Remove all handling of with_type clauses.
3714 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
3715 checksum if the main source could not be parsed.
3716 (Loat_Unit): When processing a child unit, determine properly whether
3717 the parent unit is a renaming when the parent is itself a child unit.
3718 Remove handling of with_type clauses.
3720 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
3721 (Set_Is_Static_Coextension): New procedure.
3722 (Has_Local_Raise): New function
3723 (Set_Has_Local_Raise): New procedure
3724 (Renaming_Exception): New field
3725 (Has_Init_Expression): New flag
3726 (Delay_Finalize_Attach): Remove because flag is obsolete.
3727 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
3728 Remove all handling of with_type clauses.
3729 (Exception_Junk): Can now be set in N_Block_Statement
3731 2007-06-06 Vincent Celier <celier@adacore.com>
3732 Robert Dewar <dewar@adacore.com>
3734 * frontend.adb (Frontend): Return immediately if the main source could
3735 not be parsed, because of preprocessing errors.
3737 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
3738 (Gnat1drv): Exit with errors if the main source could not be parsed,
3739 because of preprocessing errors.
3740 (Check_Rep_Info): New procedure
3742 2007-06-06 Robert Dewar <dewar@adacore.com>
3744 * g-hesorg.ads, g-heasor.ads,
3745 g-busorg.ads, g-bubsor.ads: Update documentation
3746 GNAT.Heap/Bubble_Sort_G is now pure
3748 2007-06-06 Robert Dewar <dewar@adacore.com>
3750 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
3752 2007-06-06 Robert Dewar <dewar@adacore.com>
3753 Ed Schonberg <schonberg@adacore.com>
3755 * g-comlin.ads, g-comlin.adb:
3756 Add new warning for renaming of function return objects
3758 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
3759 (Tree_Read): Use size of object instead of type'object_size, since the
3760 latter is incorrect for packed array types.
3761 (Tree_Write): Same fix
3763 * opt.ads: Add new warning for renaming of function return objects
3764 (Generating_Code): New boolean variable used to indicate that the
3765 frontend as finished its work and has called the backend to process
3766 the tree and generate the object file.
3767 (GCC_Version): Is now private
3768 (Static_Dispatch_Tables): New constant declaration.
3769 (Overflow_Checks_Unsuppressed): New flag.
3770 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
3771 (List_Closure): New flag for gnatbind (-R)
3772 Zero_Formatting: New flag for gnatbind (-Z)
3773 (Special_Exception_Package_Used): New flag.
3774 (Warn_On_Unrepped_Components): New flag.
3776 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
3777 unit is a compilation unit, rather than relying on its scope, so that
3778 Standard can be renamed.
3779 (Analyze_Object_Renaming): Add new warning for renaming of function
3781 Also reject attempt to rename function return object in Ada 83 mode.
3782 (Attribute_Renaming): In case of tagged types, add the body of the
3783 generated function to the freezing actions of the type.
3784 (Find_Type): A protected type is visible right after the reserved word
3785 "is" is encountered in its type declaration. Set the entity and type
3786 rather than emitting an error message.
3787 (New_Scope): Properly propagate Discard_Names to inner scopes
3788 (Check_Nested_Access): New procedure.
3789 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
3790 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
3792 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
3793 Add new warning for renaming of function return objects
3794 (Check_References): Suppress warnings for objects whose type or
3795 base type has Warnings suppressed.
3796 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
3797 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
3799 2007-06-06 Vincent Celier <celier@adacore.com>
3800 Emmanuel Briot <briot@adacore.com>
3801 Olivier Hainque <hainque@adacore.com>
3803 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
3804 absolute value of Header.Block_Size when displaying the freed physical
3806 (Allocate): Compute Storage_Address using Integer_Address, not
3807 Storage_Offset, because the range of Storage_Offset may not be large
3809 (Configure): New parameter Low_Level_Traces
3810 (Allocate, Deallocation, Free_Physically): Added low-level traces
3811 (Configure): new parameter Errors_To_Stdout.
3812 (Output_File): new subprogram
3813 (Deallocate, Dereference): Send error messages to the proper stream
3814 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
3815 documented. Previous code would send it to the current output file
3816 defined in GNAT.IO, which might not be stdout
3817 (Is_Valid): Adjust comment to mention that a positive reply means that
3818 Header_Of may be used to retrieve the allocation header associated with
3819 the subprogram Storage address argument. Return False early if this
3820 address argument is misaligned.
3822 2007-06-06 Vincent Celier <celier@adacore.com>
3824 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
3826 (ASIS_Main): New global variable
3827 (Get_Closure): New procedure
3828 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
3829 check, metric or pretty. Call Get_Closure in this case.
3830 (Check_Files): For GNAT LIST, check all sources of all projects when
3831 All_Projects is True.
3832 (GNATCmd): Accept -U for GNAT LIST
3834 2007-06-06 Vincent Celier <celier@adacore.com>
3836 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
3838 Correct error message when invocation of the linker fails
3839 Add explicit size clause for the C imported variables
3840 Object_List_File_Supported and Using_GNU_Linker to emphasize that
3841 we expect char size.
3842 Read target parameters earlier, since this is needed to set
3843 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
3846 2007-06-06 Vincent Celier <celier@adacore.com>
3849 Add 3 spaces before the default project directory when displaying
3850 the project search path.
3851 Add new command line switch '-l' to display license information.
3853 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
3855 * gmem.c: Add support for timestamps on memory operations.
3857 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
3858 operations (not used currently, just foundation for future
3859 enhancements). Add possibility to perform full dump of gmem.out file.
3860 (Print_Back_Traces): Declare accesses to root arrays constants since
3861 they aren't modified.
3862 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
3864 2007-06-06 Vincent Celier <celier@adacore.com>
3866 * gnatsym.adb: Update Copyright notice
3867 (Parse_Cmd_Line): Accept new switch -D
3868 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
3871 * prj.ads (Policy): New policy Direct
3872 (Yes_No_Unknown): New enumeration type
3873 (Project_Data): New component Libgnarl_Needed
3875 * prj-nmsc.adb (Check_For_Source): When recording a source file make
3876 use the untouched pathname casing.
3877 (Get_Directories): Ensure that the Display_Exec_Directory is using the
3878 proper casing on non case-sensitive platforms like Windows.
3879 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
3880 on all platforms, as it is not possible to know which one is allowed
3881 before processing the project files.
3882 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
3883 specified when symbol policy is Direct. Check that when there is a
3884 symbol file defined (either by default or with attribute
3885 Library_Symbol_File) it is not the same as the reference symbol file.
3886 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
3887 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
3889 (Record_Ada_Source): Record a source that has been locally removed in an
3892 * symbols.ads (Policy): New policy Direct
3894 * symbols-vms.adb (Initialize): Take new policy Direct in case
3897 2007-06-06 Vincent Celier <celier@adacore.com>
3899 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
3900 Correct obvious bug (return Dir; instead of return Directory;).
3901 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
3903 2007-06-06 Thomas Quinot <quinot@adacore.com>
3905 * g-pehage.adb (Produce): Open output files in Binary mode, so that
3906 they have UNIX line endings (LF only) even on Windows, and thus pass
3907 all GNAT style checks.
3909 2007-06-06 Emmanuel Briot <briot@adacore.com>
3911 * g-regpat.adb (Quote): Fix improper quoting of '.'
3913 2007-06-06 Thomas Quinot <quinot@adacore.com>
3915 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
3916 default, set False on a per-runtime basis.
3917 (Need_Netdb_Buffer): New constant.
3919 * g-socket.ads, g-socket.adb: Import new package
3920 GNAT.Sockets.Thin.Task_Safe_NetDB.
3921 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
3922 binding to obtain proper message.
3923 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
3924 Replace various occurrences of Arry (Arry'First)'Address with the
3925 equivalent Arry'Address (GNAT always follows implementation advice from
3927 (Get_Host_By_Address, Get_Host_By_Name,
3928 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
3929 instead, rely on platform-specific task safe netdb operations provided
3932 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
3933 parameter Process_Blocking_IO.
3934 (Host_Error_Messages): Add stub body.
3935 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
3936 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
3937 Safe_Getservbyport): Move functions into new child package
3939 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
3940 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
3941 (In_Addr): Add alignment clause.
3943 2007-06-06 Robert Dewar <dewar@adacore.com>
3945 * g-trasym.ads, g-traceb.ads: Update list of supported targets
3946 Add note about symbolic traceback
3948 2007-06-06 Pascal Obry <obry@adacore.com>
3950 * hostparm.ads (Normalized_CWD): Use the host directory separator
3951 instead of the hardcoded forward slash which is not the proper
3952 character on Windows for example.
3955 2007-06-06 Vincent Celier <celier@adacore.com>
3956 Arnaud Charlet <charlet@adacore.com>
3958 * a-clrefi.adb, a-clrefi.ads: New files
3960 * impunit.adb: Add s-os_lib in the list of user visible units.
3961 (Non_Imp_File_Names_95): Add a-clrefi to this list
3962 Remove obsolete run-time entries.
3963 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
3964 "a-exetim" -- Ada.Execution_Time
3965 "a-extiti" -- Ada.Execution_Time.Timers
3967 * mlib-prj.ads, mlib-prj.adb
3968 (Build_Library): Use untouched object dir and library dir. At the
3969 same time makes sure that the checks are done using the canonical
3970 form. Removes hard-coded directory separator and use the proper host
3972 (Process_Project): Do not look in object directory to check if libgnarl
3973 is needed for a library, if there is no object directory.
3974 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
3976 (Build_Library): When invoking gnatbind, use a response file if the
3977 total size of the arguments is too large.
3979 * Makefile.rtl: (g-sttsne): New object file.
3980 Add entry for a-clrefi, s-utf_32, System.Exceptions
3982 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
3983 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
3984 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
3985 Change g-string to s-string, g-os_lib to s-os_lib
3986 Change all g-utf_32 references to s-utf_32
3988 2007-06-06 Tristan Gingold <gingold@adacore.com>
3989 Olivier Hainque <hainque@adacore.com>
3991 * init.c: Do not adjust IP of an imported VMS exception of ia64.
3992 LIB$STOP is called to raise an exception and the IP of the exception
3993 is the instruction right after the call.
3994 (__gnat_adjust_context_for_raise, AIX): Implement.
3995 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
3996 adjust_context_for_raise before Raise_From_Signal_Hanler.
3997 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
3998 siginfo is passed to the handler, necessary to let the zcx propagation
3999 engine unwind past it.
4001 2007-06-06 Olivier Hainque <hainque@adacore.com>
4003 * initialize.c (__gnat_initialize for vxworks): Update documentation
4004 on the ZCX support, using different sets of crtstuff objects than with
4007 2007-06-06 Robert Dewar <dewar@adacore.com>
4009 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
4011 (Layout_Type): Fix recomputation of size from alignment.
4013 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4014 Javier Miranda <miranda@adacore.com>
4016 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
4017 association in an instance.
4018 (Copy_Generic_Node): If the node is a string literal, no need to copy
4020 (Is_Generic_Formal): For a formal subprogram, the declaration is the
4021 grandparent of the entity.
4022 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
4023 to simplify handling of formal interfaces that derive from other formal
4025 (Instantiate_Subprogram_Body): The defining unit name of the body of
4026 the instance should be a defining identifier.
4027 (Install_Formal_Packages): make global to the package, for use in
4028 instantiations of child units.
4029 (Analyze_Package_Instantiation): Do not attempt to set information on an
4030 enclosing master of an entry when expansion is disabled.
4031 (Instantiate_Type): If the actual is a tagged synchronized type and the
4032 generic ancestor is an interface, create a generic actual for the
4033 corresponding record.
4034 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
4035 declaration, to ensure that the interface list is processed correctly.
4036 (Inline_Instance_Body): If enclosing scope is an instance body, remove
4037 its entities from visibiility as well.
4038 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
4039 given with a named association, analyze the expression only, not the
4040 discriminant association itself.
4041 (Reset_Entity): If the analysis of a selected component is transformed
4042 into an expanded name in the prefix of a call with parameters, do not
4043 transform the original node into an expanded name, to prevent visibility
4044 errors in the case of nested generics.
4045 (Check_Private_View): For an array type, check whether the index types
4046 may need exchanging.
4048 2007-06-06 Arnaud Charlet <charlet@adacore.com>
4049 Vincent Celier <celier@adacore.com>
4051 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
4052 since both are separated.
4053 Add support for imported CIL packages.
4054 Add further special handling of "value_type" for CIL.
4055 Add special handling of pragma Import for CIL.
4057 * make.ads, make.adb: When switch -eS is used, direct all outputs to
4058 standard output instead of standard error, except errors.
4059 (Absolute_Path): Use untouched casing for the parent directory.
4060 (Add_Library_Search_Dir): Use the untouched directory name.
4061 (Add_Source_Search_Dir): Idem.
4062 (Change_To_Object_Directory): Update output to use proper casing.
4063 (Create_Binder_Mapping_File): Use the untouched filename to set
4065 (Gnatmake): Use untouched library and executable directory names.
4066 (Insert_Project_Sources): Use untouched filename for spec and body.
4067 (Is_In_Object_Directory): Use untouched object directory.
4068 (Mark_Directory): Idem.
4069 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
4070 contains the non-canonical filename in all cases.
4071 (Change_To_Object_Directory): In verbose mode, display the name of the
4072 object directory we're changing to.
4073 (Compile_Sources): Make sure, when a project file is used, to compile
4074 the body of the unit, when there is one, even when only the spec is
4075 recorded in an ALI file.
4076 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
4078 (Report_Compilation_Failed): New procedure
4079 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
4080 procedures moved from the spec to the body.
4081 (Extract_Failure): Removed, not used
4082 Replace explicit raises of exception Bind_Failed and Link_Failed with
4083 calls to Make_Failed with the proper message.
4084 Replace explicit raises of exception Compilation_Failed with calls to
4085 procedure Report_Compilation_Failed.
4086 (Initialize): Create mapping files unconditionally when using project
4089 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
4090 Pragma_CIL_Constructor): New names.
4092 * targparm.ads, targparm.adb
4093 (Compiler_System_Version): Removed, no longer used.
4094 (Get_Target_Parameters): Relax checks on system.ads validity. Add
4095 handling of two new system flags: JVM and CLI.
4097 2007-06-06 Jose Ruiz <ruiz@adacore.com>
4098 Arnaud Charlet <charlet@adacore.com>
4100 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
4101 time, use the default s-interr body that provides interrupt support
4103 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
4104 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
4105 g-soccon.ads, and s-taprop.adb for the marte run time.
4106 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
4107 timers are supported on marte.
4108 (EH_MECHANISM for marte): Do not use ZCX.
4109 (THREADSLIB for marte): Use -lmarte.
4110 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
4111 Add mlib-tgt-specific.o to gnatmake objects
4112 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
4114 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
4115 6, either kernel or rtp, use a specialized version of s-osinte.ads.
4117 2007-06-06 Pascal Obry <obry@adacore.com>
4119 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
4121 2007-06-06 Vincent Celier <celier@adacore.com>
4123 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
4124 separator, use instead the proper host directory separator.
4125 (Copy_ALI_Files): Make sure that an already existing ALI file in the
4126 ALI copy dir is writable, before doing the copy.
4128 * mlib-utl.ads, mlib-utl.adb:
4129 (Gcc): If length of command line is too long, put the list of object
4130 files in a response file, if this is supported by the platform.
4131 (Ar): If invocation of the archive builder is allowed to be done in
4132 chunks and building it in one shot would go above an OS dependent
4133 limit on the number of characters on the command line, build the archive
4136 2007-06-06 Vincent Celier <celier@adacore.com>
4138 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
4139 of specified object file is not equal to base name of source.
4141 2007-06-06 Javier Miranda <miranda@adacore.com>
4142 Hristian Kirtchev <kirtchev@adacore.com>
4143 Ed Schonberg <schonberg@adacore.com>
4145 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
4146 the full type declaration.
4147 (Analyze_Component_Declaration): Add local variable E to capture the
4148 initialization expression of the declaration. Replace the occurences of
4149 Expression (N) with E.
4150 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
4151 limited interface object with a function call.
4152 (Array_Type_Declaration): If the declaration lacks subtype marks for
4153 indices, create a simple index list to prevent cascaded errors.
4154 (Is_Null_Extension): Ignore internal components created for secondary
4155 tags when checking whether a record extension is a null extension.
4156 (Check_Abstract_Interfaces): Add missing support for interface subtypes
4157 and generic formals.
4158 (Derived_Type_Declaration): Add missing support for interface subtypes
4159 and generic formals.
4160 (Analyze_Object_Declaration): If an initialization expression is
4161 present, traverse its subtree and mark all allocators as static
4163 (Add_Interface_Tag_Component): When looking for components that may be
4164 secondary tags, ignore pragmas that can appear within a record
4166 (Check_Abstract_Overriding): an inherited function that dispatches on
4167 result does not need to be overriden if the controlling type is a null
4169 (Mentions_T): Handle properly a 'class attribute in an anonymous access
4170 component declaration, when the prefix is an expanded name.
4171 (Inherit_Component): If the derivation is for a private extension,
4172 inherited components remain visible and their ekind should not be set
4174 (Find_Type_Of_Object): In the case of an access definition, always set
4175 Is_Local_Anonymous_Access. We were previously not marking the anonymous
4176 access type of a return object as a local anonymous type.
4177 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
4178 range with character literal bounds.
4179 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
4180 (Access_Subprogram_Declaration): Indicate that the type declaration
4181 depends on an incomplete type only if the incomplete type is declared
4183 (Analyze_Subtype_Declaration): Handle properly subtypes of
4184 synchronized types that are tagged, and that may appear as generic
4186 (Access_Subprogram_Declaration): An anonymous access to subprogram can
4187 appear as an access discriminant in a private type declaration.
4188 (Add_Interface_Tag_Components): Complete decoration of the component
4189 containing the tag of a secondary dispatch table and the component
4190 containing the offset to the base of the object (this latter component
4191 is only generated when the parent type has discriminants --as documented
4193 (Inherit_Components): Use the new decoration of the tag components to
4194 improve the condition that avoids inheriting the components associated
4195 with secondary tags of the parent.
4196 (Build_Discriminanted_Subtype): Indicate to the backend that the
4197 size of record types associated with dispatch tables is known at
4199 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
4200 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
4201 to include task, protected, and synchronized interfaces as limited
4203 (Process_Discriminants): Remove the setting of
4204 Is_Local_Anonymous_Access on the type of (anonymous) access
4205 discriminants of nonlimited types.
4206 (Analyze_Interface_Type_Declaration): Complete the decoration of the
4207 class-wide entity it is is already present. This situation occurs if
4208 the limited-view has been previously built.
4209 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
4211 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
4214 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4216 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
4217 of the type that specify the position of interface tags when the type
4218 inherits discriminated array components from the parent type.
4219 If a component is initialized with a box, check for the presence of a
4220 default expression in its declaration before using its default
4221 initialization procedure.
4222 (Resolve_Record_Aggregate): If a component is box-initialized, and the
4223 component type has a discriminants, create a partial aggregate for it
4224 by copying the discriminants of the component subtype.
4225 Reject attempt to initialize a discriminant with a box.
4226 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
4227 associated with dispatch tables is known at compile time.
4228 (Get_Value): If an association in a record aggregate has a box
4229 association, and the corresponding record component has a default
4230 expression, always copy the default expression, even when the
4231 association has a single choice, in order to create a proper
4232 association for the expanded aggregate.
4234 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4235 Robert Dewar <dewar@adacore.com>
4237 * par-ch12.adb (P_Generic_Associations): The source position of an
4238 Others association is that of the others keyword, not that of the token
4239 that follows the box.
4240 (P_Formal_Type_Definition): Handle formal access types that carry a
4243 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
4244 multiple identifier are present, save Scan_State before scanning the
4245 colon, to ensure that separate trees are constructed for each
4247 (P_Identifier_Declarations): For object declaration, set new flag
4248 Has_Init_Expression if initialization expression present.
4249 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
4250 Improve NOT NULL error messages
4252 2007-06-06 Robert Dewar <dewar@adacore.com>
4254 * par-ch4.adb: (P_Name): Recover from literal used as name
4256 2007-06-06 Vincent Celier <celier@adacore.com>
4258 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
4260 In the "not" case, recursive call with Complemented set to True.
4261 Do not allow "or" or "and" operators when Complemented is True.
4263 2007-06-06 Vincent Celier <celier@adacore.com>
4265 * prj.adb (Project_Empty): Gives default value for new component
4268 * prj-attr.ads: Minor reformatting
4270 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
4271 directory using the untouched casing.
4272 (For_All_Source_Dirs): Idem.
4274 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
4275 directories specified with switches -aP.
4276 (Add_Search_Project_Directory): New procedure
4277 (Initialize_Project_Path): Put the directories in table
4278 Search_Directories in the project search path.
4279 (Initialize_Project_Path): For VMS, transform into canonical form the
4282 2007-06-06 Arnaud Charlet <charlet@adacore.com>
4284 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
4285 true if configurable run-time or No_Run_Time is set.
4286 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
4287 processing an unit which is not the one being compiled.
4289 2007-06-06 Arnaud Charlet <charlet@adacore.com>
4291 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
4292 Replace UC by Ada.UC
4294 * s-bitops.adb: Get rid of System.Pure_Exceptions.
4295 Replace UC by Ada.UC
4297 2007-06-06 Robert Dewar <dewar@adacore.com>
4299 * scng.adb: (Check_End_Of_Line): Deal with very long lines
4301 2007-06-06 Robert Dewar <dewar@adacore.com>
4303 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
4304 Remove no longer used nodes.
4306 2007-06-06 Javier Miranda <miranda@adacore.com>
4307 Ed Schonberg <schonberg@adacore.com>
4308 Robert Dewar <dewar@adacore.com>
4310 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
4311 on obsolescent withed unit in case of limited-withed units.
4312 (Analyze_Compilation_Unit): Add guard to code that removed an
4313 instantiation from visibility, to prevent compiler aborts when
4314 instantiation is abandoned early on.
4315 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
4316 current unit being analyzed, and Distinguish local incomplete types
4317 from limited views of types declared elsewhere.
4318 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
4319 to state that the class-wide entity is shared by the limited-view
4321 (Analyze_With_Clause): Improve placement of flag for case of
4323 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
4324 manner similar to GNAT.Current_Exception. This is a violation of
4325 restriction (No_Exception_Propagation), and also inhibits the
4326 optimization of local raise to goto.
4327 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
4328 and if so set Most_Recent_Exception_Used flag in Opt, and also check
4329 for violation of restriction No_Exception_Propagation.
4331 2007-06-06 Javier Miranda <miranda@adacore.com>
4332 Hristian Kirtchev <kirtchev@adacore.com>
4333 Gary Dismukes <dismukes@adacore.com>
4335 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
4336 use of entity Exception_Occurrence if it is not available in the
4339 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
4340 concurrent types are declared within an Ada 2005 generic, build their
4341 corresponding record types since they are needed for overriding-related
4343 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
4344 protected type does not implement a task interface or a nonlimited
4346 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
4347 type does not implement a protected interface or a nonlimited interface.
4348 (Single_Task_Declaration, Single_Protected_Declaration): use original
4349 entity for variable declaration, to ensure that debugging information
4350 is correcty generated.
4351 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
4352 routines if the expander is not active.
4353 (Analyze_Task_Body): Mark all handlers to stop optimization of local
4354 raise, since special things happen for task exception handlers.
4356 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
4357 concurrent types declared within a generic.
4358 (Check_Dispatching_Operation): Do not emit warning about late interface
4359 operations in the context of an instance.
4360 (Check_Dispatching_Call): Remove restriction against calling a
4361 dispatching operation with a limited controlling result.
4362 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
4363 Register_Interface_DT_Entry by calls to Register_Primitive.
4364 (Check_Dispatching_Formals): Handle properly a function with a
4365 controlling access result.
4367 2007-06-06 Robert Dewar <dewar@adacore.com>
4368 Arnaud Charlet <charlet@adacore.com>
4370 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
4371 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
4372 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
4373 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
4374 message when using a VM, since this attribute is not supported.
4375 (Analyze_Record_Representation_Clause): Give unrepped component warnings
4377 * usage.adb: Add new warning for renaming of function return objects
4378 Indicate that -gnatwp and -gnatwP concern front-end inlining
4379 Add line for -gnatyg
4380 Add usage information for -gnatw.c/C
4382 2007-06-06 Robert Dewar <dewar@adacore.com>
4383 Ed Schonberg <schonberg@adacore.com>
4386 (Find_Var): Do not consider function call in test for infinite loop
4387 warning if warnings set off for function entity.
4388 (One_Bound): Do not create a temporary for a loop bound if it is a
4390 (Analyze_Assignment): Traverse the right hand side of an assignment and
4391 mark all allocators as static coextensions.
4392 (Analyze_Assignment): Exempt assignments involving a dispatching call
4393 to a function with a controlling access result from the check requiring
4394 the target to be class-wide.
4396 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
4397 Ed Schonberg <schonberg@adacore.com>
4398 Robert Dewar <dewar@adacore.com>
4399 Javier Miranda <miranda@adacore.com>
4401 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
4402 chain of coextensions when an allocator serves as the root of such a
4404 (Propagate_Coextensions): Remove the test for the root being an
4406 (Resolve_Allocator): Add condition to ensure that all future decoration
4407 occurs on an allocator node. Add processing and cleanup for static
4409 (Valid_Conversion): If the operand type is the limited view of a
4410 class-wide type, use the non-limited view is available to determine
4411 legality of operation.
4412 (Ambiguous_Character): move to spec, for use elsewhere.
4413 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
4414 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
4416 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
4417 Do_Division_Check flag explicitly.
4418 (Resolve_Actuals): If the actual is of a synchronized type, and the
4419 formal is of the corresponding record type, this is a call to a
4420 primitive operation of the type, that is declared outside of the type;
4421 the actual must be unchecked-converted to the type of the actual
4422 (Resolve_Call): Kill all current values for any subprogram call if
4423 flag Suppress_Value_Tracking_On_Call is set.
4424 (Resolve_Type_Conversion): Generate error message the the operand
4425 or target of interface conversions come from a limited view.
4426 (Check_Infinite_Recursion): Ignore generated calls
4427 (Check_Allocator_Discrim_Accessibility): New procedure for checking
4428 that an expression that constrains an access discriminant in an
4429 allocator does not denote an object with a deeper level than the
4430 allocator's access type.
4431 (Resolve_Allocator): In the case of an allocator initialized by an
4432 aggregate of a discriminated type, check that associations for any
4433 access discriminants satisfy accessibility requirements by calling
4434 Check_Allocator_Discrim_Accessibility.
4435 (Resolve_Equality_Op): Handle comparisons of anonymous access to
4436 subprogram types in the same fashion as other anonymous access types.
4437 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
4438 message that is not a continuation message.
4439 (Resolve_Type_Conversion): Add missing support for conversion to
4441 (Resolve_Actuals): Introduce a transient scope around the call if an
4442 actual is a call to a function returning a limited type, because the
4443 resulting value must be finalized after the call.
4444 (Resolve_Actuals): If the call was given in prefix notations, check
4445 whether an implicit 'Access reference or implicit dereference must be
4446 added to make the actual conform to the controlling formal.
4448 2007-06-06 Robert Dewar <dewar@adacore.com>
4449 Javier Miranda <miranda@adacore.com>
4451 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
4452 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
4453 overriding of an inherited private subprogram now there is no need to
4454 inherit its dispatching slot and reduce the size of the dispatch table.
4455 Set_All_DT_Position now ensures that the same slot is now assigned to
4456 both entities. This is required to statically build the dispatch table.
4457 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
4458 of calling Set_All_DT_Position to re-evaluate the position of the
4459 entries in the dispatch table. Such reevaluation is not desired if
4460 the tagged type is already frozen.
4462 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
4463 Gary Dismukes <dismukes@adacore.com>
4464 Robert Dewar <dewar@adacore.com>
4465 Javier Miranda <miranda@adacore.com>
4467 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
4468 reference acts as an lvalue when the attribute name modifies the prefix
4469 (Is_Coextension_Root): New routine.
4470 (Mark_Static_Coextensions): New routine.
4471 (Type_Access_Level): Revise code for checking the level of the
4472 anonymous access type of a return object.
4473 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
4474 (Matches_Prefixed_View_Profile): Remove the no longer necessary
4475 retrieval of the corresponding controlling record type.
4476 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
4477 concurrent types declared within a generic as well as class wide types.
4478 Emit a mode incompatibility error whenever a protected entry or routine
4479 override an interface routine whose first parameter is not of mode
4480 "out", "in out" or access to variable.
4481 (Overrides_Synchronized_Primitive): Rename to
4482 Find_Overridden_Synchronized_Primitive.
4483 (Collect_Interface_Components): New subprogram that collects all the
4484 components of a tagged record containing tags of secondary dispatch
4486 (Add_Global_Declaration): New procedure
4487 (Abstract_Interface_List): Handle properly the case of a subtype of a
4489 (Type_Access_Level): In the case of a type whose parent scope is a
4490 return statement, call Type_Access_Level recursively on the enclosing
4491 function's result type to determine the level of the return object's
4493 (Build_Elaboration_Entity): Build name of elaboration entity from the
4494 scope chain of the entity, rather than the unit name of the file name.
4495 (Check_Nested_Access): New procedure.
4496 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
4497 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
4498 (Get_Renamed_Entity): Utility routine for performing common operation
4499 of chasing the Renamed_Entity field of an entity.
4501 2007-06-06 Robert Dewar <dewar@adacore.com>
4503 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
4505 (Check_A_Call): Add check for entry call which was causing blowup
4507 2007-06-06 Olivier Hainque <hainque@adacore.com>
4509 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
4510 special code on ia64-vms to handle major incompatibilities between the
4511 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
4512 this routine with a very different set of arguments and expectations on
4515 2007-06-06 Thomas Quinot <quinot@adacore.com>
4517 * socket.c (__gnat_close_signalling_fd): New function.
4518 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
4519 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
4520 New supporting functions for task safe Netdb operations.
4522 2007-06-06 Thomas Quinot <quinot@adacore.com>
4523 Olivier Hainque <hainque@adacore.com>
4525 * a-except-2005.ads, a-except-2005.adb
4526 (Raise_From_Controlled_Operation): New procedure in
4527 (private part of) Ada.Exceptions (standard runtime version). Used to
4528 provide informational exception message when Program_Error is raised as
4529 a result of an Adjust or Finalize operation propagating an exception.
4530 (Rmsg_28): Fix description for E.4(18) check.
4531 (Raise_Current_Excep): Call Debug_Raise_Exception just before
4532 propagation starts, to let debuggers know about the event in a reliable
4534 Take the address of E and dereference to make sure it is homed on stack
4535 and prevent the stores from being deleted, necessary for proper
4536 debugger behavior on "break exception" hits.
4537 (Local_Raise): Moved to System.Exceptions
4539 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
4540 exception message from the current occurrence and raise Program_Error
4541 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
4543 2007-06-06 Jose Ruiz <ruiz@adacore.com>
4544 Arnaud Charlet <charlet@adacore.com>
4546 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
4549 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
4550 priority associated to a lock.
4552 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
4553 assertion to take into account case of no abort restriction.
4554 (Initialize_Protection_Entries): Add initialization for the field
4555 New_Ceiling associated to the protected object.
4556 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
4559 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
4560 since this function needs to be set consistently with Update_Exception.
4562 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
4563 since this function needs to be set consistently with Update_Exception.
4565 * s-taskin.ads: Update comments on
4566 Interrupt_Server_Blocked_On_Event_Flag.
4567 (Unbind_Handler): Fix handling of server_task wakeup
4568 (Server_Task): Set self's state so that Unbind_Handler can take
4569 appropriate actions.
4570 (Common_ATCB): Now use a constant from System.Parameters to determine
4571 the max size of the Task_Image field.
4573 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
4574 Initialize_Analyzer function.
4575 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
4576 take into account case of no abort restriction.
4577 ([Vulnerable_]Complete_Master): Modify assertion.
4579 * s-tataat.adb (Finalize): Use the nestable versions of
4580 Defer/Undefer_Abort.
4582 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
4584 * s-tpobop.ads: Update comments.
4586 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
4587 of locking the object manually, to avoid inconsistencies between
4588 Lock/Unlock_Entry assertions.
4590 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
4592 application and System.Parameters.No_Abort is True.
4593 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
4594 (Unbind_Handler): Fix handling of server_task wakeup
4595 (Server_Task): Set self's state so that Unbind_Handler can take
4596 appropriate actions.
4598 2007-06-06 Thomas Quinot <quinot@adacore.com>
4600 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
4601 declarations instead of an explicit null body, for conciseness.
4603 2007-06-06 Robert Dewar <dewar@adacore.com>
4605 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
4606 illegal aggregate and the type is still Any_Composite.
4607 (Subtypes_Statically_Match): Fix problem of empty discriminant list
4609 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4611 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
4612 to prevent subsequent expansion.
4614 2007-06-06 Robert Dewar <dewar@adacore.com>
4616 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
4618 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4619 Robert Dewar <dewar@adacore.com>
4621 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
4623 (Write_Itype): Handle case of string literal subtype, which
4624 comes up in this context.
4625 (Update_Itype): when debugging expanded code, update sloc of itypes
4626 associated with defining_identifiers and ranges, for gdb use.
4627 (Sprint_Node_Actual): Add static keyword to object or exception
4628 declaration output if Is_Statically_Allocated is True.
4629 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
4630 or task body, so that the tree carries the proper Sloc information for
4632 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
4634 2007-06-06 Arnaud Charlet <charlet@adacore.com>
4636 * s-secsta.adb (Chunk): Ensure this object has a static size known at
4637 compile time, to avoid dynamic memory allocation
4638 (Elaboration code): Only use dynamic memory allocation when needed.
4640 2007-06-06 Quentin Ochem <ochem@adacore.com>
4642 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
4644 (Stack_Analyzer): Added field "Overflow_Guard"
4645 (Task_Result): Added field "Overflow_Guard".
4646 (Index_Str): New constant.
4647 (Task_Name_Str): New constant.
4648 (Actual_Size_Str): New constant.
4649 (Pattern_Array_Element_Size): New constant.
4650 (Get_Usage_Range): New subprogram.
4651 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
4652 Now align the output.
4654 (Initialize): Added value for Overflow_Guard.
4655 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
4656 Update the value of the overflow guard according to the actual
4657 beginning of the pattern array.
4658 (Initialize_Analyzer): Added parameter Overflow_Guard.
4659 Take this parameter into accound when computing the max size.
4660 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
4661 (Report_Result): Removed extra useless procedure.
4662 Updated call to Output_Result.
4663 Moved full computation of the Task_Result here.
4665 2007-06-06 Thomas Quinot <quinot@adacore.com>
4667 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
4668 Thread_Blocking_IO, always True by default, set False on a per-runtime
4670 Add Windows-specific constants
4671 Add new constant Need_Netdb_Buffer.
4672 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
4673 not, whether to use getXXXbyYYY_r.
4675 * gsocket.h: Add new constant Need_Netdb_Buffer.
4676 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
4677 not, whether to use getXXXbyYYY_r.
4679 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
4681 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
4682 than their first call.
4683 Add type Dummy_Communication_Block used in the generation of the pre-
4684 defined dispatching primitive _disp_asynchronous_select.
4685 (Storage_Element): Put Pragma Universal_Aliasing on it.
4687 2007-06-06 Vincent Celier <celier@adacore.com>
4689 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
4692 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
4693 letter if it is not followed by a '/' or a '\'.
4694 (Windows): New Boolean function
4696 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
4698 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
4700 (Containing_Directory): Raise Use_Error when the directory is a root
4702 (Extension): When returning the result, use a conversion to Result_Type,
4703 not a qualification.
4705 2007-06-06 Robert Dewar <dewar@adacore.com>
4707 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
4708 (Set_Style_Check_Options): Recognize new -gnatyg style switch
4710 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
4711 Warn_On_Non_Local_Exception to False, to turn off warnings for
4712 No_Exception_Propagation in ZFP runtime.
4713 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
4715 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
4717 2007-06-06 Vincent Celier <celier@adacore.com>
4719 * switch-b.adb (Scan_Binder_Switches): Add processing for new
4722 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
4723 (Scan_Make_Switches): Recognize new switch -aP
4725 2007-06-06 Matthew Gingell <gingell@adacore.com>
4726 Jose Ruiz <ruiz@adacore.com>
4728 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
4729 VxWorks task descriptor in the Ada run time, call a C subprogram
4730 (__gnat_get_stack_info) that extracts the required information.
4732 * sysdep.c: Back out temporary lynxos workaround.
4733 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
4734 time the stack information associated to the currently executing task.
4735 Only VxWorks systems require this function.
4737 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
4739 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
4740 add the stack bias if the offset is computed from a frame address.
4741 (__gnat_backtrace): Adjust for above change.
4743 2007-06-06 Thomas Quinot <quinot@adacore.com>
4745 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
4746 PE_Non_Transportable_Actual.
4747 (By_Descriptor_Last): New constant.
4748 (By_Copy_Return): Likewise.
4750 2007-06-06 Vincent Celier <celier@adacore.com>
4752 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
4755 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
4756 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
4757 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
4758 Add missing comment for /OPTIMIZE=SPACE
4759 Add entry for OPTIMIZE=SPACE
4760 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
4761 Add documentation for new qualifiers corresponding to -gnatw.c/.C
4763 2007-06-06 Vincent Celier <celier@adacore.com>
4764 Robert Dewar <dewar@adacore.com>
4766 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
4769 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
4770 Document gnatbind switch -a
4771 (case Constructions): Document that variables declarations are allowed
4772 for previously declared variables.
4773 Fix external lib project example
4774 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
4775 Indicate that "#if not X or Y then" is not allowed in input files to
4777 Document gnatw.x and gnatw.X warning flags
4778 Mention -Winline switch to activate warnings when back-end inlining is
4780 Add gnatcheck rule descriptions
4781 Describe how to use the GNAT driver to call a tool on a closure.
4782 Describe how to run project-wide checks or metrics.
4783 Document gnatbind's -R option
4784 Updated to account for Ada 2005 support
4786 * gnat_rm.texi (Case Construction): Allow variable declarations for
4787 previously declared variables.
4788 (Representation Clauses and Pragmas): Lift restriction on alignment
4789 clauses for record types.
4790 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
4791 Document No_Exception_Propagation restriction
4792 Document No_Body pragma
4793 Updated to account for Ada 2005 support; corrected some typos
4794 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
4796 * gnat-style.texi: Make it clear that we never use mode IN for
4797 procedures or functions
4799 * ug_words: Add entries for -gnatw.x and -gnatw.X
4800 Add entries for -gnatw.c/.C
4802 2007-06-06 Pascal Obry <obry@adacore.com>
4803 Vincent Celier <celier@adacore.com>
4805 * makegpr.adb (Add_Archive_Path): Use untouched object and library
4806 dirs and library name.
4807 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
4809 (Build_Library): Idem.
4810 (Compile_Individual_Sources): Idem.
4811 (Compile_Link_With_Gnatmake): Idem.
4812 (Compile_Sources): Idem.
4813 (Get_Imported_Directories): Idem.
4814 (Link_Executables): Idem. Same change for the executable dir.
4815 (Check_Compilation_Needed): C_Source_Path new variable containing
4816 the canonical form of Source_Path to check against the source names
4817 in the dependency file.
4818 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
4819 verbose mode, display the name of the object directory we're changing
4821 (Saved_Switches): New name of table X_Switches
4822 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
4823 (Usage): New line for switch -aP
4824 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
4825 testing if a directory should be added to the search path.
4827 2007-06-06 Javier Miranda <miranda@adacore.com>
4829 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
4830 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
4831 declaration after freezing point of all its associated tagged types;
4832 otherwise such types are frozen too early.
4834 2007-06-06 Robert Dewar <dewar@adacore.com>
4836 * a-reatim.adb: Documentation addition
4838 * g-cgideb.adb: Minor code reorganization
4840 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
4841 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
4842 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
4844 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
4845 function. Change name New_Scope to Push_Scope
4846 (Get_Debug_Flag_K): Remove unused obsolete function.
4848 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
4851 * makeusg.adb: Update Copyright notice
4852 Add line for switch -aP
4854 * makeusg.adb: Fix wording of some usage messages
4856 * s-assert.adb (Raise_Assert_Failure): Add call to
4857 Debug_Raise_Assert_Failure.
4859 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
4860 (2, Standard'Alignment) for compatibility with AAMP (where alignment
4861 is restricted to 1).
4863 * s-wchjis.adb: Remove use of System.Pure_Exceptions
4865 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
4866 node location to No_Location when we're not debugging the expanded
4869 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
4871 * misc.c (enumerate_modes): Consider log2_b to always be one.
4873 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
4875 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
4877 2007-05-02 Pascal Obry <obry@adacore.com>
4879 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
4880 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
4881 encoding support of Stream_IO.
4884 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
4885 filename and corresponding encoding to match the OS requirement.
4886 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
4887 routine will fail on specific devices like CON: AUX: ...
4889 PR ada/29856: Add missing braces
4891 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
4894 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
4896 2007-04-21 Jan Hubicka <jh@suse.cz>
4898 * misc.c (gnat_expand_body): Don't call target for destructors,
4899 avoid redundant check on syntax errors.
4901 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
4903 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
4904 instead of checking GIMPLE_STMT_P in chain_next.
4906 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
4909 * system-linux-alpha.ads: Disable constant condition warning for the
4910 Default_Bit_Order variable.
4911 * system-linux-s390.ads: Likewise.
4912 * system-linux-s390x.ads: Likewise.
4913 * system-linux-sparc.ads: Likewise.
4915 2007-04-06 Javier Miranda <miranda@adacore.com>
4916 Matt Heaney <heaney@adacore.com>
4917 Robert Dewar <dewar@adacore.com>
4919 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
4920 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
4921 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
4922 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
4923 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
4924 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
4925 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
4926 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
4927 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
4928 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
4929 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
4930 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
4931 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
4932 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
4933 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
4934 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
4935 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
4936 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
4937 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
4938 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
4939 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
4940 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
4941 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
4942 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
4943 s-taprop-tru64.adb, s-taprop-irix.adb,
4944 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
4945 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
4946 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
4947 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
4948 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
4949 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
4950 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
4951 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
4952 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
4953 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
4954 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
4955 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
4956 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
4957 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
4958 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
4959 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
4960 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
4961 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
4962 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
4963 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
4965 Update documentation.
4968 2007-04-06 Robert Dewar <dewar@adacore.com>
4970 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
4971 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
4972 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
4973 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
4974 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
4975 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
4976 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
4977 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
4978 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
4979 system-hpux-ia64.ads, targparm.adb,
4980 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
4982 * system.ads: Move Functions_Return_By_DSP to obsolete section,
4983 kept for bootstrap purposes only.
4985 2007-04-06 Arnaud Charlet <charlet@adacore.com>
4987 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
4988 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
4989 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
4990 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
4992 2007-04-06 Robert Dewar <dewar@adacore.com>
4994 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
4995 (Local_Raise): New dummy procedure called when a raise is converted
4996 to a local goto. Used for debugger to detect that the exception
4999 * debug.adb: Document new d.g flag (expand local raise statements to
5000 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
5002 * exp_sel.adb: Use Make_Implicit_Exception_Handler
5004 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
5005 suppress warnings for unused handlers.
5006 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
5007 warnings for raise statements not handled locally.
5008 (Get_RT_Exception_Entity): New function
5009 (Get_Local_Call_Entity): New function
5010 (Find_Local_Handler): New function
5011 (Warn_If_No_Propagation): New procedure
5012 (Expand_At_End_Handler): Call Make_Implicit_Handler
5013 (Expand_Exception_Handlers): Major additions to deal with local handlers
5014 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
5015 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
5018 * exp_ch11.ads (Get_RT_Exception_Entity): New function
5019 (Get_Local_Call_Entity): New function
5021 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
5022 of restrictions that the binder will never suggest adding.
5024 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
5027 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
5028 be with'ed in the presence of pragma Restriction
5029 (No_Exception_Propagation).
5031 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
5033 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
5034 parameter, then the handler is not a suitable target for a local raise,
5035 and this is a violation of restriction No_Exception_Propagation.
5036 (Analyze_Handled_Statements): Analyze choice parameters in exception
5037 handlers before analyzing statement sequence (needed for proper
5038 detection of local raise statements).
5039 (Analyze_Raise_Statement): Reraise statement is a violation of the
5040 No_Exception_Propagation restriction.
5042 * s-rident.ads: Add new restriction No_Exception_Propagation
5044 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
5045 function, like Make_Exception_Handler but sets Local_Raise_Statements
5047 (Add_Unique_Serial_Number): Deal with case where this is called during
5048 processing of configuration pragmas.
5050 2007-04-06 Thomas Quinot <quinot@adacore.com>
5051 Pat Rogers <rogers@adacore.com>
5052 Pascal Obry <obry@adacore.com>
5054 * g-stsifd-sockets.adb: New file.
5056 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
5057 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
5058 g-socthi-vms.adb: Move signalling
5059 fd management to a nested package, so that they can conveniently be
5060 moved to a subunit that is shared across Windows, VMS, and VxWorks
5061 (Ada implementation) or completed with imported bodies from socket.c
5063 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
5065 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
5066 the signalling file descriptor.
5067 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
5068 signalling file descriptor.
5069 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
5070 instead of creating a pair of sockets for signalling here.
5072 * g-socthi.adb: Ditto.
5073 Set the runtime process to ignore SIGPIPEs on platforms that support
5074 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
5076 * g-socthi-mingw.adb: Ditto.
5077 (WS_Version): Use Windows 2.2.
5078 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
5080 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
5081 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
5083 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
5084 added GNAT byte swapping facility
5085 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
5087 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
5089 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
5091 (__gnat_create_signalling_fds): New subprogram.
5092 Set the runtime process to ignore SIGPIPEs on platforms that support
5093 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
5095 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
5096 Vincent Celier <celier@adacore.com>
5098 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
5099 New version of Ada.Calendar which supports the new upper bound of Ada
5100 time (2399-12-31 86_399.999999999).
5101 The following modifications have been made to the package:
5102 - New representation of time as count of nanoseconds since the start of
5103 Ada time (1901-1-1 0.0).
5104 - Target independent Split and Time_Of routines which service both
5105 Ada 95 and Ada 2005 code.
5106 - Target independent interface to the Ada 2005 children of Calendar.
5107 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
5108 - Handling of non-leap centenial years.
5109 - Updated clock function.
5110 - Updated arithmetic and comparison operators.
5112 * a-caldel.adb (To_Duration): Add call to target independent routine in
5113 Ada.Calendar to handle the conversion of time to duration.
5115 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
5117 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
5119 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
5120 targets do not have a natural time zone, GMT is used as a default.
5121 (__gnat_get_task_options): New.
5123 * a-direct.adb (Modification_Time): Add with and use clauses for
5124 Ada.Calendar and Ada.
5125 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
5126 since it is no longer needed.
5127 (Duration_To_Time): Removed.
5128 (OS_Time_To_Long_Integer): Removed.
5129 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
5130 Formatting Time_Of routines which automatically handle time zones,
5131 buffer periods and leap seconds.
5133 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
5134 target independent routines in Ada.Calendar.
5136 * a-calfor.ads, a-calfor.adb:
5137 Code cleanup and addition of validity checks in various routines.
5138 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
5141 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
5142 independent routine in Ada.Calendar.
5144 2007-04-06 Olivier Hainque <hainque@adacore.com>
5147 (convert_addresses): Adjust prototype and dummy definition to expect an
5148 extra file_name argument.
5150 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
5151 filling the now expected file_name argument with the appropriate
5153 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
5154 (tracebk): Array of void * instead of char *, corresponding to what
5155 convert_addresses expects.
5156 (exename): New static global, to hold the executable file name to be
5157 used in all convert_addresses invocations.
5158 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
5160 (__gnat_gmem_a2l_initialize): Resolve exename.
5161 (__gnat_convert_addresses): Use exename as the convert_addresses
5164 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
5165 "convert_addresses", now expecting a filename argument. Import the
5166 necessary entities to compute the filename to use and pass it to
5169 2007-04-06 Matt Gingell <gingell@adacore.com>
5171 * system-aix.ads: Back out previous change.
5172 (Functions_Return_By_DSP): Removed
5174 2007-04-06 Pascal Obry <obry@adacore.com>
5176 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
5177 or the monotonic used by Ada.Real_Time) to compute the sleep duration
5180 2007-04-06 Jose Ruiz <ruiz@adacore.com>
5182 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
5183 function. Its value changes in different VxWorks versions, and it is
5184 now handled by the function __gnat_get_task_options.
5186 * s-taprop-vxworks.adb (Create_Task): Call the function
5187 __gnat_get_task_options to get the required options for creating a task.
5189 2007-04-06 Pascal Obry <obry@adacore.com>
5190 Thomas Quinot <quinot@adacore.com>
5192 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
5193 dealing with filename.
5194 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
5195 filename from a standard string to a wide-string depending on the
5197 (__gnat_freopen): Idem.
5198 (__gnat_current_time): New function (wrapper for time(3) standard C
5201 * g-os_lib.ads (Current_Time): New function. Returns the current
5202 system time as an OS_Time value.
5204 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
5205 (Monotonic_Clock): Same.
5207 2007-04-06 Quentin Ochem <ochem@adacore.com>
5209 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
5211 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
5213 2007-04-06 Jose Ruiz <ruiz@adacore.com>
5215 * a-retide.adb: Add elaboration code to ensure that the tasking run
5216 time is initialized when using delay operations even when no task is
5219 2007-04-06 Javier Miranda <miranda@adacore.com>
5221 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
5222 component Num_Prim_Ops.
5223 (Set_Num_Prim_Ops): Removed.
5224 Remove all the assertions because all the routines of this
5225 package are inline always.
5226 (Get_Offset_Index): Add support to primary dispatch tables.
5227 Move the documentation about the dispatch table to a-tags.ads
5228 (Set_External_Tag): Removed
5229 (Inherit_TSD): Removed.
5230 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
5232 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
5233 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
5234 of the TSD field "Table" because this field has been renamed to
5236 (Inherit_CPP_DT): Removed.
5237 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
5238 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
5239 declarations have been moved to a-tags.ads
5240 (Check_Size): Removed.
5241 (Expanded_Name): Updated to get access to the new field of TSD
5242 containing the address of the expanded name.
5243 (Get_Access_Level/Set_Access_Level): Removed.
5244 (Get_Predefined_Prim_Op_Address): Removed.
5245 (Set_Predefined_Prim_Op_Address): Removed.
5246 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
5247 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
5248 (Set_Expanded_Name): Removed.
5249 (Inherit_DT): Removed.
5250 (Inherit_CPP_DT): Removed.
5251 (Set_RC_Offset): Removed.
5253 (Base_Address): New function that displaces "this" to point to the base
5254 of the object (that is, to point to the primary tag of the object).
5256 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5257 Javier Miranda <miranda@adacore.com>
5259 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
5260 anonymous access component, do not create a master_id if type already
5261 has one, as may happen if the type is a subcomponent of a packed array
5263 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
5264 Initialize_Tag): Remove code associated with the old CPP pragmas.
5265 CPP_Virtual and CPP_Vtable are no longer supported.
5266 (Build_Offset_To_Top_Internal): Add support for concurrent record types
5267 (Build_Offset_To_Top_Functions): Add support for concurrent record types
5268 (Freeze_Record_Type): Remove call to
5269 Init_Predefined_Interface_Primitives.
5270 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
5271 code required to initialize the tags of the secondary dispatch tables.
5272 This leaves the algoritm more clear.
5273 (Init_Secondary_Tags): Add support for concurrent record types
5274 (Make_Predefined_Primitive_Specs): Code cleanup.
5275 (Predefined_Primitive_Bodies): Code cleanup.
5276 (Build_Master_Renaming): New local subprogram.
5277 (Expand_N_Full_Type_Declaration): Build the master_id associated with
5278 anonymous access to task type components.
5279 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
5280 subtype indication are resolved during analysis, and must not be done
5282 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
5284 2007-04-06 Geert Bosch <bosch@adacore.com>
5285 Ed Schonberg <schonberg@adacore.com>
5286 Javier Miranda <miranda@adacore.com>
5287 Bob Duff <duff@adacore.com>
5289 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
5290 for conversion of a Float_Type'Truncation to integer.
5292 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
5293 check if a node is an attribute that can be handled directly by the
5295 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
5296 attributes that can be handled directly by the back end.
5297 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
5298 use new predicate Is_Access_Protected_Subprogram_Type.
5299 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
5300 and Unchecked_Union if it is generated as part of the default Output
5301 procedure for a type with default discriminants.
5302 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
5303 if we are compiling under restriction No_Dispatching_Calls.
5304 (Constrained): Use Underlying_Type, in case the type is private without
5305 discriminants, but the full type has discriminants.
5306 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
5307 call to Build_Get_Access_Level.
5308 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
5309 interface objects requires a call to the run-time subprogram that
5310 returns the base address of the object.
5311 (Valid_Conversion): Improve error message on illegal attempt to store
5312 an anonymous access to subprogram value into a record component.
5314 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
5316 (Simplify_Type_Conversion): New procedure that performs simplification
5317 of Int_Type (Float_Type'Truncation (X)).
5318 (Resolve_Type_Conversion): Call above procedure after resolving operand
5319 and before performing checks. This replaces the existing ineffective
5321 (Set_String_Literal_Subtype): When creating the internal static lower
5322 bound subtype for a string literal, use a newly created copy of the
5323 subtree representing the lower bound.
5324 (Resolve_Call): Exclude build-in-place function calls from transient
5325 scope treatment. Update comments to describe this exception.
5326 (Resolve_Equality_Op): In case of dispatching call check violation of
5327 restriction No_Dispatching_Calls.
5328 (Resolve_Call): If the call returns an array, the context imposes the
5329 component type of the array, and the function has one non-defaulted
5330 parameter, rewrite the call as the indexing of a call with a single
5331 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
5333 (Resolve_Actuals): If an actual is an allocator for an access parameter,
5334 the master of the created object is the innermost enclosing statement.
5335 (Remove_Conversions): For a binary operator, check if type of second
5336 formal is numeric, to check if an abstract interpretation is present
5337 in the case of exponentiation as well.
5339 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5340 Bob Duff <duff@adacore.com>
5342 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
5343 copying a parameter list in a call, set properly the First_Named_Formal
5344 and Next_Named_Formal fields in the new list and in the enclosing call.
5345 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
5346 names, to ease typing in the debugger. Improve comments.
5347 (Watch_Node): New variable, intended to be set in the debugger.
5348 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
5349 called when the watched node is created.
5350 (New_Node_Debugging_Output): Combined version of local procedures
5351 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
5352 with a parameter so that conditional breakpoints like "if Node = 12345"
5354 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
5357 2007-04-06 Thomas Quinot <quinot@adacore.com>
5358 Ed Schonberg <schonberg@adacore.com>
5359 Gary Dismukes <dismukes@adacore.com>
5361 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
5362 required for a conversion between two access-to-unconstrained-array
5364 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
5365 to discriminant constraints on discriminant objects. This rule must
5366 apply as well to discriminants of protected types in private components.
5367 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
5368 object of a null-excluding access type then don't require the
5369 the object declaration to have an expression and don't emit a
5372 2007-04-06 Arnaud Charlet <charlet@adacore.com>
5373 Eric Botcazou <botcazou@adacore.com>
5375 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
5378 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
5379 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
5382 * fe.h (Compiler_Abort): Add third parameter.
5384 * misc.c (internal_error_function): Build third argument from current
5385 input location and pass it to Compiler_Abort.
5387 2007-04-06 Gary Dismukes <dismukes@adacore.com>
5389 * cstand.adb (Create_Standard): When the target's storage unit size is
5390 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
5393 2007-04-06 Nicolas Roche <roche@adacore.com>
5395 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
5396 absolute path can have the following form: device:/a/b. In this case
5397 '/' should be inserted between the path and the filename.
5399 2007-04-06 Olivier Hainque <hainque@adacore.com>
5400 Eric Botcazou <botcazou@adacore.com>
5402 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
5403 VAR_DECL to a CONST_DECL we make for a public constant when we know the
5404 corresponding definition has created the so made visible variable.
5405 Handle anonymous access to protected subprogram.
5406 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
5407 object with an address clause volatile. Re-enable original fix.
5408 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
5410 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
5411 associated with either the Equivalent or Root type, instead of the
5413 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
5414 subtree for every field of a global record type.
5415 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
5416 discriminants, invoke again variable_size on its newly computed sizes.
5418 2007-04-06 Robert Dewar <dewar@adacore.com>
5419 Thomas Quinot <quinot@adacore.com>
5420 Ed Schonberg <schonberg@adacore.com>
5421 Bob Duff <duff@adacore.com>
5423 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
5424 (Next_Component_Or_Discriminant): New function and procedure
5425 (First_Index, First_Literal, Master_Id,
5426 Set_First_Index, Set_First_Literal, Set_Master_Id):
5427 Add missing Ekind assertions.
5428 (Is_Access_Protected_Subprogram_Type): New predicate.
5429 (Has_RACW): New entity flag, set on package entities to indicate that
5430 the package contains the declaration of a remote accecss-to-classwide
5432 (E_Return_Statement): This node type has the Finalization_Chain_Entity
5433 attribute, in case the result type has controlled parts.
5434 (Requires_Overriding): Add this new flag, because "requires
5435 overriding" is subtly different from "is abstract" (see AI-228).
5436 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
5437 Is_Abstract_Type. Make sure these are called only when appropriate.
5438 (Has_Pragma_Unreferenced_Objects): New flag
5440 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
5441 class-wide, the tag of the right-hand side must be an exact match, not
5442 an ancestor of that of the object on left-hand side.
5443 (Move_Activation_Chain): New procedure to create the call to
5444 System.Tasking.Stages.Move_Activation_Chain.
5445 (Expand_N_Extended_Return_Statement): Generate code to call
5446 System.Finalization_Implementation.Move_Final_List at the end of a
5447 return statement if the function's result type has controlled parts.
5448 Move asserts to Build_In_Place_Formal.
5449 (Move_Final_List): New function to create the call statement.
5450 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
5451 tagged type, replace generation of call to the run-time subprogram
5452 CW_Membership by call to Build_CW_Membership.
5453 (Expand_N_Return_Statement): Replace generation of call to the run-time
5454 subprogram Get_Access_Level by call to Build_Get_Access_Level.
5455 (Expand_N_Simple_Function_Return): Replace generation of call to the
5456 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
5458 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
5459 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
5460 access to protected operations.
5461 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
5462 master and chain actual parameters to a build-in-place function call
5464 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
5466 (Make_Build_In_Place_Call_In_Allocator,
5467 Make_Build_In_Place_Call_In_Anonymous_Context,
5468 Make_Build_In_Place_Call_In_Assignment,
5469 Make_Build_In_Place_Call_In_Object_Declaration): Call
5470 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
5471 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
5472 stubbed procedure with a null body, replace the call with a null
5473 statement without using the full inlining machinery, for efficiency
5474 and to avoid invalid values in source file table entries.
5476 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
5477 renamings of calls to build-in-place functions.
5479 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
5480 provides the functionality of RTE_Available to record components.
5481 (RTU_Entity): The function Entity has been renamed to RTU_Entity
5482 to avoid undesired overloading.
5483 (Entity): New subprogram that returns the entity for the referened
5484 unit. If this unit has not been loaded, it returns Empty.
5485 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
5486 Remove no longer used entities.
5487 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
5488 (RE_Type_Specific_Data): New entity.
5489 (RE_Move_Any_Value): New entity.
5490 (RE_TA_A, RE_Get_Any_Type): New entities.
5491 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
5492 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
5493 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
5494 (Entity): New subprogram that returns the entity for the referened
5495 unit. If this unit has not been loaded, it returns Empty.
5496 (RTE): Addition of a new formal that extends the search to the scopes
5497 of the record types found in the chain of the package.
5499 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
5500 "abstract subprograms must be visible" message, whether or not the type
5501 is an interface; that is, remove the special case for interface types.
5502 (Analyze_Function_Return): Remove error message "return of task objects
5503 is not yet implemented" because this is now implemented.
5504 (Create_Extra_Formals): Add the extra master and activation chain
5505 formals in case the result type has tasks.
5506 Remove error message "return of limited controlled objects is not yet
5508 (Create_Extra_Formals): Add the extra caller's finalization list formal
5509 in case the result type has controlled parts.
5510 (Process_Formals): In case of access formal types there is no need
5511 to continue with the analysis of the formals if we already notified
5513 (Check_Overriding_Indicator): Add code to check overriding of predefined
5515 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
5516 flags for formals that do not require them,.
5517 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
5518 hidden entity is use visible or directly visible.
5519 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
5520 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
5521 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
5522 New_Overloaded_Entity): Split Is_Abstract flag into
5523 Is_Abstract_Subprogram and Is_Abstract_Type.
5525 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
5526 a return statement's finalization list to the caller's list, used for
5527 build-in-place functions with result type with controlled parts.
5528 Remove no longer used entities.
5530 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
5531 longer needed, because the full type is now limited, and therefore a
5532 pass-by-reference type.
5533 (Foreign_Task_Level): New constant.
5535 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
5536 move tasks from the activation chain belonging to a return statement to
5537 the one passed in by the caller, and update the master to the one
5538 passed in by the caller.
5539 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
5540 of unactivated tasks, so we don't kill the ones that are being returned
5541 by a build-in-place function.
5542 (Create_Task): Ignore AI-280 for foreign threads.
5544 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5545 Robert Dewar <dewar@adacore.com>
5546 Bob Duff <duff@adacore.com>
5547 Gary Dismukes <dismukes@adacore.com>
5549 * errout.adb (Unwind_Internal_Type): Use predicate
5550 Is_Access__Protected_Subprogram_Type.
5552 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
5553 (Freeze_Entity, packed array case): Do not override explicitly set
5554 alignment and size clauses.
5555 (Freeze_Entity): An entity declared in an outer scope can be frozen if
5556 the enclosing subprogram is a child unit body that acts as a spec.
5557 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
5558 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
5559 Remove all code for DSP option
5561 * layout.adb (Layout_Record_Type): Use First/
5562 Next_Component_Or_Discriminant
5563 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
5564 to handle properly the anonymous access case.
5566 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
5567 for all access attributes, because overload resolution should work the
5568 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
5569 causes the error message for the ambiguous "X'Access = Y'Access" and
5570 "X'Unrestricted_Access = Y'Access" and so forth to match.
5571 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
5572 now that anonymous access to protected operations have their own kind.
5573 (Resolve_Attribute): In case of dispatching call check the violation of
5574 restriction No_Dispatching_Calls.
5575 (Check_Array_Type): Check new -gnatyA array index style option
5577 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
5578 attempt to derive from a synchronized tagged type.
5579 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
5580 type, inherit the class-wide type already created, because it may
5581 already have been used in a self-referential anonymous access component.
5582 (Mentions_T): Recognize self-referential anonymous access components
5583 that use (a subtype of) the class-wide type of the enclosing type.
5584 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
5585 Derived_Type for Prev formal on call to
5586 Check_Anonymous_Access_Components rather than Empty.
5587 (Make_Incomplete_Type_Declaration): Add test for case where the type has
5588 a record extension in deciding whether to create a class-wide type,
5589 rather than just checking Tagged_Present.
5590 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
5591 to stand-alone object declarations as well as component declarations.
5592 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
5593 prevent accidental overwriting when enclosing package appears in
5594 a limited_with_clause.
5595 (Array_Type_Declaration): If the component type is an anonymous access,
5596 the associated_node for the itype is the type declaration itself.
5597 (Add_Interface_Tag_Components): Modified to support concurrent
5598 types with abstract interfaces.
5599 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
5600 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
5601 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
5602 to complete the decoration of synchronized interface types. Add also
5603 a call to Check_Abstract_Interfaces to verify the ARM rules.
5604 (Derive_Interface_Subprograms): Modified to support concurrent types
5605 with abstract interfaces.
5606 (Analyze_Subtype_Indication): Resolve the range with the given subtype
5607 mark, rather than delaying the full resolution depending on context.
5608 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
5609 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
5610 Array_Type_Declaration,Build_Derived_Record_Type,
5611 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
5612 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
5613 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
5614 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
5615 called only when appropriate.
5616 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
5618 (Analyze_Subtype_Declaration): For an access subtype declaration, create
5619 an itype reference for the anonymous designated subtype, to prevent
5620 scope anonmalies in gigi.
5621 (Build_Itype_Reference): New utility, to simplify construction of such
5624 2007-04-06 Vincent Celier <celier@adacore.com>
5626 * errutil.adb (Initialize): Initialize warnings table, if all warnings
5627 are suppressed, supply an initial dummy entry covering all possible
5630 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
5631 and start with only one, such as "-RTS=none".
5632 (Collect_Arguments): Do not check for sources outside of projects.
5633 Do not collect arguments if project is externally built.
5634 (Compile_Sources): Do nothing, not even check if the source is up to
5635 date, if its project is externally built.
5636 (Compile): When compiling a predefined source, add -gnatpg
5637 as the second switch, after -c.
5638 (Compile_Sources): Allow compilation of Annex J renames without -a
5639 (Is_In_Object_Directory): Check if the ALI file is in the object
5640 even if there is no project extension.
5641 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
5642 gnatbind if the ALI file effectively exists.
5643 (Initialize): Add the directory where gnatmake is invoked in front of
5644 the path if it is invoked from a bin directory, even without directory
5645 information, so that the correct GNAT tools will be used when spawned
5646 without directory information.
5648 * makeusg.adb: Change switch -S to -eS
5649 Add lines for new switches -we, -wn and -ws
5650 Add line for new switch -p
5652 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
5653 Treat_As_Error and there are warnings.
5655 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
5656 -gnatww Change gnatmake switch -S to -eS
5657 (Scan_Make_Switches): Code reorganisation. Process separately multi
5658 character switches and single character switches.
5659 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
5660 False when switch is not recognized by gnatmake.
5661 (Scan_Make_Switches): Set Setup_Projects True when -p or
5662 --create-missing-dirs is specified.
5664 * fname.adb (Is_Predefined_File_Name): Return True for annex J
5665 renamings Calendar, Machine_Code, Unchecked_Conversion and
5666 Unchecked_Deallocation only when Renamings_Included is True.
5668 * par.adb: Allow library units Calendar, Machine_Code,
5669 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
5670 when -gnatg is not specified.
5671 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
5672 there is no need to generate always a record_definition_node in case
5673 of synchronized interface types.
5674 (SIS_Entry_Active): Initialize global variable to False
5675 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
5676 indicate cases where AI-447 says "not null" is legal.
5678 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
5680 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
5681 files with with several lines starting with the object fileb name.
5682 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
5684 (Initialize): Add the directory where gprmake is invoked in front of the
5685 path, if it is invoked from a bin directory or with directory
5686 information, so that the correct GNAT tools will be used when invoked
5688 (Check_Compilation_Needed): Process correctly backslashes on Windows.
5690 * vms_data.ads: Update switches/qualifiers
5692 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5693 Thomas Quinot <quinot@adacore.com>
5696 If the array component is a discriminated record, the array aggregate
5697 is non-static even if the component is given by an aggregate with
5699 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
5700 (Convert_Aggr_In_Allocator): If the allocator is for an access
5701 discriminant and the type is controlled. do not place on a finalization
5702 list at this point. The proper list will be determined from the
5704 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
5705 initialize record controller if needed, before the components, to ensure
5706 that they are properly finalized.
5707 (Build_Record_Aggr_Code): For the case of an array component that has a
5708 corresponding array aggregate in the record aggregate, perform sliding
5711 2007-04-06 Javier Miranda <miranda@adacore.com>
5712 Gary Dismukes <dismukes@adacore.com>
5713 Ed Schonberg <schonberg@adacore.com>
5715 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
5716 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
5718 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
5719 accessibility on class-wide allocators if the allocator occurs at the
5720 same scope level as the allocator's type. The check is guaranteed to
5721 succeed in that case, even when the expression originates from a
5722 parameter of the containing subprogram.
5723 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
5724 under No_Dispatching_Calls restriction. During the semantic analysis
5725 we already notified such violation.
5726 (Tagged_Membership): Constant folding. There is no need to check
5727 the tag at run-time if the type of the right operand is non
5728 class-wide abstract.
5729 Replace call to Is_Ancestor by call to Is_Parent
5730 to support concurrent types with interface types.
5731 (Expand_N_Allocator): Add an assertion associated with the generation
5733 (Expand_N_Slice): Do not enable range check to nodes associated
5734 with the frontend expansion of the dispatch table.
5735 (Is_Local_Access_Discriminant): Subsidiary function to
5737 (Tagged_Membership): Replace generation of call to the run-time
5738 subprogram CW_Membership by call to Build_CW_Membership.
5739 (Expand_Allocator_Expression): Replace generation of call to the
5740 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
5742 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
5743 initialize most the TSD components by means of an aggregate.
5744 Modify the declaration of the object containing the TSD
5745 because we now expand code that has a higher level of abstraction.
5746 The TSD has a discriminant containing the Inheritance Depth Level,
5747 value that is used in the membership test but also to fix the size
5748 of the table of ancestors.
5749 (Expand_Interface_Conversion): Insert function body at the closest place
5750 to the conversion expression, to prevent access-before-elaboration
5751 errors in the backend.
5752 Code improved to reduce the size of the dispatch table if
5753 compiling under restriction No_Dispatching_Calls plus code cleanup.
5754 Code reorganization plus removal of calls to Set_Num_Prim_Ops
5755 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
5756 (Expand_Dispatching_Call): Minor code reorganization plus addition of
5757 code to return immediately if compiling under No_Dispatching_Calls
5759 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
5760 CPP_Virtual and CPP_Vtable are no longer supported.
5761 (Expand_Interface_Conversion): Add missing support for interface type
5763 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
5764 Is_Parent to support concurrent types with interfaces.
5765 (Init_Predefined_Interface_Primitives): Removed.
5766 (Make_Secondary_DT): Modified to support concurrent record types.
5767 (Set_All_DT_Position): Modified to support concurrent record types.
5768 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
5769 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
5770 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
5772 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
5773 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
5774 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
5775 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
5776 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
5777 (Expand_Dispatching_Call): Replace generation of call to the run-time
5778 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
5779 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
5781 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
5782 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
5783 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
5784 Build_Set_Prim_Op_Address.
5785 (Get_Remotely_Callable): Subprogram removed.
5786 (Init_Predefined_Interface_Primitives): Replace generation of call to
5787 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
5790 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
5791 First (Parameter_Associations ()) with the call to First_Actual that
5792 returns an actual parameter expression for both named and positional
5795 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
5796 check violation of restriction No_Dispatching_Calls.
5797 (Check_Controlling_Type): A formal of a tagged incomplete type is a
5798 controlling argument.
5800 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
5801 First/Next_Component_Or_Discriminant
5802 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
5803 (Find_Implemented_Interface): Removed. All the calls to this subprogram
5804 specify Any_Limited_Interface, and this functionality is already
5805 provided by the function Has_Abstract_Interfaces.
5806 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
5807 support concurrent types implementing interfaces.
5808 (Find_Implemented_Interface): Removed. All the calls to this subprogram
5809 specify kind Any_Limited_Interface, and this functionality is already
5810 provided by the function Has_Abstract_Interfaces.
5811 (Remove_Side_Effects): replace Controlled_Type by
5812 CW_Or_Controlled_Type whenever the issue is related to
5813 using or not the secondary stack.
5815 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
5816 P_Interface_Type_Definition to fulfill the new interface (the formal
5817 Is_Synchronized is no longer required).
5819 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
5820 Update dependencies.
5822 * exp_atag.ads, exp_atag.adb: New file
5824 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5825 Bob Duff <duff@adacore.com>
5826 Cyrille Comar <comar@adacore.com>
5828 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
5829 anonymous, use finalization list of enclosing dynamic scope.
5830 (Expand_N_Package_Declaration): For a library package declaration
5831 without a corresponding body, generate RACW subprogram bodies in the
5832 spec (just as we do for the task activation call).
5833 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
5834 Is_Abstract_Type. Make sure these are called only when appropriate.
5835 Remove all code for DSP option
5836 (CW_Or_Controlled_Type): new subprogram.
5838 2007-04-06 Eric Botcazou <botcazou@adacore.com>
5839 Ed Schonberg <schonberg@adacore.com>
5840 Gary Dismukes <dismukes@adacore.com>
5842 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
5843 parameter. If it is set to true, return a result capped according to
5844 the global upper bound for the index of an entry family.
5845 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
5846 (Build_Find_Body_Index): Adjust for above change.
5847 (Entry_Index_Expression): Likewise.
5848 (Is_Potentially_Large_Family): New function extracted from...
5849 (Collect_Entry_Families): ...here. Call it to detect whether the family
5850 is potentially large.
5851 (Build_Entry_Count_Expression): If the family is potentially large, call
5852 Family_Size with 'Cap' set to true.
5853 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
5854 a protected version of an operation declared in the private part of
5855 a protected object, because they may be invoked through a callback.
5856 (Set_Privals): If the type of a private component is an anonymous access
5857 type, do not create a new itype for each protected body.
5858 If the body of a protected operation creates
5859 controlled types (including allocators for class-widetypes), the
5860 body of the corresponding protected subprogram must include a
5862 (Build_Activation_Chain_Entity): Build the chain entity for extended
5864 (Type_Conformant_Parameters): Use common predicate Conforming_Types
5865 to determine whether operation overrides an inherited primitive.
5866 (Build_Wrapper_Spec): Add code to examine the parents while looking
5867 for a possible overriding candidate.
5868 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
5869 hold an actual parameter value since its initialization is separated
5870 from the the declaration. Prevents errors on null-excluding access
5873 2007-04-06 Thomas Quinot <quinot@adacore.com>
5875 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
5876 Do an Unchecked_Conversion to handle the passage from the Underlying
5877 Type to the Base Type when calling Build_To_Any_Call and
5878 Build_From_Any_Call.
5879 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
5880 E_Constant, depending upon Variable formal.
5881 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
5882 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
5883 parameter that requires an extra constrained parameter, declare
5884 temporary for actual as a variable, not a constant.
5885 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
5886 the unit being compiled is the one that contains the stub type.
5887 Change primitive operation name for the RACW associated with a RAS
5888 from Call to _Call so it cannot clash with any legal identifier.
5889 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
5891 (Append_RACW_Bodies): New subprogram.
5892 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
5893 Add_Receiving_Stubs_To_Declarations functions.
5894 When expanding a package body, this list correspond to the
5895 statements in the HSS at the end of the pacakge.
5896 When expanding a package spec, this list correspond to the
5898 (Add_Receiving_Stubs_To_Declarations): Append the function
5899 registering the receiving stubs at the end of the 'Stmts' list.
5900 (RCI_Package_Locator): Pass the new Version generic formal when
5901 instantiating a RCI_Locator package.
5902 (Build_From_Any_Function): To compute the High bound for an
5903 unconstrained array actual, we add the Low bound with the length.
5904 Thus we must convert the low bound and the length to an appropriate
5905 type before doing the sum.
5906 (Build_Subprogram_Receiving_Stubs, PolyORB):
5907 * Retrieve the extra formals parameters at the
5908 end of the parameter stream.
5909 * Use Move_Any_Value to write back out parameters
5910 after executing the request as it is more efficient
5911 than Copy_Any_Value.
5912 * Build the any containing Extra Formals with the
5913 appropriate typecode.
5914 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
5915 empty Component_List.
5916 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
5917 the tree the declaration for an object that serves as actual parameter
5918 in server-side stubs.
5919 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
5920 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
5921 Use Build_Actual_Object_Declaration to prepare the actuals.
5922 (Add_Parameter_To_NVList): Set the parameter mode to In for
5923 Extra Constrained Parameters.
5924 (Build_General_Calling_Stubs): Set the parameter type to boolean for
5925 Extra Constrained parameters.
5926 (Build_To_Any_Function, Build_From_Any_Function,
5927 Built_TypeCode_Function): When Typ is implicit, call the correct
5928 function with the first not implicit parent type.
5929 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
5930 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
5931 typecode from the Etype. Therefore we retrieve the correct typecode
5932 with a call to Get_Any_Type.
5933 (Copy_Specification): Do controlling formal type substitution based on
5934 Is_Controlling_Formal flag, instead of caller-provided object type.
5935 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
5936 a RACW primitive operation, we might get a subprogram declaration for an
5937 ancestor of the RACW designated type (not for the designated type
5938 itself), in the case where this operation is inherited. In this case we
5939 have no easy means of determining the original tagged type for which
5940 the primitive was declared, so instead we now rely on
5941 Copy_Specification to use the Is_Controlling_Formal flag to determine
5942 which formals require type substitution.
5944 2007-04-06 Robert Dewar <dewar@adacore.com>
5945 Ed Schonberg <schonberg@adacore.com>
5947 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
5948 GNAT.Current_Exception are not allowed if pragma Restrictions
5949 (No_Exception_Propagation) is set and in any case make the associated
5950 handler unsuitable as a target for a local raise statement.
5951 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
5952 run-time subprogram CW_Membership by call to Build_CW_Membership.
5953 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
5954 by a function call, a temporary must be created before expanding the
5955 Constructor_Call itself, to prevent out-of-order elaboration in the
5956 back-end when stack checking is enabled..
5958 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5960 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
5961 result are the bounds of the left operand, not the right.
5963 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5966 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
5967 discriminant defaults.
5968 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
5969 (Make_Component_List_Attributes): Ditto.
5971 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5972 Bob Duff <duff@adacore.com>
5974 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
5975 an association with a box as providing a value even though the
5976 initialization procedure for the type is not available.
5977 (Resolve_Record_Aggregate): Check that a choice of an association with a
5978 box corresponds to a component of the type.
5979 (Resolve_Record_Aggregate): Split Is_Abstract flag into
5980 Is_Abstract_Subprogram and Is_Abstract_Type.
5982 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
5985 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
5986 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
5987 called only when appropriate.
5989 2007-04-06 Olivier Hainque <hainque@adacore.com>
5991 * g-alleve.ads (Low Level Vector type definitions): Map each to the
5992 associated vector view instead of all to the unsigned char view.
5994 * g-altcon.adb (Generic_Conversions): New internal generic package,
5995 offering facilities for all the Vector/View conversion routines
5996 implemented by this unit.
5997 (To_View/To_Vector - all versions): Reimplemented in a systematic
5998 manner, using the internal Generic_Conversions facilities.
6000 2007-04-06 Pascal Obry <obry@adacore.com>
6002 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
6004 (Create): Free the source string before storing the new one.
6006 2007-04-06 Vincent Celier <celier@adacore.com>
6008 * g-debpoo.adb (Validity): New package with a complete new
6009 implementation of subprograms Is_Valid and Set_Valid.
6010 (Is_Valid): Move to local package Validity
6011 (Set_Valid): Move to local package Validity
6013 2007-04-06 Arnaud Charlet <charlet@adacore.com>
6015 * g-expect.adb (Get_Command_Output): When expanding the output buffer
6016 we must ensure that there is enough place for the new data we are going
6019 2007-04-06 Thomas Quinot <quinot@adacore.com>
6021 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
6024 2007-04-06 Jose Ruiz <ruiz@adacore.com>
6025 Vincent Celier <celier@adacore.com>
6027 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
6028 (Stack_String): Add this String that contains the name of the Stack
6029 package in the project file.
6030 (Packages_To_Check_By_Stack): Add this list that contains the packages
6031 to be checked by gnatstack, which are the naming and the stack packages.
6032 (Check_Files): If no .ci files were specified for gnatstack we add all
6033 the .ci files belonging to the projects, including binder generated
6035 (Non_VMS_Usage): Document that gnatstack accept project file switches.
6036 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
6037 Add gnatstack to the list of commands that use project file related
6038 switches, and get the single attribute Switches from the stack package
6039 in a project file when calling gnatstack. Parse the -U flag for
6040 processing files belonging to all projects in the project tree.
6041 Remove all processing for command Setup
6043 * prj-attr.adb: Add new package Stack with single attribute Switches
6045 * vms_conv.ads (Command_Type): Add command Stack.
6046 Move to body declarations that are only used in the body: types Item_Id,
6047 Translation_Type, Item_Ptr, Item and its subtypes.
6049 * vms_conv.adb: (Initialize): Add data for new command Stack.
6050 Add declarations moved from the spec: types Item_Id, Translation_Type,
6051 Item_Ptr, Item and its subtypes.
6052 (Cargs_Buffer): New table
6053 (Cargs): New Boolean global variable
6054 (Process_Buffer): New procedure to create arguments
6055 (Place): Put character in table Buffer or Cargs_Buffer depending on the
6057 (Process_Argument): Set Cargs when processing qualifiers for GNAT
6059 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
6060 empty, for table Cargs_Buffer.
6061 (Initialize): Remove component Setup in Command_List
6063 2007-04-06 Vincent Celier <celier@adacore.com>
6065 * gprep.adb (Process_Files.Process_One_File): Use full file name when
6066 issuing pragma Source_Reference.
6068 2007-04-06 Emmanuel Briot <briot@adacore.com>
6070 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
6071 [[:xdigit:]] character class.
6072 Also raise an exception when an invalid character class is used.
6074 2007-04-06 Pascal Obry <obry@adacore.com>
6076 * i-cstrea.ads: (fopen): Add encoding parameter.
6078 Change reference from a-sysdep.c to sysdep.c in comment.
6079 Update copyright notice.
6080 This set of patch add support for the encoding form parameter.
6082 * mingw32.h (S2WSU): New macro to convert from a string to a
6083 wide-string using the UTF-8 encoding. The S2WS macro supports now only
6084 standard 8bits encoding.
6085 (WS2SU): As above but converting from wide-sring to string.
6086 This is needed as it is necessary to have access to both versions in the
6087 runtime for the form parameter encoding support.
6088 This set of patch add support for the encoding form parameter.
6089 (S2WS): Improve implementation to handle cases where the filename is not
6090 UTF-8 encoded. In this case we default to using the current code page
6093 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
6094 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
6095 the constants defined in adaint.h.
6096 (fopen): Add encoding parameter.
6099 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
6100 encoding. This is needed for the Reset routine (freopen low level-call).
6102 * s-fileio.adb (Open): Decode encoding form parameter and set the
6103 corresponding encoding value into AFCB structure.
6104 (Reset): Pass the encoding value to freopen.
6105 (Close): Move the call to Lock_Task to the beginning of the procedure.
6107 2007-04-06 Geert Bosch <bosch@adacore.com>
6108 Robert Dewar <dewar@adacore.com>
6110 * i-fortra.ads: Add Double_Complex type.
6112 * impunit.adb: (Is_Known_Unit): New function
6113 Add Gnat.Byte_Swapping
6115 Add new Ada 2005 units
6116 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
6117 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
6118 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
6119 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
6121 * impunit.ads (Is_Known_Unit): New function
6123 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
6124 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
6125 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
6126 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
6127 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
6128 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
6131 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
6133 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
6135 2007-04-06 Eric Botcazou <botcazou@adacore.com>
6136 Arnaud Charlet <charlet@adacore.com>
6138 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
6139 __gnat_adjust_context_for_raise.
6140 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
6141 implementation of floating point operations as native x86 targets.
6142 So the FPU should be initialized in the same way using finit. Fix
6143 floating point operations accuracy issues.
6144 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
6145 member in struct sigaction, so as to avoid warning for incompatible
6148 2007-04-06 Serguei Rybin <rybin@adacore.com>
6150 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
6151 switches from previously loaded tree
6153 2007-04-06 Thomas Quinot <quinot@adacore.com>
6155 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
6156 cases where a given dependency has a body or not.
6157 (Write_With_File_Names): New subprogram, common code for the two cases
6160 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6161 Javier Miranda <miranda@adacore.com>
6163 * lib-xref.ads, lib-xref.adb:
6164 Modify the loop that collects type references, to include interface
6165 types that the type implements. List each of these interfaces when
6166 building the entry for the type.
6167 (Generate_Definition): Initialize component Def and Typ of new entry
6168 in table Xrefs, to avoid to have these components unitialized.
6169 (Output_References): Split Is_Abstract flag into
6170 Is_Abstract_Subprogram and Is_Abstract_Type.
6171 (Generate_Reference): Add barrier to do not generate the warning
6172 associated with Ada 2005 entities with entities generated by the
6175 2007-04-06 Robert Dewar <dewar@adacore.com>
6176 Arnaud Charlet <charlet@adacore.com>
6177 Vincent Celier <celier@adacore.com>
6179 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
6180 Update 'Exception Handling Control' chapter which was outdated.
6181 Minor fix to documentation of -gnatwq
6182 Remove section "Adapting the Run Time to a New C++ Compiler" because
6184 Add passage on need of -nostart-files in some non-ada-main cases.
6185 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
6186 Update documentation about Interfacing with C++
6187 Add documentation for new gnatmake switch -p
6188 Add missing protocol part in URLs.
6190 Document pragma Compile_Time_Error
6191 Add documentation for Object_Size indicating that stand alone
6192 objects can have a larger size in some cases.
6193 Add node for GNAT.Byte_Swapping, GNAT.SHA1
6194 Update reference to the Ravenscar profile.
6195 Document pragma Unreferenced_Objects
6197 * gnat-style.texi: Fix typo
6199 2007-04-06 Vincent Celier <celier@adacore.com>
6201 * mlib.adb (Building_Library): Only output "building a library..." in
6204 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
6205 files in verbose mode.
6207 * mlib-utl.adb (Ar): Only output the first object files when not in
6209 (Gcc): Do not display all the object files if not in verbose mode, only
6212 2007-04-06 Robert Dewar <dewar@adacore.com>
6214 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
6215 it no longer destroys the contents of Name_Buffer or Name_Len and
6216 non-standard and invalid names are handled better.
6217 (Get_Decoded_Name_String): Improve performance by using
6218 Name_Has_No_Encodings flag in the name table.
6219 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
6220 Used for debugging printouts.
6222 2007-04-06 Robert Dewar <dewar@adacore.com>
6223 Javier Miranda <miranda@adacore.com>
6224 Bob Duff <duff@adacore.com>
6226 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
6227 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
6228 there is no need to generate always a record_definition_node in case
6229 of synchronized interface types.
6230 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
6231 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
6232 illegal in Ada 95, in cases where it is legal. Change the warnings to
6233 errors in other cases. Don't give the error unless the "not null"
6234 parses properly. Correct the source position at which the error occurs.
6235 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
6236 P_Null_Exclusion, to suppress "not null" warnings.
6237 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
6238 associated goto statements.
6240 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
6243 * scans.ads (Type_Token_Location): New flag
6245 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
6246 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
6247 P_Null_Exclusion, to suppress "not null" warnings.
6249 2007-04-06 Robert Dewar <dewar@adacore.com>
6250 Javier Miranda <miranda@adacore.com>
6251 Bob Duff <duff@adacore.com>
6252 Vincent Celier <celier@adacore.com>
6254 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
6255 (Extensions_Allowed): No longer sets Ada_Version
6256 Entry for pragma Unreferenced_Objects
6258 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
6259 system.tasking if pragma priority used in a procedure
6260 (Analyze_Pragma, case Warning): Handle dot warning switches
6261 (Process_Compile_Time_Warning_Or_Error): New procedure
6262 (Analyze_Pragma): Add processing for Compile_Time_Error
6263 Add support for extra arguments External_Name and Link_Name.
6264 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
6265 (Process_Import_Or_Interface): Add support for the use of pragma Import
6267 (Extensions_Allowed): No longer affects Ada_Version
6268 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
6269 Is_Abstract_Type. Make sure these are called only when appropriate.
6270 Add processing for pragma Unreferenced_Objects
6272 * snames.h, snames.ads, snames.adb: Add entry for pragma
6274 Add new standard name Minimum_Binder_Options for new gprmake
6275 Add new standard names for gprmake: Archive_Suffix,
6276 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
6277 Library_Support, Library_Version_Options,
6278 Shared_Library_Minimum_Options,
6279 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
6280 Change Name_Call to Name_uCall so that it cannot clash with a legal
6282 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
6283 Append C_Plus_Plus to convention identifiers as synonym for CPP
6284 Add new standard names Stack and Builder_Switches
6285 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
6286 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
6287 Run_Path_Option, Toolchain_Version.
6288 Entry for pragma Unreferenced_Objects
6290 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
6291 switches, without repetition of "eD". Make sure that last character of
6292 -gnatep= switch is not taken as -gnat switch character.
6293 Complete rewrite of circuit for handling saving compilation options
6294 Occasioned by need to support dot switchs for -gnatw, but cleans up
6296 -gnatX does not affect Ada_Version
6297 Include -gnatyA in -gnatg style switches
6299 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
6300 warnings on return objects.
6301 (Warn_On_Useless_Assignment): Exclude warnings on return objects
6302 (Set_Dot_Warning_Switch): New procedure
6303 (Check_References): Add missing case of test for
6304 Has_Pragma_Unreferenced_Objects
6305 (Output_Unreferenced_Messages): Implement effect of new pragma
6306 Unreferenced_Objects, remove special casing of limited controlled
6309 2007-04-06 Vincent Celier <celier@adacore.com>
6311 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
6312 the default project path, initially done during elaboration of the
6314 If the prefix returned by Sdefault is null, get the prefix from a call
6315 to Executable_Prefix_Path.
6316 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
6319 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
6320 canonical directory name to open the directory from which files are
6322 (Record_Other_Sources): Idem.
6323 (Locate_Directory): Add the possibility to create automatically missing
6324 directories when Setup_Projects is True.
6325 Call Locate_Directory so that the directory will be created when
6326 Setup_Projects is True, for object dir, library dir, library ALI dir,
6327 library source copy dir and exec dir.
6329 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
6332 2007-04-06 Robert Dewar <dewar@adacore.com>
6334 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
6335 Use First/Next_Component_Or_Discriminant
6336 (Analyze_Record_Representation_Clause):
6337 Use First/Next_Component_Or_Discriminant
6338 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
6339 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
6340 definition if type is unconstrained.
6341 (Adjust_Record_For_Reverse_Bit_Order): New procedure
6342 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
6343 Is_Abstract_Subprogram and Is_Abstract_Type.
6344 (Adjust_Record_For_Reverse_Bit_Order): New procedure
6346 * repinfo.adb (List_Record_Info): Use First/
6347 Next_Component_Or_Discriminant.
6349 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
6352 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
6353 Include -gnatyA in default switches
6355 * opt.ads: (Warn_On_Non_Local_Exception): New flag
6356 (Warn_On_Reverse_Bit_Order): New flag
6357 (Extensions_Allowed): Update the documentation.
6358 (Warn_On_Questionable_Missing_Parens): Now on by default
6360 * usage.adb: Add documentation of -gnatw.x/X switches
6361 Document new -gnatyA style switch
6362 -gnatq warnings are on by default
6364 2007-04-06 Ed Falis <falis@adacore.com>
6366 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
6367 full word is no longer compared twice.
6369 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6371 * sem_ch10.adb (Install_Limited_Context_Clauses.
6372 Expand_Limited_With_Clause): Use a new copy of selector name in the
6373 call to Make_With_Clause. This fixes the tree structure for ASIS
6374 purposes. Nothing is changed in the compiler behaviour.
6375 (Process_Body_Clauses): Handle properly use clauses whose prefix is
6377 (Install_Limited_With_Clauses): Do not install non-limited view when it
6378 is still incomplete.
6380 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6381 Gary Dismukes <dismukes@adacore.com>
6383 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
6384 when capturing size information, instead of base type, which for a
6385 formal array type will be the unconstrained type.
6386 (Analyze_Formal_Object_Declaration): Add check for illegal default
6387 expressions for a formal in object of a limited type.
6388 (Instantiate_Object): Ditto.
6389 (Check_Formal_Package_Instance): Skip entities that are formal objects,
6390 because they were defaulted in the formal package and no check applies
6392 (Check_Formal_Package_Instance): Extend conformance check to other
6393 discrete types beyond Integer.
6394 (Process_Default): Copy directly the unmatched formal. A generic copy
6395 has already been performed in Analyze_Formal_Package.
6396 (Analyze_Associations): If a formal subprogram has no match, check for
6397 partial parametrization before looking for a default, to prevent
6399 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
6400 not set the instantiation environment before analyzing the actuals.
6401 Fixes regression on 8515-003 with implementation of AI-133.
6402 Set_Instance_Env checks whether the generic unit is a predefined
6403 unit, in which case the instance must be analyzed with the latest Ada
6404 mode. This setting must take place after analysis of the actuals,
6405 because the actuals must be analyzed and frozen in the Ada mode extant
6406 outside of the current instantiation.
6407 (Save_Env, Restore_Env): Preserve and restore the configuration
6408 parameters so that predefined units can be compiled in the proper Ada
6410 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
6411 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
6412 and Is_Abstract_Type.
6413 (Analyze_Formal_Package): For better error recovery, Add exception
6414 handler to catch Instantion_Error, which can be raised in
6415 Analyze_Associations
6417 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6418 Bob Duff <duff@adacore.com>
6419 Gary Dismukes <dismukes@adacore.com>
6421 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
6422 prefix type is a discriminated subtype of the type of the formal.
6423 (Analyze_Allocator): Collect all coextensions regardless of the context.
6424 Whether they can be allocated statically is determined in exp_ch4.
6425 (Analyze_Selected_Component): If the prefix is a limited view and the
6426 non-limited view is available, use the non-limited one.
6427 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
6428 therefore illegal), suggest a qualified expression rather than a type
6429 conversion, because a type conversion would be illegal in this context.
6430 (Anayze_Allocator): Trace recursively all nested allocators so that all
6431 coextensions are on the corresponding list for the root. Do no mark
6432 coextensions if the root allocator is within a declaration for a stack-
6433 allocated object, because the access discriminants will be allocated on
6435 (Analyze_Call): Remove restriction on calls to limited functions for the
6436 cases of generic actuals for formal objects, defaults for formal objects
6437 and defaults for record components.
6438 (Analyze_Allocator): Before analysis, chain coextensions on the proper
6439 element list. Their expansion is delayed until the enclosing allocator
6440 is processed and its finalization list constructed.
6441 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
6442 for an operation with the given name among the primitive operations of
6443 the corresponding record type.
6444 (Analyze_Selected_Component): If the prefix is a task type that
6445 implements an interface, and there is no entry with the given name,
6446 check whether there is another primitive operation (e.g. a function)
6448 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
6449 properly the indexing of a function call written in prefix form, where
6450 the function returns an array type, and all parameters of the function
6451 except the first have defaults.
6452 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
6453 the original operands, rather than relocating them, for efficiency and
6454 to work properly when an operand is overloaded.
6455 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
6456 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
6457 (Analyze_Selected_Component): If the prefix is a private extension, only
6458 scan the visible components, not those of the full view.
6459 (Try_Primitive_Operation): If the operation is a procedure, collect all
6460 possible interpretations, as for a function, because in the presence of
6461 classwide parameters several primitive operations of the type can match
6462 the given arguments.
6464 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6465 Robert Dewar <dewar@adacore.com>
6467 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
6468 tag-indeterminate call to an abstract function, when the left-hand side
6470 (Analyze_Loop_Statement): Improve detection of infinite loops
6472 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6473 Thomas Quinot <quinot@adacore.com>
6475 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
6476 out of Analyze_Package_Declaration, because processing must be applied
6477 to package bodies as well, for deferred constants completed by pragmas.
6478 (Analyze_Package_Declaration): When the package declaration being
6479 analyzed does not require an explicit body, call Check_Completion.
6480 (May_Need_Implicit_Body): An implicit body is required when a package
6481 spec contains the declaration of a remote access-to-classwide type.
6482 (Analyze_Package_Body): If the package contains RACWs, append the
6483 pending subprogram bodies generated by exp_dist at the end of the body.
6484 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
6485 Is_Abstract_Subprogram and Is_Abstract_Type.
6486 (Preserve_Full_Attributes): The full entity list is not an attribute
6487 that must be preserved from full to partial view.
6489 * sem_dist.adb (Add_RAS_Dereference_TSS):
6490 Change primitive name to _Call so it cannot clash with any legal
6491 identifier, and be special-cased in Check_Completion.
6492 Mark the full view of the designated type for the RACW associated with
6493 a RAS as Comes_From_Source to get proper view switching when installing
6494 private declarations.
6495 Provite a placeholder nested package body along with the nested spec
6496 to have a place for Append_RACW_Bodies to generate the calling stubs
6497 and stream attributes.
6499 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6500 Robert Dewar <dewar@adacore.com>
6502 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
6503 that is a limited view, check the non-limited view if available.
6504 (Undefined): Refine error message for missing with of Text_IO
6505 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
6506 to distinguish real missing with cases.
6507 Fix format of all missing with messages
6508 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
6509 renaming as body when renamed entity is abstract.
6511 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6512 Javier Miranda <miranda@adacore.com>
6514 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
6515 predicate recursive, to handle complex expressions on literals whose
6516 spurious ambiguity comes from the abstract interpretation of some
6518 (Interface_Present_In_Ancestor): Add support to concurrent record
6520 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
6521 Is_Abstract_Subprogram and Is_Abstract_Type.
6523 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6524 Javier Miranda <miranda@adacore.com>
6526 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
6527 dereference of a local object R created as a reference to another
6528 object O, use the access level of O.
6529 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
6530 rather than local Same_Formal_Type, to check whether protected operation
6531 overrides an inherited one.
6532 (Same_Formal_Type): New predicate, used when matching signatures of
6533 overriding synchronized operations, to handle the case when a formal
6534 has a type that is a generic actual.
6535 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
6536 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
6537 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
6538 syntactic ambiguities involving indexing of function calls that return
6540 (Abstract_Interface_List): New subprogram that returns the list of
6541 abstract interfaces associated with a concurrent type or a
6542 concurrent record type.
6543 (Interface_Present_In_Parent): New subprogram used to check if a
6544 given type or some of its parents implement a given interface.
6545 (Collect_Abstract_Interfaces): Add support for concurrent types
6546 with interface types.
6547 (Has_Abstract_Interfaces): Add support for concurrent types with
6549 (Is_Parent): New subprogram that determines whether E1 is a parent
6550 of E2. For a concurrent type its parent is the first element of its
6551 list of interface types; for other types this function provides the
6552 same result than Is_Ancestor.
6553 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
6554 (Collect_Synchronized_Interfaces): Removed because the subprogram
6555 Collect_Abstract_Interfaces provides this functionality.
6556 (Collect_Abstract_Interfaces): Minor update to give support to
6557 concurrent types and thus avoid undesired code duplication.
6558 (Get_Subprogram_Entity): Handle entry calls.
6559 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
6561 (Enter_Name): Do not give -gnatwh hiding warning for record component
6562 entities, they never result in hiding.
6564 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6565 Robert Dewar <dewar@adacore.com>
6567 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
6568 to chain nested components that are allocators for access discriminants
6569 of the enclosing object.
6570 Add N_Push and N_Pop nodes
6571 New field Exception_Label added
6572 (Local_Raise_Statements): New field in N_Exception_Handler_Node
6573 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
6574 (Is_Coextension): New flag for allocators, to mark allocators that
6575 correspond to access discriminants of dynamically allocated objects.
6576 (N_Block_Statement): Document the fact that the corresponding entity
6577 can be an E_Return_Statement.
6578 (Is_Coextension): New flag for allocators.
6579 Remove all code for DSP option
6581 * sprint.ads, sprint.adb: Display basic information for class_wide
6582 subtypes. Add handling of N_Push and N_Pop nodes
6584 2007-04-06 Arnaud Charlet <charlet@adacore.com>
6586 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
6587 before propagating exception.
6589 2007-04-06 Olivier Hainque <hainque@adacore.com>
6591 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
6592 an address always within the call instruction from a return address.
6594 2007-04-06 Olivier Hainque <hainque@adacore.com>
6595 Eric Botcazou <botcazou@adacore.com>
6597 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
6598 expression with a COMPOUND_EXPR including the call instead of emitting
6599 the call directly here.
6600 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
6601 high bound is constant and the slice is empty. Tidy.
6602 (tree_transform, case N_Op_Not): Handle properly the case where the
6603 operation applies to a private type whose full view is a modular type.
6604 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
6605 Address_Clause, use the associated Expression as the GNAT tree
6606 representing the choice value to ensure the corresponding GCC tree is
6608 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
6609 instead of just the operands, as the base GCC stabilize_reference does.
6610 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
6611 requested; otherwise fail.
6612 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
6614 2007-04-06 Thomas Quinot <quinot@adacore.com>
6616 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
6617 implementation of UI_Div.
6618 (UI_Div): Reimplement as a call to UI_Div_Rem.
6619 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
6620 remainder, avoiding the cost of a multiplication and a subtraction.
6621 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
6622 provides both quotient and remainder in a single computation.
6623 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
6625 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
6626 is undefined if the given n is not inversible.
6628 2007-04-06 Olivier Hainque <hainque@adacore.com>
6630 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
6631 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
6634 2007-04-06 Eric Botcazou <botcazou@adacore.com>
6635 Olivier Hainque <hainque@adacore.com>
6637 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
6638 when updating the contents of the old pointer to an unconstrained array.
6639 (end_subprog_body): Set error_gnat_node to Empty.
6640 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
6641 (unchecked_convert): For subtype to base type conversions, require that
6642 the source be a subtype if it is an integer type.
6643 (builtin_decls): New global, vector of available builtin functions.
6644 (gnat_pushdecl): Add global builtin function declaration nodes to the
6646 (gnat_install_builtins): Adjust comments.
6647 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
6648 calling gnat_pushdecl, so that it knows when it handed a builtin
6649 function declaration node.
6650 (builtin_decl_for): Search the builtin_decls list.
6652 2007-04-06 Eric Botcazou <botcazou@adacore.com>
6654 * s-stchop-vxworks.adb:
6655 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
6657 2007-04-06 Robert Dewar <dewar@adacore.com>
6658 Arnaud Charlet <charlet@adacore.com>
6660 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
6662 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
6664 Add mention of -Sev (set initialize_scalars option from environment
6665 variable at run time) in gnatbind usage message.
6667 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
6669 * fname-uf.ads: Minor comment fix
6671 * osint.ads: Change pragma Elaborate to Elaborate_All
6673 * par-load.adb: Add documentation.
6675 * sem_cat.ads, sem_cat.adb: Minor code reorganization
6677 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
6679 * s-secsta.ads: Extra comments
6681 * s-soflin.ads: Minor comment fixes
6683 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
6685 * s-wchcon.ads: Minor comment addition
6687 * treepr.adb: Minor change in message
6688 (Print_Name,Print_Node): Make these debug printouts more robust: print
6689 "no such..." instead of crashing on bad input.
6691 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
6693 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
6694 instead of gnat_signed_or_unsigned_type.
6695 * utils.c (gnat_signed_or_unsigned_type): Remove.
6696 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
6697 * gigi.h (gnat_signed_or_unsigned_type): Remove
6699 2007-03-09 Roger Sayle <roger@eyesopen.com>
6701 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
6702 fold with the result of buildN.
6703 * decl.c (gnat_to_gnu_entity): Likewise.
6704 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
6705 * utils.c (finish_record_type, merge_sizes, max_size, convert):
6707 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
6708 nonbinary_modular_operation, build_binary_op, build_unary_op,
6709 build_cond_expr): Likewise.
6711 * utils.c (convert): Use fold_build1 when casting values to void.
6712 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
6713 fold_convert instead of convert when appropriate.
6715 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
6717 * Make-lang.in: Add install-pdf target as copied from
6718 automake v1.10 rules.
6720 2007-02-28 Andreas Schwab <schwab@suse.de>
6722 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
6723 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
6724 (doc/gnat-style.info): Likewise.
6726 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
6728 * gnat-style.texi: Standardize title page.
6729 * gnat_rm.texi: Likewise.
6730 * gnat_ugn.texi: Likewise.
6732 2007-02-25 Mark Mitchell <mark@codesourcery.com>
6734 * decl.c (annotate_value): Adjust for refactoring of tree_map
6737 2007-02-24 Mark Mitchell <mark@codesourcery.com>
6739 * decl.c (annotate_value): Adjust for refactoring of tree_map
6742 2007-02-21 Ed Schonberg <schonberg@adacore.com>
6745 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
6746 untagged derived type, add hidden components to keep discriminant
6747 layout consistent, when a given discriminant of the derived type
6748 constraints several discriminants of the parent type.
6750 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
6751 Sandra Loosemore <sandra@codesourcery.com>
6753 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
6754 build the call expression.
6755 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
6756 * utils.c (max_size) <tcc_exceptional>: Delete.
6757 <tcc_vl_exp>: New case.
6758 <tcc_expression>: Delete CALL_EXPR subcase.
6759 (build_global_cdtor): Use build_call_nary instead of build3.
6760 * utils2.c (build_call_1_expr): Likewise.
6761 (build_call_2_expr): Likewise.
6762 (build_call_0_expr): Likewise.
6763 (build_call_alloc_dealloc): Likewise.
6765 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
6767 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
6768 get_action_description_for): Replace _Unwind_Word with _uleb128_t
6769 and _Unwind_SWord with _sleb128_t.
6771 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
6773 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
6774 * decl.c: Include gt-ada-decl.h.
6775 (annotate_value_cache): New.
6776 (annotate_value): Use it instead of TREE_COMPLEXITY.
6778 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
6780 * misc.c, utils2.c: Fix comment typos.
6782 2007-01-24 Roger Sayle <roger@eyesopen.com>
6784 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
6785 TREE_CONSTANT_OVERFLOW.
6786 (allocatable_size_p, annotate_value): Likewise.
6787 * trans.c (gnat_to_gnu): Likewise.
6788 * utils.c (unchecked_convert): Likewise.
6789 * utils2.c (build_simple_component_ref): Likewise.
6791 2007-01-23 Richard Guenther <rguenther@suse.de>
6794 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
6795 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
6796 (gnatboot3): Likewise.
6797 (GNATBIND): Do not define.
6798 * Makefile.in (GNATBIND): Do not define.
6800 2007-01-08 Richard Guenther <rguenther@suse.de>
6802 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
6803 * trans.c (gnat_to_gnu): Likewise.
6805 2006-12-07 Geoffrey Keating <geoffk@apple.com>
6807 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
6808 * adaint.c: Likewise.
6810 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
6812 Merge from gimple-tuples-branch:
6813 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
6815 * ada-tree.h (lang_tree_node): Handle gimple tuples.
6816 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
6819 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
6821 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
6822 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
6825 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
6828 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
6829 if the initializer takes into account the padding.
6831 2006-11-11 Richard Guenther <rguenther@suse.de>
6833 * trans.c (maybe_stabilize_reference): Remove handling of
6834 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
6836 2006-11-05 Arnaud Charlet <charlet@adacore.com>
6839 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
6840 (To_Target_Priority): New function.
6842 2006-10-31 Robert Dewar <dewar@adacore.com>
6844 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
6845 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
6846 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
6847 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
6848 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
6849 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
6850 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
6851 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
6852 a-szbzha.adb: Minor reformatting. Fix header.
6854 * a-numaux-x86.adb: Add parentheses for use of unary minus
6855 * a-ngcefu.adb: Supply missing parentheses for unary minus
6856 * a-ngcoty.adb: Add parens for use of unary minus
6857 * a-ngelfu.adb: Add missing parens for unary minus
6858 * a-tifiio.adb: Add parentheses for uses of unary minus
6860 2006-10-31 Robert Dewar <dewar@adacore.com>
6861 Bob Duff <duff@adacore.com>
6862 Ed Schonberg <schonberg@adacore.com>
6864 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
6865 with multiplying operator.
6866 (Expected_Type_Is_Any_Real): New function to determine from the Parent
6867 pointer whether the context expects "any real type".
6868 (Resolve_Arithmetic_Op): Do not give an error on calls to the
6869 universal_fixed "*" and "/" operators when they are used in a context
6870 that expects any real type. Also set the type of the node to
6871 Universal_Real in this case, because downstream processing requires it
6872 (mainly static expression evaluation).
6873 Reword some continuation messages
6874 Add some \\ sequences to continuation messages
6875 (Resolve_Call): Refine infinite recursion case. The test has been
6876 sharpened to eliminate some false positives.
6877 Check for Current_Task usage now includes entry barrier, and is now a
6878 warning, not an error.
6879 (Resolve): If the call is ambiguous, indicate whether an interpretation
6880 is an inherited operation.
6881 (Check_Aggr): When resolving aggregates, skip associations with a box,
6882 which are priori correct, and will be replaced by an actual default
6883 expression in the course of expansion.
6884 (Resolve_Type_Conversion): Add missing support for conversion from
6885 a class-wide interface to a tagged type. Minor code cleanup.
6886 (Valid_Tagged_Converion): Add support for abstact interface type
6888 (Resolve_Selected_Component): Call Generate_Reference here rather than
6889 during analysis, and use May_Be_Lvalue to distinguish read/write.
6890 (Valid_Array_Conversion): New procedure, abstracted from
6891 Valid_Conversion, to incorporate accessibility checks for arrays of
6892 anonymous access types.
6893 (Valid_Conversion): For a conversion to a numeric type occurring in an
6894 instance or inlined body, no need to check that the operand type is
6895 numeric, since this has been checked during analysis of the template.
6896 Remove legacy test for scope name Unchecked_Conversion.
6898 * sem_res.ads: Minor reformatting
6900 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
6901 (PE_Current_Task_In_Entry_Body): New exception code
6902 (SE_Restriction_Violation): Removed, not used
6904 * a-except.ads: Update comments.
6906 * types.h, types.ads: Add definition for Validity_Check
6907 (PE_Current_Task_In_Entry_Body): New exception code
6908 (SE_Restriction_Violation): Removed, not used
6910 2006-10-31 Thomas Quinot <quinot@adacore.com>
6912 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
6915 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
6916 Jose Ruiz <ruiz@adacore.com>
6918 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
6919 part of Ada.Calendar: all subprogram raise Unimplemented.
6920 (Split_W_Offset): Temp function body, raising Unimplemented
6922 * a-calend.ads, a-calend-vms.ads:
6923 Add imported variable Invalid_TZ_Offset used to designate targets unable
6924 to support time zones.
6925 (Unimplemented): Temporary function raised by the body of new
6927 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
6928 unit provides handling of leap seconds and is used by the new Ada 2005
6929 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
6930 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
6931 version returns an extra value which is the offset to UTC.
6933 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
6934 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
6935 (Split_W_Offset): New function body.
6936 (Time_Of): When a date is close to UNIX epoch, compute the time for
6937 that date plus one day (that amount is later substracted after
6938 executing mktime) so there are no problems with time zone adjustments.
6940 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
6942 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
6943 a-catizo.ads, a-catizo.adb: New files.
6945 * impunit.adb: Add new Ada 2005 entries
6947 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
6948 Rename all occurences of "__gnat_localtime_r" to
6949 "__gnat_localtime_tzoff".
6950 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
6951 zone data and calculate the GMT offset.
6952 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
6953 Use the field "tm_gmtoff" to extract the GMT offset.
6954 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
6955 the external variable "timezone" to calculate the GMT offset.
6957 2006-10-31 Arnaud Charlet <charlet@adacore.com>
6958 Jose Ruiz <ruiz@adacore.com>
6960 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
6961 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
6962 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
6963 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
6964 System.Any_Priority to a POSIX priority on the target.
6966 * system-linux-ia64.ads:
6967 Extend range of Priority types on Linux to use the whole range made
6968 available by the system.
6970 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
6971 function maps from System.Any_Priority to a POSIX priority on the
6973 (PTHREAD_PRIO_PROTECT): Set real value.
6974 (PTHREAD_PRIO_INHERIT): Now a function.
6975 (SIGCPUFAIL): New signal.
6976 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
6977 are documented as reserved by the OS.
6979 * system-aix.ads: Use the full range of priorities provided by the
6982 * s-taprop-posix.adb: Call new function To_Target_Priority.
6983 (Set_Priority): Take into account Task_Dispatching_Policy and
6984 Priority_Specific_Dispatching pragmas when determining if Round Robin
6985 must be used for scheduling the task.
6987 * system-linux-x86_64.ads, system-linux-x86.ads,
6988 system-linux-ppc.ads: Extend range of Priority types on Linux to use
6989 the whole range made available by the system.
6991 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
6992 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
6993 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
6994 when deallocating the TCB in order to avoid potential references to
6996 (Set_Priority): Take into account Task_Dispatching_Policy and
6997 Priority_Specific_Dispatching pragmas when determining if Round Robin
6998 or FIFO within priorities must be used for scheduling the task.
7000 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
7001 the Thread field (to be used internally by the run-time system) and the
7002 kernel-level task id in the LWP field (to be used by the debugger).
7003 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
7004 instance, and propagate the current task options to the spawned task.
7005 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
7006 (Initialize): Set Round Robin dispatching when the corresponding pragma
7009 2006-10-31 Robert Dewar <dewar@adacore.com>
7011 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7012 system-linux-hppa.ads, system-hpux-ia64.ads,
7013 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
7014 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7015 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7016 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
7017 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7018 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7019 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
7020 Default_Bit_Order) to kill constant condition warnings for references
7023 2006-10-31 Vincent Celier <celier@adacore.com>
7024 Eric Botcazou <ebotcazou@adacore.com>
7026 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
7027 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
7028 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
7029 Ext_To, when building the library file name
7031 * mlib-tgt-vxworks.adb: ditto.
7032 (Get_Target_Suffix): Add support for x86 targets.
7034 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
7036 * mlib-tgt-darwin.adb:
7037 Use Append_To, instead of Ext_To, when building the library file name
7038 (Flat_Namespace): New global variable.
7039 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
7040 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
7041 (Link_Shared_Libgcc): Delete.
7042 (Build_Dynamic_Library): Adjust for above changes.
7044 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
7046 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
7048 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
7049 (Initialize): Add type conversions required by above change.
7051 2006-10-31 Jose Ruiz <ruiz@adacore.com>
7053 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
7054 (getpid): New body for this function that uses the underlying taskIdSelf
7055 function for VxWorks 5 and VxWorks 6 in kernel mode.
7056 (unsigned_int): New type, modular to allow logical bit operations.
7057 (taskOptionsGet): New imported function.
7059 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
7060 field to be compliant with the type used by the corresponding operating
7063 2006-10-31 Pascal Obry <obry@adacore.com>
7064 Eric Botcazou <ebotcazou@adacore.com>
7065 Vincent Celier <celier@adacore.com>
7067 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
7068 ASCII version of the registry API. This is needed as the GNAT runtime
7069 is now UNICODE by default.
7071 (get_gcc_version): Do not hardcode the return value.
7072 (__gnat_file_time_name): On Windows properly set the default returned
7073 value to -1 which corresponds to Invalid_Time.
7074 (__gnat_fopen): New routine. A simple wrapper on all plateforms
7075 except on Windows where it does conversion for unicode support.
7076 (__gnat_freopen): Idem.
7077 (__gnat_locate_exec_on_path): If environment variable PATH does not
7078 exist, return a NULL pointer
7080 * adaint.h: (__gnat_fopen): Declare.
7081 (__gnat_freopen): Likewise.
7083 * mingw32.h (_tfreopen): Define this macro here for older MingW
7085 Activate the unicode support on platforms using a MingW runtime
7086 version 3.9 or newer.
7088 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
7089 This is needed for proper unicode support on Windows.
7092 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
7093 Nicolas Setton <setton@adacore.com>
7094 Olivier Hainque <hainque@adacore.com>
7095 Gary Dismukes <dismukes@adacore.com>
7097 * gigi.h: (tree_code_for_record_type): Declare.
7098 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
7099 (get_global_renaming_pointers): Rename to
7100 invalidate_global_renaming_pointers.
7101 (static_ctors): Delete.
7102 (static_dtors): Likewise.
7103 (gnat_write_global_declarations): Declare.
7104 (create_var_decl): Adjust descriptive comment to indicate that the
7105 subprogram may return a CONST_DECL node.
7106 (create_true_var_decl): Declare new function, similar to
7107 create_var_decl but forcing the creation of a VAR_DECL node.
7108 (get_global_renaming_pointers): Declare.
7109 (add_global_renaming_pointer): Likewise.
7111 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
7113 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
7114 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
7116 (gnat_to_gnu_entity): Remove From_With_Type from computation for
7118 <E_Access_Type>: Use the Non_Limited_View as the full view of the
7119 designated type if the pointer comes from a limited_with clause. Make
7120 incomplete designated type if it is in the main unit and has a freeze
7122 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
7123 Underlying_Full_View similarly. Return earlier if the full view already
7124 has an associated tree.
7125 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
7126 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
7127 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
7128 reference type built for objects with an address clause.
7129 Use create_true_var_decl with const_flag set for
7130 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
7132 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
7133 for Character and Wide_Character types. This info is read by the
7134 dwarf-2 writer, and is needed to be able to use the command "ptype
7135 character" in the debugger.
7136 (gnat_to_gnu_entity): When generating a type representing
7137 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
7138 so that debug writers can distinguish it from ordinary integers.
7139 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
7140 addition to TREE_READONLY to assert the constantness of variables for
7141 elaboration purposes.
7142 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
7143 parameters to call new Einfo function First_Formal_With_Extras.
7144 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
7145 protected type with its corresponding discriminant, to obtain a usable
7147 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
7148 for a multiple elaboration of the "equivalent" type.
7149 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
7150 into record_global_renaming_pointer.
7151 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
7152 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
7153 <E_Array_Subtype>: Likewise.
7154 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
7155 incomplete subtypes and incomplete subtypes of incomplete types visible
7156 through a limited with clause.
7157 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
7158 the base index type for the maximum size of the array only if they are
7160 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
7161 expression into a SAVE_EXPR if stabilization failed.
7163 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
7164 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
7165 by lower level compilation passes.
7166 (gnat_genericize): New function, lowering a function body to GENERIC.
7167 Turn the type of RESULT_DECL into a real reference type if the decl
7168 has been marked DECL_BY_REFERENCE, and adjust references to the latter
7170 (gnat_genericize_r): New function. Tree walking callback for
7172 (convert_from_reference, is_byref_result): New functions. Helpers for
7174 (create_type_decl): Call gnat_pushdecl before calling
7175 rest_of_decl_compilation, to make sure that field TYPE_NAME of
7176 type_decl is properly set before calling the debug information writers.
7177 (write_record_type_debug_info): The heuristics which compute the
7178 alignment of a field in a variant record might not be accurate. Add a
7179 safety test to make sure no alignment is set to a smaller value than
7180 the alignment of the field type.
7181 (make_dummy_type): Use the Non_Limited_View as the underlying type if
7182 the type comes from a limited_with clause. Do not loop on the full view.
7183 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
7184 (dummy_node_table): New global variable, moved from decl.c.
7185 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
7186 (save_gnu_tree): Use above macros.
7187 (get_gnu_tree): Likewise.
7188 (present_gnu_tree): Likewise.
7189 (init_dummy_type): New function, moved from decl.c. Use above macros.
7190 (make_dummy_type): Likewise.
7191 (tree_code_for_record_type): New function extracted from make_dummy_type
7192 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
7193 (static_ctors): Change it to a vector, make static.
7194 (static_dtors): Likewise.
7195 (end_subprog_body): Adjust for above change.
7196 (build_global_cdtor): Moved from trans.c.
7197 (gnat_write_global_declarations): Emit global constructor and
7198 destructor, and call cgraph_optimize before emitting debug info for
7199 global declarations.
7200 (global_decls): New global variable.
7201 (gnat_pushdecl): Store the global declarations in global_decls, for
7203 (gnat_write_global_declarations): Emit debug information for global
7205 (create_var_decl_1): Former create_var_decl, with an extra argument to
7206 state whether the creation of a CONST_DECL is allowed.
7207 (create_var_decl): Behavior unchanged. Now a wrapper around
7208 create_var_decl_1 allowing CONST_DECL creation.
7209 (create_true_var_decl): New function, similar to create_var_decl but
7210 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
7211 (create_field_decl): Do not always mark the field as addressable
7212 if its type is an aggregate.
7213 (global_renaming_pointers): New static variable.
7214 (add_global_renaming_pointer): New function.
7215 (get_global_renaming_pointers): Likewise.
7217 * misc.c (gnat_dwarf_name): New function.
7218 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
7219 (gnat_post_options): Add comment about structural alias analysis.
7220 (gnat_parse_file): Do not call cgraph_optimize here.
7221 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
7223 * trans.c (process_freeze_entity): Don't abort if we already have a
7224 non dummy GCC tree for a Concurrent_Record_Type, as it might
7225 legitimately have been elaborated while processing the associated
7226 Concurrent_Type prior to this explicit freeze node.
7227 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
7228 exception handler volatile if it is of variable size.
7229 (process_type): Remove bypass for types coming from a limited_with
7231 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
7232 actual, convert the corresponding gnu_actual to the real destination
7233 type when necessary.
7234 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
7235 originally TREE_READONLY but whose elaboration cannot be performed
7237 Part of fix for F504-021.
7238 (tree_transform, subprogram cases): Change loops on formal parameters to
7239 call new Einfo function First_Formal_With_Extras.
7240 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
7241 stemming from type conversion for the lhs.
7242 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
7243 number of bits per unit for components of records.
7244 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
7245 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
7246 with At_End_Proc after the SJLJ EH cleanup.
7247 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
7249 (elaborate_all_entities): Do not retest type_annotate_only.
7250 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
7251 result type of an abstract subprogram, which may be an itype associated
7252 with an anonymous access result (related to AI-318-02).
7253 (build_global_cdtor): Move to utils.c.
7254 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
7255 this choice is not a null tree nor an integer constant.
7256 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
7257 on the body of elaboration routines instead of mark_unvisited.
7258 (add_stmt): Do not mark the tree.
7259 (add_decl_expr): Tweak comment.
7260 (mark_unvisited): Delete.
7261 (unshare_save_expr): New static function.
7262 (call_to_gnu): Issue an error when making a temporary around a
7263 procedure call because of non-addressable actual parameter if the
7264 type of the formal is by_reference.
7265 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
7266 after building the elaboration routine.
7268 2006-10-31 Bob Duff <duff@adacore.com>
7270 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
7271 as finalization-started, so we can raise Program_Error on 'new'.
7273 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
7274 collection has already started.
7276 * s-finimp.ads (Collection_Finalization_Started): Added new special
7277 flag value for indicating that a collection's finalization has started.
7279 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
7280 create a task whose master has already waited for dependent tasks.
7282 2006-10-31 Robert Dewar <dewar@adacore.com>
7284 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
7286 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
7287 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
7288 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
7289 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
7290 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
7291 a-except-2005.ads: Add pragma Preelaborable_Warning
7293 2006-10-31 Robert Dewar <dewar@adacore.com>
7294 Jose Ruiz <ruiz@adacore.com>
7296 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
7298 * ali.adb (Get_Name): Properly handle scanning of wide character names
7299 encoded with brackets notation.
7300 (Known_ALI_Lines): Add S lines to this list.
7301 (Scan_ALI): Acquire S (priority specific dispatching) lines.
7302 New flag Elaborate_All_Desirable in unit table
7304 * ali.ads (Priority_Specific_Dispatching): Add this range of
7305 identifiers to be used for Priority_Specific_Dispatching table entries.
7306 (ALIs_Record): Add First_Specific_Dispatching and
7307 Last_Specific_Dispatching that point to the first and last entries
7308 respectively in the priority specific dispatching table for this unit.
7309 (Specific_Dispatching): Add this table for storing each S (priority
7310 specific dispatching) line encountered in the input ALI file.
7311 New flag Elaborate_All_Desirable in unit table
7313 * bcheck.adb: (Check_Configuration_Consistency): Add call to
7314 Check_Consistent_Dispatching_Policy.
7315 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
7316 verifying that the use of Priority_Specific_Dispatching,
7317 Task_Dispatching_Policy, and Locking_Policy is consistent across the
7320 * bindgen.adb: (Public_Version_Warning): function removed.
7321 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
7322 required information from ALI files in order to initialize the table
7323 containing the specific dispatching policy.
7324 (Gen_Adainit_Ada): Generate the variables required for priority specific
7325 dispatching entries (__gl_priority_specific_dispatching and
7326 __gl_num_specific_dispatching).
7327 (Gen_Adainit_C): Generate the variables required for priority specific
7328 dispatching entries (__gl_priority_specific_dispatching and
7329 __gl_num_specific_dispatching).
7330 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
7332 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
7333 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
7335 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
7336 a call to gnat_set_globals.
7337 Generate a string containing settings from
7338 Priority_Specific_Dispatching pragma entries.
7339 (Gen_Object_Files_Options): Do not include the runtime libraries when
7340 pragma No_Run_Time is specified.
7342 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
7343 consistency with s-intman-posix.adb.
7344 (__gnat_error_handler, case FreeBSD): Account for the fact that the
7345 handler is installed with SA_SIGINFO.
7346 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
7347 FreeBSD ZCX support, copied from Linux version.
7348 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
7349 sigfillset, and sigemptyset so the routines defined by MaRTE.
7350 (__gl_priority_specific_dispatching): Add this variable that stores the
7351 string containing priority specific dispatching policies in the
7353 (__gl_num_specific_dispatching): Add this variable that indicates the
7354 highest priority for which a priority specific dispatching pragma
7356 (__gnat_get_specific_dispatching): Add this routine that returns the
7357 priority specific dispatching policy, as set by a
7358 Priority_Specific_Dispatching pragma appearing anywhere in the current
7359 partition. The input argument is the priority number, and the result
7360 is the upper case first character of the policy name.
7361 (__gnat_set_globals): Now a dummy function.
7362 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
7363 mechargs instead of sigargs, as the latter can be retrieved from the
7364 former and sigargs is not what we want on ia64.
7365 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
7367 (__gnat_adjust_context_for_raise, ia64-vms): New function.
7368 (tasking_error): Remove unused symbol.
7369 (_abort_signal): Move this symbol to the IRIX specific part since this
7370 is the only target that uses this definition.
7371 (Check_Abort_Status): Move this symbol to the IRIX specific part since
7372 this is the only target that uses this definition.
7373 (Lock_Task): Remove unused symbol.
7374 (Unlock_Task): Remove unused symbol.
7376 * lib-writ.adb (Write_ALI): Output new S lines for
7377 Priority_Specific_Dispatching pragmas.
7378 Implement new flag BD for elaborate body desirable
7380 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
7381 (Specific_Dispatching): Add this table for storing the entries
7382 corresponding to Priority_Specific_Dispatching pragmas.
7383 Document new BD flag for elaborate body desirable
7385 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
7388 2006-10-31 Javier Miranda <miranda@adacore.com>
7390 * a-tags.ads, a-tags.adb:
7391 (Predefined_DT): New function that improves readability of the code.
7392 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
7393 Inherit_DT): Use the new function Predefined_DT to improve code
7395 (Register_Interface_Tag): Update assertion.
7396 (Set_Interface_Table): Update assertion.
7397 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
7398 determining progenitor interfaces in Tags.
7399 (Inherit_CPP_DT): New subprogram.
7401 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
7402 analysis of the thunk code.
7403 (Expand_Interface_Conversion): Handle run-time conversion of
7404 access to class wide types.
7405 (Expand_Dispatching_Call): When generating the profile for the
7406 subprogram itype for a dispatching operation, properly terminate the
7407 formal parameters chaind list (set the Next_Entity of the last formal
7409 (Collect_All_Interfaces): Removed. This routine has been moved to
7410 sem_util and renamed as Collect_All_Abstract_Interfaces.
7411 (Set_All_DT_Position): Hidden entities associated with abstract
7412 interface primitives are not taken into account in the check for
7413 3.9.3(10); this check is done with the aliased entity.
7414 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
7415 interfacing with CPP by default.
7416 (Expand_Interface_Conversion): Add missing support for static conversion
7417 from an interface to a tagged type.
7418 (Collect_All_Interfaces): Add new out formal containing the list of
7419 abstract interface types to cleanup the subprogram Make_DT.
7420 (Make_DT): Update the code to generate the table of interfaces in case
7421 of abstract interface types.
7422 (Is_Predefined_Dispatching_Alias): New function that returns true if
7423 a primitive is not a predefined dispatching primitive but it is an
7424 alias of a predefined dispatching primitive.
7425 (Make_DT): If the ancestor of the type is a CPP_Class and we are
7426 compiling under full ABI compatibility mode we avoid the generation of
7427 calls to run-time services that fill the dispatch tables because under
7428 this mode we currently inherit the dispatch tables in the IP subprogram.
7429 (Write_DT): Emit an "is null" indication for a null procedure primitive.
7430 (Expand_Interface_Conversion): Use an address as the type of the formal
7431 of the internally built function that handles the case in which the
7432 target type is an access type.
7434 2006-10-31 Robert Dewar <dewar@adacore.com>
7436 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
7438 2006-10-31 Robert Dewar <dewar@adacore.com>
7440 * bindusg.ads, bindusg.adb:
7441 Change to package and rename procedure as Display, which
7442 now ensures that it only outputs usage information once.
7444 2006-10-31 Jose Ruiz <ruiz@adacore.com>
7446 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
7449 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
7452 2006-10-31 Robert Dewar <dewar@adacore.com>
7453 Ed Schonberg <schonberg@adacore.com>
7455 * treepr.adb: Use new subtype N_Membership_Test
7457 * checks.ads, checks.adb: Add definition for Validity_Check
7458 (Range_Or_Validity_Checks_Suppressed): New function
7459 (Ensure_Valid): Test Validity_Check suppressed
7460 (Insert_Valid_Check): Test Validity_Check suppressed
7461 (Insert_Valid_Check): Preserve Do_Range_Check flag
7462 (Validity_Check_Range): New procedure
7463 (Expr_Known_Valid): Result of membership test is always valid
7464 (Selected_Range_Checks): Range checks cannot be applied to discriminants
7465 by themselves. Disabling those checks must also be done for task types,
7466 where discriminants may be used for the bounds of entry families.
7467 (Apply_Address_Clause_Check): Remove side-effects if address expression
7468 is non-static and is not the name of a declared constant.
7469 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
7470 Code cleanup and new error messages.
7471 (Enable_Range_Check): Test for some cases of suppressed checks
7472 (Generate_Index_Checks): Suppress index checks if index checks are
7473 suppressed for array object or array type.
7474 (Apply_Selected_Length_Checks): Give warning for compile-time detected
7475 length check failure, even if checks are off.
7476 (Ensure_Valid): Do not generate a check on an indexed component whose
7477 prefix is a packed boolean array.
7478 * checks.adb: (Alignment_Checks_Suppressed): New function
7479 (Apply_Address_Clause_Check): New procedure, this is a completely
7480 rewritten replacement for Apply_Alignment_Check
7481 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
7482 we request a discriminal value only in case of discriminants.
7483 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
7484 assignments where the target subtype is unconstrained and the target
7485 object is a parameter or dereference (other aliased cases are known
7486 to be unconstrained).
7488 2006-10-31 Robert Dewar <dewar@adacore.com>
7490 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
7491 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
7492 vms_conv.adb: Fix bad table increment values (much too small)
7494 * table.adb (Realloc): Make sure we get at least some new elements
7495 Defends against silly small values for table increment
7497 2006-10-31 Robert Dewar <dewar@adacore.com>
7498 Ed Schonberg <schonberg@adacore.com>
7499 Bob Duff <duff@adacore.com>
7501 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
7502 entities. Move other fields around to make this possible
7503 (Is_Derived_Type): Add missing call to Is_Type.
7504 (Extra_Formals): New function for subprograms, entries, subprogram
7506 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
7507 (First_Formal_With_Extras): New function for subprogs, entries, subp
7509 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
7510 Add node information for E_Return_Statement.
7511 (Elaborate_Body_Desirable): New flag
7512 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
7513 to be Is_Inherently_Limited_Type, because return-by-reference has
7514 no meaning in Ada 2005.
7515 (E_Return_Statement): New entity kind.
7516 (Return_Applies_To): Field of E_Return_Statement.
7517 (Is_Return_Object): New flag in object entities.
7518 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
7519 (Must_Have_Preelab_Init): New flag
7520 (Known_To_Have_Preelab_Init): New flag
7521 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
7522 (Is_Visible_Formal): New flag on entities in formal packages.
7523 (Low_Bound_Known): New flag
7524 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
7526 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
7527 output when Id is an incomplete subtype.
7529 2006-10-31 Robert Dewar <dewar@adacore.com>
7531 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
7532 Avoid abbreviation Creat
7533 (Finalize): List all sources in extended mail source if -gnatl
7535 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
7536 (Finalize): Implement new -gnatl=xxx switch to output listing to file
7537 (Set_Specific_Warning_On): New procedure
7538 (Set_Specific_Warning_Off): New procedure
7539 Add implementation of new insertion \\
7540 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
7541 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
7543 (Error_Msg_Internal): Make sure that we set Last_Killed to
7544 True when a message from another package is suppressed.
7545 Implement insertion character ~ (insert string)
7546 (First_Node): Minor adjustments to get better placement.
7549 Implement new -gnatl=xxx switch to output listing to file
7552 Implement new -gnatl=xxx switch to output listing to file
7554 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
7555 (Commands_To_Stdout): New flag
7556 Implement new -gnatl=xxx switch to output listing to file
7557 New switch Dump_Source_Text
7558 (Warn_On_Deleted_Code): New warning flag for -gnatwt
7559 Define Error_Msg_Line_Length
7560 (Warn_On_Assumed_Low_Bound): New switch
7562 * osint.ads, osint.adb
7563 (Normalize_Directory_Name): Fix bug.
7564 Implement new -gnatl=xxx switch to output listing to file
7565 (Concat): Removed, replaced by real concatenation
7566 Make use of concatenation now allowed in compiler
7567 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
7568 we find the 'lib' or 'bin' directory even when the tool has been
7569 invoked with a relative path.
7570 (Executable_Name): New function taking string parameters.
7572 * osint-c.ads, osint-c.adb:
7573 Implement new -gnatl=xxx switch to output listing to file
7575 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
7578 Implement new -gnatl=xxx switch to output listing to file
7579 Recognize new -gnatL switch
7580 (no longer keep in old warning about old style usage)
7581 Use concatenation to simplify code
7582 Recognize -gnatjnn switch
7583 (Scan_Front_End_Switches): Clean up handling of -gnatW
7584 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
7586 2006-10-31 Robert Dewar <dewar@adacore.com>
7588 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
7589 (Set_Specific_Warning_Off): New procedure
7590 (Warning_Specifically_Suppressed): New function
7591 (Validate_Specific_Warnings): New procedure
7592 (Output_Msg_Text): Complete rewrite to support -gnatjnn
7594 * err_vars.ads: Implement insertion character ~ (insert string)
7596 2006-10-31 Bob Duff <duff@adacore.com>
7597 Ed Schonberg <schonberg@adacore.com>
7599 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
7600 the parent part is a build-in-place function call, generate assignments.
7601 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
7602 are build-in-place function calls.
7603 (Replace_Self_Reference): New subsidiary of
7604 Make_OK_Assignment_Statement, to replace an access attribute that is a
7605 self-reference into an access to the appropriate component of the
7606 target object. Generalizes previous mechanism to handle self-references
7607 nested at any level.
7608 (Is_Self_Referential_Init): Remove, not needed.
7609 (Is_Self_Referential_Init): New predicate to simplify handling of self
7610 referential components in record aggregates.
7611 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
7612 check for presence of entity before checking for self-reference.
7613 (Has_Default_Init_Comps): Return True if a component association is a
7614 self-reference to the enclosing type, which can only come from a
7615 default initialization.
7616 (Make_OK_Assignment_Statement): If the expression is of the form
7617 Typ'Acc, where Acc is an access attribute, the expression comes from a
7618 default initialized self-referential component.
7619 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
7620 that has been derived from several abstract interfaces we must also
7621 initialize the tags of the secondary dispatch tables.
7623 2006-10-31 Ed Schonberg <schonberg@adacore.com>
7624 Thomas Quinot <quinot@adacore.com>
7625 Javier Miranda <miranda@adacore.com>
7626 Robert Dewar <dewar@adacore.com>
7629 (Expand_Access_To_Protected_Op): If the context indicates that an access
7630 to a local operation may be transfered outside of the object, create an
7631 access to the wrapper operation that must be used in an external call.
7632 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
7633 target, pass the Valid attribute applied to a floating-point prefix on
7634 to the back end without expansion.
7635 (Storage_Size): Use the new run-time function Storage_Size to retrieve
7636 the allocated storage when it is specified by a per-object expression.
7637 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
7638 Nothing to do here, the attribute has been rewritten during semantic
7640 (Expand_Attribute_Reference): Handle expansion of the new Priority
7642 (Find_Fat_Info): Handle case of universal real
7643 (Expand_Access_To_Protected_Op): Fix use of access to protected
7644 subprogram from inside the body of a protected entry.
7645 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
7646 'Access and 'Unrestricted_Access, to transform the attribute reference
7648 (Is_Constrained_Aliased_View): New predicate to help determine whether a
7649 subcomponent's enclosing variable is aliased with a constrained subtype.
7650 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
7651 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
7652 an aliased prefix must be known to be constrained in order to use True
7653 for the attribute value, and now it's possible for some aliased views
7654 to be unconstrained.
7656 2006-10-31 Robert Dewar <dewar@adacore.com>
7658 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
7659 (Expand_Entity_Reference): Correct error of not handling subprogram
7660 formals in current_value processing.
7662 2006-10-31 Javier Miranda <miranda@adacore.com>
7663 Robert Dewar <dewar@adacore.com>
7664 Ed Schonberg <schonberg@adacore.com>
7665 Gary Dismukes <dismukes@adacore.com>
7667 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
7668 register in the final list objects containing class-wide interfaces;
7669 otherwise we incorrectly register the tag of the interface in the final
7671 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
7672 generate the wrapper if the parent primitive is abstract. This is
7673 required to report the correct error message.
7674 (Expand_N_Subtype_Indication): Do validity checks on range
7675 (Clean_Task_Names): If an initialization procedure includes a call to
7676 initialize a task (sub)component, indicate that the procedure will use
7677 the secondary stack.
7678 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
7679 compatibility for interfacing with CPP by default.
7680 (Expand_N_Object_Declaration): Only build an Adjust call when the
7681 object's type is a nonlimited controlled type.
7682 * exp_ch3.adb: Add with and use of Exp_Ch6.
7683 (Expand_N_Object_Declaration): Check for object initialization that is a
7684 call to build-in-place function and apply Make_Build_In_Place_Call_In_
7685 Object_Declaration to the call.
7686 (Freeze_Type): When the designated type of an RACW was not frozen at the
7687 point where the RACW was declared, validate the primitive operations
7688 with respect to E.2.2(14) when it finally is frozen.
7689 (Build_Initialization_Call,Expand_Record_Controller): Rename
7690 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
7691 return-by-reference has no meaning in Ada 2005.
7692 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
7693 to register tag of the immediate ancestor interfaces in the
7695 (Init_Secondary_Tags): Moved to the specification to allow the
7696 initialization of extension aggregates with abstract interfaces.
7697 (Build_Master_Renaming): Make public, for use by function declarations
7698 whose return type is an anonymous access type.
7699 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
7700 Insert_List_Before_And_Analyze after the generation of the specs
7701 associated with null procedures.
7702 (Expand_Tagged_Root): Update documentation in its specification.
7703 (Init_Secondary_Tags): Update documentation.
7704 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
7705 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
7706 then generate code to inherit the contents of the dispatch table
7707 directly from the ancestor.
7708 (Expand_Record_Controller): Insert controller component after tags of
7709 implemented interfaces.
7710 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
7711 create null procedure overridings when null procedures are inherited
7713 (Make_Null_Procedure_Specs): New procedure to generate null procedure
7714 declarations for overriding null primitives inherited from interfaces.
7715 (Is_Null_Interface_Procedure): New function in
7716 Make_Null_Procedure_Specs.
7717 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
7718 immediate ancestor of a tagged type is an abstract interface type we
7719 must generate the specification of the predefined primitives associated
7720 with controlled types (because the dispatch table of the ancestor is
7721 null and hence these entries cannot be inherited). This is required to
7722 elaborate well the dispatch table.
7724 2006-10-31 Javier Miranda <miranda@adacore.com>
7725 Ed Schonberg <schonberg@adacore.com>
7726 Bob Duff <duff@adacore.com>
7727 Gary Dismukes <dismukes@adacore.com>
7728 Robert Dewar <dewar@adacore.com>
7730 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
7732 (Expand_N_In): Do validity checks on range
7733 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
7734 (Expand_N_Allocator): For "new T", if the object is constrained by
7735 discriminant defaults, allocate the right amount of memory, rather than
7736 the maximum for type T.
7737 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
7738 when the allocator is initialized by a build-in-place call, since the
7739 allocator is already rewritten as a reference to the function result,
7740 and this prevents an unwanted duplication of the function call.
7741 Add with and use of Exp_Ch6.
7742 (Expand_Allocator_Expresssion): Check for an allocator whose expression
7743 is a call to build-in-place function and apply
7744 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
7745 untagged designated types).
7746 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
7747 optimization if source or target is biased.
7748 (Expand_N_Allocator): Add comments for case of an allocator within a
7749 function that returns an anonymous access type designating tasks.
7750 (Expand_N_Allocator): apply discriminant checks for access
7751 discriminants of anonymous access types (AI-402, AI-416)
7753 2006-10-31 Bob Duff <duff@adacore.com>
7754 Robert Dewar <dewar@adacore.com>
7755 Gary Dismukes <dismukes@adacore.com>
7756 Ed Schonberg <schonberg@adacore.com>
7758 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
7760 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
7761 (Expand_N_Assignment_Statement): Call
7762 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
7763 build-in-place function call. Currently, this can happen only for
7764 assignments that come from aggregates.
7765 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
7766 in order to alleviate the upward compatibility introduced by AI-318.
7767 (Expand_N_Extended_Return_Statement): Add support for handling the
7768 return object as a build-in-place result.
7769 (Expand_Non_Function_Return): Implement simple return statements nested
7770 within an extended return.
7771 (Enable_New_Return_Processing): Turn on the new processing of return
7773 (Expand_Non_Function_Return): For a return within an extended return,
7774 don't raise Program_Error, because Sem_Ch6 now gives a warning.
7775 (Expand_N_Extended_Return_Statement): Implement AI-318
7776 (Expand_Simple_Function_Return): Ditto.
7777 (Expand_N_If_Statement): Handle new -gnatwt warning
7778 (Expand_N_Case_Statement): Handle new -gnatwt warning
7779 (Expand_N_Assignment): Handle assignment to the Priority attribute of
7781 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
7782 validity checking of assignments to elementary record components.
7783 (Expand_N_Return_Statement): return Class Wide types on the secondary
7784 stack independantly of their controlled status since with HIE runtimes,
7785 class wide types are not potentially controlled anymore.
7787 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
7790 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
7791 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
7792 it expects a block, procedure, or task. The return statement will get
7793 turned into a block, and Expand_Cleanup_Actions will happen then.
7795 2006-10-31 Robert Dewar <dewar@adacore.com>
7796 Ed Schonberg <schonberg@adacore.com>
7797 Bob Duff <duff@adacore.com>
7798 Gary Dismukes <dismukes@adacore.com>
7800 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
7802 (Expand_Inlined_Call): Tagged types are by-reference types, and
7803 therefore should be replaced by a renaming declaration in the expanded
7804 body, as is done for limited types.
7805 (Expand_Call): If this is a call to a function with dispatching access
7806 result, propagate tag from context.
7807 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
7809 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
7810 build-in-place when the right-hand side of an assignment is a
7811 build-in-place function call.
7812 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
7813 of the explicit dereference of the allocator to the result subtype of
7814 the build-in-place function. This is needed to satisfy type checking
7815 in cases where the caller's return object is created by an allocator for
7816 a class-wide access type and the type named in the allocator is a
7818 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
7819 conversion of the reference to the declared object to the result subtype
7820 of the build-in-place function. This is needed to satisfy type checking
7821 in cases where the declared object has a class-wide type. Also, in the
7822 class-wide case, change the type of the object entity to the specific
7823 result subtype of the function, to avoid passing a class-wide object
7824 without explicit initialization to the back end.
7825 (Register_Interface_DT_Entry): Moved outside the body of
7826 Freeze_Subprogram because this routine is now public; it is called from
7827 Check_Dispatching_Overriding to handle late overriding of abstract
7828 interface primitives.
7829 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
7830 adding an implicit access actual on a call to a build-in-place function.
7831 (Expand_Actuals): Test for an actual parameter that is a call to a
7832 build-in-place function and apply
7833 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
7834 (Is_Build_In_Place_Function): New function to determine whether an
7835 entity is a function whose calls should be handled as build-in-place.
7836 (Is_Build_In_Place_Function_Call): New function to determine whether an
7837 expression is a function call that should handled as build-in-place.
7838 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
7839 calls to build-in-place functions as the initialization of an allocator.
7840 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
7841 handling calls to build-in-place functions in contexts that do not
7842 involve init of a separate object (for example, actuals of subprogram
7844 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
7845 handling calls to build-in-place functions as the initialization of an
7847 (Detect_Infinite_Recursion): Add explicit parameter Process to
7848 instantiation of Traverse_Body to avoid unreferenced warning.
7849 (Check_Overriding_Inherited_Interfaces): Removed.
7850 (Register_Interface_DT_Entry): Code cleanup.
7851 (Register_Predefined_DT_Entry): Code cleanup.
7852 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
7853 inlined statements if within a transient scope.
7854 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
7855 formal parameters with occurrences of actuals in inlined body, establish
7856 visibility on the proper view of the actual's subtype for the body's
7858 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
7859 compatibility mode and we have an imported CPP subprogram because
7860 for now we assume that imported CPP primitives correspond with
7861 objects whose constructor is in the CPP side (and therefore we
7862 don't need to generate code to register them in the dispatch table).
7863 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
7864 aligned selected component.
7865 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
7866 the actual of an in-mode parameter is a type conversion.
7867 (Expand_Actuals): If the call does not come from source and the actual
7868 is potentially misaligned, let gigi handle it rather than rejecting the
7869 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
7870 Class Wide types as returning by reference independantly of their
7871 controlled status since with HIE runtimes class wide types are not
7872 potentially controlled anymore.
7874 2006-10-31 Ed Schonberg <schonberg@adacore.com>
7876 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
7877 references that are private components of the protected object.
7878 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
7879 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
7880 instantiation to deal with warnings.
7881 (Initialize_Protection): If expression for priority is non-static, use
7882 System_Priority as its expected type, in case the expression has not
7885 2006-10-31 Robert Dewar <dewar@adacore.com>
7887 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
7888 initialization of Homonym_Len.
7889 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
7890 names from fully qualified name. Fixes problem of duplicate
7891 external names differing only in the presence of such a block name.
7893 2006-10-31 Thomas Quinot <quinot@adacore.com>
7894 Pablo Oliveira <oliveira@adacore.com>
7896 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
7897 subprogram Ids, even if they are not yet assigned.
7898 (Build_Subprogram_Id): It is now this function that will take care of
7899 calling Assign_Subprogram_Ids if necessary.
7900 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
7901 should be done only once they are assigned.
7902 (Build_From_Any_Function, case of tagged types): Add missing call to
7904 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
7905 type for an RACW type.
7906 (Add_RACW_Features): When processing an RACW declaration for which the
7907 designated type is already frozen, enforce E.2.2(14) rules immediately.
7908 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
7909 special reordering of controlling formals.
7911 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
7912 associated stub type for an RACW type.
7914 2006-10-31 Ed Schonberg <schonberg@adacore.com>
7916 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
7917 fixed-point operations in an integer context, i.e. as operands of a
7918 conversion to an integer type, indicate that result must be rounded.
7920 2006-10-31 Robert Dewar <dewar@adacore.com>
7922 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
7923 cases, pass the encoding method, since it is now required by the run
7926 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
7927 assumption that Str'First = 1.
7928 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
7929 it on to the Value_Wide_Wide_Character call.
7930 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
7931 properly handles a string of the form quote-encoded_wide_char-quote.
7933 * s-wchcnv.adb: Minor reformatting
7935 2006-10-31 Javier Miranda <miranda@adacore.com>
7937 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
7938 run-time membership test to ensure that the constructed object
7939 implements the target abstract interface.
7941 2006-10-31 Robert Dewar <dewar@adacore.com>
7943 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
7944 Machine_Attribute pragma internally to implement the user pragma.
7945 Add processing for pragma Interface so that it is now completely
7946 equivalent to pragma Import.
7948 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
7949 so that it can be applied to all entities, including record components
7950 and enumeration literals.
7951 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
7952 priority ranges are correct, verify compatibility against task
7953 dispatching and locking policies, and if everything is correct an entry
7954 is added to the table containing priority specific dispatching entries
7955 for this compilation unit.
7956 (Delay_Config_Pragma_Analyze): Delay processing
7957 Priority_Specific_Dispatching pragmas because when processing the
7958 pragma we need to access run-time data, such as the range of
7959 System.Any_Priority.
7960 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
7961 Allow pragma Unreferenced as a context item
7962 Add pragma Preelaborable_Initialization
7963 (Analyze_Pragma, case Interface): Interface is extended so that it is
7964 now syntactically and semantically equivalent to Import.
7965 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
7966 insertion characters.
7967 Add handling for Pragma_Wide_Character_Encoding
7968 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
7969 never supercedes a real restriction, and that a real restriction
7970 always supercedes a warning.
7971 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
7974 2006-10-31 Bob Duff <duff@adacore.com>
7975 Ed Schonberg <schonberg@adacore.com>
7976 Robert Dewar <dewar@adacore.com>
7978 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
7979 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
7980 Is_Inherently_Limited_Type, because return-by-reference has no meaning
7982 (Find_Node_To_Be_Wrapped): Use new method of determining the result
7983 type of the function containing a return statement, because the
7984 Return_Type field was removed. We now use the Return_Applies_To field.
7986 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
7987 (Build_Task_Image_Decl): If procedure is not called from an
7988 initialization procedure, indicate that function that builds task name
7989 uses the sec. stack. Otherwise the enclosing initialization procedure
7990 will carry the indication.
7991 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
7992 N_Object_Declaration instead.
7993 (Kill_Dead_Code): New interface to implement -gnatwt warning for
7994 conditional dead code killed, and change implementation accordingly.
7995 (Insert_Actions): Add N_Return_Object_Declaration case.
7996 Correct comment to mention N_Extension_Aggregate node.
7997 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
7998 attempts to save information for global variables which cannot be
8000 (Get_Current_Value_Condition): Handle conditions the other way round
8001 (constant on left). Also handle right operand of AND and AND THEN
8002 (Set_Current_Value_Condition): Corresponding changes
8003 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
8004 (Get_Current_Value_Condition): Handle simple boolean operands
8005 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
8006 (Get_Current_Value_Condition): If the variable reference is within an
8007 if-statement, does not appear in the list of then_statments, and does
8008 not come from source, treat it as being at unknown location.
8009 (Get_Current_Value_Condition): Enhance to allow while statements to be
8010 processed as well as if statements.
8011 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
8013 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
8014 of loop. This is safe now that we fixed Kill_Current_Values.
8015 (OK_To_Do_Constant_Replacement): Check whether current scope is
8016 Standard, before examining outer scopes.
8018 2006-10-31 Vincent Celier <celier@adacore.com>
8020 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
8021 When True, apply VMS treatment to children of packages A, G, I and S.
8024 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
8026 2006-10-31 Robert Dewar <dewar@adacore.com>
8027 Ed Schonberg <schonberg@adacore.com>
8029 * freeze.adb: Add handling of Last_Assignment field
8030 (Warn_Overlay): Supply missing continuation marks in error msgs
8031 (Freeze_Entity): Add check for Preelaborable_Initialization
8033 * g-comlin.adb: Add Warnings (Off) to prevent new warning
8035 * g-expect.adb: Add Warnings (Off) to prevent new warning
8037 * lib-xref.adb: Add handling of Last_Assignment field
8038 (Generate_Reference): Centralize handling of pragma Obsolescent here
8039 (Generate_Reference): Accept an implicit reference generated for a
8040 default in an instance.
8041 (Generate_Reference): Accept a reference for a node that is not in the
8042 main unit, if it is the generic body corresponding to an subprogram
8045 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
8047 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
8049 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
8051 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
8052 use clauses, to avoid messages on packages used to qualify, and also
8053 to avoid messages from obsolescent units.
8054 (Warn_On_Useless_Assignments): Don't generate messages for imported
8055 and exported variables.
8056 (Warn_On_Useless_Assignments): New procedure
8057 (Output_Obsolescent_Entity_Warnings): New procedure
8058 (Check_Code_Statement): New procedure
8060 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
8061 Change name Is_Ada_2005 to Is_Ada_2005_Only
8062 (Last_Assignment): New field for useless assignment warning
8064 2006-10-31 Olivier Hainque <hainque@adacore.com>
8066 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
8067 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
8069 2006-10-31 Bob Duff <duff@adacore.com>
8070 Robert Dewar <dewar@adacore.com>
8071 Ed Schonberg <schonberg@adacore.com>
8073 * g-awk.adb (Default_Session, Current_Session): Compile this file in
8074 Ada 95 mode, because it violates the new rules for AI-318.
8076 * g-awk.ads: Use overloaded subprograms in every case where we used to
8077 have a default of Current_Session. This makes the code closer to be
8078 correct for both Ada 95 and 2005.
8080 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
8081 code, relying on the fact that the compiler generates a warning
8082 instead of an error in -gnatg mode.
8084 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
8085 E_Return_Statement entity kind.
8086 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
8088 * par.adb (P_Interface_Type_Definition): Addition of one formal to
8089 report an error if the reserved word abstract has been previously found.
8090 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
8092 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
8093 parenthesized range attribute usage
8094 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
8096 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
8097 in the syntax for extended_return_statement. This is not in the latest
8098 RM, but the ARG is expected to issue an AI allowing this.
8099 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
8100 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
8101 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
8102 P_Return_Statement): Parse the new syntax for extended_return_statement.
8104 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
8105 Output_End_Missing): Add error-recovery code for the new
8106 extended_return_statement syntax; that is, the new E_Return entry on
8109 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
8110 limited to nonlimited, because otherwise we violate the new Ada 2005
8111 rules about returning limited types in function Create_AST_Handler in
8114 * sem.adb (Analyze): Add cases for new node kinds
8115 N_Extended_Return_Statement and N_Return_Object_Declaration.
8117 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
8118 type is in the same category as type of context before applying check,
8119 to prevent anomalies in instantiations.
8120 (Resolve_Aggregate): Remove test for limited components in aggregates.
8121 It's unnecessary in Ada 95, because if it has limited components, then
8122 it must be limited. It's wrong in Ada 2005, because limited aggregates
8124 (Resolve_Record_Aggregate): Move check for limited types later, because
8125 OK_For_Limited_Init requires its argument to have been resolved.
8126 (Get_Value): When copying the component default expression for a
8127 defaulted association in an aggregate, use the sloc of the aggregate
8128 and not that of the original expression, to prevent spurious
8129 elaboration errors, when the expression includes function calls.
8130 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
8131 were missing. We also didn't handle qualified expressions. Now also
8132 allow function calls. Use new common routine OK_For_Limited_Init.
8133 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
8134 with space can upper case letter).
8136 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
8137 Has_Static_Discriminants flag
8138 (Record_Type_Declaration): Diagnose an attempt to declare an interface
8139 type with discriminants.
8140 (Process_Range_Expr_In_Decl): Do validity checks on range
8141 (Build_Discriminant_Constraints): Use updated form of
8142 Denotes_Discriminant.
8143 (Process_Subtype): If the subtype is a private subtype whose full view
8144 is a concurrent subtype, introduce an itype reference to prevent scope
8146 (Build_Derived_Record_Type, Collect_Interface_Primitives,
8147 Record_Type_Declaration): The functionality of the subprograms
8148 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
8149 is now performed by a single routine.
8150 (Build_Derived_Record_Type): If the type definition includes an explicit
8151 indication of limitedness, then the type must be marked as limited here
8152 to ensure that any access discriminants will not be treated as having
8153 a local anonymous access type.
8154 (Check_Abstract_Overriding): Issue a detailed error message when an
8155 abstract subprogram was not overridden due to incorrect mode of its
8157 (Analyze_Private_Extension_Declaration): Add support for the analysis of
8158 synchronized private extension declarations. Verify that the ancestor is
8159 a limited or synchronized interface or in the generic case, the ancestor
8160 is a tagged limited type or synchronized interface and all progenitors
8161 are either limited or synchronized interfaces.
8162 Derived_Type_Declaration): Check for presence of private extension when
8163 dealing with synchronized formal derived types.
8164 Process_Full_View): Enchance the check done on the usage of "limited" by
8165 testing whether the private view is synchronized.
8166 Verify that a synchronized private view is completed by a protected or
8168 (OK_For_Limited_Init_In_05): New function.
8169 (Analyze_Object_Declaration): Move check for limited types later,
8170 because OK_For_Limited_Init requires its argument to have been resolved.
8171 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
8172 in order to alleviate the upward compatibility introduced by AI-318.
8173 (Constrain_Corresponding_Record): If the constraint is for a component
8174 subtype, mark the itype as frozen, to avoid out-of-scope references to
8175 discriminants in the back-end.
8176 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
8177 this subprogram against wrong sources.
8178 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
8179 discriminant of limited type completed with a protected type, when the
8180 discriminant is used to constrain a private component of the type, and
8181 expansion is disabled.
8182 (Find_Type_Of_Object): Do not treat a return subtype that is an
8183 anonymous subtype as a local_anonymous_type, because its accessibility
8184 level is the return type of the enclosing function.
8185 (Check_Initialization): In -gnatg mode, turn the error "cannot
8186 initialize entities of limited type" into a warning.
8187 (OK_For_Limited_Init): Return true for generated nodes, since it
8188 sometimes violates the legality rules.
8189 (Make_Incomplete_Declaration): If the type for which an incomplete
8190 declaration is created happens to be the currently visible entity,
8191 preserve the homonym chain when removing it from visibility.
8192 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
8193 inherited subprograms.
8194 (Access_Definition): If this is an access to function that is the return
8195 type of an access_to_function definition, context is a type declaration
8196 and the scope of the anonymous type is the current one.
8197 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
8198 incomplete subtype to the set of private dependents of the original
8200 (Constrain_Discriminated_Type): Emit an error message whenever an
8201 incomplete subtype is being constrained.
8202 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
8203 corresponding subtype of the full view of the original incomplete type.
8204 (Check_Incomplete): Properly detect invalid usage of incomplete types
8207 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
8209 * g-catiio.ads, g-catiio.adb (Value): New function.
8210 Given an input String, try and parse a valid Time value.
8212 2006-10-31 Vincent Celier <celier@adacore.com>
8214 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
8215 Integer_Address arithmetic, as in Set_Valid.
8217 2006-10-31 Arnaud Charlet <charlet@adacore.com>
8218 Robert Dewar <dewar@adacore.com>
8220 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
8221 handling executable extension manually and duplicating code.
8223 * make.adb: Implement new -S switch
8224 (Gnatmake): Use new function Osint.Executable_Name instead
8225 of handling executable extension manually.
8227 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
8228 is specified, the executable name ends with this suffix.
8229 Take advantage of Osint.Executable_Name instead of duplicating code.
8231 * switch-m.adb: Recognize new gnatmake -S switch
8233 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
8235 (Get_Target_Parameters): Set Executable_Extension_On_Target if
8238 * makeusg.adb: Add line for gnatmake -S switch
8240 2006-10-31 Vincent Celier <celier@adacore.com>
8242 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
8243 call it with -static-libgcc, as there are some platforms, such as
8244 Darwin, where one of these two switches is compulsory to link.
8246 2006-10-31 Vincent Celier <celier@adacore.com>
8248 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
8249 instead of ADA_PROJECT_PATH, for the project path.
8250 (Gnatls): When displaying the project path directories, use host dir
8253 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
8254 names in the project path, as absolute paths may correspond to
8255 multi-valued VMS logical names.
8257 2006-10-31 Vincent Celier <celier@adacore.com>
8259 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
8261 (Locate_Regular_File): Ditto
8262 (Change_Dir): Remove, no longer used
8263 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
8264 on Windows. Get it calling Get_Current_Dir.
8265 (OpenVMS): Remove imported boolean, no longer needed.
8266 (Normalize_Pathname)[VMS]: Do not resolve directory names.
8267 (Pid_To_Integer): New function to convert a Process_Id to Integer
8269 2006-10-31 Thomas Quinot <quinot@adacore.com>
8271 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
8272 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
8274 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
8277 2006-10-31 Robert Dewar <dewar@adacore.com>
8279 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
8280 initial letter o as a zero.
8282 2006-10-31 Robert Dewar <dewar@adacore.com>
8284 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
8286 2006-10-31 Robert Dewar <dewar@adacore.com>
8288 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
8290 (Layout_Variant_Record): Retrieve the discriminants from the entity
8291 rather than from the type definition, because in the case of a full
8292 type for a private type we need to take the discriminants from the
8294 (Layout_Component_List): When applying the Max operator to variants with
8295 a nonstatic size, check whether either operand is static and scale that
8296 operand from bits to storage units before applying Max.
8297 (Layout_Type): In VMS, if a C-convention access type has no explicit
8298 size clause (and does not inherit one in the case of a derived type),
8299 then the size is reset to 32 from 64.
8301 2006-10-31 Vincent Celier <celier@adacore.com>
8303 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
8304 its file has already been loaded, according to the unit being loaded,
8305 not to the current value of Multiple_Unit_Index.
8307 2006-10-31 Thomas Quinot <quinot@adacore.com>
8308 Eric Botcazou <ebotcazou@adacore.com>
8309 Arnaud Charlet <charlet@adacore.com>
8311 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
8312 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
8314 (a-except.o): Pass it to the compiler.
8315 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
8316 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
8317 a-calend-mingw.adb version.
8319 * Makefile.rtl: Added s-dsaser.
8320 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
8321 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
8322 Ada.Dispatching.Round_Robin.
8323 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
8325 * Make-lang.in: Remove all references to gt-ada-decl.h.
8326 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
8328 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
8329 Update dependencies.
8331 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
8333 2006-10-31 Vincent Celier <celier@adacore.com>
8335 * mlib-utl.adb (Initialized): Remove, no longer used
8336 (Initialize): Remove, no longer used
8337 (Ar): If Ar_Exec is null, get the location of the archive builder and,
8338 if there is one, the archive indexer. Fail if the archive builder cannot
8340 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
8343 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8345 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
8346 Process_Body_Clauses): If the context of a body includes a use clause
8347 for P.Q then a with_clause for P in the same body is not redundant,
8348 even if the spec also has a with_clause on P.
8349 Add missing continuation mark to error msg
8350 (Build_Limited_Views): A limited view of a type is tagged if its
8351 declaration includes a record extension.
8352 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
8353 node, even if the subunit has errors. This avoids malfunction by
8354 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
8355 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
8356 generation of obsolescent messages for with statements (cannot do
8357 this too early, or we cannot implement avoiding the messages in the
8358 case of obsolescent units withing obsolescent units).
8359 (Install_Siblings): If the with_clause is on a remote descendant of
8360 an ancestor of the current compilation unit, find whether there is
8361 a sibling child unit that is immediately visible.
8362 (Remove_Private_With_Clauses): New procedure, invoked after completing
8363 the analysis of the private part of a nested package, to remove from
8364 visibility the private with_clauses of the enclosing package
8366 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
8367 now centralized in Generate_Reference.
8368 (Install_Limited_Context_Clauses): Remove superfluous error
8369 message associated with unlimited view visible through use
8370 and renamings. In addition, at the point in which the error
8371 is reported, we add the backslash to the text of the error
8372 to ensure that it is reported as a single error message.
8373 Use new // insertion for some continuation messages
8374 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
8375 to create implicit with_clause for parent unit mentioned in original
8376 limited_with_clause.
8377 (Install_Limited_With_Unit): Set entity of parent identifiers if the
8378 unit is a child unit. For ASIS queries.
8379 (Analyze_Subunit): If the subunit appears within a child unit, make all
8380 ancestor child units directly visible again.
8382 2006-10-31 Robert Dewar <dewar@adacore.com>
8384 * par-ch10.adb (P_Context_Clause): Minor error message fix
8386 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
8387 Javier Miranda <miranda@adacore.com>
8389 * par-ch12.adb: Grammar update and cleanup.
8390 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
8391 support for synchronized derived type definitions.
8392 Add the new actual Abstract_Present to every call to
8393 P_Interface_Type_Definition.
8394 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
8395 a formal object declaration with an access definition or a subtype mark
8396 with a null exclusion.
8397 (P_Generic_Association): Handle association with box, and others_choice
8398 with box, to support Ada 2005 partially parametrized formal packages.
8400 2006-10-31 Robert Dewar <dewar@adacore.com>
8401 Javier Miranda <miranda@adacore.com>
8403 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
8404 (P_Type_Declaration): Remove barrier against the reserved word "limited"
8405 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
8406 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
8408 (P_Type_Declaration): Add the new actual Abstract_Present to every call
8409 to P_Interface_Type_Definition.
8410 (P_Interface_Type_Definition): Addition of one formal to report an error
8411 if the reserved word abstract has been previously found.
8412 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
8413 object renaming declaration with an access definition or subtype mark
8414 with a possible null exclusion.
8416 * par-ch9.adb: Minor error msg fix
8418 * par-load.adb: Add missing continuation mark to error msg
8420 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
8422 2006-10-31 Vincent Celier <celier@adacore.com>
8424 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
8425 unknown attribute in unknown package or in package that does not need
8427 (Parse_Package_Declaration): Do not issue warning for unknown package in
8430 2006-10-31 Vincent Celier <celier@adacore.com>
8432 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
8433 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
8436 2006-10-31 Vincent Celier <celier@adacore.com>
8438 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
8439 on VMS, change "__" to '.' before checking the name.
8440 (Record_Ada_Source): Always add the source file name in the list of
8441 of sources, even if it is not the first time, as it is for another
8443 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
8444 dot, instead of replacing only the first '_'.
8446 * prj-part.adb (Parse): Convert project file path to canonical form
8448 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
8449 extended, the project id of the project extending it is recorded in its
8450 data, even when it has already been processed as an imported project.
8452 2006-10-31 Robert Dewar <dewar@adacore.com>
8454 * repinfo.adb (List_Entities): Don't list entities from renaming
8457 2006-10-31 Arnaud Charlet <charlet@adacore.com>
8458 Robert Dewar <dewar@adacore.com>
8460 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
8461 only a restriction warning is active for the given restriction. This is
8462 desirable because we do not want to modify code in the case where only
8464 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
8465 causes overriding of real restrictions.
8466 Take advantage of new No_Restrictions constant.
8468 * raise.h: (__gnat_set_globals): Change profile.
8470 2006-10-31 Arnaud Charlet <charlet@adacore.com>
8472 * rtsfind.adb: Remove s-polint from comment as it exists no more.
8475 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
8476 Move all the entities in obsolete package System.PolyORB_Interface to
8477 System.Partition_Interface.
8478 (RE_Storage_Size): New function in System.Tasking.
8479 (RE_Get_Ceiling): New entity.
8480 (RE_Set_Ceiling): New entity.
8481 (RO_PE_Get_Ceiling): New entity.
8482 (RO_RE_Set_Ceiling): New entity.
8483 (Inherit_CPP_DT): New entity
8485 2006-10-31 Robert Dewar <dewar@adacore.com>
8487 * scng.adb (Scan, case of numeric literal): Better msg for identifier
8488 starting with a digit.
8490 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8491 Thomas Quinot <quinot@adacore.com>
8492 Javier Miranda <miranda@adacore.com>
8493 Gary Dismukes <dismukes@adacore.com>
8495 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
8496 properly an attempt to apply Unchecked_Access to a protected operation.
8497 (OK_Self_Reference): New subprogram to check the legality of an access
8498 attribute whose prefix is the type of an enclosing aggregate.
8499 Generalizes previous mechanism to handle attribute references nested
8500 arbitrarily deep within the aggregate.
8501 (Analyze_Access_Attribute): An access attribute whose prefix is a type
8502 can appear in an aggregate if this is a default-initialized aggregate
8503 for a self-referential type.
8504 (Resolve_Attribute, case Access): Ditto.
8505 Add support for new implementation defined attribute Stub_Type.
8506 (Eval_Attribute, case Attribute_Stub_Type): New case.
8507 (Analyze_Attribute, case Attribute_Stub_Type): New case.
8508 (Stream_Attribute_Available): Implement using new subprogram from
8509 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
8510 Has_Specified_Stream_Attribute flag.
8511 Disallow Storage_Size and Storage_Pool for access to subprogram
8512 (Resolve_Attribute, case 'Access et al): Take into account anonymous
8513 access types of return subtypes in extended return statements. Remove
8514 accessibility checks on anonymous access types when Unchecked_Access is
8516 (Analyze_Attribute): Add support for the use of 'Class to convert
8517 a class-wide interface to a tagged type.
8518 Add support for the attribute Priority.
8519 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
8520 whether the designated type is discriminated with a constrained partial
8521 view and require static matching in that case.
8522 Add local variable Des_Btyp. The Designated_Type
8523 of an access to incomplete subtype is either its non-limited view if
8524 coming from a limited with or its etype if regular incomplete subtype.
8526 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
8527 Fix predicate to identify and allow cases of (expander-generated)
8528 references to tag of designated object of a RACW.
8529 (Validate_Static_Object_Name): In Ada 2005, a formal object is
8530 non-static, and therefore cannot appear as a primary in a preelaborable
8532 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
8533 Has_Read_Write_Attributes.
8534 (Has_Read_Write_Attributes): Reimplement in termes of
8535 Has_Stream_Attribute_Definition.
8536 (Missing_Read_Write_Attributes): When checking component types in a
8537 record, unconditionally call Missing_Read_Write_Attributes recursively
8538 (remove guard checking for Is_Record_Type / Is_Access_Type).
8540 2006-10-31 Robert Dewar <dewar@adacore.com>
8542 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
8543 useless assignments here and conditionalize it on absence of exception
8545 (Analyze_Exception_Handlers): Small code reorganization of error
8546 detection code, for new handling of formal packages.
8548 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8549 Hristian Kirtchev <kirtchev@adacore.com>
8551 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
8552 that has been constant-folded, preserve information of original tree,
8554 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
8555 generated private extension declaration if the formal derived type is
8556 synchronized. Carry synchronized present over to the generated private
8558 (Validate_Derived_Type_Instance): Ensure that the actual of a
8559 synchronized formal derived type is a synchronized tagged type.
8560 (Instantiate_Formal_Package): When creating the instantiation used to
8561 validate the actual package of a formal declared without a box, check
8562 whether the formal itself depends on a prior actual.
8563 (Instantiate_Formal_Subprogram): Create new entities for the defining
8564 identifiers of the formals in the renaming declaration, for ASIS use.
8565 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
8566 a renaming declaration or a subtype declaration for an actual in an
8567 instance, capture location information of declaration in generic, for
8569 (Instantiate_Formal_Package): Add comments on needed additional tests.
8570 AI-317 (partial parametrization) is fully implemented.
8571 (Validate_Private_Type_Instance): Add check for actual which
8572 must have preelaborable initialization
8573 Use new // insertion for some continuation messages
8574 (Analyze_Formal_Object_Declaration): Change usage of Expression to
8575 Default_Expression. Add type retrieval when the declaration has an
8576 access definition. Update premature usage of incomplete type check.
8577 (Check_Access_Definition): New subsidiary routine. Check whether the
8578 current compilation version is Ada 05 and the supplied node has an
8580 (Instantiate object): Alphabetize local variables. Handle the creation
8581 of new renaming declarations with respect to the kind of definition
8582 used - either an access definition or a subtype mark. Guard against
8583 unnecessary error message in the context of anonymous access types after
8584 they have been resolved. Add check for required null exclusion in a
8585 formal object declaration.
8586 (Switch_View): A private subtype of a non-private type needs to be
8587 switched (the base type can have been switched without its private
8588 dependents because of the last branch of Check_Private_View.
8589 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
8591 (Instantiate_Type): Emit an error message whenever a class-wide type of
8592 a tagged incomplete type is used as a generic actual.
8593 (Find_Actual_Type): Extend routine to handle a component type in a child
8594 unit that is imported from a formal package in a parent.
8595 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
8596 agree on constrainedness, rather than checking against ultimate ancestor
8597 (Instantiate_Subprogram_Body): Create a cross-reference link to the
8598 generic body, for navigation purposes.
8600 2006-10-31 Robert Dewar <dewar@adacore.com>
8601 Thomas Quinot <quinot@adacore.com>
8603 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
8605 (New_Stream_Subprogram): When processing an attribute definition clause
8606 for a stream-oriented subprogram, record an entity node occurring at
8607 the point of clause to use for checking the visibility of the clause,
8608 as defined by 8.3(23) as amended by AI-195.
8609 (New_Stream_Subprogram): New procedure, factoring behaviour from both
8610 New_Stream_Function and New_Stream_Procedure.
8611 (New_Stream_Function, New_Stream_Procedure): Removed.
8612 (Analyze_Attribute_Definition_Clause, case Address): Check new
8613 Alignment_Check check
8615 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8616 Javier Miranda <miranda@adacore.com>
8617 Robert Dewar <dewar@adacore.com>
8619 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
8620 generate the same errors compiling under -gnatc.
8621 (Try_Object_Operation): If no candidate interpretation succeeds, but
8622 there is at least one primitive operation with the right name, report
8623 error in call rather than on a malformed selected component.
8624 (Analyze_Selected_Component): If the prefix is an incomplete type from
8625 a limited view, and the full view is available, use the full view to
8626 determine whether this is a prefixed call to a primitive operation.
8627 (Operator_Check): Verify that a candidate interpretation is a binary
8628 operation before checking the type of its second formal.
8629 (Analyze_Call): Add additional warnings for function call contexts not
8631 (Analyze_Allocator): Move the check for "initialization not allowed for
8632 limited types" after analyzing the expression. This is necessary,
8633 because OK_For_Limited_Init looks at the structure of the expression.
8634 Before analysis, we don't necessarily know what sort of expression it
8635 is. For example, we don't know whether F(X) is a function call or an
8636 indexed component; the former is legal in Ada 2005; the latter is not.
8637 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
8638 were missing. We also didn't handle qualified expressions. Now also
8639 allow function calls. Use new common routine OK_For_Limited_Init.
8640 (Analyze_Type_Conversion): Do not perform some legality checks in an
8641 instance, because the error message will be redundant or spurious.
8642 (Analyze_Overloaded_Selected_Component): Do not do style check when
8643 setting an entity, since we do not know it is the right entity yet.
8644 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
8645 (Analyze_Overloaded_Selected_Component): Same change
8646 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
8647 since regular incomplete subtypes are transformed into corresponding
8648 subtypes of their full views.
8649 (Complete_Object_Operation): Treat name of transformed subprogram call
8650 as coming from source, for browsing purposes.
8651 (Try_Primitive_Operation): If formal is an access parameter, compare
8652 with base type of object to determine whether it is a primitive
8654 (Operator_Check): If no interpretation of the operator matches, check
8655 whether a use clause on any candidate might make the operation legal.
8656 (Try_Class_Wide_Operation): Check whether the first parameter is an
8657 access type whose designated type is class-wide.
8659 2006-10-31 Robert Dewar <dewar@adacore.com>
8660 Ed Schonberg <schonberg@adacore.com>
8661 Gary Dismukes <dismukes@adacore.com>
8663 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
8664 warn on infinite loops.
8665 Add \\ to some continuation messages
8666 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
8667 (Process_Bounds): If the bounds are integer literals that result from
8668 constant-folding, and they carry a user-defined type, preserve that type
8669 rather than treating this as an integer range.
8670 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
8671 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
8672 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
8673 left hand side of assignment.
8674 (Analyze_Assignment): Add suport to manage assigments to the attribute
8675 priority of a protected object.
8676 (Check_Possible_Current_Value_Condition): Allow fully qualified names
8677 not just identifiers.
8678 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
8679 or AND THEN for possible tracking.
8680 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
8681 case of while loops so we can track values in the loop body.
8683 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8684 Hristian Kirtchev <kirtchev@adacore.com>
8685 Bob Duff <duff@adacore.com>
8687 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
8688 procedure cannot be a protected operation (it is a basic_declaration,
8689 not a subprogram_declaration).
8690 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
8691 Subp. Add logic for entry processing.
8692 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
8693 Determine whether an entry or subprogram of a protected or task type
8694 override an inherited primitive of an implemented interface.
8695 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
8696 Update the actual used in calls to Check_Overriding_Indicator.
8697 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
8698 generate the proper reference to the parent unit, for cross-reference.
8699 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
8701 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
8702 (Add_Extra_Formal): Revise procedure to allow passing in associated
8703 entity, scope, and name suffix, and handle setting of the new
8704 Extra_Formals field.
8705 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
8706 pass new parameters. Add support for adding the new extra access formal
8707 for functions whose calls are treated as build-in-place.
8708 (Analyze_A_Return_Statement): Correct casing in error message.
8709 Move Pop_Scope to after Analyze_Function_Return, because an extended
8710 return statement really is a full-fledged scope. Otherwise, visibility
8711 doesn't work right. Correct use of "\" for continuation messages.
8712 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
8713 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
8714 the node doesn't get properly marked as analyzed.
8715 (Analyze_Subprogram_Body): If subprogram is a function that returns
8716 an anonymous access type that denotes a task, build a Master Entity
8718 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
8719 proper usage of null exclusion in a result definition.
8720 (Process_Formals): Code cleanup and new error message.
8721 (Process_Formals): Detect incorrect application of null exclusion to
8723 (Conforming_Types): Handle conformance between [sub]types and itypes
8724 generated for entities that have null exclusions applied to them.
8725 (Maybe_Primitive_Operation): Add an additional type retrieval when the
8726 base type is an access subtype. This case arrises with null exclusions.
8727 (New_Overloaded_Entity): Do not remove the overriden entity from the
8728 homonym chain if it corresponds with an abstract interface primitive.
8729 (Process_Formals): Replace membership test agains Incomplete_Kind with a
8730 call to the synthesized predicate Is_Incomplete_Type.
8731 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
8733 (Analyze_Subprogram_Declaration): Check that abstract interface
8734 primitives are abstract or null.
8735 (Analyze_Subprogram_Specification): Remove previous check for abstract
8736 interfaces because it was not complete.
8737 (Has_Interface_Formals): Removed.
8739 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8740 Javier Miranda <miranda@adacore.com>
8742 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
8743 of Analyze_Package_Body, to create Itype references for anonymous
8744 access types created in the package declaration, whose designated types
8745 may have only a limited view.
8746 (Analyze_Package_Specification): For the private part of a nested
8747 package, install private_with_clauses of enclosing compilation unit if
8748 we are in its visible part.
8749 (Declare_Inherited_Private_Subprograms): Complete barrier
8750 to ensure that the primitive operation has an alias to some parent
8751 primitive. This is now required because, after the changes done for the
8752 implementation of abstract interfaces, the contents of the list of
8753 primitives has entities whose alias attribute references entities of
8754 such list of primitives.
8755 (Analyze_Package_Specification): Simplify code that handles parent units
8756 of instances and formal packages.
8757 (Uninstall_Declarations): Check the convention consistency among
8758 primitive overriding operations of a tagged record type.
8760 2006-10-31 Robert Dewar <dewar@adacore.com>
8761 Hristian Kirtchev <kirtchev@adacore.com>
8762 Javier Miranda <miranda@adacore.com>
8763 Ed Schonberg <schonberg@adacore.com>
8765 * sem_ch8.adb: Minor error msg rewording
8766 (Undefined): When checking for misspellings, invert arguments (to get
8767 expected and found set right)
8768 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
8769 (Analyze_Generic_Renaming): Same fix
8770 (Use_One_Package): Do not take into account the internal entities of
8771 abstract interfaces during the analysis of entities that are marked
8772 as potentially use-visible.
8773 (Find_Type): Handle the case of an attribute reference for
8774 implementation defined attribute Stub_Type (simply let the analysis of
8775 the attribute reference rewrite it).
8776 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
8777 type that appears in a Use_Type clause.
8778 (Analyze_Object_Renaming): Add support for renaming of the Priority
8780 (Find_Type): In Ada 2005, a task type can be used within its own body,
8781 when it appears in an access definition.
8782 (Analyze_Object_Renaming): Remove warning on null_exclusion.
8783 (Analyze_Object_Renaming): Introduce checks for required null exclusion
8784 in a formal object declaration or in a subtype declaration.
8785 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
8786 (Check_Null_Exclusion): New local routine to
8787 Analyze_Subprogram_Renaming. Check whether the formals and return
8788 profile of a renamed subprogram have required null exclusions when
8789 their counterparts of the renaming already impose them.
8790 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
8791 Determine whether an entity is inside a generic scope.
8792 (In_Open_Scope): First pass of documentation update.
8793 (Find_Expanded_Name): Add support for shadow entities associated with
8794 limited withed packages. This is required to handle nested packages.
8795 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
8796 that makes a renaming of a limited withed package illegal.
8798 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
8799 Ed Schonberg <schonberg@adacore.com>
8801 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
8802 Check_Overriding_Indicator.
8803 (Analyze_Task_Definition): Ditto.
8804 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
8805 (Check_Overriding_Indicator): To find overridden interface operation,
8806 examine only homonyms that have an explicit subprogram declaration, not
8807 inherited operations created by an unrelated type derivation.
8808 (Check_Overriding_Indicator): When checking for the presence of "null"
8809 in a procedure, ensure that the queried node is a procedure
8811 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
8812 type when the formal is an access to variable.
8813 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
8814 (Analyze_Task_Type): Same addition
8815 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
8816 provide navigation capabilities for entries.
8818 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
8819 Ed Schonberg <schonberg@adacore.com>
8820 Javier Miranda <miranda@adacore.com>
8821 Gary Dismukes <dismukes@adacore.com>
8823 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
8824 inherited from an interface ancestor by another interface in the
8825 context of an instance as 'late'.
8826 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
8827 of a call to a function that dispatches on access result.
8828 (Check_Dispatching_Operation): In case of late overriding of a primitive
8829 that covers abstract interface subprograms we register it in all the
8830 secondary dispatch tables associated with abstract interfaces.
8831 (Check_Dispatching_Call): Add check that a dispatching call is not made
8832 to a function with a controlling result of a limited type. This is a
8833 current implementation restriction.
8834 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
8835 (Check_Dispatching_Operation): Do no emit a warning if the controlling
8836 argument is an interface type that is a generic formal.
8837 (Is_Interface_Subprogram): Removed.
8838 (Check_Dispatching_Operation): If the subprogram is not a dispatching
8839 operation, check the formals to handle the case in which it is
8840 associated with an abstract interface type.
8842 2006-10-31 Robert Dewar <dewar@adacore.com>
8843 Ed Schonberg <schonberg@adacore.com>
8845 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
8846 Add new calls to this procedure during traversal
8847 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
8848 another unit if expansion is disabled.
8850 2006-10-31 Robert Dewar <dewar@adacore.com>
8852 * sem_eval.adb (Compile_Time_Compare): Make use of information from
8853 Current_Value in the conditional case, to evaluate additional
8854 comparisons at compile time.
8856 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8857 Hristian Kirtchev <kirtchev@adacore.com>
8858 Javier Miranda <miranda@adacore.com>
8860 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
8861 subprogram type to provide better diagnostics in case of ambiguity.
8862 (Covers): Handle coverage of formal and actual anonymous access types in
8863 the context of generic instantiation.
8864 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
8865 abstract interface types; this is required to handle concurrent types
8866 with discriminants and abstract interface types.
8867 (Covers): Include type coverage of both regular incomplete subtypes and
8868 incomplete subtypes of incomplete type visibles through a limited with
8871 2006-10-31 Robert Dewar <dewar@adacore.com>
8872 Hristian Kirtchev <kirtchev@adacore.com>
8873 Ed Schonberg <schonberg@adacore.com>
8875 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
8876 messages for entities in packages which are not used.
8877 (Collect_Synchronized_Interfaces): New procedure.
8878 (Overrides_Synchronized_Primitive): New function.
8879 (Denotes_Discriminant): Extend predicate to apply to task types.
8880 Add missing continuation marks in error msgs
8881 (Unqualify): New function for removing zero or more levels of
8882 qualification from an expression. There are numerous places where this
8883 ought to be used, but we currently only deal properly with zero or one
8885 (In_Instance); The analysis of the actuals in the instantiation of a
8886 child unit is not within an instantiation, even though the parent
8887 instance is on the scope stack.
8888 (Safe_To_Capture_Value): Exclude the case of variables that are
8890 (Check_Obsolescent): Removed
8891 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
8892 is an aliased view, even when rewritten as a reference to the target
8893 object in an assignment.
8894 (Get_Subprogram_Entity): New function
8895 (Known_To_Be_Assigned): New function
8896 (Type_Access_Level): Compute properly the access level of a return
8897 subtype that is an anonymous access type.
8898 (Explain_Limited_Type): Correct use of "\" for continuation messages.
8899 (Is_Transfer): The new extended_return_statement causes a transfer of
8901 (Has_Preelaborable_Initialization): New function
8902 (Has_Null_Exclusion): New function. Given a node N, determine whether it
8903 has a null exclusion depending on its Nkind.
8904 Change Is_Lvalue to May_Be_Lvalue
8905 (May_Be_Lvalue): Extensive additional code to deal with subprogram
8906 arguments (IN parameters are not Lvalues, IN OUT parameters are).
8907 (Safe_To_Capture_Value): Extend functionality so it can be used for
8908 the current value condition case.
8909 (Has_Compatible_Alignment): New function
8910 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
8911 objects to handle the Ada 2005 case, where aliasedness no longer implies
8912 that the object is constrained. In particular, for dereferenced names,
8913 the designated object must be assumed to be unconstrained.
8914 (Kill_Current_Values): Properly deal with the case where we encounter
8915 a loop in the scope chain.
8916 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
8918 (Compile_Time_Constraint_Error): Improve error message in error case
8920 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
8921 associated with entities of abstract interface primitives.
8922 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
8924 2006-10-31 Robert Dewar <dewar@adacore.com>
8926 * s-osinte-tru64.adb:
8927 Mark Asm statements Volatile to prevent warnings (seems a
8928 reasonable change anyway)
8931 * s-mastop-irix.adb: Add Volatile to Asm statements
8932 Suppresses warning, and seems appropriate in any case
8934 * s-osinte-vms.adb: Add Volatile to Asm statement
8936 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
8938 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
8940 Add call to Check_Code_Statement
8942 2006-10-31 Robert Dewar <dewar@adacore.com>
8943 Ed Schonberg <schonberg@adacore.com>
8944 Bob Duff <duff@adacore.com>
8946 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
8947 Synchronized_Present): Add Formal_Derived_Type_Definition and
8948 Private_Extension_Declaration to the list of assertions.
8949 (Is_Entry_Barrier_Function): New flag
8950 (Has_Self_Reference): New flag on aggregates, to indicate that they
8951 contain a reference to the enclosing type, inserted through a default
8953 (Next_Rep_Item): Move from Node4 to Node5.
8954 (Entity): Add this field for N_Attribute_Definition_Clause.
8955 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
8956 (N_Return_Object_Declaration): Remove this node kind. We now use
8957 N_Object_Declaration instead.
8958 (Actual_Designated_Subtype): Move to a different place to make room in
8959 N_Extended_Return_Statement.
8960 (Procedure_To_Call): Move to a different place to make room in
8961 N_Extended_Return_Statement.
8962 (Return_Type): Removed this field to make room in return statements
8964 (Return_Statement_Entity): New field in return statements, in part to
8965 replace Return_Type, and in part to support the fact that return
8966 statements are now pushed on the scope stack during semantic analysis.
8967 (Return_Object_Declarations): New field to support extended return
8969 (N_Extended_Return_Statement): New node for extended_return_statement
8971 (N_Return_Object_Declaration): New node for part of
8972 extended_return_statement nonterminal. Needed because all the necessary
8973 fields won't fit in N_Extended_Return_Statement.
8974 Generic_associations now carry the Box_Present flag, to indicate a
8975 default for an actual in a partially parametrized formal package.
8977 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
8978 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
8979 and for the new predefined dispatching policies: EDF_Across_Priorities,
8980 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
8981 Introduce new name Stub_Type for implementation defined attribute.
8982 Add pragma Preelaborable_Initialization
8983 Add entry for Priority attribute.
8984 Add Pragma_Wide_Character_Encoding
8985 (Get_Convention_Name): Given a convention id, this function returns the
8986 corresponding name id from the names table.
8988 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8989 Robert Dewar <dewar@adacore.com>
8990 Bob Duff <duff@adacore.com>
8992 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
8993 print null exclusion twice in the case of an access definition,
8994 Implement new -gnatL switch
8995 Remove N_Return_Object_Declaration. We now use
8996 N_Object_Declaration instead. Implement the case for
8997 N_Extended_Return_Statement. Alphabetize the cases.
8998 Add cases for new nodes N_Extended_Return_Statement and
8999 N_Return_Object_Declaration. The code is not yet written.
9000 Update the output for N_Formal_Object_Declaration
9001 and N_Object_Renaming_Declaration.
9002 (Write_Itype): Account for the case of a modular integer subtype whose
9003 base type is private.
9005 2006-10-31 Arnaud Charlet <charlet@adacore.com>
9007 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
9008 Remove elaboration code, now done in the binder.
9010 * s-rident.ads: Make this unit Preelaborate.
9011 (No_Restrictions): New constant used to clean up code and follow
9012 preelaborate constraints.
9015 Add System.Restrictions dependence, referenced directly from the
9016 binder generated file.
9018 2006-10-31 Gary Dismukes <dismukes@adacore.com>
9020 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
9021 True when AAMP extended floating-point is in use (48-bit). Change type
9022 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
9023 the two byte array types on AFloat. Change type of IV_Ilf overlay
9024 variable from Byte8 to ByteLF. Add appropriate initializations of
9025 floating-point overlays for AAMP cases.
9027 2006-10-31 Javier Miranda <miranda@adacore.com>
9029 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
9030 (Get_Ceiling): New subprogram that returns
9031 the ceiling priority of the protected object.
9032 (Set_Ceiling): New subprogram that sets the new ceiling priority of
9033 the protected object.
9035 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
9037 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
9039 2006-10-31 Jose Ruiz <ruiz@adacore.com>
9041 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
9042 requeuing to the same protected object to give higher priority tasks
9043 the opportunity to execute.
9045 2006-10-31 Robert Dewar <dewar@adacore.com>
9047 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
9048 add more precise check for the character sequence that follows '[' to
9049 avoid possible confusion in case if '[' is the last character of a
9051 (Scan_Wide): Always allow brackets encoding
9053 2006-10-31 Olivier Hainque <hainque@adacore.com>
9055 * s-stchop.ads: make this unit preelaborate. This is desirable in
9056 general and made mandatory by the use of this unit by s-taprop which
9057 is itself preelaborate.
9059 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
9060 Td_Events component.
9062 2006-10-31 Vincent Celier <celier@adacore.com>
9064 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
9067 2006-10-31 Vincent Celier <celier@adacore.com>
9069 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
9071 2006-10-31 Vincent Celier <celier@adacore.com>
9073 * makegpr.adb (Check_Compilation_Needed): Take into account path names
9075 (Check_Compilation_Needed): When checking a C or C++ source, do not
9076 resolve symbolic links.
9077 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
9078 When not in verbose mode and Ellipse is True, display "..." for the
9079 first argument with Display set to False.
9080 (Build_Global_Archive): Always set Display True for the first object
9081 file. Call Display_Command with Ellipse set to True.
9083 2006-10-31 Matt Heaney <heaney@adacore.com>
9085 * a-crbtgo.ads: Commented each subprogram
9087 * a-crbtgo.adb: Added reference to book from which algorithms were
9090 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
9091 indicate which child.
9092 (Generic_Conditional_Insert): changed parameter name from "Success" to
9094 (Generic_Unconditional_Insert_With_Hint): improved algorithm
9096 * a-coorse.adb (Replace_Element): changed parameter name in call to
9097 conditional insert operation.
9099 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
9101 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
9104 * a-ciorse.adb (Replace_Element): changed parameter name in call to
9105 conditional insert operation.
9107 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
9110 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
9111 instead of mode inout.
9113 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
9115 (Generic_Read): preserve existing buckets array if possible
9116 (Generic_Write): don't send buckets array length anymore
9118 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
9119 instead of mode inout.
9121 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
9122 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
9124 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
9125 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
9126 (Replace_Element): local operation is now an instantiation
9128 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
9129 check current length.
9130 (Generic_Replace_Element): new operation
9132 2006-10-31 Doug Rupp <rupp@adacore.com>
9134 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
9135 Call TBK$SYMBOLIZE without omitting parameters.
9137 2006-10-31 Vincent Celier <celier@adacore.com>
9139 * symbols-processing-vms-ia64.adb,
9140 symbols-processing-vms-alpha.adb (Process): Do not include symbols
9141 that come from generic instantiations in bodies.
9143 2006-10-31 Pat Rogers <rogers@adacore.com>
9145 * a-rttiev.ads, a-rttiev.adb:
9146 This is a significant redesign primarily for the sake of automatic
9147 timer task termination but also to fix a design flaw.
9148 Therefore we are now using an RTS lock, instead of a protected
9149 object, to provide mutual exclusion to the queue of pending events
9150 and the type Timing_Event is no longer a protected type.
9152 2006-10-31 Robert Dewar <dewar@adacore.com>
9153 Cyrille Comar <comar@adacore.com>
9154 Ben Brosgol <brosgol@adacore.com>
9156 * debug.adb: Update flags documentation
9158 * gnat_ugn.texi: Add documentation for new -gnatwq switch
9159 Clean up documentation for several other warning switches
9160 Clarify how task stack size can be specified with various
9161 versions of Windows.
9162 Add note that -gnatVo includes ranges including loops
9163 Add documentation for -gnatL switch
9164 Add note on elaboration warning for initializing variables
9165 Add documentation for new -gnatwt warning switch
9166 Document new form of pragma Warnings (On|Off, string)
9167 Add comment on use of pragma Warnings to control warnings
9168 Add documentation for -gnatjnn switch
9169 Modify section on interfacing with C for VMS 64-bit.
9170 Add doc for -gnatVe/E
9171 Add documentation of new warning flags -gnatww/-gnatwW
9172 Add warnings about address clause overlays to list of warnings
9173 (Exception Handling Control): Document that the option --RTS must be
9174 used consistently for gcc and gnatbind.
9175 Clarify that inlining is not always possible
9176 Update documentation on pragma Unchecked_Union.
9179 Add documentation for new extended version of pragma Obsolescent
9180 Add documentation for implementation defined attribute 'Stub_Type.
9181 Add note on use of Volatile in asm statements
9182 Add documentation on use of pragma Unreferenced in context clause
9183 Document new form of pragma Warnings (On|Off, pattern)
9184 Document pragma Wide_Character_Encoding
9185 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
9186 enforced if code generation is active.
9187 Add section on pragma Suppress to document GNAT specific check
9189 Clarify difference between No_Dispatching_Calls & No_Dispatch.
9190 Add documentation for pragma Restrictions (No_Elaboration_Code)
9193 Add comments on layout of subprogram local variables in the
9194 presence of nested subprograms.
9198 * elists.ads: Minor reformatting
9199 Node returns Node_Or_Entity_Id (doc change only)
9201 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
9203 * g-arrspl.ads (Create): Update comments.
9205 * sem.ads: Add details on the handling of the scope stack.
9207 * usage.adb: Update documentation.
9209 * validsw.ads, validsw.adb:
9210 Add definition of Validity_Check_Components and implement -gnatVe/E
9212 * vms_data.ads: Add missing VMS qualifiers.
9214 * s-addope.ads: Add documentation on overflow and divide by zero
9216 2006-10-31 Robert Dewar <dewar@adacore.com>
9217 Thomas Quinot <quinot@adacore.com>
9218 Arnaud Charlet <charlet@adacore.com>
9220 * fmap.adb: Put routines in alpha order
9222 * g-boumai.ads: Remove redundant 'in' keywords
9224 * g-cgi.adb: Minor reformatting
9226 * g-cgi.ads: Remove redundant 'in' keywords
9228 * get_targ.adb: Put routines in alpha order
9230 * prj-attr.ads: Minor reformatting
9232 * s-atacco.ads: Minor reformatting
9234 * scn.adb: Put routines in alpha order
9236 * sinput-l.adb: Minor comment fix
9238 * sinput-p.adb: Minor comment fix
9240 * s-maccod.ads: Minor reformatting
9242 * s-memory.adb: Minor reformatting
9244 * s-htable.adb: Fix typo in comment.
9246 * s-secsta.adb: Minor comment update.
9248 * s-soflin.adb: Minor reformatting
9251 Add comment about odd qualification in Storage_Offset declaration
9254 Remove unnecessary 'in' keywords for formal parameters.
9256 * treeprs.adt: Minor reformatting
9258 * urealp.adb: Put routines in alpha order
9260 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
9263 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
9265 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
9267 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
9268 workaround as on other platforms.
9270 * g-eacodu-vms.adb: Remove redundant 'in' keywords
9271 * g-expect-vms.adb: Remove redundant 'in' keywords
9273 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
9274 clear error message if the list-of-files file cannot be opened.
9276 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
9277 equality operator is always visible.
9279 * lang.opt: Woverlength-strings: New option.
9282 Update copyright, since nmake.ads and nmake.adb have changed.
9284 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
9285 (Binder_Output_Time_Stamps_Set): removed.
9286 (Old_Binder_Output_Time_Stamp): idem.
9287 (New_Binder_Output_Time_Stamp): idem.
9288 (Recording_Time_From_Last_Bind): idem.
9289 (Recording_Time_From_Last_Bind): Make constant.
9291 * output.ads, output.adb (Write_Str): Allow LF characters
9292 (Write_Spaces): New procedure
9294 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
9296 * inline.adb: Minor reformatting
9298 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
9300 * s-mastop-vms.adb: Remove redundant 'in' keywords
9302 * s-osprim-vms.adb: Remove redundant 'in' keywords
9304 * s-trafor-default.adb: Remove redundant 'in' keywords
9306 * 9drpc.adb: Remove redundant 'in' keywords
9308 * s-osinte-mingw.ads: Minor reformatting
9310 * s-inmaop-posix.adb: Minor reformatting
9312 * a-direio.ads: Remove quotes from Compile_Time_Warning message
9314 * a-exexda.adb: Minor code reorganization
9316 * a-filico.adb: Minor reformatting
9318 * a-finali.adb: Minor reformatting
9320 * a-nudira.ads: Remove quote from Compile_Time_Warning message
9322 * a-numeri.ads: Minor reformatting
9324 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
9326 * exp_pakd.ads: Fix obsolete comment
9328 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
9329 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
9330 Probably not a bug, but certainly neater and more efficient.
9332 * a-tienio.adb: Minor reformatting
9334 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
9335 Avoid assuming low bound of string is 1.
9337 * gnatbind.adb: Change Bindusg to package and rename procedure as
9338 Display, which now ensures that it only outputs usage information once.
9339 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
9341 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
9344 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
9346 (Match): Add pragma Assert to ensure that Matches'First is zero
9348 * g-regpat.ads (Match): Document that Matches lower bound must be zero
9350 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
9351 documented preconditions (also kills warnings about bad indexes).
9353 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
9355 (Build_Import_Library): Ditto;
9357 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
9359 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
9361 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
9362 lower bound of choice table is 1.
9364 * sem_case.ads (Analyze_Choices): Document that lower bound of
9367 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
9370 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
9371 and add appropriate Assert pragma to suppress warnings.
9373 * atree.h, atree.ads, atree.adb
9374 Change Elist24 to Elist25
9375 Add definitions of Field28 and Node28
9376 (Traverse_Field): Use new syntactic parent table in sinfo.
9378 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
9380 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
9382 * exp_tss.adb: Put routines in alpha order
9384 * fe.h: Remove redundant declarations.
9386 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
9388 * utils.c (builtin_function): Rename to gnat_builtin_function.
9389 Move common code to add_builtin_function.
9390 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
9391 gnat_builtin_function.
9392 * gigi.h (builtin_function): Rename to gnat_builtin_function.
9393 Change the signature.
9395 2006-10-16 Brooks Moses <bmoses@stanford.edu>
9397 * Makefile.in: Add TEXI2PDF definition.
9398 * Make-lang.in: Add "ada.pdf" target.
9400 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
9402 * decl.c, utils.c: Fix comment typos.
9403 * utils.c: Fix a typo.
9405 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
9407 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
9408 on "pure" Ada subprograms if SJLJ exceptions are used.
9409 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
9410 on the declaration node of JMPBUF_SAVE.
9411 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
9412 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
9413 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
9415 2006-08-20 Laurent GUERBY <laurent@guerby.net>
9418 g-socket.adb (Bind_Socket): Call Set_Address.
9420 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
9423 * decl.c (same_discriminant_p): New static function.
9424 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
9425 subtype and we have discriminants, fix up the COMPONENT_REFs
9426 for the discriminants to make them reference the corresponding
9427 fields of the parent subtype after it has been built.
9429 2006-09-15 Roger Sayle <roger@eyesopen.com>
9432 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
9433 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
9435 2006-09-13 Olivier Hainque <hainque@adacore.com>
9438 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
9439 of a SAVE_EXPR, just make the operand addressable/not-readonly and
9440 let the common gimplifier code make and propagate a temporary copy.
9441 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
9442 out/in-out actuals and defer setting the addressable/readonly bits
9445 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
9448 * decl.c (components_to_record): Defer emitting debug info for the
9449 record type associated with the variant until after we are sure to
9452 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
9455 * gigi.h (gnat_internal_attribute_table): Declare.
9456 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
9457 * utils.c (gnat_internal_attribute_table): New global variable.
9458 (builtin_function): Always call decl_attributes on the builtin.
9459 (handle_const_attribute): New static function.
9460 (handle_nothrow_attribute): Likewise.
9462 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
9464 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
9466 2006-06-23 Olivier Hainque <hainque@adacore.com>
9468 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
9469 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
9471 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
9472 Eric Botcazou <ebotcazou@adacore.com>
9475 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
9476 check-gnat into check-acats.
9478 2006-06-17 Karl Berry <karl@gnu.org>
9480 * gnat-style.texi (@dircategory): Use "Software development"
9481 instead of "Programming", following the Free Software Directory.
9483 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9486 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
9488 2006-06-06 Laurent GUERBY <laurent@guerby.net>
9491 mlib-utl.adb: Use Program_Name.
9493 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
9495 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
9496 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
9497 trans.c, utils.c: Fix comment typos. Follow spelling
9499 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
9502 2006-05-19 Nicolas Setton <setton@adacore.com>
9504 * misc.c (gnat_dwarf_name): New function.
9505 (LANG_HOOKS_DWARF_NAME): Define to it.
9507 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
9509 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
9510 (ada/misc.o): Likewise.
9511 (ada/utils.o): Likewise.
9513 2006-04-08 Aurelien Jarno <aurel32@debian.org>
9515 * Makefile.in: Add Ada support for GNU/kFreeBSD.
9516 * s-osinte-kfreebsd-gnu.ads: New file.
9518 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
9520 * Make-lang.in: Rename docdir to gcc_docdir.
9522 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
9524 * gigi.h (get_ada_base_type): Delete.
9525 * utils2.c (get_ada_base_type): Likewise.
9526 * trans.c (convert_with_check): Operate in the real base type.
9528 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9530 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
9532 2006-03-02 Richard Sandiford <richard@codesourcery.com>
9534 * utils.c (create_var_decl): Use have_global_bss_p when deciding
9535 whether to make the decl common.
9537 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
9539 * Make-lang.in (Ada): Remove.
9540 (.PHONY): Remove Ada
9542 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9544 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
9545 aggregate, check the interpretations of the other operand to find one
9546 that may be a boolean array.
9548 (Analyze_Selected_Component): Fix flow-of-control typo in case where
9549 the prefix is a private extension.
9551 2006-02-17 Eric Botcazou <botcazou@adacore.com>
9554 * utils2.c (find_common_type): If both input types are BLKmode and
9555 have the same constant size, keep using the first one.
9557 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
9559 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
9561 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
9563 2006-02-17 Jose Ruiz <ruiz@adacore.com>
9565 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
9566 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9567 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
9568 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
9569 Abort_Defer/Undefer pairs to avoid the possibility of a task being
9570 aborted while owning a lock.
9572 2006-02-17 Javier Miranda <miranda@adacore.com>
9573 Robert Dewar <dewar@adacore.com>
9575 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
9576 through an access to class-wide interface we force the displacement of
9577 the pointer to the allocated object to reference the corresponding
9578 secondary dispatch table.
9579 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
9580 if Long_Shifts are supported on the target, even if 64 bit divides
9581 are not supported (configurable run time mode).
9582 (Expand_N_Type_Conversion): Do validity check if validity checks on
9583 operands are enabled.
9584 (Expand_N_Qualified_Expression): Do validity check if validity checks
9585 on operands are enabled.
9587 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9589 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
9590 must be materialized when the renamed expression is an explicit
9593 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9595 * freeze.adb (Statically_Discriminated_Components): Return false if
9596 the bounds of the type of the discriminant are not static expressions.
9598 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
9599 the bounds of the discriminant type are not static.
9601 2006-02-17 Robert Dewar <dewar@adacore.com>
9603 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
9604 then we close To if it is valid.
9606 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
9608 * init.c (facility_resignal_table): new array
9609 (__gnat_default_resignal_p): enhance default predicate to resignal if
9610 VMS condition has one of the predefined facility codes.
9612 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
9614 * Makefile.in: Use VMS64 specialized versions of several units in
9615 Interfaces.C hierarchy to be compatible with HP C default size choices.
9616 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
9618 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9620 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
9621 instantiation, the corresponding entity is the related_instance of the
9622 wrapper package created for the instance.
9624 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9626 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
9627 the current instance is nested within another instance in a child unit.
9629 2006-02-17 Javier Miranda <miranda@adacore.com>
9630 Ed Schonberg <schonberg@adacore.com>
9632 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
9633 type we cannot inherit the primitive operations; we inherit the
9634 Corresponding_Record_Type (which has the list of primitive operations).
9635 (Check_Anonymous_Access_Types): When creating anonymous access types for
9636 access components, use Rewrite in order to preserve the tree structure,
9638 (Analyze_Object_Declaration): For limited types with access
9639 discriminants with defaults initialized by an aggregate, obtain
9640 subtype from aggregate as for other mutable types.
9641 (Derived_Type_Declaration): If the derived type is a limited interface,
9642 set the corresponding flag (Is_Limited_Record is not sufficient).
9644 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9646 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
9647 to inline a function that returns an unconstrained type, the return
9648 expression must be the first variable declared in the body of the
9651 2006-02-17 Javier Miranda <miranda@adacore.com>
9653 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
9654 abstract interface type, the static analysis is not enough to know if
9655 the interface is implemented or not by the source tagged type. Hence
9656 we must pass the work to the expander to generate the required code to
9657 evaluate the conversion at run-time.
9658 (Resolve_Equality_Op): Do not apply previous
9659 transformation if expansion is disasbled, to prevent anomalies when
9660 locating global references in a generic unit.
9662 2006-02-17 Vincent Celier <celier@adacore.com>
9664 * snames.ads, snames.adb: New standard names for new project attributes:
9665 archive_builder, archive_indexer, compiler_pic_option,
9666 config_body_file_name, config_body_file_name_pattern,
9667 config_file_switches, config_file_unique, config_spec_file_name,
9668 config_spec_file_name_pattern, default_builder_switches,
9669 default_global_compiler_switches, default_language,
9670 dependency_file_kind, global_compiler_switches, include_path,
9671 include_path_file, language_kind, linker_executable_option,
9672 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
9673 roots, runtime_project.
9675 2006-02-17 Matthew Heaney <heaney@adacore.com>
9677 * a-convec.ads, a-convec.adb:
9678 (operator "&"): handle potential overflow for large index types
9679 (Insert): removed Contraint_Error when using large index types
9680 (Insert_Space): removed Constraint_Error for large index types
9681 (Length): moved constraint check from Length to Insert
9683 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
9685 Explicit raise statements now include an exception message.
9686 (operator "&"): handle potential overflow for large index types
9687 (Insert): removed Contraint_Error when using large index types
9688 (Insert_Space): removed Constraint_Error for large index types
9689 (Length): moved constraint check from Length to Insert
9691 2006-02-17 Robert Dewar <dewar@adacore.com>
9693 * s-wchcnv.adb: Document handling of [ on output (we do not change
9694 this to ["5B"] and the new comments say why not.
9697 Add note for -gnatVo that this now includes the cases of type
9698 conversions and qualified expressions.
9699 Add comments on handling of brackets encoding for Text_IO
9701 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
9702 Thomas Quinot <quinot@adacore.com>
9703 Robert Dewar <dewar@adacore.com>
9704 Javier Miranda <miranda@adacore.com>
9706 * expander.adb: Fix typo in comment
9708 * exp_pakd.adb: Fix typo
9709 Minor comment reformatting.
9711 * g-dyntab.adb: Minor reformatting
9713 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
9714 aliased subprograms to look for the abstract interface subprogram.
9716 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
9718 * env.c (__gnat_setenv): Use size_t.
9719 (__gnat_unsetenv): Likewise.
9720 (__gnat_clearenv): Likewise.
9722 2006-02-16 Arnaud Charlet <charlet@adacore.com>
9724 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
9726 2006-02-13 Arnaud Charlet <charlet@adacore.com>
9728 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
9729 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
9730 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
9731 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
9732 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
9733 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
9734 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
9735 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
9736 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
9739 2006-02-13 Jose Ruiz <ruiz@adacore.com>
9741 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
9742 protection against race conditions is not needed.
9743 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
9745 (Set_Specific_Handler): Add mutual exclusive access to the specific
9747 (Specific_Handler): Add mutual exclusive access for retrieving the
9750 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
9753 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
9754 Fall_Back_Handler and Specific_Handler.
9756 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
9757 termination handlers.
9758 Set two different owerflow depending on the maximal stack size.
9760 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
9761 protection against race conditions is not needed when executing the
9762 task termination handler.
9764 2006-02-13 Robert Dewar <dewar@adacore.com>
9766 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
9767 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
9768 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
9769 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
9770 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
9771 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
9772 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
9773 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
9774 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
9775 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
9776 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
9777 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
9778 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
9779 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
9780 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
9781 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
9782 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
9783 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
9784 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
9785 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
9786 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
9787 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
9788 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
9789 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
9790 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
9791 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
9792 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
9793 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
9794 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
9795 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
9796 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
9797 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
9798 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
9799 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
9802 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
9804 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
9805 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
9806 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
9807 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
9808 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
9809 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
9810 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
9811 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
9812 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
9814 2006-02-13 Arnaud Charlet <charlet@adacore.com>
9816 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
9817 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
9818 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
9819 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
9820 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
9821 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
9822 replaced by anonymous access type.
9823 (pthread_sigmask): Now take an access sigset_t
9825 * s-osinte-hpux.ads: Ditto.
9826 (pthread_mutex_t, pthread_cond_t): Update definitions to support
9827 properly 32 and 64 bit ABIs.
9829 2006-02-13 Pascal Obry <obry@adacore.com>
9831 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
9832 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
9833 s-taprop-linux.adb, s-taprop-solaris.adb,
9834 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
9835 adjustement is already done when calling this routine.
9837 2006-02-13 Pascal Obry <obry@adacore.com>
9839 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
9840 table to take advantage of the 16 priority levels available on Windows
9841 2000 and XP. On NT4 there are only 7 priority levels, this is properly
9842 supported by this new mapping.
9844 2006-02-13 Nicolas Setton <setton@adacore.com>
9846 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
9847 (get_encoding): New subprogram. Extracts the encodings from an encoded
9850 2006-02-13 Pascal Obry <obry@adacore.com>
9851 Nicolas Roche <roche@adacore.com>
9852 Arnaud Charlet <charlet@adacore.com>
9854 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
9856 (__gnat_try_lock): Add unicode support by using a specific section on
9858 (__gnat_get_current_dir): Idem.
9859 (__gnat_open_read): Idem.
9860 (__gnat_open_rw): Idem.
9861 (__gnat_open_create): Idem.
9862 (__gnat_create_output_file): Idem.
9863 (__gnat_open_append): Idem.
9864 (__gnat_open_new): Idem.
9865 (__gnat_file_time_name): Idem.
9866 (__gnat_set_file_time_name): Idem.
9867 (__gnat_stat): Idem.
9868 (win32_no_block_spawn): Idem.
9869 (__gnat_locate_exec_on_path): Idem.
9870 (__gnat_opendir): New routine.
9871 (__gnat_closedir): Idem.
9872 (__gnat_readdir): Add new parameter length (pointer to int). Update
9873 implementation to use it and add specific Win32 code for Unicode
9875 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
9876 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
9877 (convert_addresses): Do not define this dummy routine on VMS.
9879 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
9880 runtime Unicode support will be activated.
9881 (S2WS): String to Wide-String conversion. This version just copy a
9882 string in non Unicode version.
9883 (WS2S): Wide-String to String conversion. This version just copy a
9884 string in non Unicode version.
9886 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
9887 (Open): Now import __gnat_opendir from adaint.c.
9888 (Read): Change the implementation to support unicode characters. It is
9889 not possible to use strlen() on Windows as this version supports only
9890 standard ASCII characters. So the length of the directory entry is now
9891 returned from the imported __gnat_readdir routine.
9892 Update copyright notice.
9894 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
9895 (opendir): Moved to adaint.c.
9897 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
9898 (Get_Directory): Fix wrong indexing.
9899 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
9900 __gnat_getenv from env.c
9901 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
9904 * env.h, env.c: New file.
9906 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
9907 adaint.c by __gnat_getenv from env.c
9909 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
9910 adaint.c by __gnat_getenv from env.c
9912 * Make-lang.in: Add env.o in the list of C object needed by gnat1
9914 Update dependencies.
9916 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9917 Olivier Hainque <hainque@adacore.com>
9918 Eric Botcazou <ebotcazou@adacore.com>
9920 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
9922 * gigi.h (value_factor_p): Add prototype and description, now public.
9924 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
9925 promotion for field with rep clause if the associated size was proven
9927 Expand comments describing attempts to use a packable type.
9928 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
9929 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
9930 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
9931 necessary since these are not different types and pointers may
9932 actually designate any subtype in this hierarchy.
9933 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
9934 discriminants but put them into record only if not Unchecked_Union;
9935 pass flag to components_to_record showing Unchecked_Union.
9936 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
9937 components before variants; don't set TYPE_UNCHECKED_UNION_P.
9938 (components_to_record): New argument UNCHECKED_UNION.
9939 Remove special case code for Unchecked_Union and instead use main code
9943 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
9944 variable with the expression being built, only its inner field.
9946 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
9947 emit_sequence_entry_statements.
9948 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
9949 (establish_gnat_vms_condition_handler): Move before
9950 Subprogram_Body_to_gnu.
9951 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
9952 for a subprogram if it has a foreign convention or is exported.
9953 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
9954 substituted for a CONST_DECL.
9955 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
9956 Etype to assoc_to_constructor.
9957 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
9958 discriminants of Unchecked_Union.
9959 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
9960 don't need cluttering preprocessor directives.
9961 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
9962 condition handler as current in the compiled function.
9963 (body_with_handlers_p): New function. Tell whether a given sequence of
9964 statements node is attached to a package or subprogram body and involves
9965 exception handlers possibly nested within inner block statements.
9966 (emit_sequence_entry_statements): New function, to emit special
9967 statements on entry of sequences when necessary. Establish GNAT
9968 condition handler in the proper cases for VMS.
9969 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
9970 emit_sequence_entry_statements.
9972 * utils2.c (find_common_type): If both input types are BLKmode and
9973 have a constant size, use the smaller one.
9974 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
9977 * utils.c (value_factor_p): Make public, to allow uses from other gigi
9979 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
9980 (convert, case UNION_TYPE): Remove special treatment for unchecked
9984 (update_pointer_to): Update variants of pointer types to unconstrained
9985 arrays by attaching the list of fields of the main variant.
9987 2006-02-13 Arnaud Charlet <charlet@adacore.com>
9988 Robert Dewar <dewar@adacore.com>
9990 * a-exexpr.adb, a-exexpr-gcc.adb
9991 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
9992 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
9993 Remove code unused for exception propagation for the compiler itself
9994 from a-except.adb and update to still share separate packages.
9996 * a-except.ads, a-except.adb: Ditto.
9997 Add comments that this version is now used only by the compiler and
9998 other basic tools. The full version that includes the Ada 2005 stuff
9999 is in separate files a-except-2005.ads/adb. The reason is that we do
10000 not want to cause bootstrap problems with compilers not recognizing
10002 Add exception reason code PE_Implicit_Return
10003 Add new exception reason code (Null Exception_Id)
10005 * a-except-2005.adb, a-except-2005.ads: New files.
10007 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
10009 * s-wchcon.adb: New file.
10011 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
10012 (traceback.o deps): Likewise.
10013 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
10014 Activate build of GMEM instrumentation library on VMS targets.
10015 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
10016 Use a-except-2005.ads/adb for all run-time library builds unless
10017 specified otherwise.
10018 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
10019 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
10020 Use s-parame.adb on all native platforms.
10021 Use s-parame-vxworks.adb on all vxworks platforms.
10022 Add env.c env.h in LIBGNAT_SRCS
10023 Add env.o in LIBGNAT_OBJS
10024 (GNATMAKE_OBJS): Remove ctrl_c.o object.
10025 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
10026 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
10027 supports VxWorks 6 RTPs.
10028 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
10029 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
10031 * types.h, types.ads (Terminate_Program): New exception
10032 Add comment on modifying multiple versions of a-except.adb when the
10033 table of exception reasons is modified.
10034 Add exception reason code PE_Implicit_Return
10035 Add new exception reason code (Null Exception_Id)
10037 * clean.adb (Initialize): Get the target parameters before checking
10038 if target is OpenVMS. Move the OpenVMS specific code here from package
10039 body elaboration code.
10041 2006-02-13 Thomas Quinot <quinot@adacore.com>
10042 Vincent Celier <celier@adacore.com>
10043 Robert Dewar <dewar@adacore.com>
10045 * ali-util.adb (Get_File_Checksum): Update to account for change in
10046 profile of Initialize_Scanner.
10048 * gprep.adb (Gnatprep): Update to account for change in profile of
10049 Initialize_Scanner.
10050 (Process_One_File): Same.
10052 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
10053 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
10054 that behaviour using the new Unit information recorded in the source
10055 files table, rather than going through all units every time.
10056 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
10057 (Get_Source_Unit): Same.
10059 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
10060 change in profile of Initialize_Scanner.
10061 (Prepare_To_Preprocess): Same.
10063 * lib.ads: Fix typo in comment (templace -> template).
10065 * prj-part.adb (Parse_Single_Project): Update to account for change in
10066 profile of Initialize_Scanner.
10068 * scn.adb (Initialize_Scanner): Account for change in profile of
10069 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
10070 Also record the association of the given Source_File_Index to the
10071 corresponding Unit_Number_Type.
10073 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
10075 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
10076 Remove Unit formal for generic scanner: this formal
10077 is only relevant to Scn (the scanner instance used to parse Ada source
10078 files), not to other instances. Update comment accordingly.
10079 (Scan): Use new function Snames.Is_Keyword_Name.
10081 * sinfo-cn.adb: Fix typo in comment.
10083 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
10086 * sinput.ads (Source_File_Record): New component Unit, used to capture
10087 the unit identifier (if any) associated to a source file.
10089 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
10090 Unit in Source_File_Record.
10092 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
10093 in profile of Initialize_Scanner.
10095 * scans.adb (Initialize_Ada_Keywords): New procedure
10097 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
10098 Ada keywords in the Namet table, without the need to call
10099 Initialize_Scanner.
10101 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
10102 (Is_Keyword_Name): New function
10104 * snames.ads: Add subtype Configuration_Pragma_Names
10105 Add pragma Ada_2005 (synonym for Ada_05)
10106 (Is_Keyword_Name): New function
10108 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
10110 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10112 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
10115 * a-stwima.adb (To_Set): Add extra check when N = 0.
10117 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
10119 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10121 * s-parame-mingw.adb, s-parame-linux.adb,
10122 s-parame-solaris.adb: Removed, replaced by s-parame.adb
10124 * s-parame-vxworks.ads: Fix typo.
10126 * s-parame-vxworks.adb: New file.
10128 * s-parame.adb: Version now used by all native platforms.
10129 (Default_Stack_Size): Use 2 megs for default stack size and use
10130 __gl_default_stack_size when available.
10131 (Minimum_Stack_Size): Use 12K.
10133 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
10134 (Create_Task): Refine implementation taking advantage of the XP stack
10135 size support. On XP, we now create the thread using the flag
10136 STACK_SIZE_PARAM_IS_A_RESERVATION.
10138 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
10140 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
10141 XP and 0 on older Windows versions.
10143 * interfac-vms.ads: Removed, no longer used.
10145 2006-02-13 Matthew Heaney <heaney@adacore.com>
10147 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
10148 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
10149 a-cohase.adb: All explicit raise statements now include an exception
10152 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
10153 (Update_Element_Preserving_Key): renamed op to just Update_Element.
10154 Explicit raise statements now include an exception message
10156 * a-cihase.ads, a-cohase.ads: Removed comment.
10158 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
10159 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
10160 a-szbzha.adb, a-szfzha.ads: New files.
10162 2006-02-13 Matthew Heaney <heaney@adacore.com>
10164 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
10167 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
10169 * lang.opt: Wvariadic-macros: New option.
10170 Wold-style-definition: Likewise.
10171 Wmissing-format-attribute: Likewise.
10173 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
10174 -Wold-style-definition and -Wmissing-format-attribute.
10176 2006-02-13 Robert Dewar <dewar@adacore.com>
10178 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
10180 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
10182 2006-02-13 Nicolas Roche <roche@adacore.com>
10184 * a-envvar.adb, a-envvar.ads: New files.
10186 2006-02-13 Douglas Rupp <rupp@adacore.com>
10188 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
10190 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
10192 2006-02-13 Pat Rogers <rogers@adacore.com>
10194 * a-rttiev.adb, a-rttiev.ads: New files.
10196 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
10198 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
10199 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
10201 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
10203 2006-02-13 Robert Dewar <dewar@adacore.com>
10205 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
10206 sem_case.adb: Minor code reorganization (not Present should be No)
10208 2006-02-13 Geert Bosch <bosch@adacore.com>
10209 Gary Dismukes <dismukes@adacore.com>
10211 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
10212 0, since the lower bound of the actual string may be greater than one.
10215 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
10216 layout is requested.
10218 2006-02-13 Vincent Celier <celier@adacore.com>
10220 * back_end.adb (Scan_Compiler_Arguments): Check if
10221 Search_Directory_Present is True and, if it is, add the argument in
10222 the source search directory path.
10224 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
10225 Search_Directory_Present to True.
10227 2006-02-13 Joel Brobecker <brobecke@adacore.com>
10229 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
10230 volatile, to tell the compiler to preserve this variable at any level
10232 (Gen_Versions_Ada): Temporarily work around codegen bug.
10234 2006-02-13 Vincent Celier <celier@adacore.com>
10236 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
10237 gcc to link with option -shared-libgcc.
10238 (Gnatlink): Remove duplicate switches -shared-libgcc
10240 2006-02-13 Robert Dewar <dewar@adacore.com>
10242 * gnatvsn.ads (Current_Year): New constant, used to easily update
10243 copyright on all GNAT tools.
10245 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
10248 2006-02-13 Robert Dewar <dewar@adacore.com>
10250 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
10251 after hyphen (small aesthetic change useful for a range of numbers
10253 Suppress range checks for a couple of assignments which otherwise
10254 cause validity checks with validity checking turned on.
10256 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
10257 Improvement in error message for object.
10258 (Rep_Item_Too_Late): Remove '!' in warning message.
10260 2006-02-13 Robert Dewar <dewar@adacore.com>
10261 Eric Botcazou <ebotcazou@adacore.com>
10263 * err_vars.ads: Suppress range checks for a couple of assignments
10264 which otherwise cause validity checks with validity checking turned on.
10267 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
10268 Make message unconditional if it is a warning.
10269 (Error_Msg_NEL): Always output warning messages.
10270 Suppress range checks for a couple of assignments which otherwise
10271 cause validity checks with validity checking turned on.
10273 * errout.ads (Message Insertion Characters): Document that '!' is
10274 implied by '?' in error messages.
10276 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
10277 (Gnat1drv): Use a goto to end of main subprogram instead of
10278 Exit_Program (E_Success) so that finalization can occur normally.
10280 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
10282 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
10285 2006-02-13 Vincent Celier <celier@adacore.com>
10287 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
10288 Unchecked_Conversion functions.
10289 (Modification_Time): Use direct conversion of OS_Time to Calendar time
10290 when OpenVMS returns False.
10292 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
10293 a-dirval.adb (OpenVMS): New Boolean function
10295 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10296 Thomas Quinot <quinot@adacore.com>
10298 * checks.adb (Build_Discriminant_Checks): If the expression being
10299 checks is an aggregate retrieve the values of its discriminants to
10300 generate the check, rather than creating a temporary and a reference
10302 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
10303 (Install_Null_Excluding_Check): Ditto
10304 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
10305 not for the renamed object, so that the actual itype is attached in the
10308 2006-02-13 Robert Dewar <dewar@adacore.com>
10309 Vincent Celier <celier@adacore.com>
10311 * debug.adb: Eliminate numeric switches for binder/gnatmake
10313 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
10314 switches for the compiler.
10315 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
10316 (Scan_Make_Switches): When failing with an illegal switch, output an
10317 error message with the full switch.
10318 Eliminate numeric switches for binder/gnatmake
10320 * switch.ads, switch.adb (Bad_Switch): New procedure
10322 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
10323 Remove 0-9 as debug flag character possibilities
10324 -d is now controlling the primary stack size when its value is a
10325 positive. Also add checks against invalid values, and support for kb,
10326 mb. Ditto for -D switch.
10328 2006-02-13 Robert Dewar <dewar@adacore.com>
10329 Serguei Rybin <rybin@adacore.com>
10331 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
10332 save/restore routines.
10333 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
10334 were not always properly handled previously.
10335 Since we are changing the tree format anyway, also get rid of the
10336 junk obsolete Immediate_Errors flag.
10337 (Tree_Read): Change the way of reading Tree_Version_String - now we
10338 read the version string from the tree even if its length is not the
10339 same as the length of the version string computed from Gnatvsn.
10340 (Search_Directory_Present): New Boolean flag for the compiler.
10341 Define Tree_Version_String as a dynamic string.
10342 (Default_Stack_Size): new variable, used to handle switch -d.
10345 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
10346 only for main unit.
10347 Add pragma Ada_2005 (synonym for Ada_05)
10348 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
10349 were not always properly handled previously.
10351 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
10352 explicit Ada_95 to Ada_2005.
10354 2006-02-13 Javier Miranda <miranda@adacore.com>
10355 Robert Dewar <dewar@adacore.com>
10356 Ed Schonberg <schonberg@adacore.com>
10358 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
10359 against errors in the source program: a private types for which the
10360 corresponding full type declaration is missing and pragma CPP_Virtual
10362 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
10363 (Is_Known_Null): New flag
10364 (Has_Pragma_Pure): New flag
10365 (No_Return): Present in all entities, set only for procedures
10366 (Is_Limited_Type): A type whose ancestor is an interface is limited if
10367 explicitly declared limited.
10368 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
10369 entities. Only used for component marked Is_Tag. If present it stores
10370 the Offset_To_Top function used to provide this value in tagged types
10371 whose ancestor has discriminants.
10373 * exp_ch2.adb: Update status of new Is_Known_Null flag
10375 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
10377 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
10378 the categorization sense if Is_Pure was set by pragma Pure_Function.
10380 2006-02-13 Quentin Ochem <ochem@adacore.com>
10381 Olivier Hainque <hainque@adacore.com>
10383 * bindusg.adb: Updated documentation for -d and -D switches.
10385 * raise.h (__gnat_set_globals): added new parameter for
10386 Default_Stack_Size.
10388 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
10389 (__gnat_handle_vms_condition): Adjust context before raise.
10390 (__gnat_install_handler): Restore the global vector setup for GCC
10391 versions before 3.4, as the frame based circtuitry is not available
10393 (__gnat_set_globals): added a parameter default_stack_size
10394 (__gl_default_stack_size): new variable.
10396 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10398 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
10399 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
10400 does not exist in the Ada RM.
10401 (Compatible_Int_Bounds): Determine whether two integer range bounds
10402 are of equal length and have the same start and end values.
10403 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
10404 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
10405 aggregate when it is part of an object declaration.
10406 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
10407 constrains discriminants of its parent, add explicitly the discriminant
10408 constraints of the ancestor by retrieving them from the
10409 stored_constraint of the parent.
10411 2006-02-13 Robert Dewar <dewar@adacore.com>
10413 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
10414 attribute Mechanism_Code is applied to renamed subprogram, modify
10415 prefix to point to base subprogram.
10416 Max/Min attributes now violate Restriction No_Implicit_Conditionals
10418 * sinfo.ads: Document that Mechanism_Code cannot be applied to
10419 renamed subprograms so that the front-end must replace the prefix
10422 2006-02-13 Javier Miranda <miranda@adacore.com>
10423 Gary Dismukes <dismukes@adacore.com>
10425 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
10426 availability of RE_Interface_Tag.
10427 (Build_Initialization_Call): Fix wrong access to the discriminant value.
10428 (Freeze_Record_Type): Do not generate the tables associated with
10429 timed and conditional dispatching calls through synchronized
10430 interfaces if compiling under No_Dispatching_Calls restriction.
10431 When compiling for Ada 2005, for a nonabstract
10432 type with a null extension, call Make_Controlling_Function_Wrappers
10433 and insert the wrapper function declarations and bodies (the latter
10434 being appended as freeze actions).
10435 (Predefined_Primitive_Bodies): Do not generate the bodies of the
10436 predefined primitives associated with timed and conditional
10437 dispatching calls through synchronized interfaces if we are
10438 compiling under No_Dispatching_Calls.
10439 (Build_Init_Procedure): Use RTE_Available to check if a run-time
10440 service is available before generating a call.
10441 (Make_Controlling_Function_Wrappers): New procedure.
10442 (Expand_N_Full_Type_Declaration): Create a class-wide master for
10443 access-to-limited-interfaces because they can be used to reference
10444 tasks that implement such limited interface.
10445 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
10446 procedure spec and body of the Offset_To_Top function that is generated
10447 when the parent of a type with discriminants has secondary dispatch
10449 (Init_Secondary_Tags): Handle the case in which the parent of the type
10450 containing secondary dispatch tables has discriminants to generate the
10451 correct arguments to call Set_Offset_To_Top.
10452 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
10454 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
10455 Add Wide_[Wide_]Expanded_Name.
10456 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
10457 the same functionality of Get_Prim_Op_Address but applied to predefined
10458 primitive operations because the pointers to the predefined primitives
10459 are now saved in a separate table.
10460 (Parent_Size): Modified to get access to the separate table of primitive
10461 operations or the parent type.
10462 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
10463 functionality of Set_Prim_Op_Address but applied to predefined primitive
10465 (Set_Signature): New subprogram used to store the signature of a DT.
10466 (Displace): If the Offset_To_Top value is not static then call the
10467 function generated by the expander to get such value; otherwise use
10468 the value stored in the table of interfaces.
10469 (Offset_To_Top): The type of the actual has been changed to Address to
10470 give the correct support to tagged types with discriminants. In this
10471 case this value is stored just immediately after the tag field.
10472 (Set_Offset_To_Top): Two new formals have been added to indicate if the
10473 offset_to_top value is static and hence pass this value to the run-time
10474 to store it in the table of interfaces, or else if this value is dynamic
10475 and then pass to the run-time the address of a function that is
10476 generated by the expander to provide this value for each object of the
10479 * rtsfind.ads (Default_Prin_Op_Count): Removed.
10480 (Default_Prim_Op_Count): New entity
10481 (Get_Predefined_Prim_Op_Address): New entity
10482 (Set_Predefined_Prim_Op_Address): New entity
10483 (RE_Set_Signature): New entity
10485 2006-02-13 Thomas Quinot <quinot@adacore.com>
10486 Ed Schonberg <schonberg@adacore.com>
10488 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
10489 Make_Adjust_Call done for a newly-allocated object.
10491 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
10492 in a subprogram are wrapped in a cleanup block, indicate that the
10493 subprogram contains an inner block with an exception handler.
10494 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
10495 Adjust call is for a newly-allocated object. In that case we must not
10496 assume that the finalization list chain pointers are correct (since they
10497 come from a bit-for-bit copy of the original object's pointers) so if
10498 the attach level would otherwise be zero (no change), we set it to 4
10499 instead to cause the pointers to be reset to null.
10501 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
10502 reset chain pointers to null.
10504 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10506 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
10507 string, and the context requires a loop for the assignment (e.g.
10508 because the left-hand side is packed), generate a unique name for the
10509 temporary that holds the string, to prevent spurious name clashes.
10511 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10512 Javier Miranda <miranda@adacore.com>
10513 Robert Dewar <dewar@adacore.com>
10514 Gary Dismukes <dismukes@adacore.com>
10516 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
10517 return unconstrained arrays.
10519 (Expand_Call): An indirect call through an access parameter of a
10520 protected operation is not a protected call.
10521 Add circuit to raise CE in Ada 2005 mode following call
10522 to Raise_Exception.
10523 (Register_DT_Entry): Do nothing if
10524 the run-time does not give support to abstract interfaces.
10525 (Freeze_Subprogram): In case of dispatching operations, do not generate
10526 code to register the operation in the dispatch table if the source
10527 is compiled with No_Dispatching_Calls.
10528 (Register_Predefined_DT_Entry): Generate code that calls the new
10529 run-time subprogram Set_Predefined_Prim_Op_Address instead of
10530 Set_Prim_Op_Address.
10532 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
10533 on array assignments if the right-hand side is a function call that has
10534 been inlined. Check is performed on the assignment in the block.
10535 (Process_Bounds): If bounds and range are overloaded, apply preference
10536 rule for root operations to disambiguate, and diagnose true ambiguity.
10537 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
10538 a tag-indeterminate right-hand side even when Expander_Active is True.
10539 Needed to ensure that dispatching calls to T'Input are allowed and
10540 get the tag of the target class-wide object.
10542 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
10543 an inherited primitive operation that already overrides several
10544 abstract interface primitives. For transitivity, the new entity must
10545 also override all the abstract interface primitives covered by the
10546 inherited overriden primitive.
10547 Emit warning if new entity differs from homograph in same scope only in
10548 that one has an access parameter and the other one has a parameter of
10549 a general access type with the same designated type, at the same
10550 position in the signature.
10551 (Make_Inequality_Operator): Use source locations of parameters and
10552 subtype marks from corresponding equality operator when creating the
10553 tree structure for the implicit declaration of "/=". This does not
10554 change anything in behaviour except that the decoration of the
10555 components of the subtree created for "/=" allows ASIS to get the
10556 string images of the corresponding identifiers.
10557 (Analyze_Return_Statement): Remove '!' in warning message.
10558 (Check_Statement_Sequence): Likewise.
10559 (Analyze_Subprogram_Body): For an access parameter whose designated type
10560 is an incomplete type imported through a limited_with clause, use the
10561 type of the corresponding formal in the body.
10562 (Check_Returns): Implicit return in No_Return procedure now raises
10563 Program_Error with a compile time warning, instead of beging illegal.
10564 (Has_Single_Return): Function returning unconstrained type cannot be
10565 inlined if expression in unique return statement is not an identifier.
10566 (Build_Body_To_Inline): It is possible to inline a function call that
10567 returns an unconstrained type if all return statements in the function
10568 return the same local variable. Subsidiary procedure Has_Single_Return
10569 verifies that the body conforms to this restriction.
10571 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
10572 same type, and one of them is of an anonymous access type, convert
10573 the other operand to it, so that this is a valid binary operation for
10575 (Resolve_Type_Conversion): Handle subtypes of protected types and
10576 task types when accessing to the corresponding record type.
10577 (Resolve_Allocator): Add '\' in 2-line warning message.
10578 Remove '!' in warning message.
10579 (Resolve_Call): Add '\' in 2-line warning message.
10580 (Valid_Conversion): Likewise.
10581 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
10582 resulting type may be an access type with an implicit dereference.
10583 Obtain the proper component from the designated type.
10584 (Make_Call_Into_Operator): Handle properly a call to predefined equality
10585 given by an expanded name with prefix Standard, when the operands are
10586 of an anonymous access type.
10587 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
10588 Explicit_Dereference and Resolve_Selected_Component, to verify that the
10589 prefix of the expression is not of an incomplete type. Allows full
10590 diagnoses of all semantic errors.
10591 (Resolve_Actuals): If the actual is an allocator whose directly
10592 designated type is a class-wide interface we build an anonymous
10593 access type to use it as the type of the allocator. Later, when
10594 the subprogram call is expanded, if the interface has a secondary
10595 dispatch table the expander will add a type conversion to force
10596 the displacement of the pointer.
10597 (Resolve_Call): If a function that returns an unconstrained type is
10598 marked Inlined_Always and inlined, the call will be inlined and does
10599 not require the creation of a transient scope.
10600 (Check_Direct_Boolean_Op): Removed
10601 (Resolve_Comparison_Op): Remove call to above
10602 (Resolve_Equality_Op): Remove call to above
10603 (Resolve_Logical_Op): Inline above, since this is only call.
10604 (Valid_Conversion): Handle properly conversions between arrays of
10605 convertible anonymous access types.
10608 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
10609 the literal in an unchecked conversion, because GCC 4.x needs a static
10610 value for a string bound.
10612 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10613 Hristian Kirtchev <kirtchev@adacore.com>
10615 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
10616 components of the corresponding record, take into account component
10617 definitions that are access definitions.
10618 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
10619 procedure is not considered a dispatching call and will be expanded
10622 2006-02-13 Javier Miranda <miranda@adacore.com>
10624 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
10625 controlling argument of the dispatching call is an abstract interface
10626 class-wide type then we use it directly.
10627 Check No_Dispatching_Calls restriction.
10628 (Default_Prim_Op_Position): Remove the code that looks for the last
10629 entity in the list of aliased subprograms. This code was wrong in
10631 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
10632 when the source is compiled with the No_Dispatching_Calls restriction.
10633 (Init_Predefined_Interface_Primitives): No need to inherit primitives
10634 if we are compiling with restriction No_Dispatching_Calls.
10635 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
10636 subprograms if we are compiling under No_Dispatching_Calls restriction.
10637 (Make_DT): Generate a dispatch table with a single dummy entry if
10638 we are compiling with the No_Dispatching_Calls restriction. In
10639 addition, in this case we don't generate code that calls to the
10640 following run-time subprograms: Set_Type_Kind, Inherit_DT.
10641 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
10642 of this subprogram if compiling with the No_Dispatching_Calls
10644 (Expand_Type_Conversion): Instead of using the actual parameter,
10645 the argument passed as parameter to the conversion function was
10646 erroneously referenced by the expander.
10647 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
10648 Set_Predefined_Primitive_Op_Address and Set_Signature.
10649 (Expand_Dispatching_Call): Generate call to
10650 Get_Predefined_Prim_Op_Address for predefined primitives.
10651 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
10652 predefined primitives.
10653 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
10654 primitives we reserve one dummy entry to ensure that the tag does not
10655 point to some memory that is associated with some other object. In
10656 addition, remove all the old code that generated the assignments
10657 associated with the signature of the dispatch table and replace them
10658 by a call to the new subprogram Set_Signature.
10659 (Set_All_DT_Position): Change the algorithm because now we have a
10660 separate dispatch table associated with predefined primitive operations.
10661 (Expand_Interface_Conversion): In case of non-static offset_to_top
10662 add explicit dereference to get access to the object after the call
10663 to displace the pointer to the object.
10664 (Expand_Interface_Thunk): Modify the generation of the actual used
10665 in the calls to the run-time function Offset_To_Top to fulfil its
10667 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
10669 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10671 * exp_dist.adb (Copy_Specification): For access parameters, copy
10672 Null_Exclusion flag, which will have been set for stream subprograms
10675 2006-02-13 Pascal Obry <obry@adacore.com>
10677 * expect.c (__gnat_expect_portable_execvp): New implementation. The
10678 previous implementation was using the C runtime spawnve routine but
10679 the corresponding wait was using directly the Win32 API. This was
10680 causing some times a lock when waiting for an event using
10681 WaitForSingleObject in __gnat_waitpid. This new implementation uses
10682 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
10683 API fixes this problem.
10685 2006-02-13 Robert Dewar <dewar@adacore.com>
10687 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
10690 2006-02-13 Thomas Quinot <quinot@adacore.com>
10692 * exp_pakd.ads: Fix typos in comments.
10694 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
10695 array reference that is an explicit dereference, mark the converted
10696 (packed) array reference as analyzed to prevent a forthcoming
10697 reanalysis from resetting its type to the original (non-packed) array
10700 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10701 Javier Miranda <miranda@adacore.com>
10702 Eric Botcazou <ebotcazou@adacore.com>
10704 * exp_util.ads, exp_util.adb (Find_Prim_Op,
10705 Is_Predefined_Primitive_Operation): When
10706 searching for the predefined equality operator, verify that operands
10707 have the same type.
10708 (Is_Predefined_Dispatching_Operation): Remove the code that looks
10709 for the last entity in the list of aliased subprograms. This code
10710 was wrong in case of renamings.
10711 (Set_Renamed_Subprogram): New procedure
10712 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
10713 Exp_Type constant computed when entering this subprogram.
10714 (Known_Null): New function
10715 (OK_To_Do_Constant_Replacement): New function
10716 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
10717 (Side_Effect_Free): An attribute reference 'Input is not free of
10718 side effect, unlike other attributes that are functions. (from code
10720 (Remove_Side_Effects): Expressions that involve packed arrays or records
10721 are copied at the point of reference, and therefore must be marked as
10722 renamings of objects.
10723 (Is_Predefined_Dispatching_Operation): Return false if the operation is
10724 not a dispatching operation.
10727 (Remove_Side_Effects): Lift enclosing type conversion nodes for
10728 elementary types in all cases.
10730 2006-02-13 Javier Miranda <miranda@adacore.com>
10732 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
10733 task types when accessing to the corresponding record type.
10734 Remove '!' in warning message.
10736 2006-02-13 Olivier Hainque <hainque@adacore.com>
10738 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
10739 to avoid useless and space inefficient overalignments on targets where
10740 Max_Alignment is larger than 16.
10742 2006-02-13 Pascal Obry <obry@adacore.com>
10744 * g-catiio.adb (Sec_Number): New type used to compute the number of
10745 seconds since 1-1-1970.
10746 (Image) [Natural]: The parameter was an Integer, as we can't deal with
10747 negative numbers (years, months...) it is better to have a Natural here.
10749 (Image) [Number]: Change parameter from Long_Integer to Number.
10750 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
10751 overflow for dates past year 2038.
10753 2006-02-13 Matthew Heaney <heaney@adacore.com>
10755 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
10758 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10760 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
10762 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
10763 finalization can occur normally.
10765 2006-02-13 Vincent Celier <celier@adacore.com>
10767 * gnatcmd.adb (Rules_Switches): New table
10768 (Add_To_Rules_Switches): New procedure
10769 (GNATCmd): For command CHECK, put all options following "-rules" in the
10770 Rules_Switches table. Append these -rules switches after the -cargs
10773 2006-02-13 Robert Dewar <dewar@adacore.com>
10775 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
10776 These two cases were generating incorrect output, and if this unit
10777 was built with checks on, generated a discriminant mismatch constraint
10780 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10781 Robert Dewar <dewar@adacore.com>
10783 * lib-xref.adb (Get_Type_Reference): For a private type whose full
10784 view is an array type, indicate the component type as well, for
10785 navigation purposes.
10786 (Generate_Reference): Don't consider array ref on LHS to be a case
10787 of violating pragma Unreferenced.
10788 Do not give Ada 2005 warning except on real reference.
10790 2006-02-13 Vincent Celier <celier@adacore.com>
10792 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
10793 main source, add switch -mdebug-main=_ada_ so that the executable can
10794 be debugged by the standard VMS debugger.
10795 (Gnatmake): Set No_Main_Subprogram to True when there is no main
10796 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
10797 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
10798 of the last source, as the binding and linking phases are never
10800 Set all executable obsolete when rebuilding a library.
10802 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
10805 2006-02-13 Javier Miranda <miranda@adacore.com>
10808 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
10809 code to improve the error message reported when the program has
10810 declarations of abstract interface types and it is not compiled with
10811 the -gnat05 switch.
10812 (P_Access_Definition): Reorganize the code to improve the error
10813 message reported when the new Ada 2005 syntax for anonymous
10814 access types is used and the program is not compiled with the
10817 2006-02-13 Robert Dewar <dewar@adacore.com>
10819 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
10820 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
10823 2006-02-13 Javier Miranda <miranda@adacore.com>
10825 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
10826 against source containing syntax errors.
10828 2006-02-13 Vincent Celier <celier@adacore.com>
10830 * prj.adb (Reset): Initialize the first element of table Namings with
10831 the standard naming data.
10833 2006-02-13 Vincent Celier <celier@adacore.com>
10835 * prj.ads (Error_Warning): New enumeration type
10837 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
10838 unknown, use the location of the project to report the error.
10839 (When_No_Sources): New global variable
10840 (Report_No_Ada_Sources): New procedure
10841 (Check): New parameter When_No_Sources. Set value of global variable
10843 (Find_Sources): Call Report_No_Ada_Sources when appropriate
10844 (Get_Sources_From_File): Ditto
10845 (Warn_If_Not_Sources): Better warning messages indicating the unit name
10848 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
10849 Call Prj.Proc.Process with parameter When_No_Sources.
10851 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
10852 Call Recursive_Check with parameter When_No_Sources.
10853 (Recursive_Check): New parameter When_No_Sources. Call itself and
10854 Prj.Nmsc.Check with parameter When_No_Sources.
10855 (Process): New parameter When_No_Sources. Call Check with parameter
10857 (Copy_Package_Declarations): New procedure to copy renamed parameters
10858 and setting the location of the declared attributes to the location
10859 of the renamed package.
10860 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
10863 2006-02-13 Vincent Celier <celier@adacore.com>
10865 * prj-makr.adb (Make): Preserve the comments from the original project
10867 When removing nodes (attributes Source_Dirs, Source_Files,
10868 Source_List_File and package Naming), save the comments and attach the
10869 saved comments to the newly created nodes.
10870 Do not add a with clause for the naming package if one already exists.
10872 2006-02-13 Javier Miranda <miranda@adacore.com>
10873 Gary Dismukes <dismukes@adacore.com>
10874 Robert Dewar <dewar@adacore.com>
10876 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
10878 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
10879 aliased entities to look for the overriden abstract interface
10881 (Is_Interface_Subprogram): Complete documentation.
10882 (Check_Dispatching_Operation): Do not generate code to register the
10883 operation in the dispatch table if the source is compiled with
10884 restriction No_Dispatching_Calls.
10885 (Override_Dispatching_Operation): Check for illegal attempt to override
10886 No_Return procedure with procedure that is not No_Return
10887 (Check_Dispatching_Call): Suppress the check for an abstract operation
10888 when the original node of an actual is a tag-indeterminate attribute
10889 call, since the attribute, which must be 'Input, can never be abstract.
10890 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
10891 call to the Input attribute (even when rewritten).
10892 (Propagate_Tag): Augment comment to indicate the possibility of a call
10893 to an Input attribute.
10895 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
10896 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
10898 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
10899 No_Wide_Characters is no longer partition-wide
10900 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
10903 2006-02-13 Douglas Rupp <rupp@adacore.com>
10905 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
10907 2006-02-13 Javier Miranda <miranda@adacore.com>
10909 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
10910 handles default-initialized components to keep separate the management
10911 of this feature but also avoid the unrequired resolution and
10912 expansion of components that do not have partially initialized
10914 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
10915 (Check_Bounds): Likewise.
10916 (Check_Length): Likewise.
10918 2006-02-13 Javier Miranda <miranda@adacore.com>
10919 Ed Schonberg <schonberg@adacore.com>
10921 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
10922 abstract interface type call analyze_and_resolve to expand the type
10923 conversion into the corresponding displacement of the
10924 reference to the base of the object.
10925 (Eval_Attribute, case Width): For systems where IEEE extended precision
10926 is supported, the maximum exponent occupies 4 decimal digits.
10927 (Accessibility_Message): Add '\' in 2-line warning message.
10928 (Resolve_Attribute): Likewise.
10929 (case Attribute_Access): Significantly revise checks
10930 for illegal access-to-subprogram Access attributes to properly enforce
10931 the rules of 3.10.2(32/2).
10932 Diagnose use of current instance with an illegal attribute.
10934 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
10936 (Enclosing_Generic_Unit): New function to return a node's innermost
10937 enclosing generic declaration node.
10938 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
10939 (Type_Access_Level): The accessibility level of anonymous acccess types
10940 associated with discriminants is that of the current instance of the
10941 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
10942 (Compile_Time_Constraint_Error): Handle case of conditional expression.
10943 (Kill_Current_Values_For_Entity): New function
10944 (Enter_Name): Change formal type to Entity_Id
10946 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
10947 Ed Schonberg <schonberg@adacore.com>
10948 Gary Dismukes <dismukes@adacore.com>
10950 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
10951 Analyze_Compilation_Unit.
10952 Detect and warn on redundant with clauses detected in a package spec
10953 and/or body when -gnatwr is used.
10954 (Analyze_Context): Analyze config pragmas before other items
10955 (Install_Context_Items): Don't analyze config pragmas here
10956 (Install_Limited_Withed_Unit): Set limited entity of package in
10957 with_clause so that cross-reference information or warning messages on
10958 unused packages can be properly generated
10959 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
10960 has Error_Posted set. Prevent infinite loops in illegal programs.
10961 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
10962 to the point of the error test requiring the current unit to be private.
10963 This ensures that private with clauses are not exempted from the basic
10964 checking for being a descendant of the same library unit parent as a
10965 withed private descendant unit.
10966 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
10967 handle private with clauses properly, as well as to account for cases
10968 where the withed unit is a public descendant of a private ancestor
10969 (in which case the current unit must be a descendant of the private
10970 ancestor's parent). The spec comments were updated accordingly. Also,
10971 the old error message in this subprogram was replaced with error
10972 messages that mirror the errors tested and reported by
10973 Check_Private_Child_Unit.
10974 Parameter and variable names improved for readability.
10975 (Install_Limited_Context_Clauses): Remove test for a withed unit being
10976 private as the precondition for calling
10977 Check_Private_Limited_Withed_Unit since that subprogram has been
10978 revised to test public units as well as private units.
10980 2006-02-13 Thomas Quinot <quinot@adacore.com>
10981 Robert Dewar <dewar@adacore.com>
10982 Ed Schonberg <schonberg@adacore.com>
10983 Javier Miranda <miranda@adacore.com>
10985 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
10986 that Scope_Stack.First = 1.
10987 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
10988 were not always properly handled previously.
10989 (Formal_Entity): Complete rewrite, to handle properly some complex case
10990 with multiple levels of parametrization by formal packages.
10991 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
10992 to the corresponding derived type declaration for proper semantics.
10994 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
10995 (Check_Component): Enforce restriction on components of
10996 unchecked_unions: a component in a variant cannot contain tasks or
10998 (Unchecked_Union): Allow nested variants and multiple discriminants, to
11000 Add pragma Ada_2005 (synonym for Ada_05)
11001 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11002 were not always properly handled previously.
11003 Document that pragma Propagate_Exceptions has no effect
11004 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
11005 (Set_Convention_From_Pragma): Check that if a convention is
11006 specified for a dispatching operation, then it must be
11007 consistent with the existing convention for the operation.
11008 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
11009 longer required to specify an vtable-ptr component in the record. For
11010 compatibility reasons we leave the support for the previous definition.
11011 (Analyze_Pragma, case No_Return): Allow multiple arguments
11013 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
11014 non-overrideen inherited operation with a controlling result as
11015 illegal only its implicit declaration comes from the derived type
11016 declaration of its result's type.
11017 (Check_Possible_Deferred_Completion): Relocate the object definition
11018 node of the subtype indication of a deferred constant completion rather
11019 than directly analyzing it. The analysis of the generated subtype will
11020 correctly decorate the GNAT tree.
11021 (Record_Type_Declaration): Check whether this is a declaration for a
11022 limited derived record before analyzing components.
11023 (Analyze_Component_Declaration): Diagnose record types not explicitly
11024 declared limited when a component has a limited type.
11025 (Build_Derived_Record_Type): Code reorganization to check if some of
11026 the inherited subprograms of a tagged type cover interface primitives.
11027 This check was missing in case of a full-type associated with a private
11029 (Constant_Redeclaration): Check that the subtypes of the partial and the
11030 full view of a constrained deferred constant statically match.
11031 (Mentions_T): A reference to the current type in an anonymous access
11032 component declaration must be an entity name.
11033 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
11034 class_wide type to refer to full type, not to the incomplete one.
11035 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
11036 available. Required to give support to the certified run-time.
11037 (Analyze_Component_Declaration): In case of anonymous access components
11038 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
11039 (Process_Discriminants): For an access discriminant, use the
11040 discriminant specification as the associated_node_for_itype, to
11041 simplify accessibility checks.
11043 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11044 Javier Miranda <miranda@adacore.com>
11046 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
11047 abstract interpretations on an operator, remove interpretations that
11048 yield Address or a type derived from it, if one of the operands is an
11050 (Try_Object_Operation.Try_Primitive_Operation,
11051 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
11052 location when creating the new reference to a primitive or class-wide
11053 operation as a part of rewriting a subprogram call.
11054 (Try_Primitive_Operations): If context requires a function, collect all
11055 interpretations after the first match, because there may be primitive
11056 operations of the same type with the same profile and different return
11057 types. From code reading.
11058 (Try_Primitive_Operation): Use the node kind to choose the proper
11059 operation when a function and a procedure have the same parameter
11061 (Complete_Object_Operation): If formal is an access parameter and prefix
11062 is an object, rewrite as an Access reference, to match signature of
11063 primitive operation.
11064 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
11065 by an expanded name with prefix Standard, when the operands are of an
11066 anonymous access type.
11067 (Remove_Abstract_Operations): If the operation is abstract because it is
11068 inherited by a user-defined type derived from Address, remove it as
11069 well from the set of candidate interpretations of an overloaded node.
11070 (Analyze_Membership_Op): Membership test not applicable to cpp-class
11073 2006-02-13 Bob Duff <duff@adacore.com>
11075 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
11076 redundant use clauses.
11077 In particular, if the scope of two use clauses overlaps, but one is not
11078 entirely included in the other, we should not warn. This can happen
11079 with nested packages.
11080 (Analyze_Subprogram_Renaming): Protect the compiler against previously
11081 reported errors. The bug was reported when the compiler was built
11082 with assertions enabled.
11083 (Find_Type): If the node is a 'Class reference and the prefix is a
11084 synchronized type without a corresponding record, return the type
11087 2006-02-13 Javier Miranda <miranda@adacore.com>
11089 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
11090 if this is the full-declaration associated with a private declaration
11091 that implement interfaces, then the private type declaration must be
11093 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
11094 as aliased. The use of the 'access attribute is not available for such
11095 object (for this purpose the object should be explicitly marked as
11096 aliased, but being an anonymous type this is not possible).
11098 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11099 Robert Dewar <dewar@adacore.com>
11101 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
11102 compilation unit is an elaboration scope.
11103 (Add_Task_Proc): Add '\' in 2-line warning message.
11104 (Activate_All_Desirable): Deal with case of unit with'ed by parent
11106 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11107 Javier Miranda <miranda@adacore.com>
11109 * sem_type.adb (Write_Overloads): Improve display of candidate
11111 (Add_One_Interp): Do not add to the list of interpretations aliased
11112 entities corresponding with an abstract interface type that is an
11113 immediate ancestor of a tagged type; otherwise we have a dummy
11114 conflict between this entity and the aliased entity.
11115 (Disambiguate): The predefined equality on universal_access is not
11116 usable if there is a user-defined equality with the proper signature,
11117 declared in the same declarative part as the designated type.
11118 (Find_Unique_Type): The universal_access equality operator defined under
11119 AI-230 does not cover pool specific access types.
11120 (Covers): If one of the types is a generic actual subtype, check whether
11121 it matches the partial view of the other type.
11123 2006-02-13 Thomas Quinot <quinot@adacore.com>
11125 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
11126 line. This is necessary to allow In_Extended_Main_Unit to provide
11127 correct results for itypes while writing out expanded source.
11128 (Close_File): No need to update the source_index_table here since it's
11129 now done for each line.
11131 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11132 Robert Dewar <dewar@adacore.com>
11134 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
11135 preserve the source unit where the itype is declared, and prevent a
11137 (Note_Implicit_Run_Time_Call): New procedure
11138 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
11141 * sprint.ads: Document use of $ for implicit run time routine call
11143 2006-02-13 Quentin Ochem <ochem@adacore.com>
11145 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
11148 2006-02-13 Bob Duff <duff@adacore.com>
11150 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
11151 Scan_Unsigned, so we do not scan leading blanks and sign twice.
11152 Integer'Value("- 5") and Integer'Value("-+5") now correctly
11153 raise Constraint_Error.
11155 * s-vallli.adb (Scan_Long_Long_Integer): Call
11156 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
11157 do not scan leading blanks and sign twice.
11158 Integer'Value("- 5") and Integer'Value("-+5") now correctly
11159 raise Constraint_Error.
11161 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
11162 Scan_Long_Long_Unsigned): Split out most of the processing from
11163 Scan_Long_Long_Unsigned out into
11164 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
11165 This prevents scanning leading blanks and sign twice.
11166 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
11169 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
11170 out most of the processing from Scan_Unsigned out into
11171 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
11172 This prevents scanning leading blanks and sign twice.
11174 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
11175 use with Modular'Value attribute.
11176 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
11179 2006-02-13 Robert Dewar <dewar@adacore.com>
11181 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
11183 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
11185 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
11186 (PPC VxWorks): Likewise.
11187 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
11188 (forced_callee): Make non-inlinable and non-pure.
11189 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
11191 2006-02-13 Arnaud Charlet <charlet@adacore.com>
11192 Ben Brosgol <brosgol@adacore.com>
11193 Robert Dewar <dewar@adacore.com>
11195 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
11197 Document that gnatbind -M option is for cross environments only.
11198 Added description of using gnatmem to trace gnat rtl allocs and deallocs
11199 Add note on use of $ to label implicit run time calls
11200 Add documentation for -gnatyI (check mode IN)
11201 Updated chapter on compatibility with HP Ada
11202 VMS-oriented edits.
11203 Ran spell and corrected errors
11204 Add documentation for gnatbind -d and rework documentation of -D
11206 Add subprogram/data elimination section.
11207 Minor editing of annex A.
11208 Add section for gnatcheck.
11209 Add documentation for restriction No_Dispatching_Calls
11210 Add documentation for pragma Ada_2005
11211 Remove mention of obsolete pragma Propagate_Exceptions
11212 Document that pragma Unreferenced can appear after DO in ACCEPT
11213 Clarify Pure_Function for library level units
11214 Mention Max/Min in connection with No_Implicit_Conditionals
11215 No_Wide_Characters restriction is no longer partition-wide
11216 Add a nice example for Universal_Literal_String attribute
11217 Document that pragma No_Return can take multiple arguments
11219 * ug_words: Added entry for gnatcheck
11221 * g-ctrl_c.ads (Install_Handler): Enhance comments
11223 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
11225 * g-trasym.ads: Add documentation on how to do off line symbolic
11226 traceback computation.
11228 * s-fatgen.adb: Add comments for Unaligned_Valid
11230 * stand.ads: Fix typo in comment
11232 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11234 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
11236 2006-02-06 Roger Sayle <roger@eyesopen.com>
11238 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
11240 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11243 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
11244 implementation that calls __main.
11246 2006-01-25 Peter O'Gorman <peter@pogma.com>
11249 * Makefile.in (GCC_LINK): Remove quotes.
11250 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
11253 (powerpc-darwin): Pass -shared-libgcc when building shared library.
11255 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11258 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
11260 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11262 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
11264 2005-12-12 Arnaud Charlet <charlet@adacore.com>
11266 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
11269 2005-12-12 Arnaud Charlet <charlet@adacore.com>
11271 * Make-lang.in: Update dependencies
11273 2005-12-12 Arnaud Charlet <charlet@adacore.com>
11275 * Make-lang.in: Add rule for ada/exp_sel.o
11277 2005-12-12 Arnaud Charlet <charlet@adacore.com>
11279 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
11281 2005-12-09 Arnaud Charlet <charlet@adacore.com>
11283 * gnatvsn.ads (Library_Version): Bump to version 4.2
11284 (ASIS_Version_Number): Bumped.
11286 2005-12-09 Doug Rupp <rupp@adacore.com>
11288 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
11289 Ada bind file prefix on VMS from b$ to b__.
11290 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
11293 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
11294 Targparm.OpenVMS_On_Target.
11295 (Object_Suffix): Initialize with target object suffix.
11296 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
11298 * butil.adb: Change some Hostparm.OpenVMS checks to
11299 Targparm.OpenVMS_On_Target.
11301 * clean.adb: Change some Hostparm.OpenVMS checks to
11302 Targparm.OpenVMS_On_Target.
11303 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
11304 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
11305 Ada bind file prefix on VMS from b$ to b__.
11307 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
11308 --GCC so that Get_Target_Parameters can find system.ads.
11309 (Gnatlink): Call Get_Target_Parameters in mainline.
11310 Initialize standard packages for Targparm.
11311 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
11312 (Process_Args): Also Check for object files with target object
11314 (Make_Binder_File_Names): Create with target object extension.
11315 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
11318 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
11319 Targparm.OpenVMS_On_Target.
11320 ({declaration},Build_Library,Check_Library): Change Ada bind file
11321 prefix on VMS from b$ to b__.
11323 * osint-b.adb: Change some Hostparm.OpenVMS checks to
11324 Targparm.OpenVMS_On_Target.
11325 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
11328 * targext.c: New file.
11330 * Makefile.in: add support for vxworks653 builds
11331 (../../vxaddr2line): gnatlink with targext.o.
11332 (TOOLS_LIBS): Move targext.o to precede libgnat.
11333 (init.o, initialize.o): Minor clean up in dependencies.
11334 (GNATLINK_OBJS): Add targparm.o, snames.o
11335 Add rules fo building targext.o and linking it explicitly with all
11337 Also add targext.o to gnatlib.
11339 * Make-lang.in: Add rules for building targext.o and linking it in
11340 with gnat1 and gnatbind.
11341 Add entry for exp_sel.o.
11343 * osint.adb Change some Hostparm.OpenVMS checks to
11344 Targparm.OpenVMS_On_Target.
11345 (Object_File_Name): Use target object suffix.
11347 * osint.ads (Object_Suffix): Remove, no longer used.
11348 (Target_Object_Suffix): Initialize with target object suffix.
11350 * rident.ads: Add special exception to license.
11352 * targparm.adb (Get_Target_Parameters): Set the value of
11353 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
11355 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
11357 * targparm.ads: Add special exception to license.
11359 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
11361 (Copy_File): Make sure from file is closed if error on to file
11362 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
11364 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
11365 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
11367 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
11368 target object suffix.
11370 2005-12-09 Jose Ruiz <ruiz@adacore.com>
11371 Quentin Ochem <ochem@adacore.com>
11372 Florian Villoing <villoing@adacore.com>
11374 * a-taster.ads, a-taster.adb: New files.
11376 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
11377 link to the version that does nothing. This way the task termination
11378 routine is not executed twice for the environment task when finishing
11379 because of an unhandled exception.
11381 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
11382 handler because of an unhandled exception.
11384 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
11385 System.Tasking.Utilities instead of that in System.Tasking.Stages.
11387 * s-finimp.adb (initialization code): Modify the soft link for the
11388 finalization of the global list instead of Adafinal.
11390 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
11391 non-tasking version of the soft link for task termination. We do
11392 nothing since if we are using the non-tasking version it
11393 means that the task termination functionality is not used.
11394 (Null_Finalize_Global_List): Add this null version for the procedure
11395 in charge of finalizing the global list for controlled objects.
11396 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
11397 instead for handling run-time termination in a more flexible way.
11398 (Adafinal_NT): This new procedure will take care of finalizing the
11399 global list for controlled objects if needed, but no tasking
11402 * s-tarest.adb (Task_Lock): Do not try to lock again the
11403 Global_Task_Lock if we already own it. Otherwise, we get blocked in
11404 some run-time operations.
11405 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
11406 until all nested locks have been released.
11407 (Task_Wrapper): Call the fall-back task termination handler. It
11408 applies to all tasks but the environment task.
11409 (Finalize_Global_Tasks): Add the call for the task termination
11410 procedure for the environment task.
11411 (Task_Wrapper): suppress warnings around declaration of
11412 Secondary_Stack_Address.
11414 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
11415 moved to the Common_ATCB record.
11416 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
11417 Common_ATCB record.
11418 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
11419 Common_ATCB record.
11421 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
11422 Fall_Back_Handler, and Specific_Handler.
11424 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
11425 defined in Ada.Task_Termination, to avoid circular dependencies.
11426 (Termination_Handler): Redefine this type here, alredy defined in
11427 Ada.Task_Termination, for avoiding circular dependencies.
11428 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
11429 for storing task termination handlers. In addition,
11430 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
11431 Common_ATCB because it is used by both the regular and the restricted
11433 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
11434 Common_ATCB because it is used by both the regular and the restricted
11436 (Common_ATCB): Added a dynamic task analyzer field.
11438 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
11439 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
11440 (Task_Wrapper): Call the task termination handler. It applies to all
11441 tasks but the environment task.
11442 (Finalize_Global_Tasks): Call the task termination procedure for the
11443 environment task. The call to Finalize_Global_List is now performed
11444 using the soft links mechanism.
11445 (Task_Wrapper): added dynamic stack analysis.
11447 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
11448 potentially blocking operations has been moved from
11449 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
11450 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
11451 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
11452 this run-time check.
11454 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
11455 of task termination procedure.
11456 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
11457 link for the task termination procedure.
11459 * bindusg.adb: (Bindusg): Added documentation for -u option.
11461 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
11462 (Get_Main_C): Add handling of dynamic stack analysis.
11463 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
11465 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
11466 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
11467 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
11469 * opt.ads: Added flags used by dynamic stack measurement.
11470 (Max_Line_Length): Remove (not used anymore)
11472 * s-io.ads, s-io.adb (Standard_Error): new subprogram
11473 (Standart_Output): new subprogram
11474 (Set_Output): new subprogram
11475 (Put): now uses the value of Current_Out to know if the output has to be
11476 send to stderr or stdout.
11478 * s-stausa.ads: Complete implementation.
11480 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
11482 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
11483 list of Ada 05 files.
11484 (GNAT Library Units): Add AltiVec files.
11486 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
11487 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
11488 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
11490 2005-12-09 Nicolas Setton <setton@adacore.com>
11492 * adaint.c (__gnat_locate_regular_file): Return immediately if
11493 file_name is empty.
11495 2005-12-09 Javier Miranda <miranda@adacore.com>
11496 Hristian Kirtchev <kirtchev@adacore.com>
11498 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
11499 to the specification because the frontend generates code that uses this
11501 (Set_Interface_Table): Add missing assertion.
11502 Update documentation describing the run-time structure.
11503 (Displace): New subprogram that displaces the pointer to the object
11504 to reference one of its secondary dispatch tables.
11505 (IW_Membership): Modified to use the new table of interfaces.
11506 (Inherit_TSD): Modified to use the new table of interfaces.
11507 (Register_Interface_Tag): Use the additional formal to fill the
11508 contents of the new table of interfaces.
11509 (Set_Interface_Table): New subprogram that stores in the TSD the
11510 pointer to the table of interfaces.
11511 (Set_Offset_To_Top): Use the additional formal to save copy of
11512 the offset value in the table of interfaces.
11513 Update structure of GNAT Primary and Secondary dispatch table diagram.
11514 Add comment section on GNAT dispatch table prologue.
11515 (Offset_To_Signature): Update the constant value of the Signature field.
11516 (Dispatch_Table): Update comment on hidden fields in the prologue.
11517 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
11518 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
11519 the type of formal parameter T to Tag, introduce additional assertions.
11520 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
11522 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
11524 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
11525 in all the calls to Expand_Interface_Thunk. Instead of referencing the
11526 record component containing the tag of the secondary dispatch table we
11527 have to use the Offset_To_Top run-time function to get this information;
11528 otherwise if the pointer to the base of the object has been displace
11529 we get a wrong value if we use the 'position attribute.
11531 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
11532 all the calls to Expand_Interface_Thunk.
11533 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
11534 interfaces; hence the call to Set_Interface_Table was clearly wrong.
11535 (Collect_All_Interfaces): Modify the internal subprogram Collect to
11536 ensure that the interfaces implemented by the ancestors are placed
11537 at the header of the generated list.
11538 (Expand_Interface_Conversion): Handle the case in which the displacement
11539 associated with the interface conversion is not statically known. In
11540 this case we generate a call to the new run-time subprogram Displace.
11541 (Make_DT): Generate and fill the new table of interfaces.
11542 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
11543 Get_Tagged_Kind and Set_Tagged_Kind.
11544 (Tagged_Kind): New function that determines the tagged kind of a type
11545 with respect to limitedness and concurrency and returns a reference to
11547 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
11548 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
11549 primary dispatch table for a type.
11550 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
11551 secondary dispatch table respectively of a tagged type.
11553 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
11554 (Expand_Interface_Conversion): New subprogram to indicate if the
11555 displacement of the type conversion is statically known.
11556 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
11558 * rtsfind.ads (RE_Offset_To_Top): New entity
11559 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
11560 accessible to users.
11561 (Re_Displace): New entity
11562 (RE_Interface_Data): New entity
11563 (RE_Set_Interface_Data): New_Entity
11564 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
11565 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
11566 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
11567 RE_TK_Tagged, RE_TK_Task.
11569 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
11570 Init_Secondary_Tags_Internal to allow its use with interface types and
11571 also to generate the code for the new additional actual required
11572 by Set_Offset_To_Top.
11573 (Build_Init_Statements): In case of components associated with abstract
11574 interface types there is no need to generate a call to its IP.
11575 (Freeze_Record_Type): Generate Select Specific Data tables only for
11577 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
11578 the bodies and specifications of the predefined primitive operations
11579 dealing with dispatching selects and abort, 'Callable, 'Terminated only
11580 for concurrent types.
11582 * exp_sel.ads, exp_sel.adb: New files.
11584 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
11585 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
11586 properly protected objects and attach handler in the case of the
11587 restricted profile.
11588 Move embeded package Select_Expansion_Utilities into a separate external
11590 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
11591 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
11592 (Build_K, Build_S_Assignment): New subprograms, part of the select
11593 expansion utilities.
11594 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
11595 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
11596 where the trigger is a dispatching procedure of a limited tagged type.
11598 2005-12-09 Olivier Hainque <hainque@adacore.com>
11600 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
11601 pointer initialization values. Make a SAVE_EXPR instead. Add comments
11602 about the use and expansion of SAVE_EXPRs in the various possible
11603 renaming handling cases.
11604 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
11605 abusing DECL_FCONTEXT.
11607 2005-12-09 Matthew Heaney <heaney@adacore.com>
11609 * a-convec.adb (Merge): Added assertions to check whether vector params
11612 * a-coinve.adb (Merge): Added assertions to check whether vector params
11615 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
11617 (Cursor'Read): raises PE
11619 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
11620 to its default value.
11622 * a-cihama.adb: Manually check whether cursor's key and elem are
11625 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
11626 (Merge): Assert that target and source lists are in order
11627 (Swap): Declare non-const temporaries, to pass to Splice
11629 * a-cdlili.ads: (Splice): Changed param name and param mode
11631 * a-cdlili.adb: (Splice): Changed param name and param mode
11632 (Merge): Assert that target and source lists are in order
11633 (Swap): Declare non-const temporaries, to pass to Splice
11635 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
11636 (Write): declare Stream param as not null
11638 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
11639 an exception message.
11641 2005-12-09 Thomas Quinot <quinot@adacore.com>
11642 Robert Dewar <dewar@adacore.com>
11644 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
11645 which is the absolute maximum length we can support.
11647 * frontend.adb: For the processing of configuration pragma files,
11648 remove references to Opt.Max_Line_Length, which is not checked anymore.
11650 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
11653 * scn.adb, scng.adb:
11654 Always check line length against the absolute supported maximum,
11655 Hostparm.Max_Line_Length.
11657 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
11658 value for the maximum line length is Max_Line_Length (not
11659 Column_Number'Last).
11660 Minor error msg update
11661 (Set_Style_Check_Options): New interface returning error msg
11662 Minor code reorganization (processing for 'M' was out of alpha order)
11664 * switch-c.adb: New interface for Set_Style_Check_Options
11666 * stylesw.ads (Set_Style_Check_Options): New interface returning error
11669 2005-12-09 Javier Miranda <miranda@adacore.com>
11671 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
11672 with IP subprogram were only supported if there were limited types.
11674 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
11675 records with IP subprogram were only supported if there were limited
11678 2005-12-09 Olivier Hainque <hainque@adacore.com>
11679 Eric Botcazou <ebotcazou@adacore.com>
11681 * trans.c (tree_transform, emit_check): Adjust calls to
11682 build_call_raise, passing the now expected GNAT_NODE argument.
11684 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
11685 source line information than what the current global locus indicates
11688 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
11689 field has overflowed.
11690 (build_call_raise): Add a GNAT_NODE argument to convey better source
11691 line information than what the current global locus indicates when
11693 (build_component_ref): Adjust call to build_call_raise.
11695 2005-12-09 Pascal Obry <obry@adacore.com>
11697 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
11698 the iterator is quitting iteration on parent directory.
11700 2005-12-09 Javier Miranda <miranda@adacore.com>
11702 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
11703 and the assignment to a class-wide object, before the assignment we
11704 generate a run-time check to ensure that the tag of the Target is
11705 covered by the tag of the source.
11707 2005-12-09 Robert Dewar <dewar@adacore.com>
11709 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
11710 parameter in call to Image_Wide_Character.
11712 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
11713 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
11714 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
11715 annoying FFFE/FFFF inconsistency.
11717 2005-12-09 Robert Dewar <dewar@adacore.com>
11718 Javier Miranda <miranda@adacore.com>
11719 Ed Schonberg <schonberg@adacore.com>
11721 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
11722 of type conversion.
11723 (Find_Interface): New subprogram that given a tagged type and one of its
11724 component associated with the secondary table of an abstract interface
11725 type, return the entity associated with such abstract interface type.
11726 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
11727 base type to create anonymous subtype, because entity may be a locally
11728 declared subtype or generic actual.
11729 (Find_Interface): New subprogram that given a tagged type and one of its
11730 component associated with the secondary table of an abstract interface
11731 type, return the entity associated with such abstract interface type.
11733 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
11734 conversion cannot be handled at compile time. In this case we pass this
11735 information to the expander to generate the appropriate code.
11737 2005-12-09 Robert Dewar <dewar@adacore.com>
11738 Ed Schonberg <schonberg@adacore.com>
11739 Gary Dismukes <dismukes@adacore.com>
11740 Javier Miranda <miranda@adacore.com>
11741 Hristian Kirtchev <kirtchev@adacore.com>
11743 * einfo.adb (Itype_Printed): New flag
11744 (Is_Limited_Type): Derived types do not inherit limitedness from
11745 interface progenitors.
11746 (Is_Return_By_Reference_Type): Predicate does not apply to limited
11749 * einfo.ads (Itype_Printed): New flag
11750 Move Is_Wrapper_Package to proper section
11751 Add missing Inline for Is_Volatile
11753 * output.ads, output.adb (Write_Erase_Char): New procedure
11754 (Save/Restore_Output_Buffer): New procedures
11755 (Save/Restore_Output_Buffer): New procedures
11757 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
11758 Add missing support for anonymous access type
11759 (Write_Id): Insert calls to Write_Itype
11760 (Write_Itype): New procedure to output itypes
11762 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
11763 use of "limited" in declaration.
11765 * sinfo.ads, sinfo.adb:
11766 Formal derived types can carry an explicit "limited" indication.
11768 * sem_ch3.adb: Add with and use of Targparm.
11769 (Create_Component): If Frontend_Layout_On_Target is True and the
11770 copied component does not have a known static Esize, then reset
11771 the size and positional fields of the new component.
11772 (Analyze_Component_Declaration): A limited component is
11773 legal within a protected type that implements an interface.
11774 (Collect_Interfaces): Do not add to the list the interfaces that
11775 are implemented by the ancestors.
11776 (Derived_Type_Declaration): If the parent of the full-view is an
11777 interface perform a transformation of the tree to ensure that it has
11778 the same parent than the partial-view. This simplifies the job of the
11779 expander in order to generate the correct object layout, and it is
11780 needed because the list of interfaces of the full-view can be given in
11782 (Process_Full_View): The parent of the full-view does not need to be
11783 a descendant of the parent of the partial view if both parents are
11785 (Analyze_Private_Extension_Declaration): If declaration has an explicit
11786 "limited" the parent must be a limited type.
11787 (Build_Derived_Record_Type): A derived type that is explicitly limited
11788 must have limited ancestor and progenitors.
11789 (Build_Derived_Type): Ditto.
11790 (Process_Full_View): Verify that explicit uses of "limited" in partial
11791 and full declarations are consistent.
11792 (Find_Ancestor_Interface): Remove function.
11793 (Collect_Implemented_Interfaces): New procedure used to gather all
11794 implemented interfaces by a type.
11795 (Contain_Interface): New function used to check whether an interface is
11797 (Find_Hidden_Interface): New function used to determine whether two
11798 lists of interfaces constitute a set equality. If not, the first
11799 differing interface is returned.
11800 (Process_Full_View): Improve the check for the "no hidden interface"
11801 rule as defined by AI-396.
11803 2005-12-09 Robert Dewar <dewar@adacore.com>
11805 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
11806 types, not on record subtypes.
11807 (Freeze_Entity): Code cleanup. Add barrier to the loop
11808 that generates the references for primitive operations. This allows to
11809 remove an unnecessary exception handler.
11810 Code reformatting and comment clean ups.
11812 2005-12-09 Vincent Celier <celier@adacore.com>
11814 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
11815 If GNAT CHECK is called with a project file, but with no
11816 source on the command line, call gnatcheck with all the compilable
11817 sources of the project.
11818 Take into account the new command Check, for gnatcheck. Treat as for
11819 other ASIS tools: take into account project, specific package Check and
11821 For ASIS tools, add the switches in package Compiler for
11822 the invocation of the compiler.
11824 * prj-attr.adb: Add package Check and its attributes
11826 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
11828 * vms_conv.adb (Initialize): Change Params of command Check to
11830 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
11831 Add data for new command Check
11833 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
11835 Add qualifiers for Check command options
11836 (Command_Type): New command Check
11838 2005-12-09 Thomas Quinot <quinot@adacore.com>
11840 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
11841 command line switch overruns the output buffer.
11843 2005-12-09 Robert Dewar <dewar@adacore.com>
11845 * sem_prag.adb: Processing for new pragma Complete_Representation
11846 (Analyze_Pragma, case Debug): Implement two argument form.
11848 * par-prag.adb: Entry for new pragma Complete_Representation
11849 (Prag, case Debug): Recognize two argument form of pragma Debug
11850 New interface for Set_Style_Check_Options.
11852 * sem_ch13.adb: Implement new pragma Complete_Representation.
11854 * snames.adb, snames.ads, snames.h: Entry for new pragma
11855 Complete_Representation.
11857 2005-12-09 Gary Dismukes <dismukes@adacore.com>
11859 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
11860 available user-specified stream attributes on limited parameters to
11861 also test the type directly rather than only its underlying type (for
11862 Ada 95) and, in the case of Ada 2005, to check that the user-specified
11863 attributes are visible at the point of the subprogram declaration.
11864 For Ada 2005, the error message is modified to indicate that the
11865 type's stream attributes must be visible (again, only for -gnat05).
11867 2005-12-09 Ed Schonberg <schonberg@adacore.com>
11869 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
11870 anonymous access types.
11872 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
11873 matching of anonymous access types and anonymous access to subprogram
11874 types. 'R'M 4.9.1 (2/2).
11876 2005-12-09 Ed Schonberg <schonberg@adacore.com>
11878 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
11879 rule prematurely when operands are universal, remaining ambiguities
11880 will be removed during resolution.
11883 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
11884 that are Ada 2005 functions.
11885 (Has_Abstract_Interpretation): Subsidiary to
11886 Remove_Conversions, to remove ambiguities caused by abstract operations
11887 on numeric types when operands are universal.
11889 2005-12-09 Robert Dewar <dewar@adacore.com>
11891 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
11892 for case where spec is categorized.
11894 2005-12-09 Javier Miranda <miranda@adacore.com>
11896 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
11897 types use the corresponding record type. This was not needed before
11898 the implementation of Ada 2005 synchronized types because
11899 concurrent types were never tagged types in Ada 95.
11901 2005-12-09 Ed Schonberg <schonberg@adacore.com>
11903 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
11904 first subtype of the type of the expression to verify that it is a
11907 2005-12-09 Robert Dewar <dewar@adacore.com>
11909 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
11912 2005-12-09 Quentin Ochem <ochem@adacore.com>
11913 Robert Dewar <dewar@adacore.com>
11914 Ed Falis <falis@adacore.com>
11915 Florian Villoing <villoing@adacore.com>
11916 Thomas Quinot <quinot@adacore.com>
11917 Arnaud Charlet <charlet@adacore.com>
11919 * gnat_ugn.texi: Created section "Stack Related Tools"
11920 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
11921 "Stack Related Tools"
11922 Added subsection "Static Stack Usage Analysis"
11923 Added subsection "Dynamic Stack Usage Analysis"
11924 Include documentation of itypes in sprint listing (-gnatG)
11925 Documented gnatbind -D switch (default sec stack size for fixed sec
11927 Added Interrupt_State and Persistent_BSS to list of configuration
11929 Add missing doc for maximum value of nnn in -gnatyMnnn
11931 * gnat_rm.texi: Document the AltiVec binding.
11932 Add documentation for pragma Complete_Representation
11933 Shortened an overly long line (> 79 chars)
11934 Clarify documentation of unchecked conversion in implementation
11936 Document two argument form of pragma Debug
11938 * types.ads (Column_Number): Update documentation.
11940 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
11941 library level Finalize_Storage_Only objects (these are not attached to
11942 any finalization list).
11944 * system-mingw.ads: (Underlying_Priorities): Update comment.
11946 2005-12-09 Robert Dewar <dewar@adacore.com>
11948 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
11949 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
11950 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
11951 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
11952 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
11953 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
11954 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
11955 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
11958 2005-12-09 Robert Dewar <dewar@adacore.com>
11960 * s-vaflop-vms-alpha.adb: (Ne_F): New function
11961 (Ne_G): New function
11963 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
11964 for tag assignment.
11965 (Rewrite_Comparison): Handle case where operation is not a comparison
11966 and ignore, and also handle type conversion case.
11968 2005-12-09 Thomas Quinot <quinot@adacore.com>
11970 * exp_aggr.ads: Fix typo in comment.
11971 ???-mark Convert_Aggr_In_Assignment as needing documentation.
11973 2005-12-09 Gary Dismukes <dismukes@adacore.com>
11975 * layout.adb: Replace various uses of byte by storage unit throughout.
11976 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
11977 static size, convert to storage units before returning, to conform to
11980 2005-12-09 Matthew Gingell <gingell@adacore.com>
11982 * g-exctra.ads: Fix typo in comment.
11984 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11986 * utils.c: Minor reformatting.
11988 2005-12-09 Robert Dewar <dewar@adacore.com>
11991 Further comment fixes to make the status of the default file clear
11993 * s-bitops.adb: Clarify comment for Bits_Array
11995 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
11997 * Make-lang.in (ada.install-normal): Remove.
11999 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
12001 * Make-lang.in: Remove all dependencies on s-gtype.
12003 2005-12-05 Richard Guenther <rguenther@suse.de>
12005 * utils.c (convert): Use fold_convert where appropriate.
12007 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
12009 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
12012 2005-12-02 Richard Guenther <rguenther@suse.de>
12014 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
12016 2005-12-01 Roger Sayle <roger@eyesopen.com>
12018 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
12021 2005-11-23 Laurent GUERBY <laurent@guerby.net>
12023 * mlib-prj.adb (Build_Library): Initialize Delete.
12025 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
12027 * socket.c: Add extern int h_errno for rtems since networking header
12028 files are not available at this point in a tool bootstrap. Newlib
12029 only has basic C library header files.
12031 2005-11-19 Richard Guenther <rguenther@suse.de>
12032 Roger Sayle <roger@eyesopen.com>
12035 * misc.c (internal_error_function): Don't use vsprintf to format
12036 the error message text, instead use pp_format_text and the new
12037 pretty printer APIs. This allows handling of %qs, %w, etc.
12039 2005-11-18 Laurent GUERBY <laurent@guerby.net>
12042 * Makefile.in: Use s-auxdec-empty for RTEMS.
12044 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12047 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
12048 a temporary if taking the address of something that is neither
12049 reference, declaration, or constant, since the gimplifier
12050 can't handle that case.
12052 2005-11-17 Laurent GUERBY <laurent@guerby.net>
12055 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
12057 2005-11-16 Richard Guenther <rguenther@suse.de>
12059 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
12061 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
12064 * raise-gcc.c: Add missing stdarg.h include.
12066 2005-11-16 Richard Guenther <rguenther@suse.de>
12068 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
12069 (ada/misc.o): Likewise.
12071 2005-11-14 Thomas Quinot <quinot@adacore.com>
12073 * g-soccon.ads: Minor reformatting. Update comments.
12075 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
12076 gain visibility on the declaration of struct timeval.
12078 * g-soccon-freebsd.ads,
12079 g-soccon-darwin.ads,
12080 g-soccon-tru64.ads,
12084 g-soccon-solaris.ads,
12086 g-soccon-mingw.ads,
12087 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
12089 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
12090 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
12091 g-soccon-linux-x86.ads: New files.
12093 * g-socthi-mingw.adb:
12094 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
12096 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
12097 (time_t, suseconds_t): New types constructed to match the tv_sec
12098 and tv_usec fields of C struct timeval.
12099 (Timeval): Construct structure in terms of the new types.
12100 (Host_Errno): New function (imported from socket.c), returns last hosts
12103 * g-socthi-vxworks.adb: Add error handling circuitry.
12105 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
12106 components of struct timeval.
12107 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
12108 (Check_Selector): In error conditions, clear internal socket sets to
12109 avoid a memory leak.
12110 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
12111 Send_Timeout, Receive_Timeout.
12113 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
12114 the tv_sec and tv_usec fields of C struct timeval.
12115 (Timeval): Construct structure in terms of the new types.
12116 (Host_Errno): New function (imported from socket.c), returns last hosts
12119 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
12120 hosts database last error code.
12122 * gen-soccon.c: Complete value expansion should not be performed on
12123 TARGET, as it has the form of a math expression, and some components
12124 may be platform-defined macros.
12125 For VxWorks, generate the OK and ERROR values.
12126 New constants giving the sizes of the components of C struct timeval.
12128 2005-11-14 Robert Dewar <dewar@adacore.com>
12129 Ed Schonberg <schonberg@adacore.com>
12132 * types.ads: Include All_Checks in Suppress_Array
12134 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
12135 not(a=b), since we no longer do this rewriting, and hence it is not
12137 (Elaboration_Checks_Suppressed): Add special casing to
12138 deal with different cases of static and dynamic elaboration checks (all
12139 checks does not count in the first case, but does in the second).
12140 (Expr_Known_Valid): Do not assume that the result of any arbitrary
12141 function call is valid, since this is not the case.
12142 (Ensure_Valid): Do not apply validity check to a real literal
12143 in a universal or fixed context
12145 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
12146 elementary types using the operator in standard. It is cleaner not to
12147 modify the programmers intent, especially in the case of floating-point.
12148 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
12149 it did not matter because we always rewrote a/=b to not(a=b).
12150 (Expand_Allocator_Expression): For an allocator expression whose nominal
12151 subtype is an unconstrained packed type, convert the expression to its
12152 actual constrained subtype.
12153 Implement warning for <= or >= where < or > not possible
12154 Fix to Vax_Float tests (too early in many routines, causing premature
12155 Vax_Float expansions.
12157 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
12158 to be used with packages and generic packages as well as with
12160 (Suppress): Set All_Checks, but not Elaboration_Check, for case
12161 of pragma Suppress (All_Checks)
12162 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
12163 a string literal for precise control over warnings.
12164 Avoid raise of pragma in case of unrecognized pragma and just return
12167 * sem_prag.ads: Minor reformatting
12169 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
12170 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
12171 Switch. Do not handle any exception.
12172 Include -gnatwx as part of -gnatg (warn on redundant parens)
12173 Allow optional = after -gnatm
12174 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
12175 longer sets Elaboration_Checks.
12176 Code to set warning mode moved to Sem_Warn
12177 so that it can be shared by pragma processing.
12179 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
12182 * s-taprop-solaris.adb:
12183 Change some <= to =, to avoid new warning
12185 * a-exexda.adb, prj-proc.adb:
12186 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
12187 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
12189 2005-11-14 Robert Dewar <dewar@adacore.com>
12191 * exp_vfpt.adb: Handle /= case
12192 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
12193 so that we do not get duplicate scaling for fixed point conversions.
12195 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
12197 2005-11-14 Matthew Gingell <gingell@adacore.com>
12199 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
12200 Increase default priority on Lynx from 15 to 17, and meet the Ada
12201 requirement that Default_Priority be ((Priority'First +
12202 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
12204 2005-11-14 Vincent Celier <celier@adacore.com>
12206 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12207 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
12208 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
12209 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
12210 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
12211 mlib-tgt-lynxos.adb (DLL_Prefix): New function
12213 2005-11-14 Doug Rupp <rupp@adacore.com>
12215 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
12218 2005-11-14 Arnaud Charlet <charlet@adacore.com>
12220 * s-traces-default.adb, s-trafor-default.ads,
12221 s-tratas-default.adb: Fix compilation errors.
12223 2005-11-14 Jose Ruiz <ruiz@adacore.com>
12225 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
12226 raising the exception so the memory used is freed.
12228 2005-11-14 Arnaud Charlet <charlet@adacore.com>
12230 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
12231 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
12232 (convert_address): Update comments and list of platforms using this.
12234 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
12237 2005-11-14 Pascal Obry <obry@adacore.com>
12238 Vincent Celier <celier@adacore.com>
12240 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
12243 * memroot.adb: Remove redundant with/use clause on
12244 System.Storage_Elements.
12246 2005-11-14 Arnaud Charlet <charlet@adacore.com>
12248 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
12249 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
12250 related code to a-exexpr.adb
12251 (Save_Occurrence_And_Private): Move GCC EH related code to
12253 (Raise_Current_Excep): Add new variable Id with pragma
12254 volatile, to ensure that the variable lives on stack.
12256 * a-exexpr-gcc.adb, raise-gcc.c: New file.
12258 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
12260 Move GCC EH related code to a-exexpr-gcc.adb
12262 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
12264 Split the Linux version of g-soccon into separate variants for 32 and 64
12266 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
12267 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
12268 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
12269 of host variable $(RANLIB_FLAGS).
12270 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
12271 Code clean up: remove unused/obsolete targets.
12272 (EH_MECHANISM): New variable introduced to differenciate between the
12273 two EH mechanisms statically.
12274 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
12275 (LIBGNAT_OBJS): Add raise-gcc.o
12276 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
12277 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
12278 supports VxWorks 6 RTPs.
12279 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
12280 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
12282 * raise.c: Move all GCC EH-related routines to raise-gcc.c
12284 2005-11-14 Jose Ruiz <ruiz@adacore.com>
12286 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
12287 deferral level, when abort is not allowed, to a later stage (the
12289 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
12290 it will not get changed by the generated code. It was previously done
12293 2005-11-14 Thomas Quinot <quinot@adacore.com>
12294 Olivier Hainque <hainque@adacore.com>
12295 Eric Botcazou <ebotcazou@adacore.com>
12298 Factor common code to build a storage type for an unconstrained object
12299 from a fat or thin pointer type and a constrained object type.
12300 (annotate_value): Handle BIT_AND_EXPR.
12301 (annotate_rep): Don't restrict the back annotation of inherited
12302 components to the type_annotate_only case.
12303 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
12304 we are not defining the type.
12305 <E_Record_Type>: Likewise.
12306 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
12307 to get advantage of the new maybe_stabilize_reference interface, to
12308 ensure that what we reference is indeed stabilized instead of relying
12309 on assumptions on what the stabilizer does.
12310 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
12311 type imported through a limited_with clause, use its non-limited view.
12312 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
12314 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
12315 of #if sections + explicit comparisons of convention identifiers.
12316 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
12317 before early-returning for certain types when code generation is
12319 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
12320 nullification of gnu_expr we do for objects with address clause and
12321 that we are not defining.
12322 (elaborate_expression_1): Do not create constants when creating
12323 variables needed by the debug info: the dwarf2 writer considers that
12324 CONST_DECLs is used only to represent enumeration constants, and emits
12326 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
12327 object with an address clause into an indirect reference, drop the
12328 initializing expression.
12330 (STACK_CHECK_BUILTIN): Delete.
12331 (STACK_CHECK_PROBE_INTERVAL): Likewise.
12332 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
12333 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
12334 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
12335 corresponding to the renamed object as ignored for debugging purposes.
12337 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
12338 related): For a prefix that is a dereference of a fat or thin pointer,
12339 if there is an actual subtype provided by the front-end, use that
12340 subtype to build an actual type with bounds template.
12341 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
12342 is provided by the front-end, use that subtype to compute the size of
12343 the deallocated object.
12344 (gnat_to_gnu): When adding a statement into an elaboration procedure,
12345 check for a potential violation of a No_Elaboration_Code restriction.
12346 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
12347 with extra arguments to control whether to recurse through non-values
12348 and to let the caller know if the stabilization has succeeded.
12349 (gnat_stabilize_reference): Now a simple wrapper around
12350 maybe_stabilize, for common uses without restriction on lvalues and
12351 without need to check for the success indication.
12352 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
12353 pass false instead of 0 as the FORCE argument which is a bool.
12354 (Identifier_to_gnu): Remove checks ensuring that an renamed object
12355 attached to a renaming pointer has been properly stabilized, as no such
12356 object is attached otherwise.
12357 (call_to_gnu): Invoke create_var_decl to create the temporary when the
12358 function uses the "target pointer" return mechanism.
12359 Reinstate conversion of the actual to the type of the formal
12360 parameter before any other specific treatment based on the passing
12361 mechanism. This turns out to be necessary in order for PLACEHOLDER
12362 substitution to work properly when the latter type is unconstrained.
12364 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
12366 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
12367 with extra arguments to control whether to recurse through non-values
12368 and to let the caller know if the stabilization has succeeded.
12370 * utils2.c (gnat_build_constructor): Only sort the fields for possible
12371 static output of record constructor if all the components are constant.
12372 (gnat_build_constructor): For a record type, sort the list of field
12373 initializers in increasing bit position order.
12374 Factor common code to build a storage type for an unconstrained object
12375 from a fat or thin pointer type and a constrained object type.
12376 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
12377 types variants, and process special cases of VIEW_CONVERT expressions
12378 as their NOP_EXPR counterpart to ensure we get to the
12379 CORRESPONDING_VARs associated with CONST_DECls.
12380 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
12381 on the right-hand side.
12383 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
12385 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
12386 are converting back to its original type.
12387 (convert) <JM input>: Fallthrough regular conversion code instead of
12388 extracting the object if converting to a type variant.
12389 (create_var_decl): When a variable has an initializer requiring code
12390 generation and we are at the top level, check for a potential violation
12391 of a No_Elaboration_Code restriction.
12392 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
12393 SIZE and SIZE_UNIT which we need for later back-annotations.
12394 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
12395 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
12396 is an unchecked union.
12397 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
12398 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
12399 main variant, just replace the VIEW_CONVERT_EXPR.
12400 <UNION_TYPE>: Revert 2005-03-02 change.
12402 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
12404 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
12406 2005-11-14 Matthew Heaney <heaney@adacore.com>
12408 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
12409 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
12410 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
12411 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
12412 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
12413 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
12414 Compiles against the spec for ordered maps described in sections
12415 A.18.6 of the most recent (August 2005) AI-302 draft.
12417 2005-11-14 Olivier Hainque <hainque@adacore.com>
12419 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
12420 to ensure bias adjustments take place when need be and to prevent
12421 occurrences of intermediate overflows.
12423 2005-11-14 Matthew Gingell <gingell@adacore.com>
12424 Olivier Hainque <hainque@adacore.com>
12426 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
12429 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
12430 tracebacks on ia64 HP-UX and provide explanatory comment.
12431 Enable backtraces on ia64 GNU/Linux.
12432 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
12433 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
12435 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
12436 Javier Miranda <miranda@adacore.com>
12438 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
12439 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
12440 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
12441 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
12443 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
12444 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
12447 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
12448 subprogram that generates the external name associated with a
12449 secondary dispatch table.
12450 (Get_Secondary_DT_External_Name): New subprogram that generates the
12451 external name associated with a secondary dispatch table.
12453 2005-11-14 Emmanuel Briot <briot@adacore.com>
12455 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
12456 line in the ALI file to include both an instantiation reference, and a
12459 2005-11-14 Vincent Celier <celier@adacore.com>
12461 * clean.adb (Check_Project): Look for Ada code in extending project,
12462 even if Ada is not specified as a language.
12463 Use new function DLL_Prefix for DLL_Name
12464 (Clean_Interface_Copy_Directory): New procedure
12465 (Clean_Library_Directory): New procedure
12466 (Clean_Directory): Remove procedure, no longer used
12467 (Clean_Project): Do not delete any file in an externally built project
12469 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
12470 directory of an extending project, even when there are no Ada source
12472 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
12473 (Set_Ada_Paths.Add.Recursive_Add): Ditto
12475 * mlib-prj.adb (Check_Library): For all library projects, get the
12476 library file timestamp.
12477 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
12478 (Build_Library): Use new function DLL_Prefix for the DLL_Name
12479 (Clean): Remove procedure, no longer used
12480 (Ultimate_Extension_Of): New function
12481 (Build_Library): When cleaning the library directory, only remove an
12482 existing library file and any ALI file of a source of the project.
12483 When cleaning the interface copy directory, remove any source that
12484 could be a source of the project.
12486 * prj.ads, prj.adb (Project_Empty): Add values of new components
12487 Library_TS and All_Imported_Projects.
12488 (Project_Empty): Add values for new components of Project_Data:
12489 Library_ALI_Dir and Display_Library_ALI_Dir
12491 * prj-attr.adb: New project level attribute name Library_ALI_Dir
12493 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
12494 attribute Library_ALI_Dir.
12495 (Check_Library_Attributes): The library directory cannot be the same as
12496 any source directory of the project tree.
12497 (Check_Stand_Alone_Library): The interface copy directory cannot be
12498 the same as any source directory of the project tree.
12500 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
12501 all temporary files.
12503 2005-11-14 Robert Dewar <dewar@adacore.com>
12504 Ed Schonberg <schonberg@adacore.com>
12506 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
12507 (Check_Elab_Call): A call within a protected body is never an
12508 elaboration call, and does not require checking.
12509 (Same_Elaboration_Scope): Take into account protected types for both
12511 (Activate_Elaborate_All_Desirable): New procedure
12513 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
12516 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
12517 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
12519 * lib-writ.ads, lib-writ.adb:
12520 Implement new AD/ED for Elaborate_All/Elaborate desirable
12521 Use new Elaborate_All_Desirable flag in N_With_Clause node
12523 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
12524 N_Free_Statement nodes.
12525 Define new class N_Subprogram_Instantiation
12526 Add Elaborate_Desirable flag to N_With_Clause node
12527 Add N_Delay_Statement (covering two kinds of delay)
12529 * debug.adb: Introduce d.f flag for compiler
12530 Add -da switch for binder
12532 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12533 Cyrille Comar <comar@adacore.com>
12535 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
12536 for task component, in the case of a limited aggregate. The enclosed
12537 object declaration will create it earlier. Otherwise, in the case of a
12538 nested aggregate, the object may appear in the wrong scope.
12539 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
12540 (Gen_Assign): If the component being assigned is an array type and the
12541 expression is itself an aggregate, wrap the assignment in a block to
12542 force finalization actions on the temporary created for each row of the
12544 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
12545 structures are initialized after all discriminants are set so that
12546 they can be accessed even when their offset is dynamic.
12548 2005-11-14 Robert Dewar <dewar@adacore.com>
12549 Hristian Kirtchev <kirtchev@adacore.com>
12551 * sem_attr.adb: Implement Machine_Rounding attribute
12552 (Analyze_Access_Attribute): The access attribute may appear within an
12553 aggregate that has been expanded into a loop.
12554 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
12555 'Terminated whenever the prefix is of a task interface class-wide type.
12556 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
12557 the prefix is of a task interface class-wide type.
12559 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
12562 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
12563 Remove pragma Inline for [Unaligned_]Valid.
12564 Add comments that Valid routines do not work for Vax_Float
12566 * exp_attr.adb: Implement Machine_Rounding attribute
12568 * snames.h: Add entry for Machine_Rounding attribute
12570 2005-11-14 Javier Miranda <miranda@adacore.com>
12571 Robert Dewar <dewar@adacore.com>
12572 Hristian Kirtchev <kirtchev@adacore.com>
12574 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
12575 and related): For a prefix that is an explicit dereference of an
12576 access to unconstrained packed array type, annotate the dereference
12577 with an actual subtype so GIGI can make a correct size computation.
12578 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
12579 'Unrestricted_Access, if the designated type is an interface we
12580 add a type conversion to force the displacement of the pointer
12581 to the secondary dispatch table.
12582 Use Universal_Real instead of Long_Long_Float when we need a high
12583 precision float type for the generated code (prevents gratuitous
12584 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
12585 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
12586 'Terminated for task interface class-wide objects. Generate a call to
12587 the predefined dispatching routine used to retrieve the _task_id from
12588 a task corresponding record.
12589 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
12591 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
12592 (Check_Dispatching_Operation): Protect the frontend againts
12593 previously detected errors.
12595 * Makefile.rtl: Add new instantiations of system.fat_gen
12597 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
12598 Change name of instantiated package for better consistency
12599 with newly added system.fat_gen instantiations.
12601 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
12602 s-fvagfl.ads: New files.
12604 2005-11-14 Cyrille Comar <comar@adacore.com>
12605 Thomas Quinot <quinot@adacore.com>
12607 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
12608 assignment of a value of a tagged type that has been rewritten to a
12609 block statement, it is known by construction that no checks are
12610 necessary for the statements within the block: analyze it with checks
12612 (Expand_N_If_Statement): When killing a dead then-branch in an
12613 if-statement that has elsif_parts, recompute the Current_Value node
12614 for any entity whose value is known from the condition of the first
12616 (Expand_N_Return_Statement): When returning a mutable record, convert
12617 the return value into its actual subtype in order to help the backend
12618 to return the actual size instead of the maximum. This is another
12619 aftermath of not returning mutable records on the sec-stack anymore.
12621 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
12622 handling of error msg for suspicious reverse range iteration.
12623 (Check_Possible_Current_Value_Condition): Move declaration from body to
12624 spec, to allow this subprogram to be called from exp_ch5.
12626 2005-11-14 Thomas Quinot <quinot@adacore.com>
12628 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
12629 generate a set of nested array aggregates instead of a single flat
12630 aggregate for multi-dimensional arrays.
12632 2005-11-14 Pascal Obry <obry@adacore.com>
12634 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
12635 by spawnve is a process handle, no need to convert. Add a parameter
12636 close to control wether the process handle must be closed.
12637 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
12638 a process handle, not need to convert.
12639 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
12641 * g-expect.adb: (Kill): Document the new close parameter.
12642 (Close): Do not release the process handle in the kill there as
12643 waitpid() is using it.
12644 (Send_Signal): Release the process handle.
12646 2005-11-14 Robert Dewar <dewar@adacore.com>
12648 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
12649 need a high precision float type for the generated code (prevents
12650 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
12653 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
12654 need a high precision float type for the generated code (prevents
12655 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
12657 (Expand_Width_Attribute): In configurable run-time, the attribute is not
12658 allowed on non-static enumeration subtypes. Force a load error to emit
12659 the correct diagnostic.
12661 2005-11-14 Thomas Quinot <quinot@adacore.com>
12662 Robert Dewar <dewar@adacore.com>
12663 Ed Schonberg <schonberg@adacore.com>
12665 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
12666 subtype to compute the size of the designated object at run-time,
12667 create such a subtype and store it in the Actual_Designated_Subtype
12668 attribute of the N_Free_Statement.
12669 Generate itype for classwide designated object in both cases of
12670 user-specified storage pool: specific and class-wide, not only in the
12672 Raise CE when trying to set a not null access type object to null.
12673 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
12674 an explicit loop, because freeze nodes make its position variable.
12676 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
12679 2005-11-14 Javier Miranda <miranda@adacore.com>
12681 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
12682 Build_Stream_Procedure): Add the null-excluding attribute to the first
12684 This has no semantic meaning under Ada95 mode but it is a
12685 requirement under Ada05 mode.
12687 * par-ch3.adb (P_Access_Definition): Addition of warning message if
12688 the null exclusion is used under Ada95 mode
12689 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
12690 (P_Access_Definition): Remove assertion that forbids the use of
12691 the null-exclusion feature in Ada95.
12693 2005-11-14 Robert Dewar <dewar@adacore.com>
12695 * impunit.adb: Exclude container helper units not intended for use by
12698 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12700 * freeze.adb (Freeze_Entity): For an access formal that is an access
12701 to subprogram, freeze the anonymous subprogram type at the same time,
12702 to prevent later freezing in the wrong scope, such as the enclosing
12704 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
12705 subprogram whenever available.
12707 2005-11-14 Arnaud Charlet <charlet@adacore.com>
12710 * gnatvsn.ads (Library_Version): Bump to 4.1
12712 2005-11-14 Robert Dewar <dewar@adacore.com>
12714 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
12715 Storage_Offset to avoid wrap around causing invalid results.
12717 2005-11-14 Pascal Obry <obry@adacore.com>
12719 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
12721 (Scan_Bind_Arg): Fail with an error message if -M option is used
12722 on a native compiler.
12724 2005-11-14 Robert Dewar <dewar@adacore.com>
12725 Vincent Celier <celier@adacore.com>
12727 * gprep.adb: Implement -C switch to scan comments
12729 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
12731 * scans.ads: Comment updates (including new use of Tok_Comment in
12734 * opt.ads: Add documentation for flags that are used by gprmake,
12735 currently and in the next version of gprmake.
12736 (Verbosity_Level): New variable
12737 Add Replace_In_Comments switch
12739 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
12741 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
12743 2005-11-14 Arnaud Charlet <charlet@adacore.com>
12745 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
12746 message, friendlier.
12748 2005-11-14 Robert Dewar <dewar@adacore.com>
12750 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
12752 2005-11-14 Doug Rupp <rupp@adacore.com>
12754 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
12756 2005-11-14 Robert Dewar <dewar@adacore.com>
12758 * interfac.ads: Change declarations of IEEE float types so that we no
12759 longer need a separate version of this package for VMS.
12761 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12763 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
12764 internal entity created for the declaration of a child subprogram body
12765 with no spec as coming from source, to generate proper cross-reference
12768 2005-11-14 Vincent Celier <celier@adacore.com>
12770 * make.adb (Compile_Sources): Change verbose message to minimum
12771 verbosity level High for "is in an Ada library", "is a read-only
12772 library" and "is an internal library",
12773 (Create_Binder_Mapping_File): Path name of ALI file for library project
12774 must include the library directory, not the object directory.
12775 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
12776 for new switches -vl, -vm and -vh.
12777 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
12778 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
12779 (Compile_Sources): Do not attempt to compile if an ALI file is missing
12780 in a project that is externally built.
12781 (Compute_All_Imported_Projects): New procedure
12782 (Gnatmake): Check if importing libraries should be regenerated because
12783 at least an imported library is more recent.
12784 (Initialize): For each project compute the list of the projects it
12785 imports directly or indirectly.
12786 (Add_Library_Search_Dir): New procedure, used in place of
12787 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
12788 put in the search paths.
12789 (Add_Source_Search_Dir): New procedure, used in place of
12790 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
12791 put in the search paths.
12792 (Mark_Directory): Resolve the absolute path the directory before marking
12795 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
12796 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
12797 Switch. Do not handle any exception.
12798 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
12799 so that the switch is recognized as valid.
12800 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
12802 2005-11-14 GNAT Script <nobody@adacore.com>
12804 * Make-lang.in: Makefile automatically updated
12806 2005-11-14 Pascal Obry <obry@adacore.com>
12808 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
12810 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
12811 In both cases the last argument was dropped.
12813 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
12815 * namet.h: (Column_Numbe): New type.
12816 (Get_Column_Number): Define to sinput__get_column_number.
12817 (Instantiation): Define to sinput__instantiation.
12818 (Get_Column_Number): Declare.
12819 (Instantiation): Likewise.
12821 2005-11-14 Robert Dewar <dewar@adacore.com>
12823 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
12824 syntax, which could cause compiler hangs.
12826 2005-11-14 Vincent Celier <celier@adacore.com>
12828 * prj-ext.adb: Take into account new environment variable
12829 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
12831 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
12832 normalize its path name, making it absolute and resolving symbolic
12833 links, and replace the original if resolved path is different.
12835 2005-11-14 Vincent Celier <celier@adacore.com>
12837 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
12838 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
12840 2005-11-14 Emmanuel Briot <briot@adacore.com>
12842 * prj-pp.adb (Print): Do not output the with statement if the
12843 associated name is empty, which happens for virtual extending projects.
12844 (Print): Preserve the "extends all" attribute when printing the project.
12846 * prj-tree.ads (String_Value_Of): Add comment about returned value for
12847 a virtual extending project.
12849 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12851 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
12852 rhs of an assignment even if the type is unconstrained, when the
12853 context is non-expanding.
12854 In an inlined body, if the context type is private,
12855 resolve with its full view, which must be a composite type.
12857 2005-11-14 Robert Dewar <dewar@adacore.com>
12858 Ed Schonberg <schonberg@adacore.com>
12860 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
12861 Do not give obsolescent warning on with of subprogram (since we
12863 (Analyze_With_Clause): Add test for obsolescent package
12864 (Install_Context_Clauses): If the unit is the body of a child unit, do
12865 not install twice the private declarations of the parents, to prevent
12866 circular lists of Use_Clauses in a parent.
12867 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
12868 compiling body of child unit.
12869 Use new class N_Subprogram_Instantiation
12870 (Expand_With_Clause): If this is a private with_clause for a child unit,
12871 appearing in the context of a package declaration, then the implicit
12872 with_clauses generated for parent units are private as well.
12873 (License_Check): Do not generate message if with'ed unit is internal
12875 2005-11-14 Gary Dismukes <dismukes@adacore.com>
12876 Ed Schonberg <schonberg@adacore.com>
12877 Thomas Quinot <quinot@adacore.com>
12879 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
12880 names are internal, because they will not have a corresponding partner
12881 in the actual package.
12882 (Analyze_Formal_Package): Move the setting of the formal package spec's
12883 Generic_Parent field so that it occurs prior to analyzing the package,
12884 to allow proper operation of Install_Parent_Private_Declarations.
12885 (Analyze_Package_Instantiation): Set the instantiated package entity's
12886 Package_Instantiation field.
12887 (Get_Package_Instantiation_Node): Move declaration to package spec.
12888 Retrieve the N_Package_Instantiation node when the Package_Instantiation
12890 (Check_Generic_Child_Unit): Within an inlined call, the only possible
12891 instantiation is Unchecked_Conversion, for which no parents are needed.
12892 (Inline_Instance_Body): Deinstall and record the use_clauses for all
12893 parent scopes of a scope being removed prior to inlining an instance
12895 (Analyze_Package_Instantiation): Do not perform front-end inlining when
12896 the current context is itself an instance within a non-instance child
12897 unit, to prevent scope stack errors.
12898 (Save_References): If the node is an aggregate that is an actual in a
12899 call, rewrite as a qualified expression to preserve some type
12900 information, to resolve possible ambiguities in the instance.
12901 (Instance_Parent_Unit): New global variable to record the ultimate
12902 parent unit associated with a generic child unit instance (associated
12903 with the existing Parent_Unit_Visible flag).
12904 (type Instance_Env): New component Instance_Parent_Unit for stacking
12905 parents recorded in the global Instance_Parent_Unit.
12906 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
12908 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
12909 it's not a top-level unit, and only do this if Instance_Parent_Unit is
12910 not already set. Replace test of Is_Child_Unit with test of parent's
12911 scope against package Standard. Add comments and a ??? comment.
12912 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
12913 on a child instance parent to test that the parent equals
12914 Instance_Parent rather than simply checking that the unit is not a
12916 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
12917 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
12918 a formal interface are ancestors of the corresponding actual.
12919 (Validate_Formal_Interface_Type): Additional legality checks.
12920 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
12921 interface types with ancestors.
12922 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
12923 to diagnose attempts to use generic within its own declaration.
12925 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12926 Javier Miranda <miranda@adacore.com>
12928 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
12930 (Build_Private_Derived_Type): The entity of the created full view of the
12931 derived type does not come from source. If after installing the private
12932 declarations of the parent scope the parent is still private, use its
12933 full view to construct the full declaration of the derived type.
12934 (Build_Derived_Record_Type): Relax the condition that controls the
12935 execution of the check that verifies that the partial view and
12936 the full view agree in the set of implemented interfaces. In
12937 addition, this test now only takes into account the progenitors.
12938 (Derive_Interface_Subprograms): No need to derive subprograms
12939 of ancestors that are interfaces.
12940 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
12942 Change name Is_Package to Is_Package_Or_Generic_Package
12943 (Complete_Subprograms_Derivation): Handle the case in which the full
12944 view is a transitive derivation of the ancestor of the partial view.
12945 (Process_Full_View): Rename local subprogram Find_Interface_In_
12946 Descendant to Find_Ancestor_Interface to leave the code more clear.
12947 Remove wrong code that avoids the generation of an error message
12948 when the immediate ancestor of the partial view is an interface.
12949 In addition some minor reorganization of the code has been done to
12950 leave it more clear.
12951 (Analyze_Type_Declaration): If type has previous incomplete tagged
12952 partial view, inherit properly its primitive operations.
12953 (Collect_Interfaces): Make public, for analysis of formal
12955 (Analyze_Interface_Declaration): New procedure for use for regular and
12956 formal interface declarations.
12957 (Build_Derived_Record_Type): Add support for private types to the code
12958 that checks if a tagged type implements abstract interfaces.
12959 (Check_Aliased_Component_Type): The test applies in the spec of an
12961 (Access_Type_Declaration): Clean up declaration of malformed type
12962 declared as an access to its own classwide type, to prevent cascaded
12964 (Collect_Interfaces): For private extensions and for derived task types
12965 and derived protected types, the parent may be an interface that must
12966 be included in the interface list.
12967 (Access_Definition): If the designated type is an interface that may
12968 contain tasks, create Master_Id for it before analyzing the expression
12969 of the declaration, which may be an allocator.
12970 (Record_Type_Declaration): Set properly the interface kind, for use
12971 in allocators, the creation of master id's for task interfaces, etc.
12973 2005-11-14 Javier Miranda <miranda@adacore.com>
12974 Ed Schonberg <schonberg@adacore.com>
12976 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
12977 omitted in case of stream attribute subprograms.
12978 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
12979 appear immediately after a subprogram body, when there is no previous
12980 subprogram declaration.
12981 Change name Is_Package to Is_Package_Or_Generic_Package
12982 (Process_Formals): A non null qualifier on a non null named access
12983 type is not an error, and is a warning only if Redundant_Constructs
12986 2005-11-14 Gary Dismukes <dismukes@adacore.com>
12987 Ed Schonberg <schonberg@adacore.com>
12989 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
12990 nested within Analyze_Package_Specification to install the private
12991 declarations and use clauses within each of the parent units of a
12992 package instance of a generic child package.
12993 (Analyze_Package_Specification): When entering a private part of a
12994 package associated with a generic instance or formal package, the
12995 private declarations of the parent must be installed (by calling new
12996 procedure Install_Parent_Private_Declarations).
12997 Change name Is_Package to Is_Package_Or_Generic_Package
12998 (Preserve_Full_Attributes): For a synchronized type, the corresponding
12999 record is absent in a generic context, which does not indicate a
13002 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13004 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
13005 not try to rewrite a renamed stream attribute, because the operations
13006 on the type may not have been generated.
13007 Handle properly a renaming_as_body generated for a stream operation
13008 whose default is abstract because the object type itself is abstract.
13009 (Find_Type): If the type is incomplete and appears as the prefix of a
13010 'Class reference, it is tagged, and its list of primitive operations
13011 must be initialized properly.
13012 (Chain_Use_Clauses): When chaining the use clauses that appear in the
13013 private declaration of a parent unit, prior to compiling the private
13014 part of a child unit, find on the scope stack the proper parent entity
13015 on which to link the use clause.
13016 (Note_Redundant_Use): Emit a warning when a redundant use clause is
13018 (Analyze_Object_Renaming): An attribute reference is not a legal object
13019 if it is not a function call.
13021 2005-11-14 Robert Dewar <dewar@adacore.com>
13022 Ed Schonberg <schonberg@adacore.com>
13024 * sem_eval.adb: Implement d.f flag
13025 (Subtype_Statically_Match): A generic actual type has unknown
13026 discriminants when the corresponding actual has a similar partial view.
13027 If the routine is called to validate the signature of an inherited
13028 operation in a child instance, the generic actual matches the full view,
13030 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
13031 Ed Schonberg <schonberg@adacore.com>
13032 Robert Dewar <dewar@adacore.com>
13033 Thomas Quinot <quinot@adacore.com>
13035 * sem_res.adb (Resolve_Call): Provide a better error message whenever
13036 a procedure call is used as a select statement trigger and is not an
13037 entry renaming or a primitive of a limited interface.
13038 (Valid_Conversion): If the operand has a single interpretation do not
13039 remove address operations.
13040 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
13041 statement to inhibit warning.
13042 (Resolve_Unary_Op): Do not produce a warning when
13043 processing an expression of the form -(A mod B)
13044 Use Universal_Real instead of Long_Long_Float when we need a high
13045 precision float type for the generated code (prevents gratuitous
13046 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
13047 (Resolve_Concatenation_Arg): Improve error message when argument is an
13048 ambiguous call to a function that returns an array.
13049 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
13050 there is an implicit operator in the given scope if we are within an
13051 instance: legality check has been performed on the generic.
13052 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
13053 after resolving operand, to avoid false warnings on overloaded calls.
13055 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13056 Javier Miranda <miranda@adacore.com>
13059 * sem_type.adb (Covers): In an inlined body, a composite type matches
13060 a private type whose full view is a composite type.
13061 (Interface_Present_In_Ancestor): Protect the frontend against
13062 previously detected errors to ensure that its compilation
13063 with assertions enabled gives the same output that its
13064 compilation without assertions.
13065 (Interface_Present_In_Ancestor): Add support for private types.
13066 Change name In_Actual to In_Generic_Actual (clean up)
13067 (Disambiguate): New predicate In_Actual, to recognize expressions that
13068 appear in the renaming declaration generated for generic actuals, and
13069 which must be resolved in the outer context.
13071 2005-11-14 Robert Dewar <dewar@adacore.com>
13072 Thomas Quinot <quinot@adacore.com>
13073 Hristian Kirtchev <kirtchev@adacore.com>
13074 Ed Schonberg <schonberg@adacore.com>
13076 * sem_util.ads, sem_util.adb: Change name Is_Package to
13077 Is_Package_Or_Generic_Package.
13078 (Check_Obsolescent): New procedure.
13079 (Set_Is_Public): Remove obsolete junk test.
13080 (Set_Public_Status): Do not set Is_Public on an object whose declaration
13081 occurs within a handled_sequence_of_statemets.
13082 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
13083 for a parameterless procedure.
13084 (Enter_Name): Recognize renaming declarations created for private
13085 component of a protected type within protected operations, so that
13086 the source name of the component can be used in the debugger.
13088 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13089 Robert Dewar <dewar@adacore.com>
13091 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
13092 of a generic subprogram are not visible outside the body.
13093 (Set_Warning_Switch): New procedure (code to set warning mode moved
13094 here from Switch.C so that it can be shared by pragma processing.
13095 (Check_References): Special case warning for non-modified non-imported
13097 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
13098 form with a string literal argument
13100 2005-11-14 Javier Miranda <miranda@adacore.com>
13102 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
13104 (Write): Addition of "not null" to the anonymous access.
13105 (Read): Addition of "not null" to the anonymous access.
13106 (Write): Addition of "not null" to the anonymous access.
13108 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
13109 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
13110 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
13111 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
13112 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
13113 "not null" to the anonymous access.
13115 2005-11-14 Robert Dewar <dewar@adacore.com>
13117 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
13120 2005-11-14 Vincent Celier <celier@adacore.com>
13122 * switch.adb (Bad_Switch): New procedure
13123 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
13124 message when in error.
13126 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
13127 Too_Many_Output_Files): Remove declarations, no longer used.
13128 (Scan_Nat): New parameter Switch
13130 (Bad_Switch): New procedure
13132 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
13133 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
13134 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
13135 to Osint.Fail. Do not handle any exception.
13137 2005-11-14 Vincent Celier <celier@adacore.com>
13139 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
13140 designates a non existent directory.
13142 2005-11-14 Robert Dewar <dewar@adacore.com>
13144 * xgnatugn.adb: Replace invalid membership test by 'Valid
13146 2005-11-14 Vincent Celier <celier@adacore.com>
13148 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
13149 there is no object directory.
13151 2005-11-14 Robert Dewar <dewar@adacore.com>
13153 * usage.adb: Minor adjustment to output format, use nn instead of nnn
13154 (so that -gnateInnn does not run into next column)
13156 2005-11-14 Ed Falis <falis@adacore.com>
13158 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
13161 2005-11-14 Cyrille Comar <comar@adacore.com>
13163 * s-chepoo.ads: Add comments on Dereference.
13164 Remove unnecessary inherited abstract primitives.
13167 2005-11-14 Robert Dewar <dewar@adacore.com>
13169 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
13170 node parameter, not needed, since it is available as Declaration_Node.
13172 2005-11-14 Geert Bosch <bosch@adacore.com>
13174 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
13175 grammatically correct.
13177 2005-11-14 Vincent Celier <celier@adacore.com>
13179 * s-fileio.ads: Correct spelling error in comment
13181 2005-11-14 Cyrille Comar <comar@adacore.com>
13182 Robert Dewar <dewar@adacore.com>
13183 Vincent Celier <celier@adacore.com>
13184 Ben Brosgol <brosgol@adacore.com>
13185 Jose Ruiz <ruiz@adacore.com>
13186 Pascal Obry <obry@adacore.com>
13189 Document that -fstack-check is needed for strict compliance with the
13190 Ada 95 Reference Manual.
13191 Correct reference to VAX systems to meet HP guidelines
13192 Add documentation for new gnatmake switches -vl, -vm and -vh
13193 Replace DEC Ada by HP Ada
13194 Replace DIGITAL by HP
13195 Remove empty section on tools in compatibility section
13196 Clarify the Windows convention semantics.
13197 Document the Win32 calling convention.
13198 The Stdcall, Win32 and DLL convention are synonyms.
13199 Add a note in -gnatR description about zero size record components
13200 Note on new >= and <= warnings for -gnatwc
13201 Document that equal sign after -gnatm is optional.
13202 Note that strip is working fine on DLL built with a Library
13203 Project. The restriction apply only to DLL built with gnatdll.
13204 Update section about the way to debug a DLL.
13205 Update information about the DLL convention.
13206 Document -C switch for gnatprep
13207 Document new attribute Library_ALI_Dir
13208 Update elaboration doc to include implicit Elaborate pragmas now
13209 generated for subprogram instantiations.
13210 Document limitation on executable names that include spaces for --GCC,
13211 --GNATBIND, and --GNATLINK switches.
13212 Document that -w causes -gnatws to be added at start of gcc switches
13214 * gnat_rm.texi: Document that -mieee is needed for generating infinite
13215 and NaN values in case of overflow on machines that are not fully
13216 compliant with the IEEE floating-point standard.
13217 Create a section describing the set of compiler options needed for
13218 strict compliance with the Ada 95 Reference Manual.
13219 Add documentation for pragma Obsolescent applied to a package
13220 Clarify potential issues of mixed language programs related to the
13221 I/O buffering enabling in the elaboration of the GNAT runtime.
13222 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
13223 This documentation only patch adds extra documentsion for pragma
13224 Restrictions (No_Elaboration_Code), explaining why it is not possible
13225 to document this restriction in terms of allowed source constructs.
13226 Document string literal form of pragma Warnings
13227 Document new attribute Library_ALI_Dir
13228 Add documentation on stable attributes in project files that was missing
13230 * gnat-style.texi: Indicate that paragraphs within a single comment
13231 should be separated by empty comment lines
13233 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
13236 * bindusg.adb: Minor cleanup, put -m before -M for consistency
13238 2005-11-14 Robert Dewar <dewar@adacore.com>
13240 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
13241 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
13242 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
13243 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
13244 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
13245 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
13246 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
13247 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
13248 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
13249 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
13250 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
13251 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
13252 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
13253 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
13254 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
13255 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
13256 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
13257 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
13258 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
13259 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
13260 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
13261 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
13262 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
13263 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
13264 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
13265 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
13266 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
13267 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
13268 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
13269 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
13270 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
13271 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
13272 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
13273 system-interix.ads, system-solaris-sparc.ads,
13274 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
13275 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
13276 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
13277 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
13278 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
13279 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
13280 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
13281 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
13282 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
13283 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
13284 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
13285 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
13286 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
13287 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
13288 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
13289 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
13290 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
13291 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
13292 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
13293 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
13294 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
13295 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
13296 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
13297 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
13298 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
13299 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
13300 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
13301 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
13302 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
13303 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
13304 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
13305 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
13306 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
13307 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
13308 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
13309 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
13310 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
13311 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
13312 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
13313 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
13314 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
13315 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
13316 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
13317 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
13318 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
13319 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
13320 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
13321 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
13322 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
13323 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
13324 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
13325 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
13326 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
13327 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
13328 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
13329 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
13330 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
13331 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
13332 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
13333 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
13334 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
13335 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
13336 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
13337 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
13338 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
13339 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
13340 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
13341 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
13342 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
13343 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
13344 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
13345 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
13346 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
13347 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
13348 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
13349 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
13350 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
13351 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
13352 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
13353 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
13354 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
13355 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
13356 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
13357 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
13358 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
13359 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
13360 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
13361 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
13362 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
13363 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
13364 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
13365 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
13366 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
13367 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
13368 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
13369 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
13370 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
13371 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
13372 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
13373 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
13374 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
13375 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
13376 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
13377 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
13378 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
13379 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
13380 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
13381 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
13382 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
13383 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
13384 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
13385 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
13386 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
13387 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
13388 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
13389 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
13390 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
13391 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
13392 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
13393 a-numaux-darwin.ads, a-numaux-darwin.adb,
13394 a-swuwha.ads, a-stunha.ads: Minor reformatting
13396 2005-11-14 Robert Dewar <dewar@adacore.com>
13399 * osint-m.adb: Add pragma Elaborate_All for Osint
13401 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
13404 * trans.c (call_to_gnu): Restore statement lost in translation.
13406 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
13408 * init.c: Use the Linux-specific section for the IA-64/Linux target.
13409 (__gnat_adjust_context_for_raise): Add conditional code so that the
13410 IA-64 is also supported.
13412 2005-11-03 James E Wilson <wilson@specifix.com>
13415 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
13416 TREE_OVERFLOW check.
13418 2005-09-21 Olivier Hainque <hainque@adacore.com>
13421 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
13422 as we create them to store a size in bits.
13424 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
13432 * utils2.c (build_return_expr): New helper function.
13433 * gigi.h (build_return_expr): Declare it.
13434 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
13435 of manually building the RETURN_EXPR tree.
13436 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
13437 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
13438 build_binary_op for the "target pointer" case. Use build_return_expr
13439 instead of manually building the RETURN_EXPR tree.
13441 2005-09-16 Laurent GUERBY <laurent@guerby.net>
13444 * s-tpinop.ads: Make this unit Preelaborate.
13446 2005-09-16 Andreas Jaeger <aj@suse.de>
13448 * socket.c: Add string.h for memcpy.
13450 2005-09-05 Arnaud Charlet <charlet@adacore.com>
13452 * dec-io.ads, dec-io.adb: Removed, no longer used.
13454 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13456 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
13458 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
13459 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
13460 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
13461 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
13462 dependent units are Preelaborate.
13463 (Initialize): Call Interrupt_Managemeent.Initialize and
13464 OS_Primitives.Initialize to ensure proper initialization of this unit.
13465 Remove use of System.Soft_Links
13466 Make this unit Preelaborate.
13468 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
13469 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
13470 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
13471 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
13472 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
13473 s-tratas.ads, s-tasinf.ads: Minor reformatting.
13474 Add pragma Preelaborate, since these packages are suitable for this
13478 * s-traent-vms.ads, s-intman-dummy.adb,
13479 s-taprop-dummy.adb: Make this unit Preelaborate.
13481 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
13482 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
13483 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
13484 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
13485 s-intman-solaris.adb, s-intman-irix-athread.adb,
13486 s-intman-irix.adb: Mark this unit Preelaborate.
13487 (Initialize): New procedure.
13490 * s-taspri-linux.ads: Removed.
13492 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
13493 as done by other implementations (e.g. posix).
13495 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
13496 responsible for deferring abort.
13497 Mark this unit Preelaborate.
13499 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
13500 proper initialization of the tasking run-time.
13502 * s-tasdeb.ads: Mark this unit Preelaborate.
13503 (Known_Tasks): Add explicit default value to avoid elaboration code.
13505 * s-inmaop-vms.adb (Elaboration code): Add call to
13506 Interrupt_Management.Initialize since the elaboration code depends on
13507 proper initialization of this package.
13509 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
13510 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
13511 s-osprim-posix.adb: Make this unit Preelaborate.
13513 * a-calend.adb: Add call to OS_Primitives.Initialize
13515 * a-elchha.adb: Update use of Except.Id.Full_Name.
13516 Minor reformatting.
13517 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
13519 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
13520 Move with clauses outside Warnings Off now that dependent units are
13522 Use raise xxx with "..."; Ada 2005 form.
13524 * a-taside.ads, a-taside.adb:
13525 Remove some dependencies, to make it easier to make this unit truly
13527 Rewrite some code to be conformant with Preelaborate rules.
13529 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
13530 marked Preelaborate in the future.
13532 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
13533 these units Preelaborate.
13535 * s-exctab.adb: Update use of Except.Id.Full_Name.
13537 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
13538 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
13539 Set_Exc_Stack_Addr): Removed, no longer used.
13540 Remove reference to *Machine_State_Addr*, no longer needed.
13542 * s-stalib.ads: Mark this unit as Preelaborate[_05].
13543 (Exception_Data): Full_Name is now a System.Address so that this unit
13544 can be made Preelaborate.
13545 Clean up/simplify code thanks to Full_Name being a System.Address.
13546 Remove obsolete pragma Suppress (All_Checks), no longer needed.
13548 * s-taskin.ads, s-taskin.adb:
13549 Move with clauses outside Warnings Off now that dependent units are
13551 Make this unit Preelaborate.
13552 (Initialize): New proceduure, replace elaboration code and makes the
13553 set up of the tasking run-time cleaner.
13554 (Detect_Blocking): Now a function instead of a deferred boolean, to
13555 obey Preelaborate rules.
13557 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
13558 soft links, no longer used.
13560 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
13561 packages are suitable for this categorization.
13563 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
13564 since we compile run-time sources in Ada 2005 mode.
13565 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
13566 avoid having s-taprop*.adb depend on s-soflin and to avoid code
13568 Remove reference to *Machine_State_Addr*, no longer needed.
13570 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13572 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
13573 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
13574 Remove reference to System.Exceptions.
13576 * s-mastop-x86.adb: Removed, no longer used.
13578 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
13580 * a-excach.adb: Minor reformatting.
13582 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
13583 instead fix new warnings that were hidden by this change.
13584 (AAA, ZZZ): Removed, replaced by...
13585 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
13586 are used instead of constants, to help make Ada.Exception truly
13588 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
13589 Raise_Storage_Error): File is now a System.Address, to simplify code.
13590 (Elab code): Removed, no longer used.
13591 (Null_Occurrence): Remove Warnings Off and make this construct
13593 Remove code related to front-end zero cost exception handling, since
13594 it is no longer used.
13595 Remove -gnatL/-gnatZ switches.
13597 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
13598 Update use of Except.Msg.
13600 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
13601 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
13602 to front-end zero cost exception handling, since it is no longer used.
13603 Remove -gnatL/-gnatZ switches.
13605 * lib-writ.ads: Minor reformatting
13608 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
13610 * Make-lang.in: Remove references to s-except.ads
13612 * s-except.ads: Removed, no longer used.
13614 * s-mastop.ads, s-mastop.adb:
13615 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
13616 Remove reference to System.Exceptions.
13618 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
13619 switch-b.adb: Remove code related to front-end zero cost exception
13620 handling, since it is no longer used.
13621 Remove -gnatL/-gnatZ switches.
13623 2005-09-01 Robert Dewar <dewar@adacore.com>
13624 Gary Dismukes <dismukes@adacore.com>
13625 Javier Miranda <miranda@adacore.com>
13627 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
13628 type by valid test and generate warning.
13629 (Tagged_Membership): Generate call to the run-time
13630 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
13631 Change formal name Subtype_Mark to Result_Definition in several calls to
13632 Make_Function_Specification.
13633 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
13634 check for proper accessibility of the operand of a class-wide allocator.
13635 The check can be left out if checks are suppressed or if the expression
13636 has a specific tagged type whose level is known to be safe.
13638 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
13639 generates the run-time check associated with null-excluding entities.
13640 (Expand_N_Return_Statement): Add tests to determine if the accessibility
13641 check on the level of the return expression of a class-wide function
13642 can be elided. The check usually isn't needed if the expression has a
13643 specific type (unless it's a conversion or a formal parameter). Also
13644 add a test for whether accessibility checks are suppressed. Augment
13645 the comments to describe the conditions for performing the check.
13647 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
13648 Javier Miranda <miranda@adacore.com>
13649 Gary Dismukes <dismukes@adacore.com>
13650 Ed Schonberg <schonberg@adacore.com>
13652 * a-tags.adb (IW_Membership): Give support to
13653 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
13654 subprogram has been extended to look for the tag in the ancestors tag
13656 Update the structure of the GNAT Dispatch Table to reflect the
13657 additional two tables used in dispatching selects.
13658 Introduce appropriate array types and record components in
13659 Type_Specific_Data to reflect the two tables.
13660 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
13661 the TSD of a tag, indexed by position.
13662 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
13663 operation kind in the TSD of a tag, indexed by position.
13665 * a-tags.ads: Introduce an enumeration type to capture different
13666 primitive operation kinds. Define a constant reflecting the number of
13667 predefined primitive operations.
13668 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
13669 of an entry wrapper.
13670 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
13671 callable entity of a primitive operation.
13673 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
13674 primitive operations used in dispatching selects for limited
13675 interfaces, limited tagged, task and protected types what implement a
13677 (Freeze_Type): Generate the bodies of the primitive operations used in
13678 dispatching selects for limited tagged, task and protected types that
13679 implement a limited interface. Generate statements to populate the two
13680 auxiliary tables used for dispatching in select statements.
13681 (Freeze_Record_Type): Add call to initialize the dispatch table entries
13682 associated with predefined interface primitive operations.
13683 (Build_Dcheck_Function): Change Set_Subtype_Mark to
13684 Set_Result_Definition.
13685 (Build_Variant_Record_Equality): Change Subtype_Mark to
13687 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
13688 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
13689 (Build_Assignment): Simplify the code that adds the run-time-check.
13690 (Expand_N_Object_Declaration): Code cleanup.
13692 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
13693 entries when there is a protected type that implements a limited
13696 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
13697 common routines used in expansion of dispatching selects.
13698 (Add_Private_Declarations): Select the appropriate protection type when
13699 there is a protected type that implements a limited interface.
13700 (Build_Parameter_Block): Generate a wrapped parameter block.
13701 (Build_Protected_Subprogram_Body): Select the appropriate type for
13702 locking entries when there is a protected type that implements a
13704 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
13705 classified as entry wrappers.
13706 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
13707 asynchronous selects.
13708 (Expand_N_Conditional_Entry_Call): Add support for expansion of
13709 dispatching conditional selects.
13710 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
13711 protection when there is a protected type that implements limited
13713 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
13715 (Extract_Dispatching_Call): Extract the entity of the name of a
13716 dispatching call, the object parameter, actual parameters and
13717 corresponding formals.
13718 (Make_Initialize_Protection): Correct logic of protection initialization
13719 when there is a protected type that implements a limited interface.
13720 (Parameter_Block_Pack): Populate a wrapped parameter block with the
13721 values of actual parameters.
13722 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
13723 block and assign them to the original actual parameters.
13725 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
13726 (Build_Protected_Sub_Specification): Change the type and name of the
13727 last formal to account for the increased variety of protection modes.
13729 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
13730 entities. Used to save the value of the Is_Hidden attribute when the
13731 limited-view is installed.
13732 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
13733 the attribute of procedures classified as entry wrappers.
13734 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
13735 entity of a primitive wrapper.
13736 (Write_Entity_Flags): Output the name and value of the
13737 Is_Primitive_Wrapper attribute.
13738 (Write_Field27_Name): Output the name and entity of the field Wrapped_
13740 (Underlying_Type): If we have an incomplete entity that comes from
13741 the limited view then we return the Underlying_Type of its non-limited
13742 view if it is already available.
13743 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
13744 including operators.
13745 (Write_Field26_Name): Add entry for Overridden_Operation
13746 (Overridden_Operation): New attribute of functions and procedures.
13748 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
13749 predefined position in the dispatch table for the primitive operations
13750 used in dispatching selects.
13751 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
13752 predefined primitive operations and replace it with
13753 Default_Prim_Op_Count.
13754 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
13755 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
13756 the names of the generated primitive operations used in dispatching
13758 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
13759 case of abstract interface types. They will be inherit by the objects
13760 implementing the interface.
13761 (Make_DT): There is no need to inherit the dispatch table of the
13762 ancestor interface for the elaboration of abstract interface types.
13763 The dispatch table will be inherited by the object implementing the
13765 (Copy_Secondary_DTs): Add documentation.
13766 (Validate_Position): Improve this static check in case of
13767 aliased subprograms because aliased subprograms must have
13769 (Init_Predefined_Interface_Primitives): New subprogram that initializes
13770 the entries associated with predefined primitives of all the secondary
13772 (Build_Anonymous_Access_Type): Removed.
13773 (Expand_Interface_Actuals): With the previous cleanup there is no need
13774 to build an anonymous access type. This allows further cleanup in the
13775 code generated by the expander.
13776 (Expand_Interface_Conversion): If the actual is an access type then
13777 build an internal function to handle the displacement. If the actual
13778 is null this function returns null because no displacement is
13779 required; otherwise performs a type conversion that will be
13780 expanded in the code that returns the value of the displaced actual.
13781 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
13782 conversions that have no effect in the generated code because no
13783 displacement is required. Code cleanup; use local variables to
13784 avoid repeated calls to the subprogram directly_designated_type().
13786 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
13787 Classify the primitive operations used in dispatching selects as
13789 (Implements_Limited_Interface): Determine whether some type either
13790 directly implements a limited interface or extends a type that
13791 implements a limited interface.
13792 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
13793 (Expand_Subtype_From_Expr): Do not build actual subtype if the
13794 expression is limited.
13795 (Find_Interface_Tag): Add code to handle class-wide types and
13796 entities from the limited-view.
13798 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
13799 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
13800 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
13801 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
13804 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
13805 of procedure name or prefix that appears as a trigger in a triggering
13808 * uintp.ads: Introduce constants Uint_11 and Uint_13.
13810 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13812 * s-tataat.adb, a-tasatt.adb:
13813 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
13815 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
13816 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
13817 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
13820 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13821 Jose Ruiz <ruiz@adacore.com>
13823 * s-taprop-vxworks.adb:
13824 Move with clauses outside Warnings Off now that dependent units are
13826 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
13827 initialization of this unit.
13828 (Specific): Add new procedures Initialize and Delete so that this
13829 package can be used for VxWorks 5.x and 6.x
13830 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
13831 differences between VxWorks 5.x and 6.x
13832 Minor reformatting.
13833 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
13835 Use only Preelaborate-compatible constructs.
13837 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
13838 Primitives.Operations.
13839 (Delete, Initialize): New procedures.
13841 * s-osinte-vxworks.adb: Body used to handle differences between
13842 VxWorks 5.x and 6.x
13843 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
13845 * s-osinte-vxworks.ads: Minor reformatting.
13846 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
13847 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
13849 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
13850 between Vxworks 5 and 6.
13851 (taskLock, taskUnlock): Removeed, no longer used.
13853 * adaint.c: The wait.h header is not located in the sys directory on
13854 VxWorks when using RTPs.
13855 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
13857 (__gnat_dup): dup is available on Vxworks when using RTPs.
13858 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
13860 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
13862 * expect.c: The wait.h header is not located in the sys directory on
13863 VxWorks when using RTPs.
13865 2005-09-01 Thomas Quinot <quinot@adacore.com>
13867 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
13869 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
13871 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
13872 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
13873 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
13874 g-soccon-freebsd.ads: Add new constants:
13876 SO_RCVTIMEO/SO_SNDTIMEO
13880 Move all target-specific file inclusions and macro definitions to
13881 gsocket.h, in order to ensure that any C code in socket.c will see a
13882 set of constants that is consistent with the contents of g-soccon.ads.
13884 * gsocket.h: Code imported from gen-soccon.c:
13885 Move all target-specific file inclusions and macro definitions to
13886 gsocket.h, in order to ensure that any C code in socket.c will see a set
13887 of constants that is consistent with the contents of g-soccon.ads.
13888 This change also makes gen-soccon self-contained (removing dependencies
13889 upon GCC internal headers).
13891 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
13893 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
13895 * socket.c: Minor reformatting.
13897 2005-09-01 Ed Schonberg <schonberg@adacore.com>
13898 Thomas Quinot <quinot@adacore.com>
13900 * fname-sf.adb, mlib-tgt.ads,
13901 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
13902 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
13903 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
13904 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
13905 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
13906 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
13907 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
13908 makegpr.adb: Remove redundant use_clauses.
13910 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13912 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
13913 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
13914 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
13915 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
13916 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
13917 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
13918 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
13919 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
13920 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
13921 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
13922 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
13923 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
13924 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
13925 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
13926 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
13927 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
13928 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
13929 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
13930 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
13931 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
13932 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
13933 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
13934 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
13935 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
13936 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
13937 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
13938 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
13939 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
13940 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
13941 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
13942 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
13943 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
13944 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
13945 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
13946 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
13947 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
13948 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
13949 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
13950 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
13951 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
13952 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
13953 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
13954 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
13955 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
13956 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
13957 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
13958 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
13959 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
13960 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
13961 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
13962 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
13963 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
13964 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
13965 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
13966 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
13967 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
13968 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
13969 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
13970 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
13971 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
13972 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
13973 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
13974 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
13975 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
13976 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
13977 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
13978 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
13979 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
13980 and always use the no parameter form for consistency.
13982 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
13984 2005-09-01 Robert Dewar <dewar@adacore.com>
13986 * binde.adb: Minor reformatting
13987 (Find_Elab_Order): Output warning if -p used with static elab order
13989 2005-09-01 Robert Dewar <dewar@adacore.com>
13991 * checks.adb (Check_Needed): New procedure, deals with removing checks
13992 based on analysis of short-circuited forms. Also generates warnings for
13993 improper use of non-short-circuited forms.
13996 2005-09-01 Robert Dewar <dewar@adacore.com>
13998 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
14001 2005-09-01 Robert Dewar <dewar@adacore.com>
14003 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
14005 Implement new insertion char < (conditional warning)
14006 * errutil.adb, erroutc.adb: Implement new insertion char <
14007 (conditional warning).
14008 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
14009 (Error_Msg_Warn): New variable for < insertion char.
14010 * prj-nmsc.adb: Implement new errout insertion char < (conditional
14012 (Check_For_Source): Change value of Source_Id only after the current
14013 source has been dealt with.
14015 2005-09-01 Robert Dewar <dewar@adacore.com>
14016 Doug Rupp <rupp@adacore.com>
14018 * exp_attr.adb: Handle vax fpt for 'Valid attribute
14019 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
14020 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
14021 (Valid_D, Valid_F, Valid_G): New functions
14023 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14024 Hristian Kirtchev <kirtchev@adacore.com>
14025 Javier Miranda <miranda@adacore.com>
14027 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
14028 from object notation, the original node is unanalyzed and carries no
14029 semantic information, so that accessiblity checks must be performed on
14030 the type of the actual itself.
14031 (Expand_N_Subprogram_Declaration): Change last actual parameter for
14032 compatibility with Build_Protected_Sub_Specification.
14033 (Check_Overriding_Inherited_Interfaces): Add suport to handle
14034 overloaded primitives.
14035 (Register_Interface_DT_Entry): Use the new name of the formal
14036 the the calls to Expand_Interface_Thunk
14038 * exp_dbug.ads: Augment comments on encoding of protected types to
14039 include the generation of dispatching subprograms when the type
14040 implements at least one interface.
14042 * lib.ads: Extend information in Load_Stack to include whether a given
14043 load comes from a Limited_With_Clause.
14045 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
14046 whether a potential circularity is harmless, because it includes units
14047 loaded through a limited_with clause. Extends previous treatment which
14048 did not handle properly arbitrary combinations of limited and
14049 non-limited clauses.
14051 2005-09-01 Nicolas Setton <setton@adacore.com>
14053 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
14054 to be encoded as typ___XBLU_lowerbound__upperbound instead of
14055 typ___XB_lowerbound__upperbound.
14057 2005-09-01 Thomas Quinot <quinot@adacore.com>
14059 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
14060 dummy access formal for RACW/RAS TypeCode TSS.
14061 (Build_TypeCode_Call): Do not generate dummy null access actual for
14062 calls to the TypeCode TSS.
14064 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14066 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
14067 fully qualified name, to distinguish instances with the same local name.
14069 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
14072 2005-09-01 Robert Dewar <dewar@adacore.com>
14074 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
14077 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
14079 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
14080 (Free): New deallocation procedure for filter elements
14081 (Close): Deallocate any existing filter for the concerned connection
14083 2005-09-01 Laurent Pautet <pautet@adacore.com>
14085 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
14086 position set is provided, we compute one in order to reduce the maximum
14087 length of the keys. This computation first selects a character
14088 position between 1 and the minimum length of the keys in order to
14089 avoid reducing one of the keys to an empty string.
14090 (Initialize, Compute): When the ratio V to K is too low, the algorithm
14091 does not converge. The initialization procedure now comes with a
14092 maximum number of iterations such that when exceeded, an exception is
14093 raised in Compute. The user can initialize this ratio to another value
14095 Reformating and updated headers.
14097 2005-09-01 Javier Miranda <miranda@adacore.com>
14099 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
14100 that given an entity T creates and returns an Itype that duplicates the
14101 contents of T. The returned Itype has the null-exclusion
14102 attribute set to True, and its Etype attribute references T
14103 to keep the association between the two entities.
14104 Update copyright notice
14106 * sem_aggr.adb (Check_Can_Never_Be_Null,
14107 Aggregate_Constraint_Checks, Resolve_Aggregate,
14108 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
14110 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
14112 2005-09-01 Gary Dismukes <dismukes@adacore.com>
14113 Robert Dewar <dewar@adacore.com>
14114 Hristian Kirtchev <kirtchev@adacore.com>
14116 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
14119 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
14121 Call Set_Result_Definition instead of Set_Subtype_Mark.
14122 (P_Subprogram_Specification): Add parsing of anonymous access result
14123 plus null exclusions. Call Set_Result_Definition instead of
14126 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
14127 (P_Access_Type_Definition): Add parsing for an anonymous access result
14128 subtype, plus parsing for null exclusions. Call Set_Result_Definition
14129 instead of Set_Subtype_Mark.
14131 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
14132 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
14133 (Result_Definition): New function for N_Function_Specifications.
14134 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
14135 N_Function_Specification.
14136 (Set_Null_Exclusion_Present): Allow this flag for
14137 N_Function_Specification.
14138 (Set_Result_Definition): New procedure for N_Function_Specifications.
14139 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
14140 and N_Function_Specification.
14142 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
14143 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
14144 Add support for LIMITED NEW for Ada 2005 AI-419
14145 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
14146 syntax for anonymous access results.
14147 Replace Subtype_Mark field by Result_Definition in
14148 N_Function_Specification and N_Access_Definition specs.
14149 Add Null_Exclusion_Present to spec of N_Function_Specification.
14150 (Result_Definition): New function for N_Function_Specification and
14151 N_Access_Function_Definition.
14152 (Set_Result_Definition): New procedure for N_Function_Specification and
14153 N_Access_Function_Definition.
14155 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
14156 Result_Definition for cases of N_Access_Function_Definition and
14157 N_Function_Specification.
14158 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
14160 2005-09-01 Vincent Celier <celier@adacore.com>
14162 * lib-writ.adb: Update Copyright notice
14163 (Write_With_Lines): On platforms where file names are case-insensitive,
14164 record the file names in lower case.
14165 (Write_ALI): For D lines, on platforms where file names are
14166 case-insensitive, record the file names in lower case.
14168 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14169 Emmanuel Briot <briot@adacore.com>
14171 * lib-xref.adb (Output_Overridden_Op): Display information on
14172 overridden operation.
14174 * lib-xref.ads: Add documentation on overridden operations.
14176 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
14179 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
14180 overriding entity information.
14182 2005-09-01 Vincent Celier <celier@adacore.com>
14184 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
14185 including those that are inherited.
14187 2005-09-01 Robert Dewar <dewar@adacore.com>
14189 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
14191 * par-prag.adb: Implement new pragma Debug_Policy
14193 * sem_prag.adb Implement new pragma Debug_Policy
14194 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
14195 Component_Size attribute specification. Give warning for ignored pragma
14198 * snames.h, snames.ads, snames.adb: Introduce entries in
14199 Preset_Names for Name_Disp_Asynchronous_Select,
14200 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
14201 Name_Disp_Timed_Select.
14202 New pragma Debug_Policy
14204 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
14206 Switch -gnata also sets Debug_Pragmas_Enabled
14208 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
14209 handle an explicit -gnata when compiling predefined files.
14211 2005-09-01 Vincent Celier <celier@adacore.com>
14213 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
14214 directories of projects that have no Ada sources.
14216 2005-09-01 Robert Dewar <dewar@adacore.com>
14218 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
14219 (makes a difference for wide characters)
14221 * widechar.adb, widechar.ads:
14222 Add Wide_Char_Byte_Count feature to count chars vs bytes
14224 2005-09-01 Thomas Quinot <quinot@adacore.com>
14225 Ed Schonberg <schonberg@adacore.com>
14226 Robert Dewar <dewar@adacore.com>
14228 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
14229 'Address attribute reference with an overloaded prefix, use the
14230 location of the prefix (not the location of the attribute reference) as
14231 the error location.
14232 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
14233 a function renaming thereof, is a valid prefix for 'Size (where it is
14234 intepreted as a function call).
14235 (Statically_Denotes_Entity): New predicate to determine whether the
14236 prefix of an array attribute can be considered static.
14239 (Eval_Attr): Fix failure to evaluate Component_Size for
14240 unconstrained arrays (resulted in wrong value in packed case, since
14241 back end cannot handle this case)
14243 2005-09-01 Robert Dewar <dewar@adacore.com>
14245 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
14246 error msgs for most common cases.
14247 Use new errout insertion char < (conditional warning)
14249 2005-09-01 Javier Miranda <miranda@adacore.com>
14250 Ed Schonberg <schonberg@adacore.com>
14252 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
14253 become local to the whole package.
14254 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
14255 the package was already analyzed the new algorithm "replaces" the
14256 real entities by the shadow ones. This is required to ensure that
14257 the order of these entities in the homonym chains does not change;
14258 otherwise we can have undefined references at linking time because
14259 in case of conflicts the external name of the entities will have
14260 a suffix that depends on the order of the entities in the chain.
14261 (Remove_Limited_With_Clause): Complementary code that completes the
14262 new algorithm and replaces the shadow entities by the real ones.
14263 (Install_Limited_Withed_Unit): When unchaining entities before the
14264 installation of the shadow entities, only regular entities of the
14265 public part must be taken into account. This is required to
14266 keep this routine in synch with the work done by Remove_Limited_
14268 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
14269 even if unit is analyzed, because the analysis of the unit is
14270 idempotent in any case, and the limited view of the unit may have to
14271 be installed for proper visibility.
14272 (Expand_Limited_With_Clause): Even if the unit in the implicit
14273 with_clause has been analyzed already, a limited view of the package
14274 must be built for the current context, if it does not exist yet.
14276 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14277 Javier Miranda <miranda@adacore.com>
14278 Gary Dismukes <dismukes@adacore.com>
14280 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
14281 defining entity for the instance body, make a new defining identifier
14282 rather than copying the entity of the spec, to prevent accidental
14283 sharing of the entity list.
14284 (Check_Private_View): When exchanging views of private types, build the
14285 list of exchanged views as a stack, to ensure that on exit the exchanges
14286 are undone in the proper order.
14287 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
14288 Restore the compilation environment in case of instantiation_error.
14289 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
14290 for an anonymous access result.
14291 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
14292 (Formal_Entity): Handle properly the case of a formal package that
14293 denotes a generic package renaming.
14295 2005-09-01 Thomas Quinot <quinot@adacore.com>
14297 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
14298 clause if the array aggregate is surrounded by parentheses.
14300 2005-09-01 Cyrille Comar <comar@adacore.com>
14301 Gary Dismukes <dismukes@adacore.com>
14302 Ed Schonberg <schonberg@adacore.com>
14303 Javier Miranda <miranda@adacore.com>
14305 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
14307 to check if a type is Constrained in cases related to code generation
14308 (rather than semantic checking) since otherwise we do not generate
14309 similar code for mutable private types depending if their
14310 discriminants are visible or not.
14311 (Check_Abstract_Overriding): Do not complain about failure to override
14312 the primitive operations used in dispatching selects since they will
14313 always be overriden at the freeze point of the type.
14314 (Access_Definition): Separate out handling for resetting the scope
14315 of an anonymous access function result type. Retrieve the scope
14316 of the associated function rather than using Current_Scope, which
14317 does not have a consistent value (depends on whether we're in the
14318 middle of analyzing formal parameters). Add ??? comment about
14319 finding a cleaner way to handle the special cases of scope setting.
14320 (Process_Incomplete_Dependents): A protected operation is never a
14321 dispatching operation (only its wrapper may be).
14322 (Build_Derived_Record_Type): In case of tagged private types that
14323 implement interfaces add derivation of predefined primitive
14325 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
14326 by two parameters that are used in case of derivation from abstract
14327 interface types: No_Predefined_Prims is used to avoid the derivation
14328 of predefined primitives from the interface, and Predefined
14329 Prims_Only is used to complete the derivation predefined primitives
14330 in case of private tagged types implementing interfaces.
14331 Fix typo in comments
14332 (Find_Interface_In_Descendant): Protect the frontend against
14333 wrong code with large circularity chains.
14334 (Is_Private_Overriding): Add support for entities overriding interface
14335 subprograms. The test failed because Entities associated with overriden
14336 interface subprograms are always marked as hidden (and used to build
14337 the secondary dispatch table); in this case the overriden entity is
14338 available through the field abstract_interface_alias (cf. override_
14339 dispatching_operation)
14340 (Access_Definition): Set the scope of the type to Current_Scope for the
14341 case of a function with an anonymous access result type.
14342 (Access_Subprogram_Declaration): Handle creation of the type entity for
14343 an access-to-function type with an anonymous access result.
14344 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
14345 in handling for N_Access_Function_Definition.
14346 (Analyze_Subtype_Declaration): Modify the text of error message.
14347 (Derived_Type_Declaration): Modify the text of error message.
14348 (Process_Subtype): Modify the text of error message plus cleanup
14349 of one redundant error message.
14350 (Analyze_Component_Declaration): Code cleanup.
14351 (Analyze_Object_Declaration): Code cleanup.
14352 (Analyze_Subtype_Declaration): Propagate the null-exclusion
14353 attribute in case of access types. Code cleanup.
14354 (Array_Type_Declaration): Code cleanup.
14355 (Process_Discriminants): Create the new null-excluding itype
14356 if required. Code cleanup.
14357 (Process_Subtype): Create the new null-excluding itype if
14358 required. Code cleanup.
14359 (Build_Derived_Record_Type): Code cleanup to avoid calling
14360 twice the subprogram derive_subprograms in case of private
14361 types that implement interfaces. In this particular case the
14362 subprogram Complete_Subprograms_Derivation already does the
14363 job associated with the second call.
14365 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
14366 conversion to the full view when generating an operation for a
14367 discriminant whose type may currently be private.
14369 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14370 Javier Miranda <miranda@adacore.com>
14372 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
14373 V (Obj.F), the rewriting does not involve the indexed component, but
14374 only the selected component itself.
14375 Do not apply the transformation if the analyzed node is an actual of a
14376 call to another subprogram.
14377 (Complete_Object_Operation): Retain the entity of the
14378 dispatching operation in the selector of the rewritten node. The
14379 entity will be used in the expansion of dispatching selects.
14380 (Analyze_One_Call): Improve location of the error message associated
14382 (Analyze_Selected_Component): No need to resolve prefix when it is a
14383 function call, resolution is done when parent node is resolved, as
14385 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
14386 when attempting to resolve a call transformed from its object notation.
14387 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
14388 of the argument list for each interpretation of the operation.
14389 (Try_Object_Operation): The designated type of an access parameter may
14390 be an incomplete type obtained through a limited_with clause, in which
14391 case the primitive operations of the type are retrieved from its full
14393 (Analyze_Call): If this is an indirect call, and the return type of the
14394 access_to_subprogram is incomplete, use its full view if available.
14396 2005-09-01 Javier Miranda <miranda@adacore.com>
14397 Gary Dismukes <dismukes@adacore.com>
14399 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
14400 access types the null-exclusion and access-to-constant attributes must
14402 (Analyze_Return_Statement): When the result type is an anonymous access
14403 type, apply a conversion of the return expression to the access type
14404 to ensure that appropriate accessibility checks are performed.
14405 (Analyze_Return_Type): For the case of an anonymous access result type,
14406 generate the Itype and set Is_Local_Anonymous_Access on the type.
14407 Add ??? placeholder for check to disallow returning a limited object
14408 in Ada 2005 unless it's an aggregate or a result of a function call.
14409 Change calls from Subtype_Mark to Result_Definition.
14410 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
14411 Result_Definition in call to Make_Function_Specification.
14412 (Build_Body_To_Inline): Change Set_Subtype_Mark to
14413 Set_Result_Definition.
14414 (Make_Inequality_Operator): Change formal Subtype_Mark to
14415 Result_Definition in call to Make_Function_Specification.
14416 (Process_Formals): Create the new null-excluding itype if required.
14417 (New_Overloaded_Entity): For an entity overriding an interface primitive
14418 check if the entity also covers other abstract subprograms in the same
14419 scope. This is required to handle the general case, that is, overriding
14420 other interface primitives and overriding abstract subprograms inherited
14421 from some abstract ancestor type.
14422 (New_Overloaded_Entity): For an overriding entity that comes from
14423 source, note the operation that it overrides.
14424 (Check_Conformance, Type_Conformant): Addition of one new formal
14425 to skip controlling formals in the analysis. This is used to
14426 handle overloading of abstract interfaces.
14427 (Base_Types_Match): Add missing case for types imported from
14428 limited-with clauses
14429 (New_Overloaded_Entity): Add barrier to protect the use of
14430 the "alias" attribute.
14432 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14434 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
14435 verify that the procedure and the entry are mode conformant.
14436 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
14437 as a different operator, which is often a cut-and-paste error.
14439 2005-09-01 Javier Miranda <miranda@adacore.com>
14440 Ed Schonberg <schonberg@adacore.com>
14442 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
14443 used in controlling parameters exclude null because it is necessary to
14444 read the tag to dispatch, and null has no tag.
14445 (Override_Dispatching_Operation): If the previous operation is inherited
14446 from an interface, it becomes hidden and does not participate in later
14449 2005-09-01 Javier Miranda <miranda@adacore.com>
14450 Ed Schonberg <schonberg@adacore.com>
14451 Gary Dismukes <dismukes@adacore.com>
14453 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
14454 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
14455 the expander will generate the corresponding run-time check to evaluate
14457 (Resolve_Call): Check for legal type of procedure name or prefix that
14458 appears as a trigger in a triggering alternative.
14459 (Valid_Conversion): If expression is ambiguous and the context involves
14460 an extension of System, remove System.Address interpretations.
14461 (Resolve_Qualified_Expression): Reject the case of a specific-type
14462 qualification applied to a class-wide argument. Enhance comment
14463 to explain checking of Original_Node.
14464 (Resolve_Type_Conversion): The location of the error message was not
14465 general enough to handle the general case and hence it has been removed.
14466 In addition, this patch improves the text of the message.
14467 (Resolve_Type_Conversion): Add missing support for access to interface
14469 (Resolve_Type_Conversion): If the target is a class-wide interface type,
14470 do not expand if the expression is the actual in a call, because proper
14471 expansion will take place when the call itself is expanded.
14472 (Resolve_Allocator): If the context is an unchecked conversion, the
14473 allocator inherits its storage pool, if any, from the target type of
14476 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14477 Javier Miranda <miranda@adacore.com>
14479 * sem_type.adb (Add_One_Interp): If a candidate operation is an
14480 inherited interface operation that has an implementation, use the
14481 implementation to avoid spurious ambiguities.
14482 (Interface_Present_In_Ancestor): In case of concurrent types we can't
14483 use the Corresponding_Record_Typ attribute to look for the interface
14484 because it is set by the expander (and hence it is not always
14485 available). For this reason we traverse the list of interfaces
14486 (available in the parent of the concurrent type).
14487 (Interface_Present_In_Ancestor): Handle entities from the limited view
14489 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14491 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
14492 from the list of required components.
14493 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
14494 primitive procedure of a limited interface with a controlling first
14496 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
14498 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
14499 capture if it is generated in the second operand of a short-circuit
14501 Do not capture values for variables with address clauses.
14502 (Is_Object_Reference): Treat a function call as an object reference only
14503 if its type is not Standard_Void_Type.
14505 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14507 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
14508 to a variable that is statically known to be constant.
14510 2005-09-01 Geert Bosch <bosch@adacore.com>
14511 Robert Dewar <dewar@adacore.com>
14513 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
14514 (VAXGF_Safe_First): Idem.
14516 2005-09-01 Robert Dewar <dewar@adacore.com>
14517 Arnaud Charlet <charlet@adacore.com>
14519 * g-dirope.ads: Minor reformatting
14520 Document that bounds of result of Base_Name match the input index
14522 Add documentation on environment variable syntax for Expand_Path
14524 * gnat_ugn.texi: Update documentation to include mention of -m switches
14525 Document new treatment of wide characters in max line length
14527 Remove -gnatL/-gnatZ switches, no longer used.
14528 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
14531 * gnat_rm.texi: Add doc for two argument form of pragma
14532 Float_Representation.
14533 Add documentation for pragma No_Strict_Aliasing
14534 Add note that explicit component clause overrides pragma Pack.
14535 Add documentation of pragma Debug_Policy
14537 2005-09-01 Matthew Heaney <heaney@adacore.com>
14539 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
14540 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
14541 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
14542 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
14543 draft (Draft 13, August 2005) of Ada Amendment 1.
14545 2005-09-01 Arnaud Charlet <charlet@adacore.com>
14547 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
14548 Note that the platform-specific version of g-soccon.ads for VMS is now
14549 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
14550 really is a package spec).
14551 Replace s-taspri-linux.ads by s-taspri-posix.ads
14552 Remove references to s-mastop-x86.adb
14554 * system-vxworks-xscale.ads: Removed, no longer used.
14555 * s-vxwork-xscale.ads: Removed, no longer used.
14557 2005-09-01 Robert Dewar <dewar@adacore.com>
14559 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
14560 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
14561 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
14562 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
14563 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
14564 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
14565 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
14566 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
14567 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
14568 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
14569 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
14570 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
14571 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
14572 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
14573 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
14574 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
14575 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
14576 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
14577 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
14578 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
14579 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
14581 2005-08-29 Arnaud Charlet <charlet@adacore.com>
14585 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
14587 2005-08-29 Arnaud Charlet <charlet@adacore.com>
14588 Doug Rupp <rupp@adacore.com>
14590 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
14592 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
14593 this code in the GNAT run-time.
14595 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
14598 * init.c (__gnat_error_handler [many]): Mark "msg" as const
14599 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
14601 (__gnat_inside_elab_final_code): Moved here from
14602 Standard_Library and only defined for the compiler.
14603 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
14604 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
14605 using RTPs because directly vectored Interrupt routines are not
14606 supported on this configuration.
14607 (getpid): Do not redefine this function on VxWorks when using RTPs
14608 because this primitive is well supported by the RTP libraries.
14609 (copy_msg): Correct the code that checks for buffer overflow.
14610 Discovered during code reading.
14612 2005-08-29 Olivier Hainque <hainque@adacore.com>
14614 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
14615 a library level mutable variable with an initializer, tell
14616 build_allocator to ignore the initializer's size. It may not be large
14617 enough for all the values that might be assigned to the variable later
14620 2005-08-29 Arnaud Charlet <charlet@adacore.com>
14621 Eric Botcazou <ebotcazou@adacore.com>
14623 * trans.c: Protect < in error msg with quote
14624 Replace GCC_ZCX by Back_End_Exceptions.
14625 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
14626 has been sufficiently aligned in the record.
14628 2005-08-15 James E. Wilson <wilson@specifix.com>
14630 * system-linux-alpha.ads: Change ia64 to alpha.
14632 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
14634 * decl.c, utils.c: Fix comment typos.
14636 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
14638 * decl.c, init.c, initialize.c: Fix comment typos.
14640 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
14642 Make CONSTRUCTOR use VEC to store initializers.
14643 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
14645 * trans.c (extract_values): Likewise.
14646 * utils.c (convert, remove_conversions): Likewise.
14647 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
14648 gnat_build_constructor): Likewise.
14650 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
14652 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
14654 (compare_field_bitpos): Likewise.
14656 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
14658 * utils.c (create_var_decl): Only set DECL_COMMON on
14659 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
14660 VAR_OR_FUNCTION_DECL_P.
14662 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
14664 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
14667 2005-07-07 Pascal Obry <obry@adacore.com>
14669 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
14670 returned type on Windows.
14672 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
14675 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
14676 exception in this case.
14677 Simplify the code as "Image (Image'Range)" = "Image".
14679 2005-07-07 Vincent Celier <celier@adacore.com>
14681 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
14682 the destructor/constructor attributes for <lib>final/<lib>init.
14684 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
14686 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
14688 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
14689 type if the parameter is not passed by copy but reference by default.
14691 2005-07-07 Javier Miranda <miranda@adacore.com>
14693 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
14694 Reimplementation of the support for abstract interface types in order
14695 to leave the code more clear and easy to maintain.
14697 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
14698 abstract interface types in order to leave the code clearer and easier
14701 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
14702 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
14703 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
14704 appropriate entry of the secondary dispatch table.
14705 (Make_DT): Add code to inherit the secondary dispatch tables of
14708 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
14709 implementing both functionalities by means of a common routine, each
14710 routine has its own code.
14712 2005-07-07 Javier Miranda <miranda@adacore.com>
14714 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
14716 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
14719 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
14722 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
14723 use of tag incomplete types.
14725 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
14726 give support to tagged incomplete types.
14728 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
14729 expression is a discriminant reference and its type is private, as can
14730 happen within a stream operation for a mutable record, use the full
14731 view of the type to resolve the case alternatives.
14732 (Analyze_Assignment): Check wrong dereference of incomplete types.
14734 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
14737 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
14740 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
14741 N_Incomplete_Type_Declaration nodes.
14743 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
14744 Tag_Present to give support to tagged incomplete types:
14746 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
14749 2005-07-07 Olivier Hainque <hainque@adacore.com>
14752 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
14753 definitions for the Unwind wrappers in the compiler case.
14755 2005-07-07 Ed Schonberg <schonberg@adacore.com>
14756 Javier Miranda <miranda@adacore.com>
14758 * par-load.adb (Load): If a child unit is loaded through a limited_with
14759 clause, each parent must be loaded as a limited unit as well.
14761 * sem_ch10.adb (Previous_Withed_Unit): Better name for
14762 Check_Withed_Unit. Return true if there is a previous with_clause for
14763 this unit, whether limited or not.
14764 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
14766 (Is_Visible_Through_Renamings): New local subprogram of install_limited
14767 _withed_unit that checks if some package installed through normal with
14768 clauses has a renaming declaration of package whose limited-view is
14769 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
14770 of the current Draft document for Ada 2005.
14771 (Analyze_Context): Complete the list of compilation units that
14772 are allowed to contain limited-with clauses. It also contains
14773 checks that were previously done by Install_Limited_Context_Clauses.
14774 This makes the code more clear and easy to maintain.
14775 (Expand_Limited_With_Clause) It is now a local subprogram of
14776 Install_Limited_Context_Clauses, and contains the code that adds
14777 the implicit limited-with clauses for parents of child units.
14778 This functionality was prevously done by Analyze_Context.
14780 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
14783 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
14784 been erroneously named in a limited-with clause of its own context.
14785 In this case the error has been previously notified by Analyze_Context.
14787 2005-07-07 Ed Schonberg <schonberg@adacore.com>
14789 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
14790 generic package that contains local declarations with the same name.
14791 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
14793 2005-07-07 Bernard Banner <banner@adacore.com>
14795 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
14796 ia64 platform only on platforms that you the GCC unwind library
14797 rather than the system unwind library.
14799 2005-07-07 Thomas Quinot <quinot@adacore.com>
14801 * expect.c: Minor reformatting
14803 2005-07-07 Sergey Rybin <rybin@adacore.com>
14805 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
14808 * gnat_ugn.texi: Add description for new gnatpp option
14811 2005-07-04 Thomas Quinot <quinot@adacore.com>
14813 * g-expect-vms.adb, g-expect.ads, g-expect.adb
14814 (Get_Command_Output): New subprogram to launch a process and get its
14815 standard output as a string.
14817 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
14818 Olivier Hainque <hainque@adacore.com>
14820 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
14821 fetch a code-range descriptor associated with the machine state. On
14822 failure set the machine state's PC to 0; on success, pass the
14823 descriptor to exc_virtual_unwind.
14825 * init.c (Tru64 section): New function __gnat_set_code_loc.
14827 2005-07-04 Vincent Celier <celier@adacore.com>
14829 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
14830 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
14831 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
14832 Remove all auto-initialization code, as this is now done through the
14833 constructor mechanism.
14835 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
14836 __gnat_sals_init_using_constructors): New functions.
14838 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
14839 Linker_Constructor and Linker_Destructor when switch -a is used.
14841 * bindusg.adb: Add line for new switch -a
14843 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
14844 (Gnatbind): When switch -a is used, check if it is allowed
14846 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
14848 2005-07-04 Joel Brobecker <brobecker@adacore.com>
14850 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
14851 This prevents us from hitting a limitation during the debug info
14852 generation when using stabs.
14853 (Prims_Ptr): Likewise.
14855 2005-07-04 Gary Dismukes <dismukes@adacore.com>
14856 Ed Schonberg <schonberg@adacore.com>
14857 Javier Miranda <miranda@adacore.com>
14859 * checks.adb (Null_Exclusion_Static_Checks): In the case of
14860 N_Object_Declaration, only perform the checks if the Object_Definition
14861 is not an Access_Definition.
14863 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
14864 where the parent of an the access definition is an N_Object_Declaration
14865 when determining the Associated_Node_For_Itype and scope of an
14866 anonymous access-to-subprogram type.
14868 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
14869 Corresponding_Spec on the body created for a null procedure. Add ???
14870 comment. Remove New_Copy_Tree call on body argument to
14871 Set_Body_To_Inline.
14873 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
14874 discriminants, use the type of the actual as well, because the
14875 discriminants may be read by the called subprogram.
14877 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
14878 access type we do not need to handle non-limited views.
14879 (Build_Derived_Record_Type): Additional check to check that in case of
14880 private types, interfaces are only allowed in private extensions.
14882 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
14884 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
14885 <Pragma_Linker_Destructor>: Likewise.
14887 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
14888 Pragma_Linker_Destructor.
14890 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
14891 ATTR_LINK_DESTRUCTOR.
14892 (static_ctors, static_dtors): New variables.
14894 * misc.c (gnat_expand_body): Output current function as constructor
14895 and destructor if requested.
14897 * par-prag.adb: Add processing for pragma Linker_Constructor and
14900 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
14901 extracted from Check_Interrupt_Or_Attach_Handler.
14902 (Check_Interrupt_Or_Attach_Handler): Invoke it.
14903 Implement pragma Linker_Constructor and Linker_Destructor with the
14904 help of Find_Unique_Parameterless_Procedure.
14905 Replace Name_Alias with Name_Target for pragma Linker_Alias.
14907 * snames.h, snames.ads, snames.adb:
14908 Add Name_Linker_Constructor and Name_Linker_Destructor.
14909 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
14910 * snames.adb: Remove Name_Alias.
14912 * trans.c: Include cgraph.h.
14913 (build_global_cdtor): New function.
14914 (Compilation_Unit_to_gnu): Build global constructor and destructor if
14916 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
14918 (addressable_p) <COMPONENT_REF>: Unconditionally test
14919 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
14921 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
14922 variable if it is external.
14924 (static_ctors, static_dtors): New global variables.
14925 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
14926 <ATTR_LINK_DESTRUCTOR>: Likewise.
14927 (end_subprog_body): Chain function as constructor and destructor
14930 * exp_util.adb (Force_Evaluation): Unconditionally invoke
14931 Remove_Side_Effects with Variable_Ref set to true.
14932 (Remove_Side_Effects): Handle scalar types first. Use a renaming
14933 for non-scalar types even if Variable_Ref is true and for class-wide
14936 2005-07-04 Ed Schonberg <schonberg@adacore.com>
14938 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
14939 to prevent spurious warnings.
14941 2005-07-04 Thomas Quinot <quinot@adacore.com>
14943 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
14944 Itypes. Itypes are really unexpected there.
14945 (Build_TypeCode_Function): Generalise special processing for Itypes to
14946 handle the case of numeric implicit base types as well as enumerated
14949 2005-07-04 Ed Schonberg <schonberg@adacore.com>
14951 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
14952 controlled, indicate the expected type of the dereference that is
14953 created for the call to Deep_Finalize, to prevent spurious errors when
14954 the designated type is private and completed with a derivation from
14955 another private type.
14957 2005-07-04 Vincent Celier <celier@adacore.com>
14959 * make.adb (Change_To_Object_Directory): When unable to change the
14960 current dir to the object directory, output the full path of the
14963 2005-07-04 Matthew Gingell <gingell@adacore.com>
14965 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
14967 * indepsw-linux.adb: Replace by...
14969 * indepsw-gnu.adb: ...this new file
14971 2005-07-04 Vincent Celier <celier@adacore.com>
14973 * mlib-prj.adb (Auto_Initialize): New constant String
14974 (SALs_Use_Constructors): New Boolean function
14975 (Build_Library): Call gnatbind with Auto_Initialize switch when
14976 SALs_Use_Constructors returns True.
14978 * mlib-tgt.ads: Minor reformatting
14980 * mlib-utl.ads: Minor reformatting
14982 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
14984 2005-07-04 Ed Schonberg <schonberg@adacore.com>
14986 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
14987 single protected declarations can have an interface list.
14988 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
14989 with seriously malformed entry declarations, and lead to compilation
14990 abandoned messages.
14992 2005-07-04 Javier Miranda <miranda@adacore.com>
14994 * par-load.adb: Load the context items in two rounds.
14996 2005-07-04 Robert Dewar <dewar@adacore.com>
14998 * scng.adb: Do not consider Mod used as an attribute to be a keyword
15000 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15001 Javier Miranda <miranda@adacore.com>
15003 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
15004 type extension needs a limited view.
15005 Remove previous restriction on private types available through the
15006 limited-view (only tagged private types were previously allowed).
15007 (Install_Withed_Unit): In the code that implements the
15008 legality rule given in AI-377, exclude a child unit with the name
15009 Standard, because it is a homonym of the Standard environment package.
15011 2005-07-04 Thomas Quinot <quinot@adacore.com>
15013 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
15014 overloaded function call, carry interpretations from the original tree
15017 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15019 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
15020 types check whether some designated type is a limited view, and use
15021 the non-limited view if available.
15023 2005-07-04 Gary Dismukes <dismukes@adacore.com>
15025 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
15026 constraint of full view of a private view T1 if present, when T2 is a
15027 discriminated full view.
15029 2005-07-04 Thomas Quinot <quinot@adacore.com>
15031 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
15032 actual that is a view conversion of a bit packed array reference.
15034 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15036 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
15037 present before checking whether an interface type covers a synchronized
15040 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15042 * sem_util.adb (Is_Object_Reference): An indexed or selected component
15043 whose prefix is an implicit dereference is an object reference. Removes
15044 spurious errors when compiling with -gnatc.
15046 2005-07-04 Robert Dewar <dewar@adacore.com>
15049 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
15051 2005-07-04 Matthew Gingell <gingell@adacore.com>
15053 * tracebak.c: Enable tracebacks on ia64 platforms
15055 2005-07-04 Vincent Celier <celier@adacore.com>
15057 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
15058 the GNAT BIND command, as gnatbind accepts multiples ALI files with
15059 the -L or -n switches.
15061 2005-07-04 Vincent Celier <celier@adacore.com>
15063 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
15064 correctly computed and the main project data is not modified while
15066 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
15067 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
15068 c++linker as this does not work on some platforms.
15070 2005-07-04 Matthew Heaney <heaney@adacore.com>
15072 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
15074 * a-coinve.adb: Perform constraint checks explicitly.
15076 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15077 Thomas Quinot <quinot@adacore.com>
15079 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
15080 new target gen-soccon.
15082 2005-07-04 Robert Dewar <dewar@adacore.com>
15084 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
15086 2005-07-04 Thomas Quinot <quinot@adacore.com>
15088 * g-socket.ads (Check_Selector): Minor rewording of comment.
15090 2005-07-04 Vincent Celier <celier@adacore.com>
15092 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
15094 2005-07-04 Thomas Quinot <quinot@adacore.com>
15096 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
15098 2005-07-04 Sergey Rybin <rybin@adacore.com>
15100 * gnat_ugn.texi: Add description of --eol gnatpp option
15102 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
15103 Thomas Quinot <quinot@adacore.com>
15105 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
15106 if the user wants all calls of a subprogram to be flagged,
15107 independently of whether they are made from within the same unit or
15109 Mention restriction for pragma Linker_Alias on some platforms.
15110 Document pragma Linker_Constructor and Linker_Destructor.
15111 Rewrite documentation of Weak_External, Linker_Section and
15112 Linker_Alias pragmas.
15114 2005-07-04 Arnaud Charlet <charlet@adacore.com>
15116 * s-stausa.ads, s-stausa.adb: New files.
15118 2005-06-30 Kelley Cook
15120 * all files: Update FSF address in copyright headers.
15121 * gen-soccon.co (main): Output new FSF address in generated files.
15123 2005-06-28 Paul Brook <paul@codesourcery.com>
15125 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
15127 2005-06-14 Olivier Hainque <hainque@adacore.com>
15128 Eric Botcazou <ebotcazou@adacore.com>
15130 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
15131 exc_unwind, now that we are generating proper .debug_frame output for
15134 * tracebak.c: Remove the mips-irix section, as we are now using the
15135 s-mastop based unwinder again.
15136 Under SPARC/Solaris, take into account the stack bias to compute the
15137 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
15140 2005-06-14 Doug Rupp <rupp@adacore.com>
15142 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
15144 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
15146 2005-06-14 Pascal Obry <obry@adacore.com>
15148 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
15149 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
15150 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
15153 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
15154 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
15155 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
15156 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
15157 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
15158 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
15159 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
15160 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
15161 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
15162 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
15163 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
15164 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
15165 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
15166 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
15167 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
15168 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
15169 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
15170 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
15171 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
15172 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
15173 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
15174 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
15175 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
15176 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
15177 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
15178 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
15179 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
15180 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
15181 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
15182 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
15183 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
15184 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
15185 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
15186 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
15187 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
15188 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
15189 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
15190 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
15191 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
15192 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
15193 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
15194 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
15195 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
15196 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
15197 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
15198 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
15199 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
15200 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
15201 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
15202 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
15203 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
15204 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
15205 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
15206 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
15207 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
15208 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
15209 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
15210 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
15211 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
15212 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
15213 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
15214 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
15215 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
15216 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
15217 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
15218 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
15219 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
15220 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
15221 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
15222 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
15223 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
15224 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
15225 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
15226 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
15227 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
15228 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
15229 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
15230 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
15231 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
15232 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
15233 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
15234 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
15235 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
15236 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
15237 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
15238 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
15239 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
15240 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
15241 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
15242 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
15243 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
15244 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
15245 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
15246 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
15247 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
15248 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
15249 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
15250 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
15251 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
15252 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
15253 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
15254 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
15255 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
15256 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
15257 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
15258 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
15259 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
15260 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
15261 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
15262 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
15263 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
15264 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
15265 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
15266 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
15267 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
15268 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
15269 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
15270 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
15271 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
15272 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
15273 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
15274 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
15275 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
15276 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
15277 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
15278 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
15279 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
15280 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
15281 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
15282 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
15283 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
15284 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
15285 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
15287 2005-06-14 Jose Ruiz <ruiz@adacore.com>
15288 Arnaud Charlet <charlet@adacore.com>
15290 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
15291 longer protected objects. They have been replaced by lower-level
15292 suspension objects made up by a mutex and a condition variable (or
15293 their equivalent given a particular OS) plus some internal data to
15294 reflect the state of the suspension object.
15295 (Initialize, Finalize): Add this initialization procedure for
15296 Suspension_Object, which is a controlled type.
15297 (Finalize): Add the finalization procedure for Suspension_Object,
15298 which is a controlled type.
15300 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
15301 Ada.Synchronous_Task_Control because there is no longer a need for a
15302 VxWorks specific version of this package. Target dependencies
15303 has been moved to System.Task_Primitives.Operations.
15305 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
15307 (InitializeCriticalSection, EnterCriticalSection,
15308 LeaveCriticalSection, DeleteCriticalSection): Replace the type
15309 pCriticalSection by an anonymous access type so that we avoid problems
15310 of accessibility to local objects.
15312 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
15313 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
15314 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
15315 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
15316 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
15317 set the environment task mask here.
15318 (Current_State): Add this function that returns the state of the
15320 (Set_False): Add this procedure that sets the state of the suspension
15322 (Set_True): Add this procedure that sets the state of the suspension
15323 object to True, releasing the task that was suspended, if any.
15324 (Suspend_Until_True): Add this procedure that blocks the calling task
15325 until the state of the object is True. Program_Error is raised if
15326 another task is already waiting on that suspension object.
15327 (Initialize): Add this procedure for initializing the suspension
15328 object. It initializes the mutex and the condition variable which are
15329 used for synchronization and queuing, and it sets the internal state
15331 (Finalize): Add this procedure for finalizing the suspension object,
15332 destroying the mutex and the condition variable.
15334 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
15335 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
15336 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
15337 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
15338 which provides a low-level abstraction (using operating system
15339 primitives) for Ada.Synchronous_Task_Control.
15340 This object is made up by a mutex (for ensuring mutual exclusion), a
15341 condition variable (for queuing threads until the condition is
15342 signaled), a Boolean (State) indicating whether the object is open,
15343 and a Boolean (Waiting) reflecting whether there is a task already
15344 suspended on this object.
15346 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
15347 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
15348 s-intman-vms.ads, s-intman-mingw.adb,
15349 (Initialize_Interrupts): Removed, no longer used.
15351 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
15352 (Setup_Interrupt_Mask): New procedure.
15354 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
15356 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
15358 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
15359 this is no longer done in the body of s-taprop
15360 (Server_Task): Explicitely test for Pending_Action in case
15361 System.Parameters.No_Abort is True.
15363 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
15364 is no longer done in the body of s-taprop
15366 2005-06-14 Robert Dewar <dewar@adacore.com>
15368 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
15369 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
15370 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
15371 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
15372 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
15373 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
15374 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
15375 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
15376 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
15377 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
15378 system-linux-hppa.ads, system-vms_64.ads,
15379 system-vxworks-alpha.ads: Minor comment update for
15380 AI-362 (unit is Pure).
15382 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
15383 Add pragma Pure_05 for AI-362
15384 Make remaining conversion functions obsolescent in Ada 95
15386 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
15387 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
15388 Add entries for a-wichun and a-zchuni
15389 Add a-widcha a-zchara for AI-395
15390 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
15392 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
15393 Add entries for a-wichun.o and a-zchuni.o
15394 Entries for a-widcha.o and a-zchara.o
15395 Add entry for a-chacon.o
15397 * a-ztenau.adb: Add with of Ada.Characters.Conversions
15399 * a-chacon.ads, a-chacon.adb: New files.
15401 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
15402 categorization violations.
15404 * a-strmap.ads: Add pragma Pure_05 for AI-362
15405 * a-strmap.ads: Add note on implicit categorization for AI-362
15407 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
15409 * par-prag.adb: Dummy entry for pragma Persistent_BSS
15410 Set Ada_Version_Explicit, for implementation of AI-362
15411 Add processing for pragma Pure_05 and Preelaborate_05
15412 Add entry for Assertion_Policy pragma
15414 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
15415 when needed for proper processing of categorization stuff
15418 For several cases, make errors in preealborate units warnings,
15419 instead of errors, if GNAT_Mode is set. For AI-362.
15421 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
15422 preelaborate unit is now warning if in GNAT mode
15424 * s-stoele.ads: Document AI-362 for pragma preelaborate
15426 2005-06-14 Doug Rupp <rupp@adacore.com>
15428 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
15429 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
15430 Default_Exception_Msg_Max_Length: new parameter.
15432 * a-except.ads: (Exception_Msg_Max_Length): Set to
15433 System.Parameters.Default_Exception_Msg_Max_Length
15434 Add pragma Preelaborate_05 for AI-362
15435 Add warnings off to allow categorization violations for AI-362
15437 2005-06-14 Vincent Celier <celier@adacore.com>
15439 * gnatsym.adb: Adapt to modification of package Symbols: procedure
15440 Process is now in package Processing.
15442 * symbols.ads, symbols.adb:
15443 (Processing): New package, containing procedure Process
15445 * symbols-vms-alpha.adb:
15446 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
15448 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
15449 symbols-processing-vms-ia64.adb: New files.
15451 2005-06-14 Pascal Obry <obry@adacore.com>
15453 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
15454 implementation. This new version generates the proper DllMain routine
15455 to initialize the SAL. The DllMain is generated in Ada and compiled
15456 before being added as option to the library build command.
15458 2005-06-14 Doug Rupp <rupp@adacore.com>
15459 Pascal Obry <obry@adacore.com>
15461 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
15462 call to decc$translate_vms.
15463 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
15464 need to remove those quotes before catenating the filename.
15465 (__gnat_locate_exec_on_path): improvements to the Win32 section:
15466 * avoid allocating the memory twice for better efficiency;
15467 * allocate 32K buffer for environment expansion as suggested by MSDN;
15468 * prepend ".;" to the path so that current directory is searched too.
15470 2005-06-14 Robert Dewar <dewar@adacore.com>
15472 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
15473 instead of raising CE (AI-241)
15474 Add warnings off to allow categorization violations for AI-362
15476 2005-06-14 Robert Dewar <dewar@adacore.com>
15478 * ali-util.adb, gnatbind.adb: Remove references to
15479 Force_RM_Elaboration_Order.
15481 * switch-b.adb: Remove recognition of -f switch
15483 2005-06-14 Pascal Obry <obry@adacore.com>
15485 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
15486 implementation which is slightly more efficient.
15488 2005-06-14 Gary Dismukes <dismukes@adacore.com>
15489 Javier Miranda <miranda@adacore.com>
15490 Ed Schonberg <schonberg@adacore.com>
15491 Hristian Kirtchev <kirtchev@adacore.com>
15493 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
15494 allocator's designated type is a class-wide type, and compiling for
15495 Ada 2005, emit a run-time check that the accessibility level of the
15496 type given in the allocator's expression is not deeper than the level
15497 of the allocator's access type.
15499 (Tagged_Membership): Modified to gives support to abstract interface
15502 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
15504 (Descendant_Tag): New predefined function
15505 (Is_Descendant_At_Same_Level): New predefined function
15506 (Get_Access_Level): New private function
15507 (Set_Access_Level): New private procedure
15508 (IW_Membership): New function. Given the tag of an object and the tag
15509 associated with an interface, evaluate if the object implements the
15511 (Register_Interface_Tag): New procedure used to initialize the table of
15512 interfaces used by the IW_Membership function.
15513 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
15514 of the dispatch table.
15515 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
15516 table of interfaces of the parent.
15517 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
15518 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
15519 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
15520 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
15521 Ada 2005 semantics for the new predefined function.
15523 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
15524 call to Descendant_Tag rather than Internal_Tag.
15525 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
15526 the accessibility level of the attribute's Item parameter is not deeper
15527 than the level of the attribute's prefix type. Tag_Error is raised if
15528 the check fails. The check is only emitted for Ada_05.
15529 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
15530 requested stream attribute, use it.
15531 (Expand_N_Attribute_Reference): If the designated type is an interface
15532 then rewrite the referenced object as a conversion to force the
15533 displacement of the pointer to the secondary dispatch table.
15534 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
15535 is a dereference of an object with a constrained partial view.
15537 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
15538 type is a class-wide type, emit a run-time check that the accessibility
15539 level of the returned object is not deeper than the level of the
15540 function's master (only when compiling for Ada 2005).
15542 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
15543 Action_Nb_Arg): Add entries for new Get_Access_Level and
15544 Set_Access_Level routines in these tables.
15545 (Make_DT): Generate a call to set the accessibility level of the
15546 tagged type in its TSD.
15547 (Make_DT): Code cleanup. The functionality of generating all the
15548 secondary dispatch tables has been moved to freeze_record_type.
15549 (Make_Abstract_Interface_DT): Minor code cleanup.
15550 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
15551 this subprogram implements a new algorithm that provides the
15552 same functionality and it is more clear in case of primitives
15553 associated with abstract interfaces.
15554 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
15555 clean up, the functionality of this subprogram is now provided
15556 by Set_All_DT_Position.
15557 (Write_DT): New subprogram: a debugging procedure designed to be called
15558 within gdb to display the dispatch tables associated with a tagged
15560 (Collect_All_Interfaces): New subprogram that collects the whole list
15561 of interfaces that are directly or indirectly implemented by a tagged
15563 (Default_Prim_Op_Position): New subprogram that returns the fixed
15564 position in the dispatch table of the default primitive operations.
15565 (Expand_Interface_Actuals): New subprogram to generate code that
15566 displaces all the actuals corresponding to class-wide interfaces to
15567 reference the interface tag of the actual object.
15568 (Expand_Interface_Conversion): New subprogram. Reference the base of
15569 the object to give access to the interface tag associated with the
15570 secondary dispatch table.
15571 (Expand_Interface_Thunk): New subprogram that generates the code of the
15572 thunk. This is required for compatibility with the C+ ABI.
15573 (Make_Abstract_Interface_DT): New subprogram that generate the
15574 declarations for the secondary dispatch tables associated with an
15575 abstract interface.
15576 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
15577 attribute for each primitive operation covering interface subprograms
15578 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
15579 These subprograms were upgraded to give support to abstract interfaces
15581 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
15582 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
15583 RE_Set_Access_Level.
15584 (RE_Unit_Table): Add entries for new Ada.Tags operations.
15585 Add support to call the followig new run-time subprograms:
15586 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
15588 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
15589 match its full declaration when both have an access definition with
15590 statically matching designated subtypes.
15591 (Analyze_Component_Declaration): Delete commented out code that was
15592 incorrectly setting the scope of an anonymous access component's type.
15593 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
15594 an access discriminant when the containing type is nonlimited.
15595 (Make_Incomplete_Type_Declaration): Create an incomplete type
15596 declaration for a record type that includes self-referential access
15598 (Check_Anonymous_Access_Types): Before full analysis of a record type
15599 declaration, create anonymous access types for each self-referential
15601 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
15602 an access component in this context is a Local_Anonymous_Access, for
15603 proper accessibility checks.
15604 (Access_Definition): Set properly the scope of the anonymous access type
15605 created for a stand-alone access object.
15606 (Find_Type_Of_Object): An object declaration may be given with an access
15608 (Complete_Subprograms_Derivation): New subprogram used to complete
15609 type derivation of private tagged types implementing interfaces.
15610 In this case some interface primitives may have been overriden
15611 with the partial-view and, instead of re-calculating them, they
15612 are included in the list of primitive operations of the full-view.
15613 (Build_Derived_Record_Type): Modified to give support to private
15614 types implemening interfaces.
15615 (Access_Definition): Reject ALL on anonymous access types.
15616 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
15617 type derivation to occur at a deeper accessibility level than the
15619 For the case of derivation within a generic body however, disallow the
15620 derivation if the derived type has an ancestor that is a formal type
15621 declared in the formal part of an enclosing generic.
15622 (Analyze_Object_Declaration): For protected objects, remove the check
15623 that they cannot contain interrupt handlers if not declared at library
15625 (Add_Interface_Tag_Components): New subprogram to add the tag components
15626 corresponding to all the abstract interface types implemented by a
15627 record type or a derived record type.
15628 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
15629 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
15630 Process_Full_View, Record_Type_Declaration): Modified to give
15631 support to abstract interface types
15632 (Collect_Interfaces): New subprogram that collects the list of
15633 interfaces that are not already implemented by the ancestors
15634 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
15635 when partial view has no discriminants and full view has defaults.
15636 (Constrain_Access): Reject a constraint on a general access type
15637 if the discriminants of the designated type have defaults.
15638 (Access_Subprogram_Declaration): Associate the Itype node with the inner
15639 full-type declaration or subprogram spec. This is required to handle
15640 nested anonymous declarations.
15641 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
15642 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
15643 Process_Full_View, Record_Type_Declaration): Modified to give
15644 support to abstract interface types
15645 (Derive_Subprograms): Addition of a new formal to indicate if
15646 we are in the case of an abstact-interface derivation
15647 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
15648 to the specification because it is requied to analyze all the
15649 identifiers found in a list of interfaces
15651 * debug.adb: Complete documentation of flag "-gnatdZ"
15653 * exp_ch3.adb: Implement config version of persistent_bss pragma
15654 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
15655 testing for TSS presence to properly enforce visibility rules.
15656 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
15657 Make_Abstract_Interfaces_DT to generate the secondary tables
15658 associated with abstract interfaces.
15659 (Build_Init_Procedure): Modified to initialize all the tags
15661 (Component_Needs_Simple_Initialization): Similar to other tags,
15662 interface tags do not need initialization.
15663 (Freeze_Record_Type): Modified to give support to abstract interface
15665 (Expand_N_Object_Declaration): Do not generate an initialization for
15666 a scalar temporary marked as internal.
15668 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
15669 in-out parameter that is a component in an initialization procedure,
15670 whose constraint might depend on discriminants, and that may be
15671 misaligned because of packing or representation clauses.
15672 (Is_Legal_Copy): New predicate to determine whether a possibly
15673 misaligned in-out actual can actually be passed by copy/return. This
15674 is an error in case the type is by_reference, and a warning if this is
15675 the consequence of a DEC import pragma on the subprogram.
15676 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
15678 (Expand_Inlined_Call): Mark temporary generated for the return value as
15679 internal, so that no useless scalar normalization is generated for it.
15680 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
15681 null procedure can always be inlined.
15682 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
15683 procedure, generate an explicit empty body for it.
15685 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
15686 Given a type implementing an interface, returns the corresponding
15687 access_disp_table value.
15688 (Find_Interface_Tag): New subprogram. Given a type implementing an
15689 interface, returns the record component containing the tag of the
15691 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
15692 previous ones that return the corresponding tag and access_disp_table
15694 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
15695 is a predefined primitive operation.
15696 (Expand_Subtype_From_Expr): If the expression is a selected component
15697 within an initialization procedure, compute its actual subtype, because
15698 the component may depend on the discriminants of the enclosing record.
15700 * i-cpp.ads, i-cpp.adb:
15701 This package has been left available for compatibility with previous
15702 versions of the frontend. As part of the new layout this is now a
15703 dummy package that uses declarations available at a-tags.ads
15705 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
15706 "constant access" and "aliased [constant] access" when not compiling
15708 Suppress Ada 2005 keyword warning if -gnatwY used
15709 (P_Identifier_Declarations): Add support for object declarations with
15710 access definitions.
15711 (Private_Extension_Declaration): Complete the documentation
15712 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
15713 attribute in case of private extension declaration
15714 (P_Type_Declaration): Mark as "abstract" the type declarations
15715 corresponding with protected, synchronized and task interfaces
15716 (P_Declarative_Items): "not" and "overriding" are overriding indicators
15717 for a subprogram or instance declaration.
15719 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
15720 instantiation that is a dispatching operation has controlling access
15721 parameters that are null excluding.
15722 Save and restore Ada_Version_Explicit, for implementation of AI-362
15723 (Validate_Derived_Type_Instance): Add check for abstract interface
15725 (Analyze_Formal_Package): Establish Instantiation source for the copy of
15726 the generic that is created to represent the formal package.
15727 (Analyze_Package_Instantiation): Instantiate body immediately if the
15728 package is a predefined unit that contains inlined subprograms, and
15729 we are compiling for a Configurable_Run_Time.
15730 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
15731 If the program has a null default, generate an empty body for it.
15733 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
15734 error message condition, null procedures are correctly detected now.
15735 (New_Overloaded_Entity): Bypass trivial overriding indicator check
15736 for subprograms in the context of protected types. Instead, the
15737 indicator is examined in Sem_Ch9 while analysing the subprogram
15739 (Check_Overriding_Indicator): Check consistency of overriding indicator
15740 on subprogram stubs as well.
15741 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
15743 (Analize_Subprogram_Specification): When analyzing a subprogram in which
15744 the type of the first formal is a concurrent type, replace this type
15745 by the corresponding record type.
15746 (Analyze_Subprogram_Body): Undo the previous work.
15747 (Analyze_Procedure_Call): If the call has the form Object.Op, the
15748 analysis of the prefix ends up analyzing the call itself, after which
15750 (Has_Interface_Formals): New subprogram subsidiary to analyze
15751 subprogram_specification that returns true if some non
15752 class-wide interface subprogram is found
15753 (New_Overloaded_Entity): Modified to give support to abstract
15755 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
15756 access to subprograms must be recursive.
15757 (Is_Unchecked_Conversion): Improve the test that recognizes
15758 instantiations of Unchecked_Conversion, and allows them in bodies that
15759 are to be inlined by the front-end. When the body comes from an
15760 instantiation, a reference to Unchecked_Conversion will be an
15761 Expanded_Name, even though the body has not been analyzed yet.
15762 Replace Is_Overriding and Not_Overriding in subprogram_indication with
15763 Must_Override and Must_Not_Override, to better express intent of AI.
15764 (Analyze_Subprogram_Body): If an overriding indicator is given, check
15765 that it is consistent with the overrinding status of the subprogram
15767 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
15769 If the subprogram is a null procedure, indicate that it does not need
15772 * sem_disp.adb (Check_Controlling_Type): Give support to entities
15773 available through limited-with clauses.
15774 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
15775 allowed as the last primitive of a tagged type if it has no previous
15777 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
15778 to give support to abstract interface types
15780 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
15781 in the case where the target type is an anonymous access type of an
15782 object or component (that is, when Is_Local_Anonymous_Access is true).
15783 Prevent the special checks for conversions of access discriminants in
15784 the case where the discriminant belongs to a nonlimited type, since
15785 such discriminants have their accessibility level defined in the same
15786 way as a normal component of an anonymous access type.
15787 (Resolve_Allocator): When an allocator's designated type is a class-wide
15788 type, check that the accessibility level of type given in the
15789 allocator's expression or subtype indication is not statically deeper
15790 than the level of the allocator's access type.
15791 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
15792 name in a discriminant constraint of a record component.
15793 (Resolve_Explicit_Dereference): Do not check whether the type is
15794 incomplete when the dereference is a use of an access discriminant in
15795 an initialization procedure.
15796 (Resolve_Type_Conversion): Handle conversions to abstract interface
15798 (Valid_Tagged_Conversion): The conversion of a tagged type to an
15799 abstract interface type is always valid.
15800 (Valid_Conversion): Modified to give support to abstract interface types
15801 (Resolve_Actuals): Enable full error reporting on view conversions
15802 between unrelated by_reference array types.
15803 The rule for view conversions of arrays with aliased components is
15804 weakened in Ada 2005.
15805 Call to obsolescent subprogram is now considered to be a violation of
15806 pragma Restrictions (No_Obsolescent_Features).
15807 (Check_Direct_Boolean_Operator): If the boolean operation has been
15808 constant-folded, there is nothing to check.
15809 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
15810 check on possible violation of restriction No_Direct_Boolean_Operators
15811 until after expansion of operands, to prevent spurious errors when
15812 operation is constant-folded.
15814 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
15815 Has_Compatible_Type): Modified to give support to abstract interface
15817 (Interface_Present_In_Ancestor): New function to theck if some ancestor
15818 of a given type implements a given interface
15820 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
15821 prefix is a parameterless function that returns an access_to_procedure.
15822 (Transform_Object_Operation): Handle properly function calls of the
15823 form Obj.Op (X), which prior to analysis appear as indexed components.
15824 (Analyze_One_Call): Complete the error notification to help new Ada
15826 (Analyze_Allocator): For an allocator without an initial value, where
15827 the designated type has a constrained partial view, a discriminant
15828 constraint is illegal.
15830 2005-06-14 Robert Dewar <dewar@adacore.com>
15832 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
15833 do with treatment of Set_Col when positioned at end of line character.
15835 2005-06-14 Robert Dewar <dewar@adacore.com>
15837 * atree.adb: (Elist*): Protect against uninitialized field
15839 2005-06-14 Ed Schonberg <schonberg@adacore.com>
15841 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
15842 for an attribute reference that returns an access type.
15843 (Apply_Discriminant_Check): No need for check if (designated) type has
15844 constrained partial view.
15846 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
15847 both bound checks, rather than a conjunction.
15848 (Insert_Valid_Check): If the expression is an actual that is an indexed
15849 component of a bit-packed array, force expansion of the packed element
15850 reference, because it is specifically inhibited elsewhere.
15852 2005-06-14 Vincent Celier <celier@adacore.com>
15854 * clean.adb (Clean_Project): Correctly delete executable specified as
15855 absolute path names.
15857 * make.adb (Gnatmake): Allow relative executable path names with
15858 directory information even when project files are used.
15859 (Change_To_Object_Directory): Fail gracefully when unable to change
15860 current working directory to object directory of a project.
15861 (Gnatmake): Remove exception handler that could no longer be exercized
15862 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
15863 may be deallocated by Normalize_Arguments.
15864 (Collect_Arguments): Eliminate empty arguments
15866 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
15867 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
15868 (Check_Project): Return False when Project is No_Project. Return True
15869 when All_Projects is True.
15870 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
15871 All_Projects to True.
15874 2005-06-14 Ed Schonberg <schonberg@adacore.com>
15875 Javier Miranda <miranda@adacore.com>
15876 Thomas Quinot <quinot@adacore.com>
15877 Robert Dewar <dewar@adacore.com>
15878 Hristian Kirtchev <kirtchev@adacore.com>
15879 Gary Dismukes <dismukes@adacore.com>
15881 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
15882 anonymous access types, to indicate that the accessibility level of
15883 the type is determined by that of the enclosing declaration.
15884 (Has_Persistent_BSS): New flag
15885 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
15886 of this attribute with functions.
15887 (Is_Primitive_Wrapper): Remove the barrier.
15888 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
15889 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
15891 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
15892 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
15894 (Is_Pure_Unit_Access_Type): New flag
15895 (Abstract_Interfaces): Complete the assertion to cover all usages.
15896 (Set_Is_Interface): Complete the assertion to cover all usages.
15897 (Is_Primitive_Wrapper): New attribute.
15898 (Is_Obsolescent): Now applies to all entities (though it is only set
15899 for subprograms currently)
15900 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
15901 which solves various problems concerning access subtypes.
15902 (Has_Persistent_BSS): New flag
15903 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
15904 Remove these subprograms because this attribute is currently
15907 Has_Specified_Stream_Input (Flag190)
15908 Has_Specified_Stream_Output (Flag191)
15909 Has_Specified_Stream_Read (Flag192)
15910 Has_Specified_Stream_Write (Flag193)
15911 Present in all type and subtype entities. Set for a given view if the
15912 corresponding stream-oriented attribute has been defined by an
15913 attribute definition clause. When such a clause occurs, a TSS is set
15914 on the underlying full view; the flags are used to track visibility of
15915 the attribute definition clause for partial or incomplete views.
15916 (Is_Pure_Unit_Access_Type): New flag
15917 Clarify use of Is_Internal.
15918 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
15919 internally generated to wrap the invocation of tasks and protected
15920 types that implement interfaces.
15921 (Implementation_Base_Type): Documentation correction
15922 (Is_Obsolescent): Now applies to all entities (though it is only set
15923 for subprograms currently)
15924 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
15925 which solves various problems concerning access subtypes.
15927 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
15928 for examined parameters. Identify unequal parameter list lengths as
15929 non-conformant parameters.
15930 (Overriding_Possible): Do not check for "All" qualifier in declaration
15931 of controlling access parameter, following prescription of AI-404.
15932 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
15933 that build the procedure body that wraps an entry invocation
15934 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
15935 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
15936 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
15937 give support to abstract interface types
15939 * freeze.adb (Freeze_Entity): Issue error message if
15940 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
15941 type has no storage pool (Ada 2005) AI-366.
15942 Also modified to give support to abstract interface types
15943 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
15944 Inline_Always pragma.
15946 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
15947 now begin an entry declaration.
15948 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
15949 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
15950 a subprogram declaration preceded by an overriding indicator.
15951 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
15952 declarations or subprogram declarations preceded by reserved words
15953 "not" or "overriding".
15954 (P_Entry_Declaration): Update comment. Parse and check overriding
15955 indicator, set semantic flags of entry declarations.
15956 (P_Task): New error message in case of private applied
15957 to a task type declaration.
15958 (P_Protected): New error message in case of private applied
15959 to a task type declaration.
15961 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
15962 in which the full view of a type implementing an interface is a
15964 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
15965 Declare_Inherited_Private_Subprograms): If an explicit operation
15966 overrides an operation that is inherited in the private part, mark the
15967 explicit one as overriding, to enable overriding indicator checks.
15968 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
15969 full view to partial view, to simplify handling in back-end.
15971 * sprint.adb: Print interface lists where needed: derived types,
15972 protected types, task types.
15973 output "is null" for null procedures. Part of implementation of
15975 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
15976 relaxation of rules for access types in pure, shared passive partitions.
15978 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
15979 first read discriminants into temporary objects, performing checks on
15980 the read values, then possibly performing discriminant checks on the
15981 actual (if it is constrained), and only finally reading the components
15982 into a constrained temporary object.
15983 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
15984 case of reading discriminants of a mutable record type to recognize
15985 the new form of the code generated by
15986 Build_Mutable_Record_Read_Procedure.
15988 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
15989 of a simple call to Make_TSS_Name.
15990 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
15991 buffer, in order for Is_TSS to work correctly on local TSS names.
15993 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
15994 Is_Local_Anonymous_Access to check legaliy of attributes in the
15995 context of access components and stand-alone access objects.
15996 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
15997 treated as available for a limited private type if there is an
15998 attribute_definition_clause that applies to its full view, but not in
15999 other cases where the attribute is available for the full view
16000 (specifically, the sole fact that the full view is non-limited does not
16001 make the attribute available for the partial view).
16002 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
16003 non-overloaded intrinsic subprogram.
16004 (Check_Stream_Attribute): Reject an attribute reference for an
16005 unavailable stream attribute even if the prefix is not a limited type
16006 (case of a 'Input attribute reference for an abstract, non-classwide
16008 (Stream_Attribute_Available): New function to determine whether a stream
16009 attribute is available at a place.
16010 (Check_Attribute): Use Stream_Attribute_Available instead of just
16011 testing for TSS presence on the implementation base type.
16012 (Analyze_Attribute): Modified to give support to task interfaces.
16013 (Analyze_Access_Attribute): Add error check for use of an Access (or
16014 Unrestricted_Access) attribute with a subprogram marked as
16016 (Analyze_Attribute, case Attribute_Address): Add error check for use of
16017 an Address attribute with a subprogram marked as Inline_Always.
16018 Update Eval_Attribute to handle new value of Width from AI-395
16020 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
16021 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
16022 Factor common code across the stream-oriented attribute circcuits into
16023 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
16024 processing is functionally identical to the previous duplicated one,
16025 except that an expression that denotes an abstract subprogram will now
16026 be rejected, as mandated by AI-195 item 5.
16028 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
16029 Is_Local_Anonymous_Access to apply accessibility checks to access
16030 components and stand-alone access objects.
16031 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
16033 (Is_Potentially_Persistent_Type): New function
16034 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
16035 a heap-object whose type has a constrained partial view, the object is
16036 unconstrained and the component may depend on a discriminant, making its
16039 * sinfo.ads, sinfo.adb
16040 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
16041 (Must_Override): Flag applicable to N_Entry_Declaration.
16042 Indicate that interface_list can appear in single task and single
16043 protected declarations.
16044 Replace Is_Overriding and Not_Overriding with Must_Override and
16045 Must_Not_Override, to better express intent of AI.
16046 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
16047 of an overriding indicator in a subprogram or instance.
16048 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
16049 Add the overriding indicator [[not] overriding] construct to the
16050 following grammar productions:
16052 GENERIC_INSTANTIATION
16053 SUBPROGRAM_SPECIFICATION
16055 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
16056 can start with an overriding indicator.
16058 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
16059 flags accordingly on subrogram specifications or instances.
16062 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
16063 overriding_indicator, if present, is consistent with status of spec.
16064 Improve error message for null-excluding checks on controlling access
16066 (Check_In_Previous_With_Clause): Protect the frontend against
16067 previously reported critical errors in the context clauses.
16068 Save and restore Ada_Version_Explicit, for implementation of AI-362
16069 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
16070 operation verify that controlling formals of the renamed entity that
16071 are access parameters are explicitly non-null.
16072 (Find_Expanded_Name): Improve error message when prefix is an illegal
16073 reference to a private child unit.
16075 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
16076 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
16077 Rewrite to correspond to new wide character names in AI-395
16079 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
16080 default procedures.
16082 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16083 Robert Dewar <dewar@adacore.com>
16085 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
16086 code, not on the bodies of predefined operations, to cut down on
16089 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16091 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
16092 be expanded in place. The size computation does not require a
16093 subtraction, which would raise an exception on a compiler built with
16094 assertions when the upper bound is Integer'first.
16095 (Flatten): For an array of composite components, take into account the
16096 size of the components to determine whether it is safe to expand the
16097 array into a purely positional representation.
16099 2005-06-14 Thomas Quinot <quinot@adacore.com>
16101 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
16102 denoting a formal parameter into account.
16104 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16106 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
16107 the entry_call alternative of a conditional entry call, wrap the
16108 conditional entry call itself.
16110 2005-06-14 Nicolas Setton <setton@adacore.com>
16111 Ed Schonberg <schonberg@adacore.com>
16113 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
16114 the "simple_choice" member in a variant record, in accordance with the
16115 description in the package spec: the information output for a constant
16116 should be "S number", not "SS number".
16117 (Get_Encoded_Name): Return at once if not generating code. Avoids name
16118 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
16120 2005-06-14 Thomas Quinot <quinot@adacore.com>
16122 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
16123 RACW without any primitives, do not generate the if statement for
16124 dispatching by name in the PolyORB/DSA case, as it would be malformed
16125 (it would have an Elsif_Parts list that is not No_List, but with a
16128 2005-06-14 Robert Dewar <dewar@adacore.com>
16130 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
16132 2005-06-14 Jose Ruiz <ruiz@adacore.com>
16134 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
16135 can determine whether pragma Suppress_Exception_Locations is in effect.
16137 * utils2.c (build_call_raise): Do not pass the file name to the
16138 exception handler if pragma Suppress_Exception_Locations is in effect.
16139 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
16141 2005-06-14 Emmanuel Briot <briot@adacore.com>
16143 * g-debpoo.adb (Deallocate, Dereference): Improve output.
16145 2005-06-14 Nicolas Roche <roche@adacore.com>
16147 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
16149 (Next_Level): Fix minor bug in handling of ../dir case
16150 (Read): Add dir separator to Directory name so that "" is understood as
16153 2005-06-14 Pascal Obry <obry@adacore.com>
16155 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
16156 releasing the items.
16158 2005-06-14 Vincent Celier <celier@adacore.com>
16159 Cyrille Comar <comar@adacore.com>
16161 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
16162 with output file descriptor and with output file name.
16163 (Dup, Dup2): Now global procedures as they are used by two subprograms
16164 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
16166 2005-06-14 Thomas Quinot <quinot@adacore.com>
16169 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
16171 (Create_Selector): Bind listening socket used to create the signalling
16172 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
16173 Set listen backlog to 1 to ensure that we detect socket theft by a
16174 failure of our own connect(2) call.
16175 (Check_Selector): Improve documentation of the selector mechanism.
16176 (Broadcast_Inet_Addr): New constant.
16178 2005-06-14 Gary Dismukes <dismukes@adacore.com>
16180 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
16181 type which turns out to be an incomplete and incorrect fix.
16182 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
16183 of the type is declared in a record (for determination of insertion
16185 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
16186 a private type and ensure that the primary entity is used for the type
16187 of the newly created function's V formal by taking the Etype of the
16190 2005-06-14 Javier Miranda <miranda@adacore.com>
16191 Jose Ruiz <ruiz@adacore.com>
16192 Robert Dewar <dewar@adacore.com>
16193 Ed Schonberg <schonberg@adacore.com>
16195 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
16196 that indicates if we are parsing a compilation unit found in a
16197 limited-with clause.
16198 It is use to avoid the circularity check.
16200 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
16201 we are parsing a compilation unit found in a limited-with clause. This
16202 is use to avoid the circularity check.
16204 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
16205 unit as a consequence of parsing a limited-with clause. This is used
16206 to avoid the circularity check.
16208 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
16209 (Analyze_Context): Limited-with clauses are now allowed
16210 in more compilation units.
16211 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
16212 againts previously reported critical errors in context clauses
16213 (Install_Limited_Withed_Unit): Code cleanup plus static detection
16214 of two further errors: renamed subprograms and renamed packages
16215 are not allowed in limited with clauses.
16216 (Install_Siblings): Do not install private_with_clauses on the package
16217 declaration for a non-private child unit.
16218 (Re_Install_Parents): When a parent of the subunit is reinstalled,
16219 reset visibility of child units properly.
16220 (Install_Withed_Unit): When a child unit appears in a with_clause of its
16221 parent, it is immediately visible.
16223 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16224 Emmanuel Briot <briot@adacore.com>
16226 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
16227 declared within an inlined body as referenced, to prevent spurious
16229 (Output_One_Ref): If an entity renames an array component, indicate in
16230 the ALI file that this aliases (renames) the array. Capture as well
16231 function renamings that rename predefined operations.
16232 Add information about generic parent for package and subprogram
16234 (Get_Type_Reference): For a subtype that is the renaming of an actual in
16235 an instantiation, use the first_subtype to ensure that we don't generate
16236 cross-reference information for internal types.
16237 For objects and parameters of a generic private type, retain the '*'
16238 indicator to distinguish such an entity from its type.
16240 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
16241 to store information about instantiated entities.
16243 * ali.adb (Scan_ALI): Add support for parsing the reference to the
16246 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
16247 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
16250 2005-06-10 Doug Rupp <rupp@adacore.com>
16251 Arnaud Charlet <charlet@adacore.com>
16252 Olivier Hainque <hainque@adacore.com>
16253 Jose Ruiz <ruiz@adacore.com>
16255 * Make-lang.in: Add initialize.o when needed.
16256 Remove obsolete references to RT_FLAGS.
16257 Add missing dependencies for sdefault.o
16259 * initialize.c: New file.
16261 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
16262 [VMS] cond_signal_table: Fix problem in declaration.
16263 [VMS] __gnat_error_handler: rewrite.
16264 Move all __gnat_initialize() routines to initialize.c
16265 Specialize the former "hpux" section to "hppa hpux", as this is what the
16266 section really is here for and we now have other hpux ports that need
16267 different contents.
16268 (__gnat_adjust_context_for_raise) i386-linux: First version of this
16269 function for this target. Adjust PC by one in the machine context. This
16270 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
16271 it is more reliable to do that in the signal handler itself.
16272 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
16273 flags, so that the handler is passed the context structure to adjust
16274 prior to the raise.
16275 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
16276 SA_SIGINFO sigaction should look like. Call
16277 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
16278 Machine_State_Operations stuff.
16279 Add conditional code so that the x86_64 is also supported.
16281 2005-06-14 Pascal Obry <obry@adacore.com>
16283 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
16286 2005-06-14 Robert Dewar <dewar@adacore.com>
16288 * opt.ads, opt.adb: New flags for persistent_bss mode
16289 Add Ada_Version_Explicit, for implementation of AI-362
16290 Add Assertions_Enabled_Config and associated handling
16291 Needed since setting can be changed with Assertion_Policy pragma
16292 Add new flag Warn_On_Ada_2005_Compatibility
16294 * switch-c.adb: Recognize -gnatwy/Y
16295 Set Ada_Version_Explicit, for implementation of AI-362
16296 The -gnatg switch now includes -gnatyu
16298 * usage.adb: Add -gnatwy/Y
16299 Remove wrong asterisk on -gnatwX line
16300 Add line for -gnatyu switch
16302 2005-06-14 Vincent Celier <celier@adacore.com>
16304 * osint.adb (Add_Default_Search_Dirs): Put source and object
16305 directories of project files before directories coming from
16306 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
16308 2005-06-14 Robert Dewar <dewar@adacore.com>
16311 * par-ch2.adb (Scan_Pragma_Argument): New procedure
16312 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
16314 2005-06-14 Vincent Celier <celier@adacore.com>
16316 * prep.adb (Preprocess): Ignore error when scanning the first token of
16319 2005-06-14 Vincent Celier <celier@adacore.com>
16321 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
16322 (Check_Stand_Alone_Library): If the specified reference symbol file does
16323 not exist, only issue a warning when the symbol policy is not
16324 Controlled. And, when symbol policy is Compliant, set the symbol
16325 policy to Autonomous.
16327 2005-06-14 Vincent Celier <celier@adacore.com>
16329 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
16330 when the project file in a with clause is not the last one, that is the
16331 project file name is followed by a comma.
16332 * prj-pp.adb: (First_With_In_List): New Boolean global variable
16333 (Print): Issue list of project files separated by commas in with clauses
16334 according to the values returned by Is_Not_Last_In_List.
16335 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
16336 (Set_Is_Not_Last_In_List): New procedure
16338 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
16340 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
16342 2005-06-14 Robert Dewar <dewar@adacore.com>
16344 * scng.adb: Add call to new Check_EOF routine
16345 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
16346 Add some comments regarding wide character handling
16348 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
16350 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
16352 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
16353 characters are now considered graphic characters and hence yield false
16356 * nmake.adt: Modify header so that xnmake does not generate output
16357 files with multiple blank lines.
16359 * treeprs.adt: Remove a blank line so that output from xtreeprs does
16360 not have an extra blank line
16362 2005-06-14 Gary Dismukes <dismukes@adacore.com>
16364 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
16365 expression when the component type is an anonymous access type to
16366 ensure that appropriate accessibility checks are done.
16368 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
16369 expression of an assignment when the target object is of an anonymous
16370 access type. This ensures that required accessibility checks are done.
16371 (One_Bound): Move the check for type Universal_Integer to
16373 (Process_Bounds): Check whether the type of the preanalyzed range is
16374 Universal_Integer, and in that case set Typ to Integer_Type prior
16375 to setting the type of the original range and the calls to One_Bound.
16377 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16379 * sem_case.adb (Expand_Others_Choice): Improve warning.
16381 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16383 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
16384 constraint of full view if present, when other type is discriminated.
16385 (Eval_Relational_Op): Recognize tests of pointer values against Null,
16386 when the pointer is known to be non-null, and emit appropriate warning.
16388 2005-06-14 Robert Dewar <dewar@adacore.com>
16389 Ed Schonberg <schonberg@adacore.com>
16392 * sem_prag.adb: Implement pragma Persistent_BSS
16393 Remove obsolete pragma Persistent_Data, Persistent_Object
16394 Set Ada_Version_Explicit, for implementation of AI-362
16395 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
16396 Add processing for pragma Pure_05 and Preelaborate_05
16397 Add processing for Assertion_Policy pragma
16398 Add pragma identifiers for Assert
16399 (Analyze_Pragma, case Assert): Check number of arguments
16400 (Process_Inline): Additional guard against an illegal program, where the
16401 argument of the pragma is undefined, and warnings on redundant
16402 constructs are enabled.
16403 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
16404 Ada_05 to this pragma, specifying that the pragma is only active in
16406 (Check_Arg_Order): New procedure
16407 Add appropriate calls to this procedure throughout
16408 Also throughout, check entity name before doing any other checks
16410 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
16411 Remove obsolete pragma Persistent_Data, Persistent_Object
16412 Add entries for pragma Pure_05 and Preelaborate_05
16413 Add entries for Assertion_Policy pragma and associated names
16414 Add some names for pragma argument processing
16416 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
16418 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16420 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
16421 appears within a negation (either from source or as a rewriting of
16422 inequality) adjust text of warning accordingly.
16424 2005-06-14 Thomas Quinot <quinot@adacore.com>
16426 * s-strxdr.adb: Follow AI95-00132
16428 2005-06-14 Arnaud Charlet <charlet@adacore.com>
16430 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
16432 2005-06-14 Arnaud Charlet <charlet@adacore.com>
16433 Jose Ruiz <ruiz@adacore.com>
16435 * s-tposen.adb, s-tpobop.adb
16436 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
16438 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
16439 there is no violation of the Max_Entry_Queue_Length restriction (if it
16440 has been set); Program_Error is raised otherwise.
16441 (Requeue_Call): Before requeuing the task on the target entry queue we
16442 check that there is no violation of the Max_Entry_Queue_Length
16443 restriction (if it has been set); Program_Error is raised otherwise.
16445 2005-06-14 Robert Dewar <dewar@adacore.com>
16447 * styleg.adb: Fix several remaining problems in -gnatyu switch
16448 Blank line count not reset at start
16449 Scanning outside source buffer in some cases
16450 Confusing message for blanks at end of file
16451 Non-empty blank lines not recognized
16453 * nmake.adt: Modify header so that xnmake does not generate output
16454 files with multiple blank lines.
16456 * treeprs.adt: Remove a blank line so that output from xtreeprs does
16457 not have an extra blank line
16459 2005-06-14 Sergey Rybin <rybin@adacore.com>
16461 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
16463 2005-06-14 Doug Rupp <rupp@adacore.com>
16464 Vincent Celier <celier@adacore.com>
16466 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
16469 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
16470 Remove "Library" command.
16471 Change keyword for style check -gnatyd from NOCRLF to
16473 Remove useless second style check keyword NONE
16474 Remove help documentation for inexistent style check keyword
16476 Add help documentation for style check keywords DOS_LINE_ENDINGS,
16477 UNNECESSARY_BLANK_LINES and XTRA_PARENS
16478 Add UNNECESSARY_BLANK_LINES for -gnatyu
16479 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
16481 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
16483 2005-06-14 Vincent Celier <celier@adacore.com>
16485 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
16486 gprmake was invoked with -d.
16487 (Compile_Sources): If -d was used, output the "completed ..." message
16488 for each compilation.
16489 (Scan_Arg): Recognize new switch -d
16490 When -c and at least one main is specified, set
16491 Unique_Compile to True to guarantee that no other sources will be
16494 2005-06-14 Matthew Heaney <heaney@adacore.com>
16496 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
16497 * a-swuwha.ads, a-swuwha.adb: New files
16499 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
16500 * a-szuzha.ads, a-szuzha.adb: New files.
16502 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
16503 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
16504 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
16505 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
16506 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
16507 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
16508 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
16509 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
16510 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
16511 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
16514 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
16515 Olivier Hainque <hainque@adacore.com>
16516 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16517 Pascal Obry <obry@adacore.com>
16519 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
16521 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
16522 making a temporary around a procedure call because of non-addressable
16524 (process_freeze_entity): If entity is a private type, capture size
16525 information that may have been computed for the full view.
16526 (tree_transform, case N_Allocator): If have initializing expression,
16527 check type for Has_Constrained_Partial_View and pass that to
16529 (tree_transform, case N_Return_Statement): Pass extra arg to
16532 * decl.c (annotate_value): Remove early return if -gnatR is not
16534 (gnat_to_gnu_field): Don't make a packable type for a component clause
16535 if the position is byte aligned, the field is aliased, and the clause
16536 size isn't a multiple of the packable alignment. It serves no useful
16537 purpose packing-wise and would be rejected later on.
16538 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
16541 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
16542 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
16544 (create_concat_name): Idem.
16546 2005-06-10 Robert Dewar <dewar@adacore.com>
16547 Eric Botcazou <ebotcazou@adacore.com>
16548 Ben Brosgol <brosgol@adacore.com>
16549 Cyrille Comar <comar@adacore.com>
16550 Sergey Rybin <rybin@adacore.com>
16551 Pascal Obry <obry@adacore.com>
16553 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
16554 Document second argument (Ada_05) of pragma Obsolescent
16555 Add note that call to subprogram marked with pragma Obsolescent
16556 is now considered to be a violation of program Restrictions
16557 (No_Obsolescent_Features).
16558 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
16559 that only machine-dependent attributes are supported.
16562 Commented out menu lines and empty section for gnatclean examples
16564 Fix some over long lines
16565 Clarify and enhance documentation of ADA_PROJECT_PATH.
16566 Rework section 2.11.2(3) about linking with a non-GNU compiler.
16567 Mention new switch -fcallgraph-info.
16568 Mention new switch -fstack-usage.
16569 For gnatpp, replace '-notab' with '-N' and add this option to Index
16570 Corrected VMS example.
16571 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
16573 Add documentation for -gnatyu switch (unnecessary blank lines)
16574 Document new switch -U for GNAT PRETTY and GNAT METRIC
16575 Add note about Stdcall being handled as C convention on non Windows OS.
16576 Remove some junk typo in description of gnatbind -S switch
16577 Remove reference to Extensions_Allowed pragma
16578 Document the new order of the directories to be searched (source and
16579 object directories of project files before directories in ADA_*_PATH
16580 environment variables.
16582 * g-trasym.ads: Document that IRIX is supported
16584 2005-06-10 Arnaud Charlet <charlet@adacore.com>
16586 * Makefile.in: Add initialize.o when needed.
16587 Adapt to new VMS package body Symbols and subunits
16588 No specialized version of a-sytaco is needed for VxWorks.
16590 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
16591 * a-zchara.ads, a-widcha.ads: New files.
16593 * system-hpux-ia64.ads: New file.
16595 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
16596 is imported from the VxWorks kernel.
16598 2005-06-14 Robert Dewar <dewar@adacore.com>
16600 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
16601 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
16602 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
16603 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
16604 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
16605 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
16606 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
16607 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
16608 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
16609 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
16610 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
16611 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
16613 2005-06-14 Thomas Quinot <quinot@adacore.com>
16615 * xeinfo.adb: Fix typo in comment
16617 2005-06-14 Javier Miranda <miranda@adacore.com>
16619 * repinfo.ads: Fix typo in comment
16621 2005-06-14 Gary Dismukes <dismukes@adacore.com>
16623 * s-finimp.adb (Parent_Tag): Delete this imported function (function
16624 Parent_Tag is now in the visible part of Ada.Tags).
16625 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
16626 using imported function.
16628 2005-06-14 Bernard Banner <banner@adacore.com>
16630 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
16631 also apply for handling support for VxSim 653.
16633 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
16635 * xsnames.adb: Add automatic generation of snames.h.
16637 2005-06-14 Thomas Quinot <quinot@adacore.com>
16639 * gen-soccon.c: Add IP_MULTICAST_IF constant
16640 Minor reformatting and adjustments to prevent warnings.
16642 2005-06-14 Pascal Obry <obry@adacore.com>
16644 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
16646 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
16648 * trans.c (gnat_gimplify_expr): Call
16649 recompute_tree_invarant_for_addr_expr when we change
16650 the operand of the ADDR_EXPR.
16652 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16654 * misc.c: Don't include errors.h.
16656 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16658 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
16660 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
16662 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
16664 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
16666 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
16669 * Makefile.in: Make TGT_LIB behave correctly.
16671 2005-04-23 DJ Delorie <dj@redhat.com>
16673 * misc.c: Adjust warning() callers.
16675 2005-04-16 Laurent GUERBY <laurent@guerby.net>
16678 * a-nudira.adb (Value): Check for valid string.
16679 * a-nuflra.adb (Value): Likewise.
16681 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
16683 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
16685 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
16687 * adaint.c, init.c, tracebak.c: Fix comment typos.
16688 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
16690 2005-04-07 Laurent GUERBY <laurent@guerby.net>
16691 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16693 * Makefile.in: Add make ifeq define for hppa linux tasking support.
16694 * system-hpux.ads: Define Signed_Zeros to be True.
16695 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
16697 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
16699 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
16700 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
16703 2005-03-30 Tom Tromey <tromey@redhat.com>
16705 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
16707 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
16709 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
16711 2005-03-29 Robert Dewar <dewar@adacore.com>
16713 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
16714 fixed-point expression has value that is not a multiple of the Small
16717 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
16719 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
16722 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
16724 2005-03-29 Vincent Celier <celier@adacore.com>
16726 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
16727 (Build_Dynamic_Library.Version_String): Return the empty string when
16728 Lib_Version is empty or when the symbol policy is not Autonomous.
16730 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
16731 a symbol is not in the reference symbol file, increase the Major ID
16732 and set the Minor ID to 0.
16733 Use gsmatch=lequal instead of gsmatch=equal
16735 2005-03-29 Doug Rupp <rupp@adacore.com>
16737 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
16738 name and translate.
16740 2005-03-29 Javier Miranda <miranda@adacore.com>
16742 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
16743 (Inherit_DT): The first formal has been redefined as a Tag.
16744 This allows us the removal of the subprogram Get_TSD.
16745 (TSD): Replace the call to Get_TSD by the actual code.
16747 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
16748 (Make_DT): Upgrade the call to Inherit_TSD according to the
16749 new interface: the first formal is now a Tag.
16751 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
16752 redefined as a Tag.
16753 This change allows us to remove the subprogram Get_TSD.
16754 (CPP_Get_TSD): Subprogram removed.
16755 (TSD): Replace the call to CPP_Get_TSD by the actual code.
16757 * rtsfind.ads: Remove support to call the run-time
16760 2005-03-29 Robert Dewar <dewar@adacore.com>
16762 * errutil.adb, errout.adb:
16763 Minor comment updates on Line_Terminator references
16765 * par-ch10.adb: Add ??? comment about line terminator
16767 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
16768 (check dos line terminator).
16769 (Check_Line_Max_Length): New procedure, split off from the existing
16770 Check_Line_Terminator routine. Separating this out allows -gnatyf to
16771 be properly recognized.
16773 * styleg.adb: Add ??? comment for line terminator reference
16775 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
16776 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
16778 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
16779 (check dos line terminator).
16780 (Check_Line_Max_Length): New procedure, split off from the existing
16781 Check_Line_Terminator routine. Separating this out allows -gnatyf to
16782 be properly recognized.
16784 * stylesw.ads, stylesw.adb:
16785 Add handling for new -gnatyd switch (check dos line terminator)
16787 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
16788 Recognize -gnatwb/-gnatwB switches
16789 Include Warn_On_Bad_Fixed_Value for -gnatg
16792 Add line for new -gnatyd switch (check dos line terminator)
16794 * usage.adb: Add lines for -gnatwb/-gnatwB
16796 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
16798 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
16800 * gnat_ugn.texi: Fix overlong lines
16801 Document new -gnatyd switch
16802 Document new -gnatwb/-gnatwB switches
16804 2005-03-29 Ed Schonberg <schonberg@adacore.com>
16806 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
16807 order to retrieve the component list of the type, before examining
16808 individual components.
16810 * sem_type.adb (Covers): Types are compatible if one is the base type
16811 of the other, even though their base types might differ when private
16812 views are involved.
16814 2005-03-29 Thomas Quinot <quinot@adacore.com>
16816 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
16817 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
16818 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
16819 analyzed if expansion is disabled (which could otherwise cause spurious
16820 error messages if expansion has been disabled due to previous
16821 (unrelated) errors).
16823 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
16824 is disabled, the entity denoted by the argument is the access type
16825 itself, not an underlying record type, so there is no need to go back
16826 to the Corresponding_Remote_Type.
16828 2005-03-29 Gary Dismukes <dismukes@adacore.com>
16829 Robert Dewar <dewar@adacore.com>
16831 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
16832 expand a call to an instance of
16833 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
16834 Constructor actual of the instance. A class-wide membership
16835 check is also generated, to ensure that the tag passed to the instance
16836 denotes a type in the class.
16837 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
16838 of Name_Generic_Dispatching_Constructor.
16840 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
16841 05 unit for AI-260-02).
16843 * a-tgdico.ads: New file.
16845 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
16846 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
16848 * snames.ads, snames.adb (Preset_Names): Add entry for
16849 Generic_Dispatching_Constructor.
16852 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
16853 character type cases.
16854 (Analyze_Subprogram_Renaming): Add special handling for
16855 the case of renaming of stream attributes when the renaming denotes a
16856 generic formal subprogram association for an abstract formal subprogram.
16857 Check that the attribute is a primitive stream attribute (and not
16858 a class-wide stream attribute) and then rewrite the attribute name
16859 as the name of the appropriate compiler-generated stream primitive.
16861 2005-03-29 Robert Dewar <dewar@adacore.com>
16863 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
16865 (Is_Possibly_Unaligned_Object): Correct typo that
16866 resulted in inaccurate result for unaligned scalars within records.
16868 2005-03-29 Ed Schonberg <schonberg@adacore.com>
16870 * freeze.adb (Freeze_Record_Type): If the type of the component is an
16871 itype whose parent is controlled and not yet frozen, do not create a
16872 freeze node for the itype if expansion is disabled.
16874 2005-03-29 Vincent Celier <celier@adacore.com>
16876 * make.adb (Gnatmake): Don't fail if the main project file is declared
16877 as having no Ada sources. Do not display message "no sources to
16878 compile" in quiet output.
16880 2005-03-29 Doug Rupp <rupp@adacore.com>
16882 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
16885 2005-03-29 Robert Dewar <dewar@adacore.com>
16887 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
16890 2005-03-29 Robert Dewar <dewar@adacore.com>
16892 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
16893 missing TYPE Improve the error message generated when compiling a
16894 limited interface in Ada83 or Ada95 mode.
16896 2005-03-29 Robert Dewar <dewar@adacore.com>
16898 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
16899 rather than proceed ahead using a junk attribute name.
16901 2005-03-29 Vincent Celier <celier@adacore.com>
16903 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
16905 * prj-part.adb (Parse_Single_Project): Set the location of a project
16906 on its defining identifier, rather than on the reserved word "project".
16908 * prj-proc.adb (Expression): Adapt to the fact that default of external
16909 references may be string expressions, not always literal strings.
16910 (Recursive_Process): Set Display_Name equal to Name
16911 when Location is No_Location, that is when there is no actual file.
16912 Get the Display_Name of the project from the source, when it is not a
16914 (Process): Use the Display_Name in error messages
16916 * prj-strt.adb (External_Reference): Allow default to be string
16917 expressions, not only literal strings.
16919 2005-03-29 Vincent Celier <celier@adacore.com>
16921 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
16922 file and the reference symbol file to be the same file.
16924 2005-03-29 Thomas Quinot <quinot@adacore.com>
16926 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
16927 forbid conversion of a local access-to-subprogram type to a remote one.
16929 * sem_util.adb (Wrong_Type): For a record type that is the expanded
16930 equivalent type for a remote access-to-subprogram type, go back to the
16931 original RAS entity when displaying an error message, so the casing is
16932 the original source casing.
16934 2005-03-29 Robert Dewar <dewar@adacore.com>
16936 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
16939 2005-03-29 Ed Schonberg <schonberg@adacore.com>
16941 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
16942 subtype if code is being pre-analyzed, to prevent un-expanded
16943 references to protected formals, among others.
16944 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
16945 interpretation that can be a call, include the result of the call as a
16946 possible interpretation of the dereference.
16948 * sem_ch5.adb (Process_Bounds): Determine type of range by
16949 pre-analyzing a copy of the original range, and then analyze the range
16950 with the expected type.
16952 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
16953 with an overloaded prefix where not all interpretations yield an
16954 access to subprogram, do not rewrite node as a call.
16955 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
16956 the node as a call once the context identifies the interpretation of
16957 the prefix whose call yields the context type.
16958 (Valid_Conversion): For the case of a conversion between
16959 local access-to-subprogram types, check subtype conformance using
16960 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
16961 detailed error message.
16963 2005-03-29 Ed Schonberg <schonberg@adacore.com>
16965 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
16966 indicator, indicate that the formal can never be null.
16967 (Process_Formals): If a formal has a non_null indicator, insert the
16968 resulting subtype immediately before the enclosing subprogram decl,
16969 and not at the beginning of the corresponding declarative part, to
16970 prevent access before elaboration (Ada2005).
16972 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16975 * utils.c (finish_record_type): Use variable_size when setting sizes.
16977 2005-03-29 Robert Dewar <dewar@adacore.com>
16979 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
16980 guarantee Unix style line terminators for the output files, even when
16981 running on windows.
16983 2005-03-29 Robert Dewar <dewar@adacore.com>
16985 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
16986 buffer if an exception is raised.
16988 2005-03-29 Ed Falis <falis@adacore.com>
16990 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
16993 2005-03-29 Robert Dewar <dewar@adacore.com>
16995 * sem_util.ads: Minor reformatting
16996 * gnat_rm.texi: Minor editing.
16998 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
17000 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
17001 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
17003 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
17005 * adaint.c (__gnat_portable_spawn): Adjust cast.
17007 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
17009 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
17011 2005-03-17 Pascal Obry <obry@adacore.com>
17013 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
17016 * expect.c (__gnat_waitpid): Moved here from adaint.c.
17017 Reimplement under Win32 using Win32 API.
17019 (__gnat_kill) [Win32]: Properly close the process handle before leaving
17022 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
17024 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
17025 (DECL_RENAMED_OBJECT): New accessor macro.
17026 (SET_DECL_RENAMED_OBJECT): New setter macro.
17028 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
17029 object in all cases. Attach the renamed object to the VAR_DECL.
17030 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
17031 field is not prescribed.
17033 * misc.c (gnat_handle_option): Handle -gnatO separately.
17034 (gnat_print_decl) <VAR_DECL>: New case.
17035 Print the DECL_RENAMED_OBJECT node.
17037 * lang.opt: Declare separate -gnatO option.
17039 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
17040 pointer, replace it with the renamed object.
17041 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
17042 pointer type if the source is not a fat pointer type whose underlying
17043 array has the same non-zero alias set as that of the destination array.
17045 2005-03-17 Javier Miranda <miranda@adacore.com>
17047 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
17048 (Get_Inheritance_Depth): Removed.
17049 (Set_Inheritance_Depth): Removed.
17051 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
17052 subprogram Get_Expanded_Name because it is not referenced by the
17055 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
17056 (CPP_Get_Inheritance_Depth): Removed.
17057 (CPP_Set_Inheritance_Depth): Removed.
17059 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
17061 2005-03-17 Robert Dewar <dewar@adacore.com>
17063 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
17064 3, since we now expect GCC 3 to do all the work.
17066 2005-03-17 Javier Miranda <miranda@adacore.com>
17068 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
17069 of one barrier to avoid wrong usage of this attribute.
17071 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
17072 First_Private_Entity.
17074 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
17075 the subprogram against wrong usage.
17076 Adapt the code to traverse the entities in the
17077 scope of a record_type because in addition to its usage regarding
17078 packages, this subprogram is also called by Expand_N_Freeze_Entity
17079 to install the visible declarations of the enclosing scope of a
17080 record_type_with_private to establish the proper visibility before
17081 freezing the entity and related subprograms.
17083 2005-03-17 Ed Schonberg <schonberg@adacore.com>
17085 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
17088 2005-03-17 Thomas Quinot <quinot@adacore.com>
17090 * exp_ch3.adb (Check_Attr): New subprogram.
17091 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
17092 into a new Check_Attr subprogram, in order to provide a more
17093 explanatory error message (including the name of the missing attribute).
17094 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
17095 subprogram determines whether a default implementation exists for a
17096 given stream attribute.
17097 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
17098 Determine whether to generate a default implementation for each stream
17099 attribute separately, as this depends on the specific attribute.
17101 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
17102 limited extension where a stream attribute is missing for a limited
17103 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
17104 generate a bogus reference to the missing attribute to prevent
17105 cascaded errors. Instead, generate a null statement.
17107 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
17108 available for a limited type if it has been specified for an ancestor
17111 2005-03-17 Ed Schonberg <schonberg@adacore.com>
17113 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
17114 entity is an operator.
17116 2005-03-17 Thomas Quinot <quinot@adacore.com>
17118 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
17119 spec, to make this predicate available to other units.
17121 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
17124 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
17125 when no distribution runtime library is available.
17127 * sem_res.adb, sem_dist.adb: Disable expansion of remote
17128 access-to-subprogram types when no distribution runtime library is
17130 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
17131 predicate available to other units.
17133 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
17134 spec, to make this predicate available to other units.
17136 2005-03-17 Vincent Celier <celier@adacore.com>
17138 * make.adb (Insert_Project_Sources): Make sure the Q is always
17141 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
17142 the default for the tree, not the global default naming.
17144 * prj-proc.adb (Recursive_Process): No need to put the default naming
17145 in the project data, it's already there.
17147 2005-03-17 Doug Rupp <rupp@adacore.com>
17149 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
17151 * 5xcrtl.ads: Renamed to...
17152 * s-crtl-vms64.ads: ...this new file
17154 2005-03-17 Robert Dewar <dewar@adacore.com>
17157 * namet.adb (Copy_One_Character): Set proper wide character encoding
17158 for upper half character if we have upper half encoding.
17160 2005-03-17 Robert Dewar <dewar@adacore.com>
17162 * par.adb (Par): Improved msg for attempt to recompile predefined unit
17164 2005-03-17 Thomas Quinot <quinot@adacore.com>
17166 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
17167 tagged limited type, the TSS is a newly built renaming declaration:
17168 insert it using Set_TSS, not Copy_TSS.
17170 2005-03-17 Javier Miranda <miranda@adacore.com>
17172 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
17173 Try_Object_Operation): Analyze the object that is accessible
17174 through the prefix of the subprogram call before we apply
17175 the transformation of the object-operation notation.
17177 2005-03-17 Jose Ruiz <ruiz@adacore.com>
17179 * s-taprob.adb (Initialize_Protection): Initialize the protected
17180 object's owner to Null_Task.
17181 (Lock): If pragma Detect_Blocking is in effect and the caller of this
17182 procedure is already the protected object's owner then Program_Error
17183 is raised. In addition the protected object's owner is updated.
17184 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
17185 of this procedure is already the protected object's owner then
17186 Program_Error is raised.
17187 In addition the protected object's owner is updated.
17188 (Unlock): Remove the ownership of the protected object.
17190 * s-taprob.ads (Protection): Add the field Owner, used to store the
17191 protected object's owner.
17192 This component is needed for detecting one type of potentially blocking
17193 operations (external calls on a protected subprogram with the same
17194 target object as that of the protected action). Document the rest of
17197 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
17198 Initialize the protected object's owner to Null_Task.
17199 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
17200 caller of this procedure is already the protected object's owner then
17201 Program_Error is raised.
17202 Do not raise Program_Error when this procedure is called from a
17204 (Unlock_Entries): Remove the ownership of the protected object.
17205 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
17206 of this procedure is already the protected object's owner then
17207 Program_Error is raised.
17208 Do not raise Program_Error when this procedure is called from
17209 a protected action.
17211 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
17212 used to store the protected object's owner.
17214 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
17215 effect and this procedure (a potentially blocking operation) is called
17216 from whithin a protected action, Program_Error is raised.
17217 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
17218 and this procedure (a potentially blocking operation) is called from
17219 whithin a protected action, Program_Error is raised.
17221 2005-03-17 Vincent Celier <celier@adacore.com>
17222 Nicolas Setton <setton@adacore.com>
17224 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
17225 switch, not supported by the linker on Darwin. Add '_' before
17226 <library>init, as this character is added unconditionally by the
17228 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
17229 correct one ".dylib". This fixes detection of the archive files when
17230 building library projects.
17232 2005-03-17 Vincent Celier <celier@adacore.com>
17234 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
17235 -gnat83, -gnat95 and -gnat05.
17237 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
17239 * gnat_ugn.texi: Document gnatmem restriction
17241 2005-03-17 Thomas Quinot <quinot@adacore.com>
17243 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
17246 2005-03-17 Robert Dewar <dewar@adacore.com>
17248 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
17249 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
17250 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
17252 * casing.adb: Comment improvements
17254 2005-03-17 Pascal Obry <obry@adacore.com>
17256 * g-expect.adb: Minor reformatting.
17258 2005-03-15 Zack Weinberg <zack@codesourcery.com>
17260 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
17261 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
17264 2005-03-15 Vincent Celier <celier@adacore.com>
17266 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
17267 Add new parameter In_Tree to specify the project tree: needed
17268 by the project manager. Adapt to changes in project manager
17269 using new parameter In_Tree.
17271 2005-03-15 Jakub Jelinek <jakub@redhat.com>
17273 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
17274 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
17275 ada/bldtools to avoid make -jN failures.
17277 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
17279 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
17280 to NULL_TREE on entry.
17282 2005-03-15 Robert Dewar <dewar@adacore.com>
17284 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
17285 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
17286 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
17287 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
17288 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
17289 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
17290 system-interix.ads, system-solaris-sparc.ads,
17291 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
17292 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
17293 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
17294 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
17295 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
17296 Compiler_System_Version to be False.
17298 * opt.ads: Add new flag Opt.Address_Is_Private
17300 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
17301 Add new parameter Compiler_System_Version to avoid checking for
17302 completeness of parameters when compiler is compiling itself.
17303 Allows old versions of GNAT to be compiled with new compiler.
17305 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
17307 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
17308 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
17310 (Stack_Base_Available): New flag.
17311 (Get_Page_Size): New overloaded functions imported from C.
17312 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
17313 PROT_ON, PROT_OFF): New constants.
17314 (mprotect): New function imported from C.
17315 (pthread_teb_t): New record type.
17317 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
17318 (Create_Task): Account for the Yellow Zone and the guard page.
17320 2005-03-15 Vincent Celier <celier@adacore.com>
17322 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
17323 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
17324 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
17325 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
17326 Library_File_Name_For): Add new parameter In_Tree
17327 to specify the project tree: needed by the project manager.
17328 Adapt to changes in project manager using new parameter In_Tree.
17329 Remove local imports, use functions in System.CRTL.
17331 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
17332 to use the project manager.
17334 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
17335 In_Tree to designate the project tree. Adapt to changes in the project
17336 manager, using In_Tree.
17338 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
17339 Copy_Interface_Sources): Add new parameter In_Tree to specify the
17340 project tree: needed by the project manager.
17341 (Build_Library): Check that Arg'Length >= 6 before checking if it
17342 contains "--RTS=...".
17344 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
17345 Library_File_Name_For): Add new parameter In_Tree to specify the
17346 project tree: needed by the project manager.
17348 * prj.ads, prj.adb: Major modifications to allow several project trees
17349 in memory at the same time.
17350 Change tables to dynamic tables and hash tables to dynamic hash
17351 tables. Move tables and hash tables from Prj.Com (in the visible part)
17352 and Prj.Env (in the private part). Move some constants from the visible
17353 part to the private part. Make other constants deferred.
17354 (Project_Empty): Make it a variable, not a function
17355 (Empty_Project): Add parameter Tree. Returns the data with the default
17356 naming data of the project tree Tree.
17357 (Initialize): After updating Std_Naming_Data, copy its value to the
17358 component Naming of Project Empty.
17359 (Register_Default_Naming_Scheme): Use and update the default naming
17360 component of the project tree, instead of the global variable
17362 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
17363 Tree is not defaulted, return the default naming data of the Tree.
17364 (Initial_Buffer_Size): Constant moved from private part
17365 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
17366 variables initialized in procedure Initialize.
17367 (Add_To_Buffer): Add two in out parameters to replace global variables
17368 Buffer and Buffer_Last.
17369 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
17371 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
17373 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
17374 for the project tree.
17375 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
17376 constant at the beginning of the package spec, so that they cane be used
17377 in subprograms before their full declarations.
17378 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
17379 (Empty_Project): Add parameter of type Project_Node_Ref
17380 (Private_Project_Tree_Data): Add component Default_Naming of type
17382 (Buffer, Buffer_Last): remove global variables
17383 (Add_To_Buffer): Add two in out parameters to replace global variables
17384 Buffer and Buffer_Last.
17385 (Current_Packages_To_Check): Remove global variable
17386 (Empty_Name): Move to private part
17387 (No-Symbols): Make it a constant
17388 (Private_Project_Tree_Data): New type for the private part of the
17390 (Project_Tree_Data): New type for the data of a project tree
17391 (Project_Tree_Ref): New type to designate a project tree
17392 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
17393 for the project tree.
17395 * prj-attr.ads: Add with Table; needed, as package Prj no longer
17396 imports package Table.
17398 * prj-com.adb: Remove empty, no longer needed body
17400 * prj-com.ads: Move most of the content of this package to package Prj.
17402 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
17403 designate the project node tree and Packages_To_Check to replace
17404 global variable Current_Packages_To_Check.
17405 Add new parameters In_Tree and Packages_To_Check to local subprograms,
17406 when needed. Adapt to changes in project manager with project node tree
17409 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
17410 project tree to most subprograms. Move tables and hash tables to
17411 private part of package Prj.
17412 Adapt to changes in project manager using project tree In_Tree.
17414 * prj-makr.adb (Tree): New constant to designate the project node tree
17415 Adapt to change in project manager using project node tree Tree
17417 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
17418 display the Library_Src_Dir and the Library_Dir.
17419 Add new parameter In_Tree to designate the project node tree to most
17420 subprograms. Adapt to changes in the project manager, using project tree
17422 (Check_Naming_Scheme): Do not alter the casing on platforms where
17423 the casing of file names is not significant.
17424 (Check): Add new parameter In_Tree to designate the
17426 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
17427 designate the project tree.
17428 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
17430 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
17431 to replace those that were in the private part of package Prj.
17432 Add new parameter In__Tree to designate the project node tree to most
17433 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
17434 (Post_Parse_Context_Clause): When specifying the project node of a with
17435 clause, indicate that it is a limited with only if there is "limited"
17436 in the with clause, not necessarily when In_Limited is True.
17437 (Parse): Add new parameter In_Tree to designate the project node tree
17439 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
17440 designate the project node tree. Adapt to change in Prj.Tree with
17441 project node tree In_Tree.
17443 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
17444 tree In_Tree in the call to function Empty_Process to give its initial
17445 value to the project data Processed_Data.
17446 Add new parameters In_Tree to designate the project tree and
17447 From_Project_Node_Tree to designate the project node tree to several
17448 subprograms. Adapt to change in project manager with project tree
17449 In_Tree and project node tree From_Project_Node_Tree.
17451 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
17452 to replace those that were in the private part of package Prj.
17453 Add new parameter In_Tree to designate the project node tree to most
17454 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
17456 * prj-tree.ads, prj-tree.adb: Add new parameter of type
17457 Project_Node_Tree_Ref to most subprograms.
17458 Use this new parameter to store project nodes in the designated project
17460 (Project_Node_Tree_Ref): New type to designate a project node tree
17461 (Tree_Private_Part): Change table to dynamic table and hash tables to
17462 dynamic hash tables.
17464 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
17465 the project tree to most subprograms. Adapt to changes in project
17466 manager using project tree In_Tree.
17468 * makegpr.adb (Project_Tree): New constant needed to use project
17471 2005-03-15 Olivier Hainque <hainque@adacore.com>
17473 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
17474 for sigactions with SA_SIGINFO set. Call
17475 __gnat_adjust_context_for_raise before raising, to perform the
17476 potentially required adjustments to the machine context for the GCC
17479 * raise.h (__gnat_adjust_context_for_raise): New prototype.
17481 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
17482 Adjust PC by one in the provided machine context.
17483 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
17484 so that the handler is passed the context structure to adjust prior to
17486 (__gnat_error_handler) HPUX: Adjust the signature to match what an
17487 SA_SIGINFO sigaction should look like. Call
17488 __gnat_adjust_context_for_raise before actually raising.
17489 (__gnat_adjust_context_for_raise): Default noop to help PC
17490 adjustments before raise from signal handlers.
17491 (__gnat_error_handler): Indirectly call a predicate function to
17492 determine if a condition should be resignaled or not.
17493 (__gnat_set_resignal_predicate): User interface to modify the predicate.
17494 (__gnat_default_resignal_p): Default GNAT predicate.
17496 2005-03-15 Doug Rupp <rupp@adacore.com>
17498 * adaint.c: Prefix #include of VMS system header files with vms/
17499 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
17500 Do not define a dummy function "convert_addresses" under Darwin,
17503 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
17506 2005-03-15 Nicolas Setton <setton@adacore.com>
17508 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
17511 2005-03-15 Robert Dewar <dewar@adacore.com>
17513 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
17516 * a-retide.ads: Minor comment changes
17518 2005-03-15 Robert Dewar <dewar@adacore.com>
17520 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
17521 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
17522 Realloc_For_Chunk to private part of package.
17523 New subprograms for AI-301
17525 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
17526 Get_Line procedure.
17527 Avoid unnecessary use of Get/Set_Wide_String
17529 2005-03-15 Robert Dewar <dewar@adacore.com>
17532 * a-stunau.ads, a-stunau.adb:
17533 Change interface to allow efficient (and correct) implementation
17534 The previous changes to allow extra space in unbounded strings had
17535 left this interface a bit broken.
17537 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
17539 * g-spipat.ads, g-spipat.adb: New interface for Get_String
17540 Minor reformatting (function specs)
17542 * g-spitbo.adb: New interface for Get_String
17544 * g-spitbo.ads: Minor reformatting
17546 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
17548 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
17550 2005-03-15 Javier Miranda <miranda@adacore.com>
17551 Robert Dewar <dewar@adacore.com>
17552 Thomas Quinot <quinot@adacore.com>
17553 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17555 * atree.ads, atree.adb: Add support for Elist24 field
17557 * atree.h: Fix wrong definition of Field27
17558 Add support for Elist16 field
17559 Add support for Elist24 field
17561 * einfo.ads, einfo.adb (Abstract_Interfaces,
17562 Set_Abstract_Interfaces): New subprograms.
17563 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
17565 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
17566 entities rather than a single node.
17567 (Is_Interface, Set_Is_Interface): New subprogram
17568 (First_Tag_Component): New syntesized attribute
17569 (Next_Tag_Component): New synthesized attribute
17570 (Write_Entity_Flags): Upgraded to write Is_Interface
17571 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
17572 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
17573 (Task_Body_Procedure): New subprogram to read this attribute.
17574 (Set_Task_Body_Procedure): New subprogram to set this attribute.
17575 (Has_Controlled_Component): Now applies to all entities.
17576 This is only a documentation change, since it always worked to apply
17577 this to other than composite types (yielding false), but now this is
17579 Update documentation on Must_Be_Byte_Aligned for new spec
17581 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
17582 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
17583 uses of the Access_Disp_Table attribute to reference the first dispatch
17584 table associated with a tagged type. As
17585 part of the implementation of abstract interface types,
17586 Access_Disp_Table has been redefined to contain a list of dispatch
17587 tables (rather than a single dispatch table).
17588 Similarly, upgrade all the references to Tag_Component by the
17589 new attribute First_Tag_Component.
17590 (Find_Inherited_TSS): Moved to exp_tss.
17591 Clean up test in Expand_N_Object_Declaration for cases
17592 where we need to do a separate assignment of the initial value.
17593 (Expand_N_Object_Declaration): If the expression in the
17594 declaration of a tagged type is an aggregate, no need to generate an
17595 additional tag assignment.
17596 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
17598 Bit packed array ops are only called if operands are known to be
17600 (Component_Equality): When returning an N_Raise_Program_Error statement,
17601 ensure that its Etype is set to Empty to avoid confusing GIGI (which
17602 expects that only expressions have a bona fide type).
17603 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
17604 determine the amount of data to be copied.
17606 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
17607 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
17608 INTERFACE_TYPE_DEFINITION ::=
17609 [limited | task | protected | synchronized] interface
17610 [AND interface_list]
17612 * par-ch3.adb (P_Type_Declaration): Modified to give support to
17614 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
17616 (P_Interface_Type_Definition): New subprogram that parses the new
17617 syntax rule of Ada 2005 interfaces
17618 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
17619 messages by the correct RENAMES (quotes removed).
17621 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
17622 attribute First_Tag_Component.
17624 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
17625 (Interface_List, Set_Interface_List): New subprograms.
17626 (Interface_Present, Set_Interface_Present): New subprograms.
17627 (Limited_Present, Set_Limited_Present): Available also in derived
17628 type definition nodes.
17629 (Protected_Present, Set_Protected_Present): Available also in
17630 record type definition and
17631 derived type definition nodes.
17632 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
17633 (Task_Present, Set_Task_Present): New subprogram.
17634 (Task_Body_Procedure): Removed.
17635 (Set_Task_Body_Procedure): Removed.
17636 These subprogram have been removed because the attribute
17637 Task_Body_Procedure has been moved to the corresponding task type
17638 or task subtype entity to leave a field free to store the list
17639 of interfaces implemented by a task (for AI-345)
17640 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
17641 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
17642 expression flag Do_Range_Check
17643 (Exception_Junk): Change to Flag7 to accomodate above change
17644 (Box_Present, Default_Name, Specification, Set_Box_Present,
17645 Set_Default_Name, Set_Specification): Expand the expression
17646 "X in N_Formal_Subprogram_Declaration" into the corresponding
17647 two comparisons. Required to use the csinfo tool.
17649 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
17650 "with string" given.
17652 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
17655 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
17658 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
17659 attribute Task_Body_Procedure rather than the old semantic field that
17660 was available in the task_type_declaration node.
17662 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
17663 interface type definitions.
17664 (P_Formal_Derived_Type_Definition): Modified to handle the list of
17667 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
17668 task type declaration.
17669 (P_Protected): Modified to handle the list of interfaces in a
17670 protected type declaration.
17672 2005-03-15 Doug Rupp <rupp@adacore.com>
17673 Vincent Celier <celier@adacore.com>
17675 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
17676 (Gen_Output_File_C): Likewise.
17677 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
17679 2005-03-15 Thomas Quinot <quinot@adacore.com>
17681 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
17682 is an N_Raise_Constraint_Error node, create a new copy of it without
17683 going through a call to Duplicate_Subexpr.
17685 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
17686 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17687 Nicolas Setton <setton@adacore.com>
17688 Ed Schonberg <schonberg@adacore.com>
17694 * decl.c (gnat_to_gnu_field): Reject aliased components with a
17695 representation clause that prescribes a size not equal to the rounded
17696 size of their types.
17697 (gnat_to_gnu_entity, case E_Component): Always look at
17698 Original_Record_Component if Present and not the entity.
17699 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
17700 of tagged extension types by not making field for components that are
17702 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
17703 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
17704 expression to the type of the object when the object is constant.
17705 Reverse defer_debug_incomplete_list before traversing it, so that trees
17706 are processed in the order at which they were added to the list. This
17707 order is important when using the stabs debug format.
17708 If we are deferring the output of debug information, also defer this
17709 output for a function return type.
17710 When adding fields to a record, prevent emitting debug information
17711 for incomplete records, emit the information only when the record is
17713 (components_to_record): New parameter defer_debug.
17714 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
17715 (gnat_to_gnu_field_decl): New function.
17716 (substitution_list, annotate_rep): Call it.
17717 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
17718 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
17719 No longer update discriminants to not be a COMPONENT_REF.
17720 (copy_alias_set): Strip padding from input type; also handle
17721 unconstrained arrays properly.
17723 * gigi.h (write_record_type_debug_info): New function.
17724 Convert to use ANSI-style prototypes. Remove unused
17725 declarations for emit_stack_check, elab_all_gnat and
17726 set_second_error_entity.
17727 (gnat_to_gnu_field_decl): New decl.
17729 * utils.c (write_record_type_debug_info): New function.
17730 (finish_record_type): Delegate generation of debug information to
17731 write_record_type_debug_info.
17732 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
17733 (update_pointer_to): Fix pasto.
17734 (convert) <UNION_TYPE>: Accept slight type variations when
17735 converting to an unchecked union type.
17737 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
17738 replace the N_Freeze_Entity with a null statement.
17740 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
17741 within a constrained subcomponent of an enclosing record, place the
17742 freeze nodes in the scope stack entry for the enclosing record.
17743 (Undelay_Type): New Subprogram.
17744 (Set_Small_Size): Pass T, the type to modify; all callers changed.
17745 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
17746 within records; allow them to have freeze nodes if their base types
17749 * exp_util.adb (Remove_Side_Effects): Properly test for
17750 Expansion_Delayed and handle case when it's inside an
17751 N_Qualified_Expression.
17753 * sem_ch3.adb (Derived_Type_Declaration): New predicate
17754 Comes_From_Generic, to recognize accurately that the parent type in a
17755 derived type declaration can be traced back to a formal type, because
17756 it is one or is derived from one, or because its completion is derived
17758 (Constrain_Component_Type): If component comes from source and has no
17759 explicit constraint, no need to constrain in in a subtype of the
17761 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
17762 Minor change to propagate Is_Ada_2005 flag
17764 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
17765 Expansion_Delayed is False.
17766 (assoc_to_constructor): Ignore fields that have a
17767 Corresponding_Discriminant.
17768 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
17769 function returns "by target", dereference the target pointer using the
17770 type of the actual return value.
17771 <all>: Be prepared for a null gnu_result.
17772 (processed_inline_subprograms): Check flag_really_no_inline
17773 instead of flag_no_inline.
17774 (set_second_error_entity): Remove unused function.
17775 (gnat_to_gnu, case N_Selected_Component): Call
17776 gnat_to_gnu_field_decl.
17777 (assoc_to_constructor): Likewise.
17779 2005-03-15 Robert Dewar <dewar@adacore.com>
17780 Ed Schonberg <schonberg@adacore.com>
17781 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17783 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
17784 Must_Be_Byte_Aligned for cases where we do not need to use a
17785 System.Pack_nn unit.
17787 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
17789 Needed now that we do some processing for IN parameters as well. This
17790 may well fix some unrelated errors.
17791 (Expand_Call): Handle case of unaligned objects (in particular those
17792 that come from packed arrays).
17793 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
17794 renamed entity is an inherited operation, re-expand the call using the
17795 original operation, which is the one to call.
17796 Detect attempt to inline parameterless recursive subprogram.
17797 (Represented_As_Scalar): Fix to work properly with private types
17798 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
17799 accurate estimate. Yields True in far fewer cases than before,
17800 improving the quality of code that depends on this test.
17802 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
17803 over both visible and private declarations to remove them from tree,
17804 and mark subprograms declared in package as eliminated, to prevent
17805 spurious use in subsequent compilation of generic units in the context.
17807 * exp_util.ads: Minor cleanup in variable names
17809 * sem_eval.ads, sem_eval.adb: Minor reformatting
17810 (Compile_Time_Known_Bounds): New function
17812 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17814 * exp_ch7.adb (Convert_View): Use base types of underlying types when
17815 determining whether an unchecked conversion is needed for the argument
17816 of an initialization call.
17818 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17820 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
17821 that appears in the instantiation rather than the internal subtype
17822 generated in the wrapper package, to avoid anomalies in gigi when the
17823 target is derived from a private type whose full view is an access type.
17825 2005-03-15 Robert Dewar <dewar@adacore.com>
17827 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
17829 Add documentation to replace the use of this flag
17830 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
17833 2005-03-15 Thomas Quinot <quinot@adacore.com>
17835 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
17836 here from exp_attr so it can be shared between exp_attr and exp_dist.
17837 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
17838 all TSS names, not a subset thereof, and the previous name introduced
17839 an unnecessarily confusion that a distinction might exist between
17840 "OK" TSS names and some "not OK" TSS names.
17842 2005-03-15 Doug Rupp <rupp@adacore.com>
17844 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
17847 2005-03-15 Pascal Obry <obry@adacore.com>
17848 Eric Botcazou <ebotcazou@adacore.com>
17852 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
17853 when IN_RTS. This is to work around a bootstrap path problem.
17855 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
17856 table and pass it to __gnat_install_SEH_handler().
17857 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
17859 * lang.opt: Fix specification of -fRTS=.
17861 2005-03-15 Doug Rupp <rupp@adacore.com>
17862 Bernard Banner <banner@adacore.com>
17863 Vincent Celier <celier@adacore.com>
17864 Arnaud Charlet <charlet@adacore.com>
17867 This change works fine when gnatlib is built from the gcc directory,
17868 but does not work when using the libada Makefile, since GCC_FOR_TARGET
17869 is not passed to ada/Makefile.in, so more work is needed by a
17870 Makefile/configure expert.
17872 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
17873 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
17874 Setup gnatlink switch -M for x86_64 linux, as it is already setup
17876 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
17877 Run ranlib on libgccprefix.a
17878 Define PREFIX_OBJS for Darwin, to build libgccprefix.
17879 (ADA_INCLUDE_SRCS): Split Ada packages.
17881 2005-03-15 Robert Dewar <dewar@adacore.com>
17883 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
17885 * impunit.adb: Add GNAT.UTF_32
17887 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
17889 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
17890 now uses GNAT.UTF_32).
17892 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
17893 capabilities for categorizing characters using Unicode categories
17895 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17897 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
17898 instantiation that has been rewritten as a package body, retrieve spec
17899 to generate proper name for implicit_with_clause.
17900 (Install_Parents): Recognize a parent that is an instantiation but has
17901 been rewritten as a package declaration during analysis.
17903 2005-03-15 Javier Miranda <miranda@adacore.com>
17904 Ed Schonberg <schonberg@adacore.com>
17906 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
17907 parameter reported some error we immediately return. This improves the
17908 behaviour of the frontend in case of errors.
17909 (Install_Parent, Remove_Parent): Introduce new flag
17910 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
17911 ancestor of a generic child unit, when the child is being instantiated.
17912 (Inline_Instance_Body): If we are compiling the private
17913 part or the body of a child unit, restore the proper visibility of the
17914 parents after compiling the instance body.
17916 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17917 Javier Miranda <miranda@adacore.com>
17920 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
17921 of a private type, in which case it is underlying_type that denotes
17922 the proper task. Also modified to use the new entity attribute
17923 that is directly available in the task type and task subtype entities
17924 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
17925 arrays when other dimensions than the first are constrained by
17926 discriminants of an enclosing record.
17927 (Insert_Explicit_Dereference): If the prefix is an indexed component or
17928 a combination of indexed and selected components, find ultimate entity
17929 and generate the appropriate reference for it, to suppress spurious
17931 (Note_Possible_Modification): If an entity name has no entity, return.
17932 (Is_Variable): A function call never denotes a variable.
17933 (Requires_Transient_Scope): For record types, recurse only on
17934 components, not on internal subtypes that may have been generated for
17935 constrained components.
17937 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17939 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
17940 Eliminated as candidates for resolution. Both efficient, and avoids
17941 anomalies with operators declared in deleted code.
17942 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
17943 expansion is disabled (as when compiling a generic) to prevent spurious
17944 warnings on prefixes of selected components.
17946 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17948 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
17949 attached to a list before checking whether it appears in the private
17950 declarations of the current package.
17951 (Make_Inequality_Operator): Insert declaration in proper declarative
17952 list rather than just setting the Parent field, so that
17953 Is_Private_Declaration can handle it properly.
17955 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17957 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
17958 a renaming a body, check that the renamed subprogram in not intrinsic.
17959 (Find_Direct_Name): If several use_visible entities hide
17960 each other, and the context is a predefined file compiled through
17961 rtsfind, keep only the entity that comes from a predefined file.
17963 2005-03-15 Geert Bosch <bosch@adacore.com>
17965 * s-fatgen.adb (Valid): Extend special exceptions to account for long
17966 long float padding to also cover AMD64 and IA64.
17968 2005-03-15 Gary Dismukes <dismukes@adacore.com>
17970 * s-imgwch.adb: Add with and use of Interfaces.
17971 (Img_Wide_Character): Change type of Val to Unsigned_16.
17972 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
17974 2005-03-15 Matthew Gingell <gingell@adacore.com>
17976 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
17978 2005-03-15 Robert Dewar <dewar@adacore.com>
17980 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
17982 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
17984 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
17986 2005-03-15 Robert Dewar <dewar@adacore.com>
17988 * s-bitops.adb, s-bitops.ads,
17989 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
17990 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
17991 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
17992 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
17993 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
17994 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
17995 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
17996 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
17999 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
18001 * utils2.c (build_binary_op): Fix typo.
18003 2005-03-15 Doug Rupp <rupp@adacore.com>
18005 * s-crtl.ads (popen,pclose): New imports.
18007 2005-03-15 Cyrille Comar <comar@adacore.com>
18009 * comperr.adb (Compiler_Abort): remove references to obsolete
18010 procedures in the bug boxes for various GNAT builds.
18012 2005-03-15 Vincent Celier <celier@adacore.com>
18014 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
18016 2005-03-15 Geert Bosch <bosch@adacore.com>
18017 Arnaud Charlet <charlet@adacore.com>
18018 Robert Dewar <dewar@adacore.com>
18019 Cyrille Comar <comar@adacore.com>
18020 Sergey Rybin <rybin@adacore.com>
18022 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
18023 too specific and long-winded to be appropriate for the GNAT User's
18025 Warn about use of GCC switches not documented in the GNAT User's Guide,
18026 as these may cause generated code to not conform to Ada semantics.
18027 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
18028 Add documentation for -gnat95 and -gnat05 switches
18029 Remove paragraph documenting obsolete way to refer to third party
18031 Add a few references to Ada_05 that were missing.
18032 Update documentation on -gnatZ/-gnatL.
18033 Document limitation when using -m64 under Solaris.
18034 Change the "Name Casing" subsection of the pretty-printer section
18035 according to the changes in the dictionary processing.
18037 * gnat_rm.texi: Document the Ada_05 pragma.
18038 Section on record representation clauses describes the new more
18039 relaxed rules about placement of large packed bit array components.
18040 Add documentation of GNAT.UTF_32
18042 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
18044 * misc.c (gnat_post_options): Turn off structural
18047 2005-03-08 Laurent Guerby <laurent@guerby.net>
18049 * system-linux-sparc.ads: Fix typo in previous commit.
18051 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
18052 Laurent Guerby <laurent@guerby.net>
18055 * system-linux-sparc.ads: New.
18056 * Makefile.in: Add sparc linux entry.
18058 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
18060 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
18061 parameters as unused.
18063 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
18064 Partial merge from libada-gnattools-branch:
18066 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
18067 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
18068 into code in gnattools/Makefile.in. Remove direct dependencies on
18069 stamp-tools by tools clauses.
18070 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
18071 * config-lang.in: Add gnattools to $lang_dirs.
18073 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
18076 * utils.c (gnat_type_for_mode): Return null instead of ICE because
18077 we asked for an unknown mode.
18079 2005-02-12 Richard Henderson <rth@redhat.com>
18081 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
18082 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
18084 2005-02-10 Andreas Jaeger <aj@suse.de>
18086 * init.c (__gnat_initialize): Mark parameter as unused.
18088 2005-02-09 Doug Rupp <rupp@adacore.com>
18090 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
18091 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
18093 2005-02-09 Doug Rupp <rupp@adacore.com>
18095 * gnatchop.adb (dup, dup2),
18096 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
18098 * gnatlbr.adb (mkdir),
18099 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
18101 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
18103 2005-02-09 Doug Rupp <rupp@adacore.com>
18105 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
18107 2005-02-09 Robert Dewar <dewar@adacore.com>
18108 Thomas Quinot <quinot@adacore.com>
18109 Javier Miranda <miranda@adacore.com>
18110 Pascal Obry <obry@adacore.com>
18111 Ed Schonberg <schonberg@adacore.com>
18112 Doug Rupp <rupp@adacore.com>
18113 Gary Dismukes <dismukes@adacore.com>
18114 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18116 * g-zstspl.ads: New file.
18118 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
18120 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
18122 Add definition of Wide_Wide_Space for AI-285
18124 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
18125 interface (to support Ada 95 and Ada 2005 units).
18126 Add Unbounded_IO files
18127 Add entries for Wide_Wide packages for AI-285
18128 Add list of containers packages to Ada 2005 unit list
18130 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
18131 support new Unbounded_IO package cleanly.
18133 * g-utf_32.ads, g-utf_32.adb: New files.
18135 * Makefile.rtl: Add entry for g-utf_32
18136 Add new files for Unbounded_IO
18137 Adjust make file for new AI-285 wide wide packages
18138 Add AI-302 containers to the run time.
18140 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
18141 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
18142 subprograms for AI-301.
18144 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
18146 * a-stunau.ads: Minor comment correction
18148 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
18150 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
18151 (Check_RPC): Update to match changes in expanded code.
18152 Clean up unused entity.
18154 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
18155 was not taken into account.
18156 This includes proper initialization with Normalize_Scalars.
18157 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
18158 normalize scalars cases (particularly the latter) to do a better job
18159 of finding invalid representations.
18161 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
18163 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
18166 * exp_dist.adb: Add support for wide wide character type
18167 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
18168 private part, generate stub bodies at the end of the private part,
18169 not the visible part.
18170 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
18172 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
18173 generic wrapper to execute final processing after completing the
18174 expansion of the RPC receiver for an RACW.
18176 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
18177 packages and attributes.
18178 (Preset_Names): Addition of the new reserved words of Ada 2005,
18179 that is interface, overriding and synchronized.
18180 (Get_Pragma_Id): Give support to the use of the new reserved word
18181 "interface" as a pragma name.
18182 (Is_Pragma_Name): Give support to the use of the new reserved word
18183 "interface" as a pragma name.
18184 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
18185 attribute implementation.
18187 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
18188 checks to entities that are output parameters of Asm operations.
18189 Handle the Stream_Size attribute.
18190 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
18192 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
18194 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
18195 for second parameter being 0.0.
18196 Add support for wide wide character type.
18197 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
18199 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
18200 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
18201 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
18202 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
18203 for wide wide character cases.
18205 * cstand.adb: Create entities for Wide_Wide_Character and
18208 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
18209 accordance with AI-258.
18210 Add new declarations for 16/32 bit C character types (Part of AI285)
18212 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
18213 (Obsolescent_Warning): New field
18214 (Rep_Clause): New local subprogram used to share code. Returns the rep
18215 clause for which the name is given in parameter.
18216 (Has_Stream_Size_Clause): New routine.
18217 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
18218 (Address_Clause): Implementation is now using Rep_Clause.
18219 (Alignment_Clause): Idem.
18220 (Size_Clause): Idem.
18222 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
18223 entity in non-Ada 2005 mode and generate warning.
18225 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
18226 (Prag): Code cleanup. Remove old gnat pragma "overriding"
18228 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
18229 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
18230 on the named unit if the pragma is not in the current compilation unit,
18231 so that elaboration calls in the current unit can set up an elaboration
18232 dependency on the named unit, as needed.
18233 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
18234 subprogram as well as for subprograms declared within a package.
18235 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
18238 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
18239 to z) to avoid some instances of duplication for Wide_Wide packages.
18241 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
18244 * scn.adb: Char_Literal_Value field is now a Uint
18246 * scng.adb: Significant rewrite to handle new Ada 2005 features
18247 allowing wide and wide wide characters in program text, e.g. for
18248 identifiers, as described in AI-285.
18249 (Set_Reserved): New procedure, makes setting up keywords cleaner.
18250 (Initialize_Scanner): Register the new reserved words of Ada 2005.
18251 (Scan): Give support to the new reserved words.
18253 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
18254 warning notifying that interface, overriding, and synchronized are
18255 new reserved words.
18256 (P_Pragma): Allow the use of the new reserved word "interface" as
18259 * gnatls.adb, gnatbind.adb,
18260 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
18261 identifiers named "interface" to "SAL_Interface".
18263 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
18264 (Structured Exception handling).
18265 (Gen_Main_C): Idem.
18268 (Gen_Main_Ada): Set the default exit code if specified.
18269 (Gen_Main_C): Likewise.
18271 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
18272 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
18274 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
18277 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
18278 has a collision with the new Ada 2005 "interface" reserved word.
18280 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
18281 generate a warning notifying that interface, overriding, and
18282 synchronized are new reserved words.
18284 * scans.ads (Token_Type): Addition of the tokens corresponding to the
18285 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
18286 and Tok_Synchronized.
18288 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
18289 "dispatching" rather than "primitive" operations, since dispatching
18290 calls are now allowed to abstract formal subprograms (which are not
18292 Char_Literal_Value field is now a Uint
18293 (Resolve_Slice): If the prefix is an access to an unconstrained array,
18294 compute the actual subtype of the designated object to impose the proper
18296 (Resolve_Selected_Component): Do not insert an access check if the
18297 prefix is an access type: such a node is expanded into an explicit
18298 dereference, on which the access check is performed anyway. Removes
18299 expensive duplicate checks.
18300 (Resolve_Call): Use new flag Is_Obsolescent and field
18301 Obsolescent_Warning so that pragma Obsolescent works on library
18303 Add support for wide wide character type
18304 (Resolve_Allocator): Replace the error message on wrong null-exclusion
18305 value by a warning message.
18306 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
18307 as fixed-point, and one of the operands is non-static and universal, it
18308 can only be an illegal exponentiation operation, in which case there is
18309 no real value to retrieve.
18311 * exp_strm.adb: Add support for wide wide character type
18312 (Build_Elementary_Input_Call): Compute the size of the stream element by
18313 querying the rep chain to find the Stream_Attribute attribute value.
18314 (Build_Elementary_Write_Call): Ditto.
18316 * sem_aggr.adb: Char_Literal_Value field is now a Uint
18317 Add support for wide wide character type
18318 Replace the error messages on wrong null-exclusion value by warnings
18319 as described in Ada 2005.
18320 (Resolve_Extension_Aggregate): Document the fact that the error
18321 message on class-wide expressions in extensions aggregates.
18323 * sem_case.adb: Add support for wide wide character type
18325 * sem_ch13.adb: Add support for wide wide character type
18326 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
18328 * sem_ch3.adb: Add support for wide wide character type
18329 (Process_Subtype): If constraint is illegal for the type, set Ekind of
18330 now-useless Itype, to prevent cascaded errors on a compiler built
18333 * sem_ch8.adb: Add with and use of Sem_Disp.
18334 (Analyze_Subprogram_Renaming): Replace unclean uses of
18335 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
18336 of Corresponding_Spec to Empty).
18337 (Attribute_Renaming): Replace use of Corresponding_Spec with
18338 Corresponding_ Formal_Spec and simplify condition.
18339 (Use_One_Package): Check that scope of homonym of identifier is defined,
18340 before checking whether it is a wrapper package.
18341 Add support for wide wide character type
18343 * sem_eval.adb: Add support for wide wide character type.
18344 (Eval_Arithmetic_Op): Check for compile time known signed integer
18345 overflow in the non-static case.
18346 (Subtypes_Statically_Match): A formal scalar type and its base type do
18347 not statically match.
18349 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
18350 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
18352 (Unit_Declaration_Node): Ditto.
18353 (Is_Variable_Prefix): For the case of an indexed component whose prefix
18354 has a packed array type, the prefix has been rewritten into a type
18355 conversion. Determine variable-ness from the converted expression.
18356 Handle wide wide character cases.
18358 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
18360 * stringt.ads, stringt.adb: Handle full UTF-32 range.
18361 Remove ["0A"] from comment, since it can look like a line terminator.
18362 Currently we don't permit this, but this is under discussion by the
18363 ARG, and it is easy enough to use a different example.
18365 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
18366 handling UTF-32 encoding for wide wide character.
18367 Implement new brackets coding ["hhhhhhhh"]
18368 Add UTF-8 encodings for full UTF-32 range
18370 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
18372 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
18373 bit range Add full UTF-32 support.
18374 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
18375 notify that constraint error will be raised at run-time
18376 because a null value is assigned to a null-excluding object.
18377 Remove some obsolete declarations and make Char_Code
18380 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
18381 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
18382 Rcheck subprograms.
18384 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
18385 wrong null-exclusion value by a warning message.
18386 (Enable_Range_Check): Do range check if the prefix is an
18387 explicit dereference whose designated object is an unconstrained array.
18388 Current algorithm for removing duplicate checks is over-eager in this
18391 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
18392 null-exclusion value by a warning message
18394 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
18395 completely. Add support for Uint2 field
18397 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
18398 exp_prag.adb: Char_Literal_Value field is now a Uint.
18400 * exp_util.adb (Insert_Actions): Replace
18401 N_Formal_Subprogram_Declaration by
18402 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
18403 Char_Literal_Value field is now a Uint.
18405 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
18406 defined for subprogram renaming declarations. When set, the field
18407 indicates the defining entity of a corresponding formal subprogram
18408 when the renaming corresponds to a formal subprogram association in an
18410 (Set_Corresponding_Formal_Spec): New procedure to return
18411 Corresponding_Formal_Spec field.
18412 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
18413 (which is now a subtype).
18414 Char_Literal_Value field is now a Uint
18416 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
18417 pointer to the base of the dispatch table.
18418 Minor changes to comments.
18419 (Controlling_Type): New function for determining the tagged type
18420 associated with a tagged primitive subprogram.
18421 (Expand_Dispatching_Call): Add support for a controlling actual that is
18422 directly a value of type Ada.Tag rather than a tagged object.
18424 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
18425 describing the new layout.
18426 (Dispatch_Table): The expander computes the actual array size, allocates
18427 the Dispatch_Table record accordingly, and generates code that displaces
18428 the base of the record after the Typeinfo_Ptr component. The access to
18429 these components is done by means of local functions.
18430 (Offset_To_Top): New function.
18431 (Typeinfo_Ptr): New function.
18432 (Get_TSD): Modified to access the new position of the TSD.
18433 (Set_TSD): Modified to save the TSD in its new position.
18435 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
18436 case of formal abstract subprograms. Add check and message for -gnat05.
18439 * sem_ch12.adb: Add with and use for Sem_Disp.
18440 (Analyze_Associations): Minor change from "=" to "in" for use of
18441 N_Formal_Subtype_Declaration (which is now a subtype).
18442 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
18443 N_Formal_Subtype_Declaration (which is now a subtype).
18444 (Analyze_Formal_Subprogram): Add handling for
18445 N_Formal_Abstract_Subprogram, marking the formal as abstract and
18446 dispatching, setting the controlling status of the formal parameters
18447 and result, and issuing an error if there is no controlling type for
18448 the formal subprogram.
18449 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
18450 which is an unclean use of that field, we set the new field
18451 Corresponding_Formal_Spec to make the formal subprogram available to
18452 processing in Analyze_Subprogram_Declaration.
18453 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
18454 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
18455 Constrained, so that it is is does not statically match its anonymous
18458 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
18459 abstract formal subprograms in error check for functions returning
18460 abstract types. Set scope of new designator for
18461 a parameterless subprogram, so that it is available when checking the
18462 body for nested subprograms, before full analysis of said body.
18463 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
18464 subprogram only if inner one comes from source.
18465 (Analyze_Function_Call): If the call is given in object notation, the
18466 analysis of the name rewrites the node and analyzes it with the proper
18467 argument list. After analyzing the name, if the call has been rewritten
18468 and the result type is set, no further analysis is needed.
18469 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
18470 mark in function specification, in a context where the formals are
18471 visible and hide outer homographs.
18473 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
18474 as the tagged type for the cases of abstract formal subprograms and
18475 renamings of those. Clean up spec comments.
18476 (Check_Dispatching_Context): Add error message to indicate "abstract
18477 procedure", covering the case of a call to a formal abstract procedure
18478 that has statically tagged operands.
18479 (Check_Dispatching_Call): Check for the case of an actual given by
18480 a tag-indeterminate function call whose type is an ancestor of the
18481 containing call's associated tagged type. This situation can occur
18482 for inherited primitives with function defaults. In this case we
18483 use the tagged type's tag directly as the controlling argument for
18485 (Expand_Call): Name change on call to Expand_Dispatch_Call.
18487 * sprint.adb (Sprint_Node_Actual): Split
18488 N_Formal_Subprogram_Declaration into two alternatives for the new
18489 cases N_Formal_Abstract_Subprogram_Declaration and
18490 N_Formal_Concrete_Subprogram_Declaration.
18491 Char_Literal_Value field is now a Uint.
18493 * trans.c: Get rid of junk Uint2 reference.
18494 Char_Literal_Value field is now a Uint.
18495 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
18496 (gigi): Correct third arg to gimplify_body.
18498 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
18499 (TYPE_LANG_FLAG_0): Check for record or union.
18501 * treepr.adb: Char_Literal_Value field is now a Uint
18503 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
18506 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
18507 Add full UTF-32 support
18508 Char_Code is now 32 bits
18510 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
18511 wide character UTF_32 line terminators.
18512 Initialize Main_Source_File to avoid error when no main
18515 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
18516 (Main_Source_File) when no main source has been loaded, to avoid
18519 2005-02-09 Robert Dewar <dewar@adacore.com>
18521 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
18522 Fix name of Set routine
18524 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
18527 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
18528 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
18531 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
18532 forms of Get_Line subprograms for AI-301.
18534 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
18535 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
18536 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
18537 a-stwima.ads: Minor reformatting.
18539 2005-02-09 Doug Rupp <rupp@adacore.com>
18540 Thomas Quinot <quinot@adacore.com>
18542 * adaint.c, adaint.h
18543 [VMS] (to_ptr32): New function.
18544 (MAYBE_TO_PTR32): New macro.
18545 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
18547 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
18548 [VMS] (#define fork()): Remove since unneccessary.
18549 (__gnat_set_close_on_exec): New routine to support
18550 GNAT.OS_Lib.Set_Close_On_Exec.
18552 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
18553 the parent side as close-on-exec so that they are not inherited by the
18556 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
18557 set or clear the FD_CLOEXEC flag on a file descriptor.
18559 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
18560 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18564 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
18565 on the field if Pragma Component_Alignment (Storage_Unit).
18566 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
18567 side-effects as if it were a constant; also make SAVE_EXPR to protect
18569 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
18571 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
18572 (components_to_record): Test it.
18573 Fix improper usage of REFERENCE_CLASS_P.
18575 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
18578 * utils2.c: Minor reformatting.
18580 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
18581 handle other cases like RECORD_TYPE.
18583 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
18585 2005-02-09 Ed Schonberg <schonberg@adacore.com>
18587 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
18588 component of an array of arrays in an assignment context, and the
18589 aggregate has component associations that require sliding on
18590 assignment, force reanalysis of the aggregate to generate a temporary
18591 before the assignment.
18592 (Must_Slide): Make global to the package, for use in Gen_Assign.
18594 2005-02-09 Ed Schonberg <schonberg@adacore.com>
18596 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
18597 unchecked union with no inferable discriminants, return a
18598 Raise_Program_Error node, rather than inserting it at the point the
18600 (Expand_Record_Equality, Component_Equality): Handle properly the case
18601 where some subcomponent is an unchecked union whose generated equality
18602 code raises program error.
18604 2005-02-09 Doug Rupp <rupp@adacore.com>
18606 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
18607 [VMS] (#define exit hack): Remove.
18609 2005-02-09 Pascal Obry <obry@adacore.com>
18610 Arnaud Charlet <charlet@adacore.com>
18612 * init.c (__gnat_initialize): Add a new parameter eh which contains the
18613 address of the exception registration. The Win32 version of this
18614 routine calls __gnat_install_SEH_handler() to initialize the SEH
18615 (Structured Exception Handling) handler.
18616 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
18617 SEH (Structured Exception Handling) now.
18618 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
18619 (__gnat_initialize for ppc-vxworks): Adjust comments and the
18620 preprocessor condition protecting the call to the extra eh setup
18621 subprogram, which is only available for the ppc target.
18622 (__gnat_clear_exception_count): replaced reference to
18623 variable taskIdCurrent by call to taskIdSelf(), cleaner.
18625 * seh_init.c: New file.
18627 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
18628 (GNATBIND_OBJS): Idem.
18630 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
18631 routine takes a new parameter (a pointer to the exception registration
18632 for the SEH (Structured Exception Handling) support.
18634 * raise.h: (__gnat_install_SEH_handler): New prototype.
18635 Update copyright notice.
18637 * s-tassta.adb (Task_Wrapper): Declare the exception registration
18638 record and initialize it by calling __gnat_install_SEH_handler.
18640 2005-02-09 Vincent Celier <celier@adacore.com>
18642 * make.adb (Gnatmake): Do not fail when the main project has no object
18645 2005-02-09 Doug Rupp <rupp@adacore.com>
18647 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
18648 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
18649 [VMS]: Add translations for g-enblsp.adb.
18651 * s-asthan-vms.adb: Removed.
18652 * s-asthan-vms-alpha.adb: Added.
18654 2005-02-09 Pascal Obry <obry@adacore.com>
18656 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
18657 (LIBGNAT_OBJS): Add seh_init.o.
18659 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18662 * Makefile.in: Link all gnat tools with -static-libgcc, since
18663 -shared-libgcc is now used by default on some systems (e.g. linux with
18665 Remove references to Makefile.prolog/generic, no longer used.
18667 2005-02-09 Vincent Celier <celier@adacore.com>
18669 * prj-makr.adb (Process_Directory): Put file name in canonical case
18670 before matching against the patterns.
18671 If gnatname has been invoked as <prefix>-gnatname
18672 then invoke the compiler as <prefix>-gcc, not just "gcc".
18674 2005-02-09 Ed Schonberg <schonberg@adacore.com>
18676 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
18677 with expansion disabled. The actual subtype is needed among other
18678 places when the selected component appears in the context of a loop
18679 bound, and denotes a packed array.
18680 (Operator_Check): Always use the first subtype in the
18681 error message, to avoid the appearance of internal base types.
18682 (Transform_Object_Operation): Copy each actual in full
18683 to the parameter associations of the constructed call, rather than
18684 using the shallow copy mechanism of New_Copy_List. This ensures that
18685 the chaining of named associations is done properly.
18686 (Complete_Object_Operation): Rewrite node, rather than
18687 replacing it, so that we can trace back to the original selected
18690 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
18691 and calls that use object notation, if the called function is not
18692 declared in a withed unit, place the elaboration constraint on the
18693 unit in the context that makes the function accessible.
18694 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
18695 imposes an elaboration constraint between two packages.
18697 2005-02-09 Ed Schonberg <schonberg@adacore.com>
18699 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
18700 views of a private type after handling its private dependents, to
18701 maintain proper stack discipline between entry and exit from the
18704 2005-02-09 Cyrille Comar <comar@adacore.com>
18706 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
18707 Minor reformatting.
18709 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18711 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
18712 fields for foreign threads.
18714 2005-02-09 Doug Rupp <rupp@adacore.com>
18716 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
18717 recursion warnings when compiled with -gnatdm.
18719 2005-02-09 Robert Dewar <dewar@adacore.com>
18721 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
18722 Slight fix to documentation of -gnaty with no parameters
18724 * xr_tabls.ads: Add ??? comment for missing overall comment
18726 * xsinfo.adb: Make default file name be sinfo.h, since this is what
18727 we now use by default.
18729 * xsnames.adb: Adjust end of file test to look for five space followed
18730 by '#' instead of six spaces. The format of xsnames.adb was modified
18731 in the last update.
18733 * a-numeri.ads: Add reference to AI-388 for greek letter pi
18736 * clean.adb: Minor reformatting.
18738 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
18739 gnatname.adb: Minor reformatting
18740 Add 2005 to copyright output when utility is run
18742 * csets.adb: Eliminate obsolete comment
18744 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
18747 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
18749 2005-02-09 Sergey Rybin <rybin@adacore.com>
18751 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
18752 the difference between compact and incompact layout and add the record
18753 representation clause to the example illustrating different layouts.
18754 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
18755 component clauses").
18757 2005-02-09 Florian Villoing <villoing@adacore.com>
18759 * gnat_ugn.texi: Fix typos.
18760 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
18762 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
18763 in the generated documentation.
18765 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18767 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
18769 Update linker wrapper when linking with non GNU C++.
18771 2005-02-09 Pascal Obry <obry@adacore.com>
18774 Document the procedure to debug the DllMain routine on Windows.
18775 Add note about -funwind-tables and mixed Ada and C/C++ programming in
18777 Document new BIND qualifer /RETURN_CODES=VMS.
18779 2005-02-09 Ben Brosgol <brosgol@adacore.com>
18781 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
18782 Edited gnatmetric chapter
18784 2005-02-09 Robert Dewar <dewar@adacore.com>
18787 Changes to document new wide wide character support
18789 Update documentation on Normalize_Scalars and Initialize_Scalars
18791 2005-02-09 Pascal Obry <obry@adacore.com>
18793 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
18795 2005-02-09 Jose Ruiz <ruiz@adacore.com>
18797 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
18798 from the VxWorks kernel) that is needed for getting the active
18799 priority of the different tasks.
18801 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
18802 Use a pragma Elaborate_Body in the spec file instead.
18803 Noticed by code reading.
18805 2005-02-09 Thomas Quinot <quinot@adacore.com>
18807 * exp_util.ads: Minor correction in comment.
18809 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18811 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
18812 since this procedure is now too complex to be worth inlining.
18814 2005-02-09 Richard Henderson <rth@redhat.com>
18816 * utils.c (gnat_define_builtin): Remove.
18817 (gnat_install_builtins): Use build_common_builtin_nodes.
18819 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18821 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
18822 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
18823 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
18824 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
18825 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
18826 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
18827 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
18828 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
18829 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
18830 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
18831 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
18832 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
18833 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
18834 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
18835 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
18836 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
18837 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
18838 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
18839 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
18840 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
18841 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
18842 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
18843 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
18844 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
18845 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
18846 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
18847 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
18848 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
18849 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
18850 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
18851 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
18852 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
18853 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
18854 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
18857 2005-01-27 Laurent GUERBY <laurent@guerby.net>
18859 * Makefile.in: Fix a-intnam.ads from previous commit,
18860 add 2005 to copyright.
18861 * a-intman-rtems.ads: Renamed to...
18862 * a-intnam-rtems.ads:
18864 2005-01-27 Laurent GUERBY <laurent@guerby.net>
18866 * Makefile.in: Rename GNAT RTEMS specific files.
18867 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
18868 5rosinte.ads, 5rparame.adb: Replaced by files below.
18869 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
18870 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
18872 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
18873 Laurent GUERBY <laurent@guerby.net>
18876 * 5rosinte.ads: Add No_Key constant.
18877 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
18878 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
18880 2005-01-26 Laurent GUERBY <laurent@guerby.net>
18883 * i-cobol.adb (Valid_Numeric): Handle zero length case.
18885 2005-01-20 Richard Henderson <rth@redhat.com>
18887 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
18888 a-intnam-linux.ads and system-linux-alpha.ads.
18889 * a-intnam-linux-alpha.ads: Remove file.
18890 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
18891 * system-linux-alpha.ads: New file.
18893 2005-01-18 Jakub Jelinek <jakub@redhat.com>
18896 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
18897 set to the new string.
18899 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
18901 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
18904 2005-01-18 Richard Henderson <rth@redhat.com>
18906 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
18907 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
18909 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
18911 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
18913 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
18914 (GCC_ZCX_Support): Likewise.
18916 2005-01-11 Bastian Blank <waldi@debian.org>
18918 * system-linux-s390.ads: Define Preallocated_Stacks.
18919 * system-linux-s390x.ads: Likewise.
18921 2005-01-04 Arnaud Charlet <charlet@adacore.com>
18923 * gnat_ugn.texi: Fix texi errors with null variables.
18925 2005-01-03 Thomas Quinot <quinot@adacore.com>
18927 * gen-soccon.c: New utility program to generate g-soccon.ads
18930 * socket.c, gsocket.h: Split inclusion of system header files into a
18931 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
18933 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
18934 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
18935 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
18936 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
18937 should not be edited by hand anymore, but should be regenerated using
18940 2005-01-03 Robert Dewar <dewar@adacore.com>
18941 Ed Schonberg <schonberg@adacore.com>
18942 Vincent Celier <celier@adacore.com>
18944 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
18945 on/off, since this is an obsolescent feature, for which we now generate
18948 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
18949 warning mode is set and obsolescent usage of this attribute occurs.
18950 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
18951 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
18952 predates, and partly motivates, the adoption of the AI.
18953 Implement new Ada 2005 attribute Mod
18955 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
18958 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
18960 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
18961 pragma restrictions.
18962 New entry for Ada 2005 attribute Mod.
18965 Add recognition of new pragma Restrictions No_Dependence
18966 Recognize restriction No_Obsolescent_Features at parse time
18968 * bcheck.adb: Add circuitry for checking for consistency of
18969 No_Dependence restrictions.
18971 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
18974 * restrict.ads, restrict.adb: Add subprograms to deal with
18975 No_Dependence restrictions.
18977 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
18980 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
18981 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
18983 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
18984 dummy parameter to scng instantiation.
18985 Needed for new restriction No_Obsolescent_Features
18987 * scn.adb: (Obsolescent_Check): New procedure
18988 Needed for new restriction No_Obsolescent_Features
18990 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
18991 specified by AI-285, needed for implementation of AI-388 (adding greek
18992 pi to Ada.Numerics).
18993 Add new generic formal to scng, needed for new restriction
18994 No_Obsolescent_Features.
18996 * s-rident.ads: Add new restriction No_Obsolescent_Features.
18998 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
18999 restrictions lines.
19000 (Scan_ALI): When finding an unexpected character on an R line, raise
19001 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
19002 Ignore_Errors is True, default restrictions are set and scanning of the
19003 ALI file continues with the next line. Also, when Bad_R_Line is raised
19004 and Ignore_Errors is True, skip to the end of le line.
19006 * sem_ch10.adb: Check that explicit with's do not violate
19007 No_Dependence restrictions.
19008 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
19009 illegal context clauses containing child units of instance.
19011 * sem_prag.adb: Processing and checking for new No_Dependence
19013 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
19014 analyze and check the External argument.
19016 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
19018 2005-01-03 Robert Dewar <dewar@adacore.com>
19020 * atree.adb: Add a fifth component to entities
19021 This allows us to add 32 flags and four new fields
19023 * atree.ads: Add a fifth component to entities
19024 This allows us to add 32 flags and four new fields
19026 * einfo.ads, einfo.adb: Document new fields and new flags now available
19027 Add routines for printing new fields
19029 * treepr.adb: Call routines to print out additional fields if present
19031 2005-01-03 Arnaud Charlet <charlet@adacore.com>
19033 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
19034 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
19036 * Makefile.in: Add support to build shared Ada libraries on solaris x86
19037 Remove gpr2make, replaced by gprmake.
19038 Remove references to gnatmem and libaddr2line.
19039 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
19040 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
19041 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
19042 a-numaux-darwin.ads and a-numaux-darwin.adb
19043 Enable mlib-tgt-lynxos.adb on lynxos.
19045 * Make-lang.in: Remove rules for gpr2make.
19046 When generating sdefault.adb, do not call Relocate_Path
19047 on S3 for function Target_Name, as it is not a path.
19048 Remove references to gnatmem and libaddr2line.
19050 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
19053 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
19055 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
19056 address is incompatible with its base type alignment constraints when
19057 this can be decided statically.
19059 2005-01-03 Olivier Hainque <hainque@adacore.com>
19061 * decl.c (compatible_signatures_p): New function. The intended purpose
19062 is to check if two function signatures for a call-site and a callee are
19063 compatible enough for the call to be valid. The underlying purpose is
19064 to check if a call to a mapped builtin is using the right interface.
19065 The current code actually does not check antyhing - this a placeholder
19066 for future refinements.
19067 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
19068 builtin calls for convention Intrinsic.
19070 * gigi.h (builtin_decl_for): Declare (new function).
19072 * utils.c (gnat_install_builtins): Install the target specific builtins.
19073 (builtin_decl_for): New function, provide a dummy body for now.
19075 2005-01-03 Geert Bosch <bosch@adacore.com>
19077 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
19078 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
19079 (Pred): Implement in terms of Succ.
19081 * trans.c (convert_with_check): Reimplement conversion of float to
19084 2005-01-03 Ed Schonberg <schonberg@adacore.com>
19085 Vincent Celier <celier@adacore.com>
19087 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
19088 bounds can be negative, and must be declared Int, not Nat.
19090 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
19091 array is checked after using the index in the array.
19093 * makegpr.adb (Add_Switches): Check if there is a package for the
19094 processor. If there is no package, do not look for switches.
19096 2005-01-03 Ed Schonberg <schonberg@adacore.com>
19098 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
19099 generation of predefined stream operations (specs and bodies) should
19100 proceed. Under various restrictions these subprograms must not be
19103 2005-01-03 Thomas Quinot <quinot@adacore.com>
19106 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
19107 amount of PCS-specific code in RACW stubs generation.
19108 (Copy_Specification): Set Etype on copied formal parameter entities, as
19109 this information is needed for PolyORB stubs generation.
19110 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
19111 variable Dynamic_Async.
19112 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
19113 (Build_RPC_Receiver_Specification): Make generic again, as recent
19114 changes have allowed RPC receivers to have the same profile for both
19115 variants of the PCS.
19116 Reorganise RPC receiver generation to reduce differences between the
19117 structure of GARLIC and PolyORB RPC receivers.
19118 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
19120 Simplify elaboration code for RCI packages.
19122 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
19123 generation to reduce differences between the structure of GARLIC and
19124 PolyORB RPC receivers.
19126 * s-stratt.adb: Fix typo in comment.
19128 2005-01-03 Thomas Quinot <quinot@adacore.com>
19130 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
19131 copied from Make_Init_Call).
19133 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
19134 reads and assignments on a temporary variable declared with appropriate
19137 2005-01-03 Robert Dewar <dewar@adacore.com>
19139 * i-c.adb (To_C): Raise CE if string is null and Append_Null
19141 2005-01-03 Robert Dewar <dewar@adacore.com>
19143 * i-cstrin.adb (Update): Do not append a null in form called with a
19144 String. This avoids unintended behavior.
19146 2005-01-03 Arnaud Charlet <charlet@adacore.com>
19149 * init.c: Fix warnings on Free BSD section.
19151 2005-01-03 Arnaud Charlet <charlet@adacore.com>
19154 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
19157 2005-01-03 Vincent Celier <celier@adacore.com>
19159 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
19160 libraries when Unique_Compile is True (-u switch).
19163 2005-01-03 Robert Dewar <dewar@adacore.com>
19165 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
19166 upper case letter or underscore after W, as allowed by spec.
19168 2005-01-03 Arnaud Charlet <charlet@adacore.com>
19170 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
19171 darwin port by using proper type definitions from header files.
19172 Use SIGTERM instead of SIGABRT for SIGADAABORT.
19174 2005-01-03 Robert Dewar <dewar@adacore.com>
19176 * par.adb: Enhance error message handling for configuration file
19179 2005-01-03 Robert Dewar <dewar@adacore.com>
19181 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
19182 removed during the previous update (test properly for case of dividing
19183 largest negative number by -1, which generates overflow).
19185 2005-01-03 Ed Schonberg <schonberg@adacore.com>
19186 Sergey Rybin <rybin@adacore.com>
19188 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
19189 to use as the defining identifier for a formal package.
19190 (Remove_Parent): If the instance takes place within (an instance of)
19191 a sibling, preserve private declarations of common parent.
19193 2005-01-03 Ed Schonberg <schonberg@adacore.com>
19195 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
19196 to determine whether one of the operands is a fixed-point type for
19197 which a user-defined multiplication or division operation might be
19200 * sem_res.adb (Valid_Conversion): The legality rules for conversions
19201 of access types are symmetric in Ada 2005: either designated type can
19204 2005-01-03 Vincent Celier <celier@adacore.com>
19206 * s-fileio.adb (Temp_File_Record): Change length of string component
19207 Name from L_tmpnam + 1 to max_path_len + 1.
19209 2005-01-03 Arnaud Charlet <charlet@adacore.com>
19211 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
19212 Self_Id.Deferral_Level = 0.
19213 (Do_Pending_Action): Move this function to the spec.
19215 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
19216 Do_Pending_Action explicitely when needed, in case we're using
19217 No_Abort restrictions.
19219 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
19220 deferral level since it will not get changed by the generated code.
19221 Keeping a default value of 1 would prevent some operations (e.g.
19222 select or delay) to proceed successfully.
19224 2005-01-03 Ben Brosgol <brosgol@adacore.com>
19225 Robert Dewar <dewar@adacore.com>
19226 Cyrille Comar <comar@adacore.com>
19228 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
19229 porting guide chapter (vms version).
19230 Revised doc title (removed "for native platforms") and subtitle.
19231 Add discussion on warning flag for obsolescent features. First we
19232 note that it applies to obsolete GNAT features, which was previously
19233 omitted. Second we contrast the behavior with that of the new
19234 Ada 2005 AI-368 restriction No_Obsolescent_Features.
19235 Preliminary rewriting of GNAT & libraries chapter in order to take
19236 into account default project locations & new project manager
19239 2005-01-03 Robert Dewar <dewar@adacore.com>
19241 * cstand.adb (Create_Operators): Clean up format and documentation of
19242 unary and binary operator result tables. No change in code, just
19243 reformatting and addition of comments.
19245 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
19246 sem_ch2.adb: Minor reformatting
19248 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
19249 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
19250 comments for Tree_Read and Tree_Write.
19252 2005-01-03 Pascal Obry <obry@adacore.com>
19254 * exp_attr.ads: Minor reformatting.
19256 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
19258 * comperr.adb (Compiler_Abort): Add specialized message for GAP
19261 2005-01-03 Ed Schonberg <schonberg@adacore.com>
19263 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
19264 whether the ancestor type is private, as may be the case with nested
19267 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
19270 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
19272 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
19274 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
19275 * utils2.c (build_unary_op): Likewise.
19277 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19279 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
19281 2004-12-19 Richard Henderson <rth@redhat.com>
19283 * trans.c (gigi): Update gimplify_body call.
19285 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
19287 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
19289 2004-12-07 Ed Falis <falis@adacore.com>
19291 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
19292 current task being suspended.
19294 * init.c (__gnat_clear_exception): added to reset VxWorks exception
19296 (__gnat_map_signal): removed test for current task being suspended.
19298 2004-12-07 Gary Dismukes <dismukes@adacore.com>
19300 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
19301 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
19302 targets (such as AAMP).
19304 2004-12-07 Ed Schonberg <schonberg@adacore.com>
19306 * atree.adb (Visit_Itype): Create a new name for the generated itype,
19307 because the back-end may otherwise treat it as a redefinition of the
19310 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
19312 * back_end.adb (Scan_Back_End_Switches): Accept --param.
19314 * lang-specs.h: Accept --param.
19316 2004-12-07 Vincent Celier <celier@adacore.com>
19318 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
19319 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
19320 Current_Body_Suffix => Ada_Body_Suffix).
19321 Take into account Externally_Built attribute.
19323 * clean.adb (In_Extension_Chain): Always return False when one of the
19324 parameter is No_Project.
19325 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
19326 Ada_Language_Index).
19327 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
19328 Process_Languages for procedure Parse).
19330 * gnatcmd.adb (Carg_Switches): New table.
19331 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
19332 Adapt to name changes in package Prj (Current_Spec_Suffix =>
19333 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
19335 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
19336 Header_Num and function Hash are now declared in package Prj,
19339 * prj.adb (Suffix_Of): New function.
19340 (Set (Suffix)): New procedure.
19341 (Hash): One function moved from Prj.Com
19342 (Is_Present, Language_Processing_Data_Of): New functions
19343 (Set): Two new procedures
19344 (Add_Language_Name, Display_Language_Name): New procedures
19346 * prj.ads: (Suffix_Of): New function
19347 (Set (Suffix)): New procedure
19348 Add several types and tables for multi-language support.
19349 (Header_Num): Type moved from Prj.Com
19350 (Hash): Two functions moved from Prj.Com
19351 (Is_Present, Language_Processing_Data_Of): New functions
19352 (Set): Two new procedures
19353 (Add_Language_Name, Display_Language_Name): New procedures
19354 (Naming): Component name changes:
19355 Current_Spec_Suffix => Ada_Spec_Suffix,
19356 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
19357 Impl_Suffixes, Supp_Suffixes.
19358 (Project_Data): New components: Externally_Built, Supp_Languages,
19359 First_Language_Processing, Supp_Language_Processing, Default_Linker,
19360 Default_Linker_Path.
19362 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
19363 new package Language_Processing with its attributes (Compiler_Driver,
19364 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
19365 Binder_Driver, Default_Linker).
19367 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
19368 (Header_Num): Type moved to package Prj
19370 * prj-env.adb: Adapt to name changes in package Prj
19371 (Current_Spec_Suffix => Ada_Spec_Suffix,
19372 Current_Body_Suffix => Ada_Body_Suffix).
19374 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
19375 default to the project path, except the "-" is one of the directories
19376 in env var ADA_PROJECT_PATH.
19377 (Current_Project_Path): Global variable, replacing Project_Path
19378 that was in the body of Prj.Part.
19379 (Project_Path): New function
19380 (Set_Project_Path): New procedure
19381 Initialize Current_Project_Path during elaboration of the package
19382 Remove dependency on Prj.Com, no longer needed
19384 * prj-ext.ads (Project_Path): New function
19385 (Set_Project_Path): New procedure
19387 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
19388 suffix is defined for language <lang>.
19389 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
19390 accessing directly the components of Naming.
19391 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
19392 Reorganise of this package.
19393 Break procedure Check in several procedures.
19395 * prj-nmsc.ads: Replace all procedures (Ada_Check,
19396 Other_Languages_Check and Language_Independent_Check) with a single
19399 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
19400 Process_Languages, no longer needed.
19402 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
19403 Current_Project_Path.
19404 Remove elaboration code, moved to the body of Prj.Ext
19405 Use new function Prj.Ext.Project_Path instead of old variable
19407 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
19408 When comparing with project paths on the stack, first put the resolved
19409 path in canonical case.
19410 (Parse_Single_Project): Set the path name of the project file in the
19411 tree to the normalized path.
19413 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
19414 parameter Process_Languages, no longer needed.
19415 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
19416 Other_Languages_Check.
19418 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
19419 to store the resolved canonical path of the project file.
19420 Remove dependency to Prj.Com, no longer needed
19422 * prj-util.adb: Adapt to name changes in package Prj
19423 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
19426 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
19427 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
19428 Externally_Built, Include_Option, Language_Processing.
19430 * makegpr.adb: Numerous changes due to changes in packages
19433 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
19434 default to the project path, except whe "-" is one of the directories
19435 in env var ADA_PROJECT_PATH.
19436 (Gnatls): In verbose mode, add the new section "Project Search Path:"
19438 2004-12-07 Robert Dewar <dewar@adacore.com>
19440 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
19442 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
19445 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
19446 flag. No longer needed now that we handle this in gnat1drv.adb.
19448 * repinfo.ads: Minor reformatting
19450 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19451 Olivier Hainque <hainque@adacore.com>
19452 Eric Botcazou <ebotcazou@adacore.com>
19454 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
19455 TYPE_SIZE_UNIT of result type if SIZE is not specified.
19456 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
19457 of a bitfield, which we know is useless and causes trouble because of
19458 alignment implications.
19460 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
19462 (process_attributes): Clear DECL_COMMON again when a section attribute
19464 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
19465 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
19466 (create_field_decl): Special case ADDRESSABLE negative to mean
19467 "no bitfield creation", to be used by make_aligning_type. Don't
19468 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
19469 fields claimed addressable still have to be bitfields. Use
19470 value_factor_p instead of a raw binop construction to check for the
19471 position's alignment.
19473 2004-12-07 Geert Bosch <bosch@adacore.com>
19475 * eval_fat.adb: Revert previous change.
19477 2004-12-07 Thomas Quinot <quinot@adacore.com>
19478 Ed Schonberg <schonberg@adacore.com>
19480 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
19481 with an implicit dereference as its prefix, use
19482 Insert_Explicit_Dereference instead of merely rewriting the prefix into
19483 an explicit dereference. This ensures that a reference to the original
19484 prefix is generated, if appropriate.
19486 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
19487 dereference is rewritten to an explicit one, generate a reference to
19488 the entity denoted by its prefix using the original prefix node, so
19489 the dereference can be properly recorded as a read of the denoted
19490 access value, if appropriate.
19492 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
19493 emitting 'assigned but never read' warning on a variable on the basis
19494 that it has an access type.
19495 (Check_References): Emit unreferenced warning when the scope is a
19498 2004-12-07 Robert Dewar <dewar@adacore.com>
19499 Ed Schonberg <schonberg@adacore.com>
19501 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
19504 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
19505 leaving call unchanged.
19506 This deals with the case where the pragma Import specified
19507 an external name, to be handled by the back end.
19509 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
19510 subprogram which is Imported with convention Intrinsic if an
19511 External_Name argument is specified.
19512 (Process_Import_Or_Interface): Properly diagnose link name argument.
19513 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
19514 with Sem_Ch6.Cannot_Inline.
19515 (Process_Inline): Provide separate warning for inapplicable inline
19517 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
19518 treatment is uniform on different targets.
19520 2004-12-07 Ed Schonberg <schonberg@adacore.com>
19522 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
19523 construct is rewritten, preserve end label to permit source navigation.
19525 2004-12-07 Thomas Quinot <quinot@adacore.com>
19527 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
19528 Specific_Build_Stub_Target): New subprograms.
19529 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
19530 the PCS implementation used, using the above PCS-customized subprograms.
19531 Minor reformatting.
19532 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
19533 for generation of DSA code targeted to the PolyORB PCS.
19534 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
19535 implementation of the partition communication subsystem in ancillary
19537 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
19538 PolyORB_Support.Build_Stub_Type): New subrograms containing the
19539 PCS-specific part of Add_Stub_Type.
19540 (Insert_Partition_Check): Use runtime library function to perform
19543 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
19544 (RE_Same_Partition): New entity, from s-parint.
19546 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
19548 2004-12-07 Gary Dismukes <dismukes@adacore.com>
19550 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
19551 Output the copyright message on a separate line from the version
19554 2004-12-07 Joel Brobecker <brobecker@adacore.com>
19556 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
19557 compile-time warning.
19559 2004-12-07 Robert Dewar <dewar@adacore.com>
19561 * g-regpat.adb: (Match): Change a misuse of or to or else
19563 2004-12-07 Ed Schonberg <schonberg@adacore.com>
19566 (Generate_Reference): Handle properly a reference to an entry formal,
19567 when an accept statement has a pragma Unreferenced for it.
19569 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
19570 and the Has_Pragma_Unreferenced flag for each formal before analyzing
19571 the body, to ensure that warnings are properly emitted for each accept
19572 statement of a given task entry.
19574 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
19576 * Makefile.in: Add support for foreign threads on VMS.
19578 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19580 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
19582 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
19584 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
19586 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
19588 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
19590 2004-12-07 Robert Dewar <dewar@adacore.com>
19592 * nlists.adb (Prepend_Debug): Remove parameters and nest within
19594 (Remove_Next_Debug): Same fix
19596 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
19597 maintain back pointers now, though we did not used to, and comments
19599 (Prepend): Remove pragma Inline.
19600 (Remove_Next): Same cleanup
19602 2004-12-07 Thomas Quinot <quinot@adacore.com>
19604 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
19605 used to record an implicit dereference as a read operation on its
19606 prefix when operating under -gnatc. Necessary to avoid spurious
19607 'variable assigned but never read' warnings in that mode.
19608 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
19609 is a non-overloaded implicit dereference, call the above subprogram to
19610 ensure proper recording of references.
19612 2004-12-07 Gary Dismukes <dismukes@adacore.com>
19614 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
19615 to be resolved later as part of Analyze_Iteration_Scheme's call to
19618 2004-12-07 Ed Schonberg <schonberg@adacore.com>
19620 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
19621 prefix is not a scalar type, place error message on prefix, not on
19624 2004-12-07 Bernard Banner <banner@adacore.com>
19626 * vxaddr2line.adb: Add support for x86 vxworks
19628 2004-12-07 Thomas Quinot <quinot@adacore.com>
19630 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
19631 documentation of the behaviour of these functions when passed an IP
19632 address that has no record in the system hosts database and no reverse
19635 * cstand.adb, a-tags.ads: Fix typos in comment.
19637 2004-12-07 Robert Dewar <dewar@adacore.com>
19639 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
19640 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
19641 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
19642 s-poosiz.ads: Minor reformatting
19644 * make.adb: Minor reformatting
19645 Add some ??? comments asking for more comments
19647 * s-poosiz.adb: Minor reformatting
19648 Add comments on alignment requirement
19650 * sinfo.ads: Remove obsolete comment and fix typo.
19652 2004-12-07 Vincent Celier <celier@adacore.com>
19653 Sergey Rybin <rybin@adacore.com>
19655 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
19656 Files" with the new tool and package names.
19657 Reformatting to suppress most of the warnings for line too long
19658 Document the new section "Project Search Path:" in the output of
19660 Add gnatmetric section
19662 2004-12-07 Vincent Celier <celier@adacore.com>
19664 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
19665 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
19666 and -eit to -ept. Added qualifier
19667 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
19669 2004-11-27 Andreas Schwab <schwab@suse.de>
19671 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
19673 2004-11-25 Arnaud Charlet <charlet@adacore.com>
19675 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
19676 internal implementation unit GNAT.Sockets.Thin,
19677 as their usage for sockets is non-portable (using the read and write
19678 functions from the system runtime library is fine on UNIX but won't
19679 work under Windows).
19681 * mingw32.h: Update copyright notice.
19683 2004-11-25 Arnaud Charlet <charlet@adacore.com>
19685 * ada-tree.h: Minor reformatting of previous change to avoid lines
19686 longer than 79 characters.
19688 2004-11-25 Olivier Hainque <hainque@adacore.com>
19690 * tb-gcc.c: GCC infrastructure based implementation of
19693 2004-11-24 Steven Bosscher <stevenb@suse.de>
19695 * misc.c (gnat_post_options): Don't clear
19696 flag_inline_functions.
19698 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
19701 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
19704 2004-11-21 Andreas Jaeger <aj@suse.de>
19706 * stylesw.adb: Change Style_Check_Subprogram_Order to
19707 Style_Check_Order_Subprograms.
19709 2004-11-18 Arnaud Charlet <charlet@adacore.com>
19711 * adaint.h, adaint.c
19712 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
19714 Add also a cast to kill another warning.
19715 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
19716 parameter with the priority class of the parent process instead of
19717 always using the NORMAL_PRIORITY_CLASS.
19718 (__gnat_dup): New function.
19719 (__gnat_dup2): New function.
19720 (__gnat_is_symbolic_link): Enable the effective body of this
19721 function when __APPLE__ is defined.
19723 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
19726 2004-11-18 Olivier Hainque <hainque@adacore.com>
19728 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
19729 address of which may be used to represent "others" and "all others"
19730 choices in exception tables, instead of the current harcoded
19731 (void *)0 and (void *)1.
19732 (Setup_Exception): Do nothing in the GNAT SJLJ case.
19734 * gigi.h (others_decl, all_others_decl): New decls representing the
19735 new Others_Value and All_Others_Value objects.
19736 (struct attrib): Rename "arg" component as "args", since GCC expects a
19737 list of arguments in there.
19739 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
19740 corresponding objects exported by a-exexpr, instead of hardcoded dummy
19743 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
19744 others_decl and all_others_decl instead of hardcoded dummy addresses
19745 to represent "others" and "all others" choices, which is cleaner and
19746 more flexible with respect to the possible eh pointer encoding policies.
19748 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
19749 (process_attributes): Account for the naming change of the "args"
19750 attribute list entry component.
19752 * decl.c (build_attr_list): Rename into prepend_attributes to allow
19753 cumulating attributes for different entities into a single list.
19754 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
19755 attributes for the current entity and propagate first subtype
19756 attributes to other subtypes.
19757 <E_Procedure>: Attribute arguments are attr->args and not
19758 attr->arg any more.
19759 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
19760 argument provided, as this is what GCC expects. Use NULL_TREE instead
19763 2004-11-18 Robert Dewar <dewar@adacore.com>
19765 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
19766 Minor reformatting througout (including new function specs)
19767 Add ??? comments asking for clarification.
19769 2004-11-18 Thomas Quinot <quinot@adacore.com>
19771 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
19772 incomplete duplicate implementation of this subprogram from butil.
19774 2004-11-18 Thomas Quinot <quinot@adacore.com>
19776 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
19777 procedures factors the common processing for building an RPC receiver
19778 for an RCI package or an RACW type.
19779 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
19780 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
19781 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
19783 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
19785 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
19787 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
19788 distribution subprogram identifiers that are either subprogram numbers
19790 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
19791 string distribution identifiers assigned to a given subprogram.
19792 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
19793 (Add_RAS_Dereference_TSS): Add comments.
19794 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
19795 is not referenced yet because it will be used by the PolyORB DSA
19797 (Insert_Partition_Check): Remove fossile code.
19798 (First_RCI_Subprogram_Id): Document this constant.
19799 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
19801 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
19802 replaced with calls to Get_Library_Unit_Name_String. Previously there
19803 were several instances of the same code in different locations in the
19804 compiler; this checkin completes the replacement of all of these
19805 instances with calls to a common subprogram.
19806 Minor reformatting.
19808 * sem_dist.adb: Remove comment noting that RPC receiver generation
19809 should be disabled for RACWs that implement RASs.
19810 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
19812 * sem_util.ads, sem_util.adb (Has_Stream): New function
19813 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
19814 qualified name of a library unit into the name buffer.
19815 (Note_Possible_Modification): Generate a reference only
19816 if the context comes from source.
19818 * snames.ads (PCS_Names): New subtype corresponding to names of
19819 supported implementations of the Partition Communication Subsystem
19820 (PCS) (i.e. the runtime library support modules for the distributed
19823 2004-11-18 Robert Dewar <dewar@adacore.com>
19824 Ed Schonberg <schonberg@adacore.com>
19826 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
19827 (Has_Rep_Pragma): New function
19828 (Has_Attribute_Definition_Clause): New function
19829 (Record_Rep_Pragma): Moved here from sem_ch13.adb
19830 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
19832 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
19834 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
19835 (Expand_Pragma_Psect_Object): New procedure
19836 These procedures contain the revised and cleaned up processing for
19837 these two pragmas. This processing was formerly in Sem_Prag, but
19838 is more appropriately moved here. The cleanup involves making sure
19839 that the pragmas are properly attached to the tree, and that no
19840 nodes are improperly shared.
19842 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
19843 pragmas to Exp_Prag, which is more appropriate.
19844 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
19845 check for duplicates Remove use of Is_Psected flag, no longer needed.
19846 Use new Make_String_Literal function with string.
19848 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
19849 that are functions return universal values, that have to be converted
19850 to the context type.
19851 Use new Make_String_Literal function with string.
19852 (Get_Stream_Convert_Pragma): New function, replaces the use of
19853 Get_Rep_Pragma, which had to be kludged to work in this case.
19855 * freeze.adb: Use new Has_Rep_Pragma function
19857 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
19858 function with string.
19859 Use new Has_Rep_Pragma function.
19861 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
19864 2004-11-18 Robert Dewar <dewar@adacore.com>
19866 * errout.ads, errout.adb: (First_Sloc): New function
19868 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
19869 check (-gnatyx) instead of being included as a redundant construct
19872 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
19873 Style_Check_Order_Subprograms.
19875 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
19876 stylesw.adb: Add Style_Check_Xtra_Parens
19878 * usage.adb: Add line for -gnatyx (check extra parens)
19880 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
19882 2004-11-18 Ed Schonberg <schonberg@adacore.com>
19883 Robert Dewar <dewar@adacore.com>
19885 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
19886 discriminant of a constrained subtype, analyze the copy of the
19887 corresponding constraint, because in some cases it may be only
19888 partially analyzed.
19889 Removes long-lived ??? comments.
19891 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
19892 handled controlled or secondary-stack expressions within the
19893 iteration_scheme of a loop.
19895 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
19896 bounds that may contain functions calls, to prevent memory leaks when
19897 the bound contains a call to a function that uses the secondary stack.
19898 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
19899 generate temporaries for loop bounds that might contain function calls
19900 that require secondary stack and/or finalization actions.
19902 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
19903 selected component and the selector is overloadable (not just a
19904 function) treat as function call, Analyze_Call will disambiguate if
19906 (Analyze_Selected_Component): Do not generate an actual subtype for the
19907 selected component if expansion is disabled. The actual subtype is only
19908 needed for constraint checks.
19909 (Analyze_Allocator): If restriction No_Streams is set, then do
19910 not permit objects to be declared of a stream type, or of a
19911 composite type containing a stream.
19913 * restrict.ads: Remove the a-stream entry from Unit_Array, since
19914 No_Streams no longer prohibits with'ing this package.
19916 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
19917 discriminants, but the parent base has unknown discriminants, there is
19918 no discriminant constraint to inherit. Such a discrepancy can arise
19919 when the actual for a formal type with unknown discriminants is a
19920 similar private type whose full view has discriminants.
19921 (Analyze_Object_Declaration): If restriction No_Streams is set, then
19922 do not permit objects to be declared of a stream type, or of a
19923 composite type containing a stream.
19925 2004-11-18 Ed Schonberg <schonberg@adacore.com>
19927 * exp_dbug.ads: Update documentation to reflect simpler encoding for
19928 protected operations.
19930 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
19931 generated name, it complicates decoding in gdb and hinders debugging
19932 of protected operations.
19933 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
19934 flag for the protected entry barrier function.
19935 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
19936 flag for the protected entry function.
19938 2004-11-18 Nicolas Setton <setton@adacore.com>
19940 * expect.c: Define __unix__ when __APPLE__ is defined.
19942 * Makefile.in: Inform the value of the variable GMEM_LIB in the
19943 Darwin-specific section.
19945 * lang-specs.h: Change the placement of the %1 marker.
19946 Works around the fact that gcc adds -fPIC by default under Darwin.
19948 2004-11-18 Ed Schonberg <schonberg@adacore.com>
19950 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
19951 type of the object with the packed array type, set the Analyzed flag
19952 on the object if it is an entity or simple indexed component, to avoid
19953 spurious type errors.
19955 2004-11-18 Gary Dismukes <dismukes@adacore.com>
19957 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
19958 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
19959 separate line from the version message.
19961 2004-11-18 Ed Falis <falis@adacore.com>
19963 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
19965 (init_float): Eliminate initialization of floating point status for
19966 AE653. The instructions have no effect for vThreads.
19968 2004-11-18 Vincent Celier <celier@adacore.com>
19970 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
19971 gnatbind is invoked with -shared.
19973 2004-11-18 Jose Ruiz <ruiz@adacore.com>
19975 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
19976 for Detect_Blocking which is redundant with the check done within the
19977 procedure Protected_Single_Entry_Call.
19978 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
19979 Detect_Blocking which is redundant with the check done within the
19980 procedure Protected_Single_Entry_Call.
19982 2004-11-18 Vincent Celier <celier@adacore.com>
19984 * makegpr.adb (Compile): Put the compiling switches (in package
19985 Compiler and on the command line) immediately after "-c", instead of
19986 at the end of the command line invocation of the compiler, when
19987 compiling a non-Ada file.
19988 (Build_Global_Archive): When there is no need to rebuild the archive,
19989 set Global_Archive_Exists, so that the archive is passed to the linker
19992 2004-11-18 Robert Dewar <dewar@adacore.com>
19993 Sergey Rybin <rybin@adacore.com>
19996 Remove extra paren check from list of checks for redundant constructs
19997 Add documentation of new -gnatyx style check (check extra parens)
19998 Remove paragraph about gnatelim debug options.
20000 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
20001 objects rather than forbidding dependencies on the package Ada.Streams.
20003 * sinfo.ads: Add ??? note that we should document pragmas passed to
20006 * g-expect.ads: Fix a few typos in the comments.
20008 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
20010 * misc.c (gnat_handle_option): Use %< and %> for quoting in
20013 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20015 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
20017 2004-11-07 Andreas Schwab <schwab@suse.de>
20019 * Makefile.in (install-gnatlib): Remove spurious hyphen.
20021 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
20024 * Makefile.in (darwin): Set soext to .dylib.
20026 2004-10-26 Vincent Celier <celier@gnat.com>
20027 Thomas Quinot <quinot@act-europe.fr>
20029 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
20030 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
20031 there is no use of GNAT.Sockets.Constants.
20032 Remove remaining pragma Import for C_Write
20033 Remove C_Read and C_Write from internal implementation unit
20034 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
20035 the read and write functions from the system runtime library is fine
20036 on UNIX but won't work under Windows).
20038 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
20039 (Check_Selector): Use C_Recv instead of C_Read.
20040 Selectors are the GNAT.Sockets abstraction to perform a select()
20041 call on a set of descriptors. To allow abortion of an ongoing
20042 select operation, some data is written to a dedicated socket that
20043 is always monitored.
20044 Under Windows, the write and read library functions cannot operate
20045 on sockets, so we need to use send and recv instead, which is portable
20046 across all supported platforms.
20048 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
20049 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
20050 (using the read and write functions from the system runtime library is
20051 fine on UNIX but won't work under Windows).
20053 2004-10-26 Nicolas Setton <setton@act-europe.fr>
20055 * mlib-tgt-darwin.adb: New file.
20057 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20058 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
20059 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
20060 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
20063 * Makefile.in: Add support for building shared libraries under Darwin.
20064 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
20065 the low level EH init subprogram to be called from __gnat_initialize.
20067 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
20068 indicates which options to pass to the archive indexer.
20070 * mlib-utl.adb: Add support for calling ranlib with additional
20071 options. This is needed for instance under Mac OS X.
20072 (Ranlib_Options): New global variable, used to store the potential
20073 options to pass to ranlib.
20074 (Ar): Use Ranlib_Options when spawning ranlib.
20075 (Initialize): Set the value of ranlib option.
20077 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
20079 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
20080 instead of 8K, to reflect the real potential needs for stack-checking
20083 2004-10-26 Pascal Obry <obry@gnat.com>
20085 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
20087 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
20088 Windows only the initial thread stack size can be set so it is good to
20089 start we a low stack size.
20090 The OS will adjust the size as needed.
20092 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
20093 Nicolas Setton <setton@act-europe.fr>
20095 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
20096 "__unix__" instead of "unix".
20097 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
20098 sections were just mistakenly ignored. The former is
20099 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
20100 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
20101 of hpux. This prevents an unwanted definition of the symbol
20102 convert_addresses in adaint.o.
20104 2004-10-26 Gary Dismukes <dismukes@gnat.com>
20106 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
20107 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
20109 2004-10-26 Cyrille Comar <comar@act-europe.fr>
20111 * a-filico.ads, a-filico.adb: fix incorrect header.
20113 2004-10-26 Javier Miranda <miranda@gnat.com>
20115 * a-ststio.ads: Fix typo in identifier
20117 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
20119 * sem_ch4.adb: Minor reformatting.
20121 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20123 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
20124 enabled, check the result of unary and binary operations when the
20125 expression is the right-hand side of an assignment.
20127 2004-10-26 Vincent Celier <celier@gnat.com>
20129 * clean.adb (Delete): Do not output warnings when in quiet output and
20130 not in verbose mode.
20131 (Force_Deletions): New Boolean flag, defaulted to False
20132 (Delete): Only delete a file if it is writable, and when
20133 Force_Deletions is True.
20134 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
20135 (Usage): Line for new switch -f
20136 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
20139 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
20141 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
20142 JM type only if its size matches that of the wrapper. When a size is
20143 prescribed and the field is not aliased, remove the wrapper of a JM
20144 type only if the size is not greater than that of the packed array.
20145 (gnat_to_gnu_entity): Change the extension of packed array wrappers
20148 2004-10-26 Geert Bosch <bosch@gnat.com>
20150 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
20151 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
20152 (Pred): Implement in terms of Succ.
20154 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20156 * exp_aggr.adb (Safe_Component): An aggregate component that is an
20157 unchecked conversion is safe for in-place use if the expression of the
20158 conversion is safe.
20159 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
20160 be expandable in place even if the aggregate does not come from source.
20161 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
20162 designated object of an allocator in place, rather than building it
20163 first on the stack. The previous scheme forces a full copy of the array,
20164 and may be altogether unsusable if the size of the array is too large
20165 for stack allocation.
20167 2004-10-26 Robert Dewar <dewar@gnat.com>
20169 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
20170 compares if the component is atomic.
20172 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
20173 array assignment if the component type is atomic.
20175 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20176 Eric Botcazou <ebotcazou@act-europe.fr>
20178 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
20179 is aliased and is a by_reference type, do not pass by copy.
20180 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
20181 detect whether the call is in the right side of an assignment or
20182 the expression of an object declaration. Recurse on component
20183 association within aggregates.
20184 Call it in the condition that determines whether the temporary is
20185 necessary for correct stack-checking.
20187 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
20189 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
20190 RACW_Type, used in the PolyORB version.
20191 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
20192 version and the GARLIC version.
20194 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
20195 Rename RCI_Info to RCI_Locator for better consistency between the
20196 GARLIC and PolyORB versions of the distributed systems annex.
20197 (DSA_Implementation_Name): This enumeration lists the possible
20198 implementations of the Partition Communication Subsystem for the
20199 Distributed Systems Annex (DSA). The three available implementations
20200 are the dummy stub implementation (No_DSA), and two versions based on
20201 two different distribution runtime libraries: GARLIC and PolyORB. Both
20202 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
20204 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
20207 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
20208 between the GARLIC and PolyORB versions of the distributed systems
20210 Remove RE_Unbounded_Reclaim_Pool since it is unused.
20212 2004-10-26 Gary Dismukes <dismukes@gnat.com>
20214 * gnat1drv.adb: Suppress calling the back end when
20215 Frontend_Layout_On_Target is true.
20217 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
20219 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
20220 Set_Read_Only): New subprograms.
20221 These new routines allow the user to set or unset the Owner execute
20222 and Owner write permission flags on a file.
20224 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
20225 GNAT.OS_Lib.Set_Executable instead of rolling our own.
20227 2004-10-26 Matthew Gingell <gingell@gnat.com>
20229 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
20231 2004-10-26 Pascal Obry <obry@gnat.com>
20233 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
20234 memory before the faulting page we properly test the process read
20235 access for this address using appropriate Win32 routine.
20236 (HPUX sections): guard with "__hpux__" instead of "hpux".
20238 2004-10-26 Robert Dewar <dewar@gnat.com>
20240 * lib-xref.adb (Generate_Reference): Don't complain about reference to
20241 entry parameter if pragma Unreferenced set, since we do not properly
20242 handle the case of multiple parameters.
20244 2004-10-26 Vincent Celier <celier@gnat.com>
20246 * prj-env.adb: (Contains_ALI_Files): New Boolean function
20247 (Ada_Objects_Path.Add): For a library project, add to the object path
20248 the library directory only if there is no object directory or if the
20249 library directory contains ALI files.
20250 (Set_Ada_Paths.Add.Recursive_Add): Ditto
20252 2004-10-26 Vincent Celier <celier@gnat.com>
20254 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
20255 extension of library projects.
20257 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
20258 path defaults to ".:<prefix>/lib/gnat".
20259 (Parse): For an extending all project, allow direct import of a project
20260 that is virtually extended.
20262 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
20263 the specified name is directly imported, return its ID. Otherwise, if
20264 an extension of this project is imported, return the ID of the
20267 2004-10-26 Robert Dewar <dewar@gnat.com>
20269 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
20270 (Sub3): New procedure, used by Scaled_Divide
20271 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
20272 correct more than one instance of failure to propagate carries
20274 (Double_Divide): Handle overflow case of largest negative number
20275 divided by minus one.
20277 * s-arit64.ads (Double_Divide): Document that overflow can occur in
20278 the case of a quotient value out of range.
20281 2004-10-26 Robert Dewar <dewar@gnat.com>
20283 * s-bitops.adb (Bit_Eq): Remove redundant check.
20285 * s-bitops.ads: Minor comment updates
20286 Change some occurrences of Address to System.Address
20288 * s-carsi8.ads: Fix minor cut-and-paste error in comments
20290 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20292 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
20293 accessibility check to prefix that is a protected operation.
20295 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20297 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
20298 empty, post message on stub.
20300 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20301 Javier Miranda <miranda@gnat.com>
20303 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
20304 current instance appears within a unit that is directly in the context
20306 Used to determine whether the body of the instance should be analyzed
20307 immediately after its spec, to make its subprogram bodies available
20308 for front-end inlining.
20309 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
20310 constraint is not allowed on the component type (AARM 12.5.3(3))
20312 2004-10-26 Cyrille Comar <comar@act-europe.fr>
20314 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
20315 'Storage_Pool): enhance, document & limit detection of non-sharable
20318 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
20320 * s-pooglo.ads: Add more documentation now that this pool is properly
20323 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20325 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
20326 or protected type with discriminants, do not constrain the
20327 corresponding record type if the subtype declaration has no
20328 discriminant constraints. This can be the case in source code, or in
20329 the subtype declaration created to rename an actual type within an
20332 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20334 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
20335 different kind of stub (possibly wrong name for file), do not check
20337 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
20338 includes call to some function that returns an unconstrained type, do
20341 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20343 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
20344 appear in the code for the main unit. Dependencies among units in the
20345 context of the main unit are established when those other units are
20346 compiled. Otherwise spurious elaboration constraints can generate
20347 incorrect elaboration circularities.
20349 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
20350 Ed Schonberg <schonberg@gnat.com>
20352 * sem_util.adb (Is_Aliased_View): Defend against the case where this
20353 subprogram is called with a parameter that is not an object name. This
20354 situation arises for some cases of illegal code, which is diagnosed
20355 later, and in this case it is wrong to call Is_Aliased, as that might
20356 cause a compiler crash.
20357 (Explain_Limited_Type): Refine previous fix to include
20358 inherited components of derived types, to provide complete information.
20360 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
20361 is the prival for a protected object.
20362 It is necessary to mark this entity as a variable, in addition to
20363 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
20364 modified to avoid checking the Aliased flag on entities that are not
20365 objects. (Checking that flag for non-objects is erroneous and could
20366 lead to a compiler crash).
20368 2004-10-26 Robert Dewar <dewar@gnat.com>
20370 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
20371 X_Frac = 0.5, then we know that the number X must be positive.
20372 (Succ): Remove the same redundant test, and also fix the primary test
20373 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
20375 (Decompose): Add fuller comments to spec
20377 2004-10-26 Pascal Obry <obry@gnat.com>
20379 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
20380 validity (process must have read access). Set to 0 in all other cases.
20381 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
20382 violation on Win32.
20383 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
20384 segmentation violation.
20386 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
20388 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
20389 whose type is a constructed subtype of an aliased object with an
20390 unconstrained nominal subtype, convert the actual to the constructed
20391 subtype before taking its address.
20393 2004-10-26 Vincent Celier <celier@gnat.com>
20395 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
20396 (Is_Path_Name_Case_Sensitive): New function
20398 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
20399 (Base_Name, Simple_Name, Current_Directory, Compose,
20400 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
20403 2004-10-26 Cyrille Comar <comar@act-europe.fr>
20404 Vasiliy Fofanov <fofanov@act-europe.fr>
20405 Vincent Celier <celier@gnat.com>
20407 * gnat_ugn.texi: Generalize "finding memory problems" section into a
20408 "memory management issues" section and document some of the useful
20409 memory pools provided as part of the GNAT library.
20410 Remove "virtual" from declaration of A::method2 in
20411 the simple example of Ada/C++ mixed system.
20412 Library Projects may be virtually extended: their virtual extensions
20413 are not Library Projects.
20414 Added section on extending project hierarchies.
20416 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
20418 * adaint.c (__gnat_get_libraries_from_registry): Cast value
20420 (__gnat_portable_spawn): Remove const.
20422 * mingw32.h (MAXPATHLEN): Check for previous definition.
20424 2004-10-17 Matthias Klose <doko@debian.org>
20426 * gnatvsn.ads: Set gnat library version to 4.0.
20428 2004-10-05 Vincent Celier <celier@gnat.com>
20430 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
20432 2004-10-04 Laurent GUERBY <laurent@guerby.net>
20435 * Makefile.in: Define and use RANLIB_FLAGS.
20437 2004-10-04 Pascal Obry <obry@gnat.com>
20439 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
20440 other x86 platforms).
20442 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
20444 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
20445 in general and triggers stack alignment adjustment for thread entry
20446 points on targets where this is necessary.
20448 2004-10-04 Bernard Banner <banner@gnat.com>
20451 * Makefile.in: Add section for powerpc linux
20452 Add variant i-vxwork-x86.ads
20454 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
20456 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
20458 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
20459 table registration calls when need be. Ensures no reference to the crt
20460 ctors symbol are issued in the SJLJ case, which avoids possible
20461 undefined symbol errors in the case of modules to be statically linked
20464 2004-10-04 Javier Miranda <miranda@gnat.com>
20466 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
20467 in-line the code corresponding to subprogram Analyze_Actuals. In
20468 addition, analyze the actuals only in case of subprogram call.
20470 2004-10-04 Ed Falis <falis@gnat.com>
20472 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
20474 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
20476 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
20477 in the documentation.
20479 2004-10-04 Robert Dewar <dewar@gnat.com>
20481 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
20483 (Analyze_Block_Statement): Add circuitry to detect following dead code
20484 (Check_Unreachable_Code): Handle case of block exit
20486 2004-10-04 Robert Dewar <dewar@gnat.com>
20488 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
20489 (XMatchD): Avoid warning for Logic_Error call
20491 2004-10-04 Robert Dewar <dewar@gnat.com>
20493 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
20494 consider expressions buried within a procedure actual to be an actual.
20495 This caused some blowups with uses of packed slices within a procedure
20498 2004-10-04 Robert Dewar <dewar@gnat.com>
20500 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
20501 longer need to be initialized to zero.
20502 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
20503 initialized to zero.
20505 * checks.adb (Expr_Known_Valid): Packed arrays are now always
20506 considered valid, even if the representation is modular. That's correct
20507 now that we no longer initialize packed modular arrays to zero.
20509 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
20510 suffixes. These are now documented as the only cases in which the
20511 debugger ignores outer records.
20512 Previously, the spec allowed arbitrary suffixes for this purpose.
20513 Change name of LJM to JM for packed array pad records
20514 Create separate section on packed array handling, and add a whole new
20515 set of comments to this section describing the situation with packed
20516 modular types and justification requirements depending on endianness.
20518 2004-10-04 Robert Dewar <dewar@gnat.com>
20520 * a-except.adb: Add a comment for last change
20522 * einfo.ads: Minor spelling correction in comment
20524 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
20526 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
20529 * sem_util.ads: Minor comment update
20531 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20533 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
20534 Inline_Always when in Configurable_Run_Time mode.
20536 * sem_prag.adb (Process_Convention): If entity is an inherited
20537 subprogram, apply convention to parent subprogram if in same scope.
20538 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
20539 when in Configurable_Run_Time mode.
20541 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20543 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
20544 class_wide type after component list has been inherited.
20546 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20548 * sem_ch12.adb (Check_Generic_Actuals): New predicate
20549 Denotes_Previous_Actual, to handle properly the case of a private
20550 actual that is also the component type of a subsequent array actual.
20551 The visibility status of the first actual is not affected when the
20552 second is installed.
20553 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
20554 make fully recursive the treatment of formals of packages declared
20556 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
20557 the above on exit from an instantiation.
20558 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
20559 current instantiation which is now complete.
20560 (Analyze_Package_Instantiation): No instantiated body is needed if the
20561 main unit is generic. Efficient, and avoid anomalies when a instance
20562 appears in a package accessed through rtsfind.
20564 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20566 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
20567 do not generate a declaration for a temporary if the call is part of a
20568 library-level instantiation.
20570 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20572 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
20573 searching for a limited component to flag.
20575 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
20576 expansion of Input, to account for the fact that the implicit call
20577 generated by the attribute reference must freeze the user-defined
20578 stream subprogram. This is only relevant to 'Input, because it can
20579 appear in an object declaration, prior to the body of the subprogram.
20581 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
20582 expansion can proceed and further errors uncovered.
20583 (Minor clean up): Fix cases of using | instead of \ for continuation
20586 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20588 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
20590 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
20591 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
20592 Use gcc_assert and gcc_unreachable.
20594 * decl.c (gnat_to_gnu_entity, case object): Check and process a
20595 specified alignment before validating size.
20596 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
20597 stripped-down declaration for the type of the inner field when making
20600 * utils.c (finish_record_type): Do not compute the size in units
20601 incrementally. Instead compute it once for the rep clause case.
20602 Use gcc_assert and gcc_unreachable.
20604 2004-10-04 Vincent Celier <celier@gnat.com>
20606 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
20608 (Is_Valid_Path_Name): Take '/' as a directory separator.
20610 2004-10-04 Vincent Celier <celier@gnat.com>
20612 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
20613 (Extended_Project) only if Extended_Project is defined, to avoid
20615 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
20617 (Parse_Single_Project): Ditto.
20619 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
20620 Add_To_Project_Path for virtual projects.
20622 2004-10-04 Vincent Celier <celier@gnat.com>
20624 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20625 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
20626 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
20627 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
20628 parameter Options_2.
20630 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
20631 Build_Dynamic_Library with an empty Options_2.
20633 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
20636 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
20637 directory separator, if any.
20638 (Gprmake): Do not allow mains on the command line for library projects.
20639 Do not attempt to link when the project is a library project.
20640 (Library_Opts): New table to store Library_Options.
20641 (Build_Library): If Library_Options is specified, pass these options
20642 when building a shared library.
20644 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
20646 * s-tposen.adb (Service_Entry): The object must be always unlocked at
20647 the end of this procedure now that the unlock operation was inserted
20650 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
20652 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
20653 corresponding to the Preallocated_Stacks flags in System.
20654 (Get_Target_Parameters): Including the processing for
20655 Preallocated_Stacks.
20657 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
20658 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
20659 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
20660 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
20661 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
20662 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
20663 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
20664 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
20665 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
20666 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
20667 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
20668 used to signal whether the compiler creates the required stacks and
20669 descriptors for the different tasks (when True) or it is done by the
20670 underlying operating system at run time (when False).
20671 It is initially set to False in all targets.
20673 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
20674 if it is supported by the target.
20675 (Make_Task_Create_Call): Pass the stack address if it has been
20676 previously created. Otherwise pass a Null_Address.
20678 * snames.adb: Add _stack.
20680 * snames.ads: Add Name_uStack. Required to allow the expander to
20681 statically allocated task stacks.
20683 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
20684 Stack_Address argument.
20685 Check that its value is equal to Null_Address because this target does
20686 not support the static stack allocation.
20688 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
20690 * usage.adb: Change "pragma inline" to "pragma Inline" in information
20693 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
20695 * exp_dist.adb: Split declaration of asynchronous flag out of
20696 Add_RACW_Read_Attribute.
20697 Minor reformatting for better alignment with PolyORB version.
20698 Store the entity for the asynchronous flag of an RACW, rather than the
20699 expression, in the asynchronous flags table. This will allow this flag
20700 to be used in other subprograms beside Add_RACW_Read_Attribute.
20702 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
20704 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
20705 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
20706 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
20707 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
20708 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
20709 sockets constant MSG_NOSIGNAL (Linux-specific).
20710 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
20711 all Send operations.
20712 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
20713 from trigerring SIGPIPE.
20714 Rename components to avoid clash with Ada 2005 possible reserved
20716 (Check_Selector): When the select system call returns with an error
20717 condition, propagate Socket_Error to the caller.
20719 2004-10-01 Jan Hubicka <jh@suse.cz>
20721 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
20723 2004-09-23 Robert Dewar <dewar@gnat.com>
20726 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
20727 instead do this at freeze time (we won't do it if there is an address
20729 Change "pragma inline" to "pragma Inline" in information and error
20731 Minor reformatting.
20733 * freeze.adb (Check_Address_Clause): Remove previous change, not the
20734 right way of doing things after all.
20735 (Freeze_Entity): For object, set Is_Public for imported entities
20736 unless there is an address clause present.
20738 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
20740 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
20741 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
20742 ensures proper handling of types with rep clauses, which might have
20743 their TYPE_SIZE set already.
20745 2004-09-21 Robert Dewar <dewar@gnat.com>
20747 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
20748 packed array types in both little- and big-endian cases. This change
20749 ensures that we no longer count on the unused bits being initialized
20750 for such types (and in particular ensures that equality testing will
20751 only read the relevant bits).
20752 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
20753 These changes mean that we no longer need to initialize small packed
20755 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
20756 optimization to an LJM field as to its parent field.
20758 * ada-tree.h, trans.c, utils.c, utils2.c:
20759 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
20761 2004-09-20 Jan Hubicka <jh@suse.cz>
20763 * utils.c (gnat_finalize): Remove.
20764 (end_subprog_body): Directly call cgraph_finalize_function;
20765 do not lower the nested functions.
20767 2004-09-20 Robert Dewar <dewar@gnat.com>
20770 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
20771 if an address clause is present, since that means that the Import
20774 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
20776 * 5tsystem.ads: Removed, no longer used.
20778 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
20779 Zack Weinberg <zack@codesourcery.com>
20781 * ada-tree.def: Use tree_code_class enumeration constants
20782 instead of code letters.
20783 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
20784 Update for new tree-class enumeration constants.
20786 2004-09-17 Vincent Celier <celier@gnat.com>
20788 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
20789 capabilities of the general project manager.
20791 2004-09-09 Vincent Celier <celier@gnat.com>
20793 * a-direct.ads: Add pragma Ada_05
20794 (Directory_Entry_Type): Give default value to component Kind to avoid
20795 not initialized warnings.
20797 * a-direct.adb (Current_Directory): Remove directory separator at the
20799 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
20800 an existing directory.
20801 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
20802 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
20803 Convert the result to File_Size.
20805 * prj.ads: (Project_Error): New exception
20807 * prj-attr.adb: Except in procedure Initialize, Fail comes from
20808 Prj.Com, not from Osint.
20809 (Attrs, Package_Attributes): Tables moved to private part of spec
20810 (Add_Attribute, Add_Unknown_Package): Moved to new child package
20812 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
20813 Prj.Project_Error after call to Fail.
20814 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
20815 Fail. Check that package name is not already in use.
20817 * prj-attr.ads: Comment updates to indicate that all subprograms may be
20818 used by tools, not only by the project manager, and to indicate that
20819 exception Prj.Prj_Error may be raised in case of problem.
20820 (Add_Unknown_Package, Add_Attribute): Moved to new child package
20822 (Attrs, Package_Attributes): Table instantiations moved from the body to
20823 the private part to be accessible from Prj.Attr.PM body.
20825 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
20826 from new package Prj.Attr.PM.
20827 (Parse_Attribute_Declaration): Call Add_Attribute from new package
20830 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
20832 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
20833 instead of Elaboration_Checks).
20835 * a-calend.adb: Minor reformatting
20837 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20839 * gigi.h (maybe_pad_type): New declaration.
20840 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
20842 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
20844 * cuintp.c: Convert to use buildN.
20846 * decl.c (maybe_pad_type): No longer static.
20847 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
20849 Convert to use buildN.
20851 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
20852 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
20853 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
20855 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
20856 (gnat_gimplify_expr, case ADDR_EXPR): New case.
20857 Convert to use buildN.
20859 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
20860 TREE_READONLY for const.
20861 Convert to use buildN.
20863 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
20864 (create_var_decl): Refine when TREE_STATIC is set.
20865 Convert to use buildN.
20867 2004-09-09 Gary Dismukes <dismukes@gnat.com>
20869 * gnat_ugn.texi: Delete text relating to checking of ali and object
20872 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
20875 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
20877 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
20878 pragmas recognized by GNAT.
20880 * gnat_rm.texi: Document pragma Detect_Blocking.
20882 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
20883 raise Program_Error if called from a protected operation.
20885 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
20886 the protected action nesting level.
20887 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
20888 protected action nesting level.
20889 (Unlock): When pragma Detect_Blocking is active decrease the protected
20890 action nesting level.
20892 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
20893 Protected_Action_Nesting.
20895 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
20896 Common_ATCB record. It contains the dynamic level of protected action
20897 nesting for each task. It is needed for checking whether potentially
20898 blocking operations are called from protected operations.
20899 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
20900 Detect_Blocking is active or not in the partition.
20902 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
20903 raise Program_Error if called from a protected operation.
20904 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
20905 Program_Error if called from a protected operation.
20906 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
20907 Program_Error if called from a protected operation.
20909 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
20910 raise Program_Error if called from a protected operation.
20912 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
20913 raise Program_Error if called from a protected operation, and increase
20914 the protected action nesting level.
20915 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
20916 Program_Error if called from a protected operation, and increase the
20917 protected action nesting level.
20918 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
20919 protected action nesting level.
20921 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
20922 raise Program_Error if called from a protected operation, and increase
20923 the protected action nesting level.
20924 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
20925 Program_Error if called from a protected operation, and increase the
20926 protected action nesting level.
20927 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
20928 raise Program_Error if called from a protected operation.
20929 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
20930 active, raise Program_Error if called from a protected operation.
20931 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
20932 protected action nesting level.
20934 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
20935 insertion of the statement raising Program_Error. The run time
20936 contains the required machinery for handling that.
20938 * sem_util.ads: Change comment associated to procedure
20939 Check_Potentially_Blocking_Operation.
20940 This procedure does not insert a call for raising the exception because
20941 that is currently done by the run time.
20943 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
20945 * init.c: Add the global variable __gl_detect_blocking that indicates
20946 whether pragma Detect_Blocking is active (1) or not (0). Needed for
20947 making the pragma available at run time.
20948 (__gnat_set_globals): Pass and update the detect_blocking parameter.
20950 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
20951 pragma Detect_Blocking is active.
20953 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
20955 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
20956 DB is found in the ali file. Any unit compiled with pragma
20957 Detect_Blocking active forces its effect in the whole partition.
20959 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
20960 Detect_Blocking is active and delay is called from a protected
20963 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
20964 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
20965 Detect_Blocking is active (0 otherwise).
20966 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
20967 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
20970 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
20972 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
20973 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
20976 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
20977 (Register_Receiving_Stub): Add Subp_Info formal parameter.
20978 Update API in placeholder implemetation of s-parint to reflect changes
20979 in distribution runtime library.
20981 * sem_ch3.adb (Expand_Derived_Record): Rename to
20982 Expand_Record_Extension.
20984 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
20985 primitive operations of potentially distributed object types that have
20986 non-controlling anonymous access formals.
20988 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
20990 New implementation of expansion for remote access-to-subprogram types,
20991 based on the RACW infrastructure.
20992 This version of sem_dist is compatible with PolyORB/DSA as well as
20995 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
20996 Asynchrronous that applies to a remote access-to-subprogram type, mark
20997 the underlying RACW type as asynchronous.
20999 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
21000 __gnat_using_gnu_linker to 1.
21002 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
21003 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
21004 GNAT.Perfect_Hash_Generators, and remove the empty
21005 GNAT.Perfect_Hash package.
21007 * atree.adb: Minor reformatting
21009 * exp_ch3.adb (Expand_Derived_Record): Rename to
21010 Expand_Record_Extension.
21011 (Build_Record_Init_Proc.Build_Assignment): The default expression in
21012 a component declaration must remain attached at that point in the
21013 tree so New_Copy_Tree copies it if the enclosing record type is derived.
21014 It is therefore necessary to take a copy of the expression when building
21015 the corresponding assignment statement in the init proc.
21016 As a side effect, in the case of a derived record type, we now see the
21017 original expression, without any rewriting that could have occurred
21018 during expansion of the ancestor type's init proc, and we do not need
21019 to go back to Original_Node.
21021 * exp_ch3.ads (Expand_Derived_Record): Rename to
21022 Expand_Record_Extension.
21024 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
21025 Returns the RACW type used to implement a remote access-to-subprogram
21027 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
21028 New subprograms. Used to create a proxy tagged object for a remote
21029 subprogram. The proxy object is used as the designated object
21030 for RAS values on the same partition (unless All_Calls_Remote applies).
21031 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
21032 System.Partition_Interface.Get_Unique_Remote_Pointer.
21033 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
21034 Renamed from Add_RAS_*_Attribute.
21035 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
21037 New implementation of expansion for remote access-to-subprogram types,
21038 based on the RACW infrastructure.
21040 * exp_dist.ads (Copy_Specification): Update comment to note that this
21041 function can copy the specification from either a subprogram
21042 specification or an access-to-subprogram type definition.
21044 2004-09-09 Ed Schonberg <schonberg@gnat.com>
21046 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
21047 in an instance, between an explicit subprogram an one inherited from a
21048 type derived from an actual.
21050 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
21051 add a polling call if the subprogram is to be inlined by the back-end,
21052 to avoid repeated calls with multiple inlinings.
21054 * checks.adb (Apply_Alignment_Check): If the expression in the address
21055 clause is a call whose name is not a static entity (e.g. a dispatching
21056 call), treat as dynamic.
21058 2004-09-09 Robert Dewar <dewar@gnat.com>
21060 * g-trasym.ads: Minor reformatting
21062 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
21063 packed arrays, since unused bits are expected to be zero for a
21066 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
21068 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
21071 2004-09-09 Pascal Obry <obry@gnat.com>
21073 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
21074 enable map file generation. Add the right option to generate the map
21075 file if Map_File is set to True.
21077 * gnatdll.adb (Gen_Map_File): New variable.
21078 (Syntax): Add info about new -m (Map_File) option.
21079 (Parse_Command_Line): Add support for -m option.
21080 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
21081 Minor reformatting.
21083 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
21085 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
21086 new gnatdist implementation.
21087 Define a subpackage isolating the output routines specific to this
21090 2004-09-09 Joel Brobecker <brobecker@gnat.com>
21092 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
21094 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
21096 2004-09-09 Cyrille Comar <comar@act-europe.fr>
21098 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
21101 * opt.ads: Add Ada_Version_Runtime constant used to decide which
21102 version of the language is used to compile the run time.
21104 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
21106 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
21107 of variable length temporaries for function return now that the
21108 back-end and gigi support it.
21110 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21112 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
21114 * trans.c (struct stmt_group): Delete field GLOBAL.
21115 (gnat_init_stmt_group): Do not initialize it.
21116 (call_to_gnu): Use save_expr, not protect_multiple_eval.
21117 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
21118 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
21119 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
21120 (start_stmt_group): Likewise.
21121 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
21123 * utils2.c (ggc.h): Include.
21124 (build_call_raise): Call build_int_cst, not build_int_2.
21126 * utils.c (gnat_init_decl_processing): Fix arg to
21127 build_common_tree_nodes.
21128 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
21129 (gnat_define_builtin): Set built_in_decls.
21130 (init_gigi_decls): Call build_int_cst, not build_int_2.
21132 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
21133 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
21134 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
21135 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
21136 SET_TYPE_MODULE): Use them.
21137 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
21138 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
21139 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
21140 SET_TYPE_ADA_SIZE): Likewise.
21141 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
21142 (DECL_CONST_CORRESPONDING_VAR,
21143 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
21144 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
21145 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
21146 (TYPE_RM_SIZE_NUM): New macro.
21147 (TYPE_RM_SIZE): Modified to use above.
21149 * cuintp.c: (build_cst_from_int): New function.
21150 (UI_To_gnu): Use it.
21152 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
21153 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
21154 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
21155 MIN_EXPR for the size, copy it into new.
21157 2004-09-01 Robert Dewar <dewar@gnat.com>
21159 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
21160 packed indexed component where array is an IN OUT formal. This
21161 generated garbage code previously.
21163 * gnat_ugn.texi: Document -fverbose-asm
21165 * gnat-style.texi: Minor updates (note that boolean constants and
21166 variables are joined with AND/OR rather than short circuit forms).
21168 2004-09-01 Ed Schonberg <schonberg@gnat.com>
21170 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
21171 it is an upward conversion of an untagged type with no representation
21174 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
21176 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
21177 System.Partition_Interface.
21179 * checks.adb (Apply_Access_Checks): Do not generate checks when
21180 expander is not active (but check for unset reference to prefix of
21183 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
21184 pragma Debug as an if statement with a constant condition, for
21185 consistent treatment of entity references contained within the
21186 enclosed procedure call.
21188 2004-09-01 Vincent Celier <celier@gnat.com>
21190 * bindgen.adb: (Set_EA_Last): New procedure
21191 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
21193 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
21194 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
21195 linked without errors.
21196 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
21198 (Gen_Exception_Table_C): Correct same bugs
21200 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
21202 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
21203 on Windows, make sure that the drive letter is in upper case.
21205 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
21206 Windows, when the drive letter is added and Case_Sensitive is True, the
21207 drive letter is forced to upper case.
21209 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
21210 to Options_2 for the call to MLib.Utl.Gcc.
21212 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
21213 directory separator when defining BASE_DIR.
21215 2004-09-01 Pascal Obry <obry@gnat.com>
21217 * gprcmd.adb (Extend): Do not output trailing directory separator. This
21218 is not needed and it confuses Windows GNU/make which does not report
21219 directory terminated by a slash as a directory.
21220 (gprcmd): Idem for "pwd" internal command.
21222 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
21223 target names rewrite to fix regressions with recent version of
21224 GNU/make. Starting with GNU/make 3.80 the pipe character was not
21225 handled properly anymore.
21227 2004-09-01 Andreas Schwab <schwab@suse.de>
21229 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
21230 * raise.c [!IN_RTS]: Undef abort.
21232 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
21234 * utils2.c (build_allocator): Use ssize_int.
21236 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
21238 2004-08-27 Andreas Schwab <schwab@suse.de>
21240 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
21242 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
21243 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21245 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
21247 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
21249 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
21250 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
21251 * utils.c (init_gigi_decls): Likewise.
21252 * utils2.c (build_call_raise, build_allocator): Likewise.
21254 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
21256 * utils.c (gnat_init_decl_processing): Adjust
21257 build_common_tree_nodes call.
21259 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
21261 * utils2.c (build_allocator): Use build_int_cst for negative
21264 2004-08-18 Richard Henderson <rth@redhat.com>
21266 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
21268 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
21270 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
21272 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
21273 (gnat_to_gnu): Likewise.
21275 2004-08-16 Pascal Obry <obry@gnat.com>
21277 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
21278 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
21279 option and not mdll anymore. Update comment.
21281 2004-08-16 Pascal Obry <obry@gnat.com>
21283 * bld.adb (Put_Include_Project): Properly handle directory separators
21286 2004-08-16 Ed Schonberg <schonberg@gnat.com>
21288 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
21289 decreasing the number of allocated junk nodes while searching for the
21290 appropriate subprogram.
21292 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
21294 * cuintp.c (UI_To_gnu): Use build_int_cst..
21295 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
21296 * utils.c (init_gigi_decls): Likewise.
21297 * utils2.c (build_call_raise): Likewise.
21299 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
21301 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
21302 for a global aliased object with a variable size and an unconstrained
21303 nominal subtype, pretend there is no initializer if the one we have is
21304 incomplete, and avoid referencing an inexistant component in there. The
21305 part we have will be rebuilt anyway and the reference may confuse
21306 further operations.
21308 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
21310 * einfo.ads: Minor reformatting
21312 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
21313 restrictions in the ALI if we only want to warn about violations.
21315 2004-08-13 Vincent Celier <celier@gnat.com>
21317 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
21318 when creating a new Unit_Record in table Units.
21320 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
21321 that are violated, if any.
21323 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
21324 add directory separator if path already ends with a directory separator.
21326 2004-08-13 Ed Schonberg <schonberg@gnat.com>
21328 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
21329 unit, this is an attempt to inline a construct that is not available in
21330 the current restricted mode, so abort rather than trying to continue.
21332 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
21333 discriminants that rename those of the parent, recover names of
21334 original discriminants for the constraint on the full view of the
21336 (Complete_Private_Subtype): Do not create a subtype declaration if the
21337 subtype is an itype.
21339 * gnat_rm.texi: Added section on implementation of discriminated
21340 records with default values for discriminants.
21342 2004-08-13 Ed Schonberg <schonberg@gnat.com>
21345 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
21346 the second operand is overloaded.
21348 2004-08-10 Richard Henderson <rth@redhat.com>
21350 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
21351 add __builtin_alloca.
21353 2004-08-10 Richard Henderson <rth@redhat.com>
21355 * config-lang.in (boot_language): Yes.
21357 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
21359 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
21360 from complaining on potential uninitialized reference.
21361 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
21362 new specification and test explicitly for non-zero return value.
21364 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
21365 returning C.int, to avoid using a derived boolean type.
21367 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
21368 Duplicate_Subexpr_No_Checks in preference to direct use of
21369 Remove_Side_Effects and New_Copy_Tree.
21370 Clear Comes_From_Source on prefix of 'Size attribute reference.
21372 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
21373 g-socthi-vxworks.adb: Change calls to
21374 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
21375 and test explicitly for non-zero return value.
21377 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
21378 (Is_Socket_In_Set): Declare imported function as returning C.int, to
21379 avoid using a derived boolean type.
21381 2004-08-09 Albert Lee <lee@gnat.com>
21383 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
21385 2004-08-09 Pascal Obry <obry@gnat.com>
21387 * gnat_ugn.texi: Document new way to build DLLs on Windows using
21388 GCC's -shared option.
21390 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
21391 Options_2 parameter (options put after object files).
21393 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
21395 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
21396 ignore overflows on low and high bounds of an index to also account for
21397 differences in signedness between sizetype and gnu_index_subtype.
21398 These are as legitimate as the ones caused by a lower TYPE_PRECISION
21401 2004-08-09 Robert Dewar <dewar@gnat.com>
21403 * s-solita.ads, s-solita.adb: Minor reformatting
21405 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
21406 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
21407 obsolescent section
21408 Add note that No_Implicit_Conditionals does not suppress
21409 run time constraint checks.
21411 * vms_conv.ads: Minor reformatting
21413 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
21414 and necessary for following change).
21415 (Mark): Return new format Mark_Id containing sec stack address
21416 (Release): Use sec stack address from Mark_Id avoiding Self call
21418 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
21419 pointer (cleanup and necessary for following change).
21420 Define Mark_Id as record containing address of secondary stack, that way
21421 Release does not need to find the stack again, decreasing the number of
21422 calls to Self and improving efficiency.
21424 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
21426 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
21427 case variable into the individual case branches when possible.
21429 * sem_ch11.adb: Minor reformatting
21431 * prj.ads: Correct spelling of suffixs
21433 * prj-nmsc.adb: Minor reformatting
21434 Correct spelling suffixs throughout (also in identifiers)
21436 * freeze.adb: Minor spelling correction
21438 * exp_ch2.adb: Cleanups to handling of Current_Value
21439 (no functional effect).
21441 * bld.adb: Correct spelling of suffixs
21443 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
21445 2004-08-09 Ed Schonberg <schonberg@gnat.com>
21448 * sem_ch7.adb (Install_Private_Declarations): In the body of the
21449 package or of a child, private entities are both immediately_visible
21452 2004-08-09 Ed Schonberg <schonberg@gnat.com>
21454 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
21455 there are no range checks on the value of the literal.
21457 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
21458 wrapped is the triggering alternative of an asynchronous select, action
21459 statements mustbe inserted before the select itself.
21461 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
21462 case where the prefix is a protected function call.
21463 (Resolve_Attribute, case 'Access): The attribute reference on a
21464 subprogram is legal in a generic body if the subprogram is declared
21467 2004-08-09 Vincent Celier <celier@gnat.com>
21469 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
21470 languages, otherwise building the library may fail with unresolved
21472 (Compile_Sources): Do not build libraries if -c switch is used
21474 * gnatlink.adb (Process_Args): New switches -M and -Mmap
21475 (Write_Usage): If map file creation is supported, output new switches
21477 (Gnatlink): When -M is specified, add the necessary switch(es) to the
21478 gcc call, when supported.
21480 * Makefile.in: Added indepsw.o to the object list for gnatlink
21481 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
21483 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
21484 indepsw.adb, indepsw.ads: New files.
21486 2004-08-09 Bernard Banner <banner@gnat.com>
21488 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
21490 * Makefile.in: add section for vxworks x86
21492 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
21494 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
21495 per-object constrained components where the discriminant is of an
21497 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
21498 the parent initialization procedure for derived Unchecked_Unions.
21499 Instead, derived Unchecked_Unions build their own initialization
21501 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
21502 Check the body of the subprogram for details.
21503 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
21504 functions for derived Unchecked_Union types by introducing a condition.
21505 Allow the creation of TSS equality functions for Unchecked_Unions.
21506 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
21507 Add formal parameter Discr to function signature. Discr is used to
21508 control the generated case statement for Unchecked_Union types.
21509 (Make_Eq_If): Rename formal parameter Node to E in function signature.
21511 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
21513 Check the body of the subprogram for details.
21514 (Expand_Composite_Equality): Augment composite type equality to include
21515 correct handling of Unchecked_Union components.
21516 (Expand_N_In): Add condition to detect illegal membership tests when the
21517 subtype mark is a constrained Unchecked_Union and the expression lacks
21518 inferable discriminants, and build a Raise_Program_Error node.
21519 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
21520 to detect types that contain components of unconstrained Unchecked_Union
21521 subtype. Add condition to detect equality between types that have an
21522 unconstrained Unchecked_Union component, and build a Raise_Program_Error
21523 node. Add condition to detect equality between Unchecked_Union types
21524 that lack inferable discriminants, and build a Raise_Program_Error node.
21525 Otherwise build a TSS equality function call.
21526 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
21527 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
21528 with the operand lacking inferable discriminants, and build a Raise_
21529 Program_Error node.
21530 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
21531 composite equality.
21532 (Has_Inferable_Discriminants): Implement new predicate for objects and
21533 expressions of Unchecked_Union type. Check the body of subprogram for
21535 (Has_Unconstrained_UU_Components): Add function
21536 Component_Is_Unconstrained_UU. It is used to detect whether a single
21537 component is of an unconstrained Unchecked_Union subtype. Add function
21538 Variant_Is_Unconstrained_UU. It is used to detect whether a single
21539 component inside a variant is of an unconstrained Unchecked_Union type.
21541 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
21542 inferred discriminant values. Add condition to generate a case
21543 statement with an inferred discriminant as the switch.
21544 (Make_Component_List_Assign): Introduce a Boolean flag that determines
21545 the behaviour of the subprogram in the presence of an Unchecked_Union.
21546 Add condition to trigger the usage of the inferred discriminant value
21547 as the generated case statement switch.
21548 (Make_Field_Assign): Introduce a Boolean flag that determines the
21549 behaviour of the subprogram in the presence of an Unchecked_Union. Add
21550 condition to trigger the usage of the inferred discriminant value as
21551 the right-hand side of the generated assignment.
21553 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
21554 parameter generation when dealing with Unchecked_Unions.
21556 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
21557 checks for Unchecked_Unions.
21559 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
21561 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
21562 Raise_Program_Error nodes for the execution of Read and Write
21563 attributes of Unchecked_Union types and the execution of Input and
21564 Output attributes of Unchecked_Union types that lack default
21565 discriminant values.
21567 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
21568 Unchecked_Union. Add procedure Check_Component. It is used to inspect
21569 per-object constrained components of Unchecked_Unions for being
21570 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
21571 check individual components withing a variant.
21573 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
21574 comparison of Unchecked_Unions.
21575 (Resolve_Equality_OP): Remove guard that prevents equality between
21578 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
21579 of component subtypes for Unchecked_Union components.
21580 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
21581 since it is the actual subtype.
21583 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
21584 pass of Unchecked_Union subtypes as generic actuals to formal types
21585 that lack known_discriminant_parts or that are derived Unchecked_Union
21586 types, and do nothing. In any other case, produce an error message.
21588 * sem_ch3.adb (Analyze_Component_Declaration): Add function
21589 Contains_POC. It determines whether a constraint uses the discriminant
21590 of an enclosing record type.
21591 Add condition to detect per-object constrained component and set the
21593 (Derived_Type_Declaration): Remove guard that prevents derivation from
21594 Unchecked_Union types.
21595 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
21598 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
21599 references to Unchecked_Union discriminants.
21601 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
21602 formal generation when dealing with Unchecked_Unions.
21603 (Set_Actual_Subtypes): Add condition to prevent generation of actual
21604 subtypes for Unchecked_Unions.
21606 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
21607 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
21608 completions of discriminated partial views by Unchecked_Unions and
21609 produce an error message.
21611 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21613 * trans.c (struct stmt_group): New field, GLOBAL.
21614 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
21615 (struct elab_info): New struct.
21616 (elab_info_list, gnu_elab_proc_stack): New variables.
21617 (Compilation_Unit_to_gnu): New procedure.
21618 (gigi): Call it and also handle elaboration procs we've saved.
21619 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
21620 global field from parent.
21621 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
21622 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
21623 (start_stmt_group): Initialize global field from parent.
21624 (add_decl_expr): Set to global for current statement group.
21625 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
21628 * utils.c (global_bindings_p): True when no current_function_decl; no
21629 longer check current_binding_level.
21631 2004-08-09 Ben Brosgol <brosgol@gnat.com>
21633 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
21636 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
21638 2004-08-06 Andreas Schwab <schwab@suse.de>
21640 * utils.c (gnat_define_builtin): Remove second parameter of
21642 (begin_subprog_body): Likewise.
21644 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
21646 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
21647 optimization, not supported by the tree-ssa back-end.
21649 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
21651 * s-mastop-irix.adb: Update comments.
21653 * a-except.adb (Exception_Information): Raise Constraint_Error if
21654 exception Id is Null_Id.
21655 This is required behavior, which is more reliably and clearly checked
21656 at the top level interface level.
21658 2004-07-26 Javier Miranda <miranda@gnat.com>
21660 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
21661 call if a component has no default_expression and the box is used.
21663 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
21664 default_expression and you use box, it behaves as if you had declared a
21665 stand-alone object.
21666 (Resolve_Record_Aggregate): If a component has no default_expression and
21667 you use box, it behaves as if you had declared a stand-alone object.
21669 * sem_ch10.adb (Install_Siblings): Do not make visible the private
21670 entities of private-with siblings.
21672 2004-07-26 Ed Schonberg <schonberg@gnat.com>
21674 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
21675 for a component of an itype, set the parent pointer for analysis,
21676 there is no list in which to insert it.
21678 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
21679 bona-fide renamings, not for inherited operations.
21681 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
21682 actual for a formal that is an access parameter, create local
21683 finalization list even if the expression is not an aggregate.
21685 2004-07-26 Ed Schonberg <schonberg@gnat.com>
21688 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
21689 Diagnose properly illegal subprogram renamings that are library units.
21691 2004-07-26 Ed Schonberg <schonberg@gnat.com>
21694 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
21695 conversion rewritten as an unchecked conversion, check that original
21696 expression is a variable.
21698 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
21699 unchecked_conversion, create new node rather than rewriting in place,
21700 to preserve original construct.
21702 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21704 * gigi.h (gnat_expand_body): Deleted.
21706 * Make-lang.in: (trans.o): Depends on function.h.
21708 * misc.c: (gnat_expand_body): Moved to here.
21710 * trans.c (gnat_expand_body_1): Deleted.
21711 (gnat_expand_body): Moved from here.
21712 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
21713 (add_stmt): Check for marked visited with global_bindings_p.
21714 (gnat_gimplify_expr, case COMPONENT_REF): New case.
21715 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
21717 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
21718 VIEW_CONVERT_EXPR if not operation type.
21720 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
21723 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
21724 changes: reformatting of negation operators, removing unneeded
21725 inequality comparison with zero, converting equality comparisons with
21726 zero to negations, changing int/0/1 to bool/false/true, replace calls
21727 to gigi_abort with abort, and various other similar changes.
21729 2004-07-26 Vincent Celier <celier@gnat.com>
21731 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
21734 * make.adb (Gnatmake): Fail when a library is not present and there is
21735 no object directory.
21737 * mlib-prj.adb (Check_Library): No need to check if the library needs
21738 to be rebuilt if there is no object directory, hence no object files
21739 to build the library.
21741 * opt.ads (Setup_Projects): New Boolean flag.
21743 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
21745 Create directory when Kind /= "" and in "gnat setup". Report error if
21746 directory cannot be created.
21747 (Ada_Check): Create library interface copy dir if it does not exist
21748 and we are in "gnat setup".
21749 (Find_Sources): No error if in "gnat setup" and no Ada sources were
21751 (Language_Independent_Check): Create object directory, exec directory
21752 and/or library directory if they do not exist and we are in
21755 * vms_conv.ads: (Command_Type): New command Setup.
21757 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
21759 * vms_data.ads: Add qualifiers/switches for new built-in command
21762 2004-07-25 Richard Henderson <rth@redhat.com>
21764 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
21765 DECL_IGNORED_P on RESULT_DECL.
21767 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
21769 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
21770 allocation and potentially overflowing update with
21771 Tailored_Exception_Information. Use the sec-stack free procedural
21772 interface to output Exception_Information instead.
21774 * a-except.adb (To_Stderr): New subprogram for character, and string
21775 version moved from a-exextr to be visible from other separate units.
21776 (Tailored_Exception_Information): Remove the procedural version,
21777 previously used by the default Last_Chance_Handler and not any more.
21778 Adjust various comments.
21780 * a-exexda.adb: Generalize the exception information procedural
21781 interface, to minimize the use of secondary stack and the need for
21782 local buffers when the info is to be output to stderr:
21783 (Address_Image): Removed.
21784 (Append_Info_Character): New subprogram, checking for overflows and
21785 outputing to stderr if buffer to fill is of length 0.
21786 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
21787 (Append_Info_Address, Append_Info_Exception_Name,
21788 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
21789 Append_Info_Basic_Exception_Traceback,
21790 Append_Info_Exception_Information): New subprograms.
21791 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
21792 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
21793 Exception_Info_Maxlength, Exception_Name_Length,
21794 Exception_Message_Length): New subprograms.
21795 (Exception_Information): Use Append_Info_Exception_Information.
21796 (Tailored_Exception_Information): Use
21797 Append_Info_Basic_Exception_Information.
21798 Export services for the default Last_Chance_Handler.
21800 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
21801 other separate units.
21803 2004-07-20 Vincent Celier <celier@gnat.com>
21805 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
21807 2004-07-20 Ed Schonberg <schonberg@gnat.com>
21809 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
21810 emit itype references for the designated types of component types that
21811 are declared outside of the full record declaration, and that may
21812 denote a partial view of that record type.
21814 2004-07-20 Ed Schonberg <schonberg@gnat.com>
21817 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
21818 which is the designated type in an access component declaration, to the
21819 list of incomplete dependents of the parent type, to avoid elaboration
21820 issues with out-of-scope subtypes.
21821 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
21822 full view of the parent.
21824 2004-07-20 Ed Schonberg <schonberg@gnat.com>
21827 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
21828 entities that are hidden, such as references to generic actuals
21829 outside an instance.
21831 2004-07-20 Javier Miranda <miranda@gnat.com>
21833 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
21834 support to the new notation.
21835 (Analyze_Selected_Component): Add call to Try_Object_Operation.
21837 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
21839 * s-taprob.adb: Adding the elaboration code required for initializing
21840 the tasking soft links that are common to the full and the restricted
21843 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
21844 restricted run time has been moved to the package
21845 System.Soft_Links.Tasking.
21847 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
21848 restricted run time has been moved to the package
21849 System.Soft_Links.Tasking.
21851 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
21853 * s-solita.ads, s-solita.adb: New files.
21855 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21857 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
21858 Case_Statement_to_gnu): Split off from gnat_to_gnu.
21859 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
21860 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
21861 Exception_Handler_to_gnu_zcx): Likewise.
21863 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
21865 * gigi.h (builtin_function): Declare.
21867 2004-07-15 Robert Dewar <dewar@gnat.com>
21869 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
21872 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
21873 access values as an example of a warning.
21875 * gnat_rm.texi: Document new attribute Has_Access_Values
21877 * gnat-style.texi: Document that box comments belong on nested
21880 * sem_util.ads (Has_Access_Values): Improved documentation
21882 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
21884 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
21885 (Process_Interface_Name): Call to this new procedure
21886 (Set_Extended_Import_Export_External_Name): Call to this new procedure
21888 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
21890 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
21892 * einfo.ads: Minor comment typo fixed
21894 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
21896 * snames.adb: Add _atcb.
21898 * snames.ads: Add Name_uATCB.
21900 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
21901 (in the expanded code) when using the restricted run time.
21903 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
21904 a in parameter in order to allow ATCBs to be preallocated (in the
21907 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
21908 order to allow ATCBs to be preallocated. In case of error, the ATCB is
21909 deallocated in System.Tasking.Stages.
21911 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
21912 order to allow ATCBs to be preallocated.
21914 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
21915 here. It was previously done in Initialize_ATCB.
21917 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
21919 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
21920 Restricted run time.
21922 * exp_ch3.adb: When using the Restricted run time, pass the
21923 preallocated Ada_Task_Control_Block when creating a task.
21925 2004-07-15 Ed Schonberg <schonberg@gnat.com>
21927 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
21928 function call that is itself an actual in an enclosing call, diagnose
21929 problem here rather than assuming that resolution will catch it.
21931 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
21932 the local copy of a generic unit for a formal package, and the generic
21933 is a child unit, install private part of ancestors before compiling
21934 private part of spec.
21936 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
21937 use scope entities rather than tree structures, to handle properly
21938 parent units that are instances rewritten as bodies for inlining
21941 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
21942 Remove_Parents): Handle properly a parent unit that is an
21943 instantiation, when the unit has been rewritten as a body for inlining
21946 * par.adb (Goto_List): Global variable to collect goto statements in a
21947 given unit, for use in detecting natural loops.
21949 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
21950 use in detecting natural loops.
21952 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
21953 backwards goto's, and rewrite as a infinite loop, to improve locality
21956 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
21957 subcomponent that includes an indexed reference, to prevent the
21958 generation of copies that would miscompile the desired assignment
21960 (Build_Task_Image_Decls): Add a numeric suffix to
21961 generated name for string variable, to avoid spurious conflicts with
21962 the name of the type of a single protected object.
21964 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
21965 loop with an explicit exit statement, to avoid generating an
21966 out-of-range value with 'Succ leading to spurious constraint_errors
21967 when compiling with -gnatVo.
21969 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
21971 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
21972 might not be analyzed yet, even if its Etype is already set (case of an
21973 unchecked conversion built using Unchecked_Convert_To, for example).
21974 If the prefix has already been analyzed, this will be a nop anyway.
21976 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
21977 controller type, or an assignment of a record type with controlled
21978 components, copy only user data, and leave the finalization chain
21979 pointers untouched.
21981 2004-07-15 Vincent Celier <celier@gnat.com>
21983 * make.adb (Collect_Arguments): Improve error message when attempting
21984 to compile a source not part of any project, when -x is not used.
21986 * prj.ads: (Defined_Variable_Kind): New subtype
21988 * prj-attr.adb (Register_New_Package): Two new procedures to register
21989 a package with or without its attributes.
21990 (Register_New_Attribute): Mew procedure to register a new attribute in a
21992 New attribute oriented subprograms: Attribute_Node_Id_Of,
21993 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
21994 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
21996 New package oriented subprograms: Package_Node_Id_Of,
21997 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
21999 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
22001 (Package_Node_Id): Now a private, self initialized type
22002 (Register_New_Package): New procedure to register a package with its
22004 New attribute oriented subprograms: Attribute_Node_Id_Of,
22005 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
22006 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
22008 New package oriented subprograms: Package_Node_Id_Of,
22009 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
22011 * prj-dect.adb (Parse_Attribute_Declaration,
22012 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
22014 * prj-makr.adb (Make): Parse existing project file before creating
22015 other files. Fail if there was an error during parsing.
22017 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
22018 new spec of Prj.Attr.
22020 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
22021 to new spec of Prj.Attr.
22023 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22025 * utils2.c: Fix typo in comment.
22027 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22029 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
22030 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
22032 2004-07-14 Andreas Schwab <schwab@suse.de>
22034 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
22036 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22038 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
22040 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
22043 * misc.c (gnat_types_compatible_p): New function.
22044 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
22045 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
22047 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
22048 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
22049 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
22050 (mark_visited): Don't mark dummy type.
22051 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
22052 parameter, we must remove any LJM building from GNU_NAME.
22053 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
22054 (pos_to_constructor): Use int_const_binop.
22055 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
22058 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
22059 (gnat_pushlevel): Set TREE_USE on BLOCK node.
22060 (gnat_install_builtins): Add __builtin_memset.
22062 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
22064 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
22065 for a renaming, stabilize the initialization expression if we are at a
22066 local level. At the local level, uses of the renaming may be performed
22067 by a direct dereference of the initializing expression, and we don't
22068 want possible variables there to be evaluated for every use.
22070 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
22071 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
22072 them on the way. Account for the fact that we may introduce side
22073 effects in the process.
22075 2004-07-13 Richard Henderson <rth@redhat.com>
22077 * misc.c (default_pass_by_ref): Use pass_by_reference.
22079 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
22081 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
22082 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
22084 2004-07-08 Richard Henderson <rth@redhat.com>
22086 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
22089 2004-07-06 Vincent Celier <celier@gnat.com>
22091 * vms_conv.ads: Minor reformatting.
22092 Alphabetical order for enumerated values of type Command_Type, to have
22093 the command in alphabetical order for the usage.
22095 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
22096 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
22098 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
22100 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
22101 (Add_Archive_Path): Only add the global archive if there is one.
22102 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
22103 or not any object file to put in the global archive, and don't build
22104 a global archive if there is none.
22105 (X_Switches): New table
22106 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
22107 in the X_Switches table, if any.
22108 (Initialize): Make sure the X_Switches table is empty
22109 (Scan_Arg): Record -X switches in table X_Switches
22111 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
22113 * make.adb: Minor comment fix
22115 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
22116 invoked with directory information, add the directory in front of the
22119 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
22120 invoked with directory information, add the directory in front of the
22123 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
22124 when Keep_Temporary_Files is False.
22125 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
22126 directory information, add the directory in front of the path.
22127 When not on VMS, handle new switch -dn before the command to set
22128 Keep_Temporary_Files to True.
22129 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
22132 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
22133 invoked with directory information, add the directory in front of the
22136 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
22138 * snames.ads, snames.adb (Name_Stub): New name for the distributed
22141 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
22142 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
22144 * g-socket.adb (To_Timeval): Fix incorrect conversion of
22145 Selector_Duration to Timeval for the case of 0.0.
22147 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
22148 documentation from Evolve_And_Then.
22150 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
22152 * s-taprop-tru64.adb, s-taprop-os2.adb,
22153 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
22155 2004-07-06 Robert Dewar <dewar@gnat.com>
22157 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
22158 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
22159 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
22160 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
22161 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
22162 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
22163 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
22164 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
22165 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
22166 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
22167 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
22168 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
22169 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
22170 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
22171 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
22172 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
22173 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
22174 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
22175 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
22176 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
22177 vms_data.ads: Minor reformatting,
22178 Fix bad box comment format.
22180 * gnat_rm.texi: Fix minor grammatical error
22182 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
22184 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
22185 more cases of discriminated records to be recognized as not needing a
22187 (Has_Access_Values): New function.
22189 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
22191 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
22192 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
22193 with LRM terminology).
22194 Change terminology in comments primitive type => elementary type.
22196 2004-07-06 Ed Schonberg <schonberg@gnat.com>
22199 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
22200 parameters do not impose any requirements on the presence of a body.
22202 2004-07-06 Ed Schonberg <schonberg@gnat.com>
22205 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
22206 compilation unit and is in an open scope at the point of instantiation,
22207 assume that a body may be present later.
22209 2004-07-06 Ed Schonberg <schonberg@gnat.com>
22211 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
22212 Improve error message when specified size is not supported.
22214 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
22215 is never a primitive operation.
22217 2004-07-05 Andreas Schwab <schwab@suse.de>
22219 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
22220 RECORD_OR_UNION_CHECK.
22221 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
22223 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
22225 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
22226 dependency on xgnatugn, instead build it via a submake.
22227 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
22229 2004-07-04 Richard Henderson <rth@redhat.com>
22231 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
22233 2004-07-01 Richard Henderson <rth@redhat.com>
22235 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
22236 * utils.c (max_size): Likewise.
22238 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22240 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
22241 and rest_of_type_compilation; add arg to create_*_decl.
22242 (annotate_decl_with_node): Deleted.
22243 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
22244 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
22245 (get_current_block_context, gnat_pushdecl): New declarations.
22246 (gnat_init_stmt_group): Likewise.
22247 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
22248 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
22249 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
22250 (gnat_init): Call gnat_init_stmt_group.
22251 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
22252 (gnu_pending_elaboration_list): Deleted.
22253 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
22254 (gigi): Rearrange initialization calls and move some to last above.
22255 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
22256 Delete calls to add_decl_expr; add arg to create_*_decl.
22257 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
22258 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
22259 begin_subprog_body and call it.
22260 Don't push and pop ggc context.
22261 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
22262 (add_stmt): Remove handling of DECL_EXPR from here.
22263 If not in function, mark visited.
22264 (add_decl_expr): Put global at top level.
22265 Check for cases of DECL_INITIAL we have to handle here.
22266 (process_type): Add extra arg to create_type_decl.
22267 (build_unit_elab): Rework to just gimplify.
22268 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
22269 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
22270 (get_pending_elaborations, pending_elaborations_p): Likewise.
22271 (push_pending_elaborations, pop_pending_elaborations): Likewise.
22272 (get_elaboration_location, insert_elaboration_list): Likewise.
22273 (gnat_binding_level): Renamed from ada_binding_level.
22274 (init_gnat_to_gnu): Don't clear pending_elaborations.
22275 (global_bindings_p): Treat as global if no current_binding_level.
22276 (set_current_block_context): New function.
22277 (gnat_pushdecl): Renamed from pushdecl; major rework.
22278 All callers changed.
22279 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
22280 (finish_record_type): Call call pushdecl for stub decl.
22281 (function_nesting_depth): Deleted.
22282 (begin_subprog_body): Delete obsolete code.
22283 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
22285 2004-06-28 Robert Dewar <dewar@gnat.com>
22287 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22288 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
22289 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
22290 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
22291 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
22293 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
22294 deal with problem of inefficient slices on machines with strict
22295 alignment, when the slice is a component of a composite.
22297 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
22298 machines, we need the check there as well.
22300 2004-06-28 Ed Schonberg <schonberg@gnat.com>
22302 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
22303 determine safe copying direction for overlapping slice assignments
22304 when component is controlled.
22306 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
22307 formal derived type in the actual for a formal package are visible in
22308 the enclosing instance.
22310 2004-06-28 Ed Schonberg <schonberg@gnat.com>
22313 * sem_util.adb (Trace_Components): Diagnose properly an illegal
22314 circularity involving a private type whose completion includes a
22315 self-referential component.
22316 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
22317 renaming or an instantiation from an implicit derived operation.
22319 2004-06-28 Pascal Obry <obry@gnat.com>
22321 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
22323 (Library_File_Name_For): Idem.
22325 2004-06-28 Matthew Gingell <gingell@gnat.com>
22327 * g-traceb.ads: Add explanatory note on the format of addresses
22328 expected by addr2line.
22330 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
22332 * Makefile.in: Force debugging information on s-tasdeb.adb,
22333 a-except.adb and s-assert.adb needed by the debugger.
22335 2004-06-28 Vincent Celier <celier@gnat.com>
22337 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
22341 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
22343 * prj.adb: Minor reformatting
22344 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
22346 * prj.ads: Comment updates
22348 (Project_Data): Change Flag1 to Need_To_Build_Lib.
22349 Remove Flag2: not used.
22351 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
22354 * gnat_ugn.texi: Put a "null;" declaration in one project file example
22356 * gnat_rm.texi: Document Empty declarations "null;".
22358 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
22359 front of the linker options.
22360 (Link_Foreign): Put the global archives and the libraries in front of
22361 the linker options.
22363 2004-06-28 Javier Miranda <miranda@gnat.com>
22365 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
22366 (RTU_Loaded): Code cleanup
22367 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
22368 withed predefined units.
22370 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
22371 explicitly withed predefined units.
22372 Fix typo in comment
22374 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
22375 explicitly withed predefined units.
22377 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22379 * ada-tree.def (DECL_STMT): Deleted.
22380 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
22381 (DECL_STMT_VAR): Deleted.
22382 * decl.c: add_decl_stmt now add_decl_expr.
22383 * gigi.h: Likewise.
22384 * trans.c: Likewise.
22385 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
22386 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
22387 (add_stmt): Only handle padded type here.
22388 (add_stmt_with_node): Allow gnat_node to not be present.
22389 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
22390 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
22391 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
22392 make a SAVE_EXPR for the entire fat pointer.
22393 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
22394 (create_index_type): Make a DECL_EXPR.
22395 (end_subprog_body): Don't call allocate_struct_function here but
22398 2004-06-25 Pascal Obry <obry@gnat.com>
22400 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
22401 Relocatable from Build_Dynamic_Library call.
22403 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
22404 Relocatable are now synonym.
22406 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
22408 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
22409 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
22412 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
22413 Lib_Address and Relocatable.
22414 (Default_DLL_Address): Removed.
22416 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22417 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22418 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
22419 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
22420 (Default_DLL_Address): Removed.
22422 * mlib-tgt-mingw.adb: Ditto.
22423 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
22425 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
22426 the initial thread stack size.
22428 * a-strmap.ads: Move package L to private part as it is not used in
22429 the spec. Found while reading code.
22431 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
22433 * tracebak.c: Introduce support for a GCC infrastructure based
22434 implementation of __gnat_backtrace.
22436 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
22437 any more. Use accessors instead. This eases maintenance and relaxes
22438 some alignment constraints.
22439 (_GNAT_Exception structure): Remove the Ada specific fields
22440 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
22442 (is_handled_by, __gnat_eh_personality): Replace component references to
22443 exception structure by use of the new accessors.
22445 * init.c (__gnat_initialize): Adjust comments to match the just
22446 reverted meaning of the -static link-time option.
22448 * adaint.c (convert_addresses): Arrange not to define a stub for
22449 mips-irix any more, as we now want to rely on a real version from a
22450 recent libaddr2line.
22452 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
22453 the personality routine can use them and not have to rely on a C
22454 counterpart of the record anymore. This simplifies maintenance and
22455 relaxes the constraint of having Standard'Maximum_Alignment match
22457 Update comments, and add a section on the common header alignment issue.
22459 2004-06-25 Geert Bosch <bosch@gnat.com>
22461 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
22462 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
22464 2004-06-25 Robert Dewar <dewar@gnat.com>
22466 * gnat_rm.texi: Fix section on component clauses to indicate that the
22467 restriction on byte boundary placement still applies for bit packed
22469 Add comment on stack usage from Initialize_Scalars
22471 * gnat_ugn.texi: Add documentation for -gnatyLnnn
22473 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
22474 limiting nesting level.
22476 * usage.adb: Add line for -gnatyLnnn switch
22478 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
22479 sem_ch13.adb, exp_aggr.adb: Minor reformatting
22481 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
22482 type as well as on the subtype. This corrects a problem in freeze in
22483 setting alignments of atomic types.
22485 * sem_eval.ads: Minor comment typo fixed
22487 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
22488 level. Minor reformatting.
22490 * fname.adb (Is_Predefined_File_Name): Require a letter after the
22491 minus sign. This means that file names like a--b.adb will not be
22492 considered predefined.
22494 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
22495 record Test new flag and give diagnostic for bad component clause.
22496 (Freeze_Entity): Set alignment of array from component alignment in
22497 cases where this is safe to do.
22499 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
22502 * cstand.adb: (Create_Standard): Set alignment of String to 1
22504 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
22506 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
22507 code in the common constrained array cases.
22509 * a-storio.adb: Change implementation to avoid possible alignment
22510 problems on machines requiring strict alignment (data should be moved
22511 as type Buffer, not type Elmt).
22513 * checks.adb (Apply_Array_Size_Check): Improve these checks by
22514 killing the overflow checks which we really do not need (64-bits is
22517 2004-06-25 Vincent Celier <celier@gnat.com>
22519 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
22520 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
22521 inconditionally for the main project.
22522 (Recursive_Add_Archives.Add_Archive_Path): New procedure
22523 (Link_Executables.Check_Time_Stamps): New procedure
22524 (Link_Executables.Link_Foreign): New procedure
22525 Changes made to reduce nesting level of this package
22526 (Check): New procedure
22527 (Add_Switches): When not in quiet output, check that a switch is not
22528 the concatenation of several valid switches. If it is, issue a warning.
22529 (Build_Global_Archive): If the global archive is rebuilt, linking need
22531 (Compile_Sources): Rebuilding a library archive does not imply
22532 rebuilding the global archive.
22533 (Build_Global_Archive): New procedure
22534 (Build_Library): New name for Build_Archive, now only for library
22536 (Check_Archive_Builder): New procedure
22537 (Create_Global_Archive_Dependency_File): New procedure
22538 (Gprmake): Call Build_Global_Archive before linking
22539 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
22541 (Scan_Arg): Display the Copyright notice when -v is used
22543 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
22546 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
22548 Add new GNAT LIST qualifier /FILES=
22549 Added qualifier /DIRECTORY= to GNAT METRIC
22550 Added qualifier /FILES= to GNAT METRIC
22551 Added qualifier /FILES to GNAT PRETTY
22553 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
22554 to take into account both versions of the switch.
22556 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
22557 always be the last switch to the gcc driver. Disable switch storing so
22558 that switches automatically added by the gcc driver are not put in the
22561 * prj.adb (Project_Empty): Take into account changes in components of
22564 * prj.ads (Languages_Processed): New enumaration value All_Languages.
22566 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
22567 used. Split Boolean component Ada_Sources_Present in two Boolean
22568 components Ada_Sources_Present and Other_Sources_Present.
22571 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
22572 instead of Sources_Present.
22573 (Set_Ada_Paths.Add.Recursive_Add): Ditto
22575 * prj-nmsc.adb: Minor reformatting
22576 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
22577 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
22578 Check_Ada_Naming_Scheme.
22579 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
22582 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
22584 Make sure that all cycles where there is at least one "limited with"
22586 (Parse_Single_Project): New Boolean parameter In_Limited
22588 * prj-proc.adb (Recursive_Check): When Process_Languages is
22589 All_Languages, call first Prj.Nmsc.Ada_Check, then
22590 Prj.Nmsc.Other_Languages_Check.
22592 * prj-proc.adb (Process): Use Ada_Sources_Present or
22593 Other_Sources_Present (instead of Sources_Present) depending on
22596 * lang-specs.h: Keep -g and -m switches in the same order, and as the
22599 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
22600 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
22602 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
22605 * lib.ads (Disable_Switch_Storing): New procedure.
22607 * make.adb: Modifications to reduce nesting level of this package.
22608 (Check_Standard_Library): New procedure
22609 (Gnatmake.Check_Mains): New procedure
22610 (Gnatmake.Create_Binder_Mapping_File): New procedure
22611 (Compile_Sources.Compile): Add switch -gnatez as the last option
22612 (Display): Never display -gnatez
22614 * Makefile.generic:
22615 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
22617 * gnatcmd.adb (Check_Project): New function
22618 (Process_Link): New procedure to reduce nesting depth
22619 (Check_Files): New procedure to reduce the nesting depth.
22620 For GNAT METRIC, include the inherited sources in extending projects.
22621 (GNATCmd): When GNAT LS is invoked with a project file and no files,
22622 add the list of files from the sources of the project file. If this list
22623 is too long, put it in a temp text files and use switch -files=
22624 (Delete_Temp_Config_Files): Delete the temp text file that contains
22625 a list of source for gnatpp or gnatmetric, if one has been created.
22626 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
22627 in the project file is too large, create a temporary text file that
22628 list them and pass it to the tool with "-files=<temp text file>".
22629 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
22631 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
22632 generated file is in not in Ada.
22634 * gnatls.adb: Remove all parameters And_Save that are no longer used.
22635 (Scan_Ls_Arg): Add processing for -files=
22636 (Usage): Add line for -files=
22638 * g-os_lib.adb (On_Windows): New global constant Boolean flag
22639 (Normalize_Pathname): When on Windows and the path starts with a
22640 directory separator, make sure that the resulting path will start with
22643 * clean.adb (Clean_Archive): New procedure
22644 (Clean_Project): When there is non-Ada code, delete the global archive,
22645 the archive dependency files, the object files and their dependency
22646 files, if they exist.
22647 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
22649 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
22651 * sinfo.ads: Fix typo in comment.
22653 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
22654 the TSS for remote access-to-subprogram types, since these TSS are
22655 always present once the type has been analyzed.
22656 (RAS_E_Dereference): Same.
22658 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
22659 reference raises Bad_Attribute, mark the reference as analyzed so the
22660 node (and any children resulting from rewrites that could have occurred
22661 during the analysis that ultimately failed) is not analyzed again.
22663 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
22665 * exp_dist.adb: Minor comment fix.
22667 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
22668 type is an anonymous access type, no unchecked deallocation of the
22669 allocated object can occur. If the object is controlled, attach it with
22670 a count of 1. This allows attachment to the Global_Final_List, if
22671 no other relevant list is available.
22672 (Get_Allocator_Final_List): For an anonymous access type that is
22673 the type of a discriminant or record component, the corresponding
22674 finalisation list is the one of the scope of the type.
22676 2004-06-25 Ed Schonberg <schonberg@gnat.com>
22678 * sem_ch3.adb (Replace_Type): When computing the signature of an
22679 inherited subprogram, use the first subtype if the derived type
22680 declaration has no constraint.
22682 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
22683 before applying previous optimization. Minor code cleanup.
22685 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
22686 placed at the beginning of an unpacked record without explicit
22687 alignment, a slice of it will be aligned and does not need a copy when
22690 2004-06-25 Ed Schonberg <schonberg@gnat.com>
22694 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
22695 reference is written with expressions mimicking parameters.
22697 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
22700 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
22701 STEP 2a. The constraints of a full type declaration of a derived record
22702 type are checked for conformance with those declared in the
22703 corresponding private extension declaration. The message
22704 "not conformant with previous declaration" is emitted if an error is
22707 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
22709 * g-traceb.ads: Document the need for -E binder switch in the spec.
22711 * g-trasym.ads: Document the need for -E binder switch in the spec.
22713 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
22715 * sem_prag.adb: Add handling of pragma Detect_Blocking.
22717 * snames.h, snames.ads, snames.adb: Add entry for pragma
22720 * s-rident.ads: Change reference to pragma Detect_Blocking.
22722 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
22725 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
22726 to indicate whether pragma Detect_Blocking is active.
22728 * par-prag.adb: Add entry for pragma Detect_Blocking.
22730 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
22731 of not handling WITH.
22732 Note that this replaces the previous update which was incorrect.
22734 2004-06-25 Javier Miranda <miranda@gnat.com>
22736 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
22737 use-clauses to have a clean environment.
22739 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
22740 the installation of the use-clauses to stablish a clean environment in
22741 case of compilation of a separate unit; otherwise the call to
22742 use_one_package is protected by the barrier Applicable_Use.
22744 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
22745 the installation of the use-clauses to stablish a clean environment in
22746 case of compilation of a separate unit.
22747 (End_Use_Clauses): Minor comment cleanup.
22749 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
22751 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
22753 2004-06-23 Richard Henderson <rth@redhat.com>
22755 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
22757 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22759 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
22760 now bool instead of int.
22761 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
22762 * trans.c (gnu_switch_label_stack): New function.
22763 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
22764 elaboration of renamed entity returns.
22765 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
22766 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
22767 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
22768 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
22769 DECL_SIZE_UNIT and simplify variable-sized case.
22770 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
22771 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
22772 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
22773 (build_unit_elab): Disable for now.
22774 * utils.c (mark_visited): New function.
22775 (pushdecl): Walk tree to call it for global decl.
22776 (update_pointer_to): Update all variants of pointer and ref types.
22777 Add arg to COMPONENT_REF.
22778 (convert): Likewise.
22779 Move check for converting between variants lower down.
22780 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
22781 (build_allocator): Don't force type of MODIFY_EXPR.
22782 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
22783 put_var_into_stack.
22785 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22787 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
22788 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
22789 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
22791 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
22792 all callers changed.
22793 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
22794 the way that EXIT_STMT finds the loop label.
22795 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
22796 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
22797 (add_stmt): Use annotate_with_locus insted of setting directly.
22798 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
22799 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
22800 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
22801 (build_vms_descriptor): Add extra args to ARRAY_REF.
22802 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
22803 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
22805 (build_binary_op): Don't make explicit CONVERT_EXPR.
22806 Add extra rgs to ARRAY_REF.
22808 2004-06-14 Pascal Obry <obry@gnat.com>
22810 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
22811 Windows. Fix minor typo.
22813 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
22814 which is now supported on Windows. With this implementation using the
22815 Library Project feature is no different on Windows than on UNIX.
22817 2004-06-14 Vincent Celier <celier@gnat.com>
22819 * makegpr.adb (Compile_Sources): Nothing to do when there are no
22822 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
22824 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
22825 found, show the project name and the path of the previously parsed
22828 2004-06-14 Ed Schonberg <schonberg@gnat.com>
22830 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
22831 array, avoid copying the actual before the call.
22833 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
22835 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
22836 Instead, allocate memory on worst-case alignment assumptions, and then
22837 return an aligned address within the allocated zone.
22839 2004-06-14 Robert Dewar <dewar@gnat.com>
22841 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
22842 elab entities in predefined units in No_Run_Time_Mode.
22843 (Gen_Adainit_C): Same fix
22844 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
22845 units in No_Run_Time_Mode
22846 (Gen_Elab_Calls_C): Same fix
22848 * symbols-vms-alpha.adb: Minor reformatting
22850 * g-debpoo.ads: Minor reformatting
22852 * lib.adb (In_Same_Extended_Unit): Version working on node id's
22854 * lib.ads (In_Same_Extended_Unit): Version working on node id's
22856 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
22859 * make.adb: Minor reformatting
22861 * par-ch12.adb: Minor reformatting
22863 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
22865 * prj-strt.adb: Minor reformatting
22867 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
22870 * sem_attr.adb: Minor reformatting
22872 * sem_ch7.adb: Minor reformatting
22874 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
22875 for type in the same unit as the object declaration.
22877 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
22878 static string expressions and not just string literals.
22880 (Set_Warning): Reset restriction warning flag for restriction pragma
22881 Implement pragma Profile_Warnings
22882 Implement pragma Profile (Restricted)
22883 Give obolescent messages for old restrictions and pragmas
22885 * snames.h, snames.ads, snames.adb: Add new entry for pragma
22888 * s-rident.ads: Add declarations for restrictions required by profile
22889 Restricted and profile Ravenscar.
22891 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
22893 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
22894 configuration pragmas.
22896 2004-06-11 Vincent Celier <celier@gnat.com>
22898 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
22899 gnatsym, when symbol policy is Restricted.
22901 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
22902 gnatsym, when symbol policy is Restricted.
22904 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
22905 read the symbol file.
22906 (Finalize): Fail in symbol policy Restricted if a symbol in the original
22907 symbol file is not in the object files. Do not create a new symbol file
22908 when symbol policy is Restricted.
22910 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
22913 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
22915 (Usage): Line for new switch -R
22917 * make.adb (Initialize): When the platform is not VMS, add the
22918 directory where gnatmake is invoked in the front of the path, if
22919 gnatmake is invoked with directory information. Change the Scan_Args
22920 while loop to a for loop.
22921 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
22922 if Depth is equal or greater than the proposed depth, there is nothing
22924 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
22927 * prj.ads: Add new symbol policy Restricted.
22929 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
22930 with the new parameters Check_All_Labels and Case_Location.
22932 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
22933 (Library_Symbol_File needs to be defined).
22935 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
22936 and Case_Location If Check_All_Labels is True, check that all values of
22937 the string type are used, and output warning(s) if they are not.
22939 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
22942 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
22944 * gnat_ugn.texi: Update documentation about the library directory in
22947 * makegpr.adb (Display_Command): In verbose mode, also display the
22948 value of the CPATH env var, when the compiler is gcc.
22949 (Initialize): Change the Scan_Args while loop to a for loop
22950 (Compile_Individual_Sources): Change directory to object directory
22951 before compilations.
22953 * symbols.ads: New symbol policy Restricted.
22955 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
22957 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
22958 is now taken care of internally in the Exception_Propagation package
22959 and does not require clients assistance any more.
22961 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
22962 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
22963 functions. Helpers to maintain a predicate required in the handling of
22964 occurrence transfer between tasks.
22965 This is now handled internally and does not require clients assistance
22966 for the setup/propagate separation anymore.
22967 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
22968 allocation strategy, handle the Setup_And_Not_Propagated predicate and
22971 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
22972 raise_after_setup, now that everything is handled internally within the
22973 setup/propagation engine.
22975 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
22977 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
22978 Add additional conditions for the case of an actual being a simple
22979 name or literal. Improve inlining by preventing the generation
22980 of temporaries with a short lifetime (one use).
22982 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
22985 * einfo.ads: Minor comment updates for Has_Completion and
22986 E_Constant list of flags.
22988 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
22989 and constant redeclarations now set the Has_Completion flag of their
22990 defining identifiers.
22992 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
22993 Inspect_Deferred_Constant_Completion.
22994 Used to detect private deferred constants that have not been completed
22995 either by a constant redeclaration or pragma Import. Emits error message
22996 "constant declaration requires initialization expression".
22998 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
22999 completes a deferred constant.
23001 2004-06-11 Geert Bosch <bosch@gnat.com>
23003 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
23005 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
23006 calculating exponent for scaling denormal numbers.
23007 (Leading_Part): Properly raise Constraint_Error for zero or negative
23009 (Remainder): Properly raise Constraint_Error for zero divisor.
23011 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
23013 * sem_util.adb: Minor reformatting.
23015 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
23016 dereference when accessing the entry parameter record.
23017 (Check_Array_Type): Always check for possible implicit dereference.
23018 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
23019 Abort if a pointer is still present (denoting that an implicit
23020 dereference was left in the tree by the front-end).
23022 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
23023 dereference when accessing the entry parameter record.
23024 (Check_Array_Type): Always check for possible implicit dereference.
23025 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
23026 Abort if a pointer is still present (denoting that an implicit
23027 dereference was left in the tree by the front-end).
23029 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
23031 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
23032 message, like the compiler itself does. Easier to parse the output.
23034 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
23036 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
23037 be base names, and not includes directories.
23039 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
23041 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
23042 so that dependencies are properly taken into account by make.
23044 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
23047 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
23048 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
23050 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
23052 * Makefile.in (install-gnatlib): install target-specific run-time files.
23054 * Make-lang.in: Remove obsolete targets.
23056 2004-06-11 Ed Schonberg <schonberg@gnat.com>
23058 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
23059 specification, to catch misuses of program unit names.
23061 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
23062 superfluous conversions in an instance.
23064 2004-06-11 Ed Schonberg <schonberg@gnat.com>
23067 * sem_ch12.adb (Save_References): If operator node has been folded to
23068 enumeration literal, associated_node must be discarded.
23070 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
23072 * s-stchop-vxworks.adb: Add required pragma Convention to
23073 Task_Descriptor because it is updated by a C function.
23075 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
23078 * Makefile.in: Remove target specific SO_OPT on IRIX
23080 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23082 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
23083 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
23084 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
23085 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
23086 (STMT_STMT, USE_STMT): New statement codes.
23087 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
23088 * ada-tree.h: Reflect above changes.
23089 (struct tree_loop_id): Deleted.
23090 (union lang_tree_node, struct lang_decl, struct lang_type):
23091 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
23092 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
23093 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
23094 (IS_ADA_STMT): New macro.
23095 * decl.c (annotate_decl_with_node): New function.
23096 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
23097 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
23098 Call add_stmt_with_node to do needed assignments.
23099 Add call to update setjmp buffer directly, not via EXPR_STMT.
23100 (maybe_variable): Argment GNAT_NODE deleted.
23101 * gigi.h (maybe_variable): Likewise.
23102 (make_transform, add_stmt_with_node, set_block_for_group): New.
23103 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
23104 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
23105 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
23106 (set_lineno, set_lineno_from_sloc): Likewise.
23107 (record_code_position, insert_code_for): Likewise.
23108 (gnat_poplevel): Now returns void.
23109 (end_subprog_body): Now takes argument.
23110 * misc.c (cgraph.h, tree-inline.h): New includes.
23111 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
23112 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
23113 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
23114 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
23115 (gnat_parse_file): Don't set immediate_size_expand.
23116 Call cgraph functions.
23117 (gnat_expand_expr): Remove most cases.
23118 (record_code_position, insert_code_for): Remove from here.
23119 * trans.c (toplev.h, tree-gimple.h): Now included.
23120 (discard_file_names): Deleted.
23121 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
23122 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
23123 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
23124 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
23125 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
23126 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
23127 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
23128 (set_block_for_group, add_stmt_list): Likewise.
23129 (start_stmt_group): Renamed from start_block_stmt.
23130 (end_stmt_group): Likewise, from end_block_stmt.
23131 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
23132 (gigi): Don't set discard_file_names or call set_lineno.
23133 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
23134 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
23135 Numerous changes throughout to reflect new names and complete
23136 function-at-a-time implementation.
23137 (gnat_expand_stmt): Delete or comment out all cases.
23138 (process_inlined_subprograms): Use add_stmt.
23139 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
23140 call set_lineno; also remove unneeded block handling.
23141 (process_type): Remove unneeded block handling.
23142 (build_unit_elab): Remove calls to deleted functions.
23143 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
23144 (tree-dump.h): Likewise.
23145 (struct ada_binding_level): Add field jmpbuf_decl.
23146 (gnat_define_builtin, gnat_install_builtins): New.
23147 (gnat_gimplify_function, gnat_finalize): Likewise.
23148 (gnat_poplevel): No longer return BLOCK, set it instead.
23149 Remove code dealing with nested functions.
23150 (gnat_init_decl_processing): Also set size_type_node.
23151 Call gnat_install_builtins.
23152 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
23153 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
23154 Remove special-case for "main".
23155 (end_subprog_body): Add arg and rework for tree-ssa.
23156 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
23157 Add case for BOOLEAN_TYPE.
23158 * utils2.c (rtl.h): Now include.
23159 (build_call_raise): Test Debug_Flag_NN directly.
23160 (build_call_alloc_dealloc): Don't use local stack allocation for now.
23161 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
23162 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
23164 2004-06-07 Robert Dewar <dewar@gnat.com>
23166 * a-direct.ads, einfo.ads: Minor comment updates
23168 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
23169 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
23170 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
23171 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
23172 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
23174 * s-interr-sigaction.adb: Remove unreferenced variable
23175 (Attached_Interrupts). Minor reformatting.
23176 Avoid use of variable I (replace by J).
23178 * par-ch10.adb: Fix text of one error message
23180 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
23181 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
23182 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
23183 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
23184 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
23185 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
23186 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
23187 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
23188 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
23189 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
23190 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
23193 2004-06-07 Doug Rupp <rupp@gnat.com>
23195 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
23197 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
23199 * mlib-tgt-vms-ia64.adb: New file.
23201 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
23202 Add mlib-tgt-vms-ia64.adb
23203 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
23204 Move to alpha specific ifeq section.
23205 Add VMS specific versions of symbols.adb
23206 Renaming of 5q vms files.
23208 * 5qsystem.ads renamed to system-vms_64.ads.
23210 2004-06-07 Vincent Celier <celier@gnat.com>
23212 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
23213 explain that when a time of day corresponding to the non existing hour
23214 on the day switching to DST is specified, Split may return a different
23217 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
23220 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
23221 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
23223 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
23225 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
23226 the linking options.
23227 (Build_Library.Check_Libs): On VMS, if there is a dependency on
23228 g-trasym.ads, set Gtrasymobj_Needed to True.
23230 * prj-attr.adb: Add new package Metrics for gnatmetric
23232 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
23233 canonical case to take into account files with upper case characters on
23235 (Ada_Check): Load the reference symbol file name in the name buffer to
23236 check it, not the symbol file name.
23238 * snames.ads, snames.adb: Add standard name Metrics (name of project
23239 file package for gnatmetric).
23241 * vms_conv.ads: Add Metric to Comment_Type
23243 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
23245 * vms_data.ads: Add qualifiers for GNAT METRIC
23247 * makegpr.adb (Link_Executables): Take into account the switches
23248 specified in package Linker of the main project.
23250 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
23252 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
23253 the index of the last element is Units.Last, not Units.Table'Last
23254 (which is usually not a valid index within the actually allocated
23255 storage for the table).
23257 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
23258 determines whether to generate a call to a checked storage pool
23259 Dereference action.
23260 Generate such a call only for a dereference that either comes from
23261 source, or is the result of rewriting a dereference that comes from
23264 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
23266 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
23268 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
23270 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
23271 file level, elaborate the stride for inner dimensions in alignment
23274 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
23277 2004-06-07 Javier Miranda <miranda@gnat.com>
23279 * exp_ch6.adb: Correct wrong modification in previous patch
23281 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
23283 * g-trasym.ads: Corrected comment to properly reflect level of support
23286 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
23288 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
23289 includes case of a variable referenced on the left hand side of an
23290 assignment, therefore remove redundant code. Variables and prefixes of
23291 indexed or selected components are now marked as referenced on left
23292 hand side. Warnings are now properly emitted when variables or prefixes
23293 are assigned but not read.
23295 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
23296 left hand side referenced variables. Private access types do not
23297 produce the warning "variable ... is assigned but never read".
23298 Add also additional checks to left hand side referenced variables.
23299 Aliased, renamed objects and access types do not produce the warning
23300 "variable ... is assigned but never read" since other entities may read
23301 the memory location.
23303 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
23305 * Makefile.in: In the powerpc/vxworks-specific section, restore
23306 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
23309 2004-06-07 Ed Schonberg <schonberg@gnat.com>
23311 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
23312 predefined operators.
23313 Removes spurious type errors from g-trasym-vms.adb.
23315 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
23316 distinct from the operator appearing in the source, call appropriate
23317 routine to insert conversions when needed, and complete resolution of
23319 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
23320 interpretations for rewritten right operand.
23321 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
23322 the other operand is overloaded and the context is a type conversion.
23324 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23326 * ada-tree.def (BLOCK_STMT): Now has two operands.
23329 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
23331 * gigi.h: (gnat_poplevel): Now returns a tree.
23333 * trans.c (end_block_stmt): Add arg; all callers changed.
23334 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
23335 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
23336 (add_stmt): Set TREE_TYPE.
23337 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
23338 (gnat_expand_stmt, case BREAK_STMT): New case.
23340 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
23342 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
23344 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
23345 procedure Set_Stack_Size that is not needed.
23347 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
23349 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
23350 used for gnatpp input file and for the files upon which it depends
23352 2004-06-07 Ben Brosgol <brosgol@gnat.com>
23354 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
23356 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
23358 * gnatvsn.ads: Bump version numbers appropriately.
23359 Add new build type.
23361 2004-06-07 Pascal Obry <obry@gnat.com>
23363 * gnat_ugn.texi: Improve comments about imported names and link names
23364 on Windows. Add a note about the requirement to use -k gnatdll's option
23365 when working with a DLL which has stripped stdcall symbols (no @nn
23368 2004-05-27 Vincent Celier <celier@gnat.com>
23370 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
23371 COMMENTS_LAYOUT=UNTOUCHED
23373 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
23374 symbols-vms-alpha.adb
23376 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
23378 * sem.ads: Clarify documentation on checks suppression.
23380 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
23382 2004-05-27 Ed Schonberg <schonberg@gnat.com>
23384 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
23385 the case of multiple derivations.
23386 (Is_Object_Reference): For a selected component, verify that the prefix
23387 is itself an object and not a value.
23389 * sem_ch12.adb (Same_Instantiated_Constant): New name for
23390 Same_Instantiated_Entity.
23391 (Same_Instantiated_Variable): Subsidiary to
23392 Check_Formal_Package_Instance, to recognize actuals for in-out generic
23393 formals that are obtained from a previous formal package.
23394 (Instantiate_Subprogram_Body): Emit proper error when
23395 generating code and the proper body of a stub is missing.
23397 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
23398 has a universal interpretation, do the disambiguation here.
23400 * exp_ch4.adb (Expand_N_Type_Conversion,
23401 Expand_N_Unchecked_Type_Conversion): Special handling when target type
23402 is Address, to avoid typing anomalies when Address is a visible integer
23405 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
23406 to determine whether a subprogram should not be marked Pure, even when
23407 declared in a pure package.
23409 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
23411 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
23413 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
23414 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
23415 Update the documentation about the Ravenscar profile, following the
23416 definition found in AI-249.
23418 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
23419 setting the Profile (Ravenscar). This must be done in addition to
23420 setting the required restrictions.
23422 * rtsfind.ads: Add the set of operations defined in package
23425 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
23428 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
23430 lang-specs.h: Always require -c or -S and always redirect to /dev/null
23431 if -gnatc or -gnats is passed.
23433 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
23435 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
23436 a significant reference. Warnings are now properly emitted when a
23437 discriminated type is not referenced.
23439 * lib-xref.adb (Generate_Reference): A deferred constant completion,
23440 record representation clause or record type discriminant does not
23441 produce a reference to its corresponding entity. Warnings are now
23442 properly emitted when deferred constants and record types are not
23445 2004-05-27 Geert Bosch <bosch@gnat.com>
23447 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
23448 Fixes ACATS Annex G tests.
23450 2004-05-27 Robert Dewar <dewar@gnat.com>
23452 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
23455 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
23457 * s-interr.adb (Server_Task): Take into account case of early return
23458 from sigwait under e.g. linux.
23460 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
23462 * gnat_ugn.texi: Add description for the new gnatpp options:
23463 -rnb - replace the original source without creating its backup copy
23464 -c0 - do not format comments
23466 2004-05-24 Geert Bosch <bosch@gnat.com>
23468 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
23469 with 192 bits of precision, sufficient to reduce a double-extended
23470 arguments X with a maximum relative error of T'Machine_Epsilon, for X
23471 in -2.0**32 .. 2.0**32.
23472 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
23473 reduction by the processor, which only uses a 68-bit approximation of
23475 (Tan): Always reduce arguments and compute function either using
23476 the processor's fptan instruction, or by dividing sin and cos as needed.
23478 2004-05-24 Doug Rupp <rupp@gnat.com>
23480 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
23481 gcc error on 32/64 bit VMS.
23483 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
23485 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
23486 since this is what we get for stack overflows although not documented
23488 Document the issues which may require adjustments to our signal
23491 2004-05-24 Ed Schonberg <schonberg@gnat.com>
23493 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
23494 enclosing dynamic scope if the instantiation is within a generic unit.
23496 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
23498 * exp_dbug.ads: Fix typo.
23500 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
23501 Rename it to its proper name: system-linux-ia64.ads
23502 (stamp-gnatlib1): Remove extra target specific run time files when
23503 setting up the rts directory.
23505 2004-05-24 Javier Miranda <miranda@gnat.com>
23507 * einfo.ads, einfo.adb (Limited_Views): Removed.
23508 (Limited_View): New attribute that replaces the previous one. It is
23509 now a bona fide package with the limited-view list through the
23510 first_entity and first_private attributes.
23512 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
23513 limited-private-with clause.
23514 (Install_Limited_Withed_Unit): Install the private declarations of a
23515 limited-private-withed package. Update the installation of the shadow
23516 entities according to the new structure (see Build_Limited_Views)
23517 (Build_Limited_Views): Replace the previous implementation of the
23518 limited view by a package entity that references the first shadow
23519 entity plus the first shadow private entity (required for limited-
23520 private-with clause)
23521 (New_Internal_Shadow_Entity): Code cleanup.
23522 (Remove_Limited_With_Clause): Update the implementation to undo the
23523 new work carried out by Build_Limited_Views.
23524 (Build_Chain): Complete documentation.
23525 Replace Ada0Y by Ada 0Y in comments
23528 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
23529 types the level of accessibility depends on the enclosing type
23532 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
23533 entities. Complete documentation of previous change.
23535 2004-05-24 Robert Dewar <dewar@gnat.com>
23537 * namet.adb: Minor reformatting
23538 Avoid use of name I (replace by J)
23539 Minor code restructuring
23541 * sem_ch6.adb: Minor reformatting
23543 * lib-writ.adb: Do not set restriction as active if this is a
23544 Restriction_Warning case.
23546 * sem_prag.adb: Reset restriction warning flag if real pragma
23547 restriction encountered.
23549 * s-htable.adb: Minor reformatting
23550 Change rotate count to 3 in Hash (improves hash for small strings)
23552 * 5qsystem.ads: Add comments for type Address (no literals allowed).
23554 * gnat_ugn.texi: Add new section of documentation "Code Generation
23555 Control", which describes the use of -m switches.
23557 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
23559 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
23560 through the DECL_INITIAL for renamed variables.
23562 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
23564 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
23566 2004-05-19 Joel Brobecker <brobecker@gnat.com>
23568 * exp_dbug.ads: Correct comments concerning handling of overloading,
23569 since we no longer use $ anymore.
23571 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
23573 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
23574 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
23575 with illegal subunits.
23577 2004-05-19 Ed Schonberg <schonberg@gnat.com>
23579 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
23580 body with front-end inlining enabled, check whether an inline pragma
23581 appears immediately after the body and applies to it.
23583 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
23584 enabled and the pragma appears after the body of the subprogram.
23586 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23588 Part of function-at-a-time conversion
23590 * misc.c (adjust_decl_rtl): Deleted.
23591 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
23594 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
23595 (add_decl_stmt, add_stmt, block_has_vars): New functions.
23596 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
23598 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
23599 when making a decl.
23600 (gnat_to_gnu_entity): Likewise.
23601 Use add_stmt to update setjmp buffer.
23602 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
23604 No longer call adjust_decl_rtl.
23605 (DECL_INIT_BY_ASSIGN_P): New macro.
23606 (DECL_STMT_VAR): Likewise.
23608 * trans.c (gigi): Call start_block_stmt to make the outermost
23610 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
23611 Call start_block_stmt and end_block_stmt temporarily.
23612 Use gnat_expand_stmt instead of expand_expr_stmt.
23613 (add_decl_stmt): New function.
23614 (tree_transform): Call it.
23615 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
23616 (end_block_stmt): Set type and NULL_STMT.
23617 (gnat_expand_stmt): Make recursize call instead of calling
23619 (gnat_expand_stmt, case DECL_STMT): New case.
23620 (set_lineno_from_sloc): Do nothing if global.
23621 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
23622 (start_block_stmt, add_stmt, end_block_stmt): New functions.
23623 (build_block_stmt): Call them.
23624 (gnat_to_code): Don't expand NULL_STMT.
23625 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
23627 (tree_transform): Likewise.
23628 (tree_transform, case N_Null_Statement): Return NULL_STMT.
23629 (gnat_expand_stmt, case NULL_STMT): New case.
23630 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
23633 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
23636 * utils.c (create_var_decl): Do not call expand_decl or
23638 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
23639 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
23641 (struct e_stack): Add chain_next to GTY.
23642 (struct binding_level): Deleted.
23643 (struct ada_binding_level): New struct.
23644 (free_block_chain): New.
23645 (global_binding_level, clear_binding_level): Deleted.
23646 (global_bindings_p): Rework to see if no chain.
23647 (kept_level_p, set_block): Deleted.
23648 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
23649 new data structure and work directly on BLOCK node.
23650 (gnat_poplevel): Similarly.
23651 (get_decls): Look at BLOCK_VARS.
23652 (insert_block): Work directly on BLOCK node.
23653 (block_has_var): New function.
23654 (pushdecl): Rework for new binding structures.
23655 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
23657 (build_subprog_body): Likewise.
23658 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
23660 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
23662 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
23663 (DECL_STMT_VAR): Likewise.
23665 2004-05-17 Robert Dewar <dewar@gnat.com>
23667 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
23670 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
23671 of restriction synonyums by using
23672 Restrict.Process_Restriction_Synonyms.
23674 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
23676 * s-restri.ads (Tasking_Allowed): Correct missing comment
23678 * s-rident.ads: Add entries for restriction synonyms
23680 * ali.adb: Fix some problems with badly formatted ALI files that can
23681 result in infinite loops.
23683 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
23684 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
23685 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
23686 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
23687 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
23688 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
23689 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
23690 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
23691 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
23692 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
23693 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
23694 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
23695 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
23696 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
23697 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
23698 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
23699 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
23700 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
23701 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
23702 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
23703 to Task_Id (minor cleanup).
23705 2004-05-17 Vincent Celier <celier@gnat.com>
23707 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
23708 directory separator.
23710 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
23711 project being extended, if Languages is not declared in extending
23714 2004-05-17 Javier Miranda <miranda@gnat.com>
23716 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
23717 limited view of a visible sibling.
23719 2004-05-14 Robert Dewar <dewar@gnat.com>
23721 * gnat_ugn.texi: Minor change to -gnatS documentation
23723 * sprint.adb: Remove some instances of Assert (False) and for this
23724 purpose replace them by output of a ??? string.
23726 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
23729 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
23730 flag processing. This was suppressing required dependencies in
23731 No_Run_Time mode and is not needed since the binder does not generate
23732 references for things in libgnat anyway.
23734 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
23737 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
23739 * gnat_ugn.texi: Document AIX-specific issue with initialization of
23742 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
23743 action for the case of an actual parameter in an init proc call.
23745 2004-05-14 Ed Schonberg <schonberg@gnat.com>
23747 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
23748 subtype, check visible entities in base type.
23750 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
23751 actions if the object is a renaming.
23753 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
23754 Check_Formal_Package_Instance, to determine more precisely when the
23755 formal and the actual denote the same entity.
23757 2004-05-14 Javier Miranda <miranda@gnat.com>
23759 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
23761 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
23762 corresponding to a private_with must be removed from visibility; it
23763 will be made visible later, just before we analyze the private part of
23765 (Check_Private_Child_Unit): Allow private_with clauses in public
23767 (Install_Siblings): Make visible the private entities of private-withed
23769 (Install_Withed_Unit): Do not install the private withed unit if we
23770 are compiling a package declaration and the Private_With_OK flag was
23771 not set by the caller. These declarations will be installed later,
23772 just before we analyze the private part of the package.
23774 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
23775 during the evaluation of the expression that initializes the object,
23776 decorate it with the expected type to avoid cascade errors.
23779 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
23780 subprogram we have to install the private_with clauses after its
23781 specification has been analyzed (as documented in AI-262.TXT).
23783 * sem_ch8.adb (Has_Private_With): New function. Determines if the
23784 current compilation unit has a private with on a given entity.
23785 (Find_Direct_Name): Detect the Beaujolais problem described in
23788 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
23789 provides the functionality of the function Is_Ancestor that was
23790 previously available in sem_ch10. It has been renamed to avoid
23793 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
23795 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23797 * utils.c (build_vms_descriptor): Use SImode pointers.
23799 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
23801 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
23803 2004-05-14 GNAT Script <nobody@gnat.com>
23805 * Make-lang.in: Makefile automatically updated
23807 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
23809 Renaming of target specific files for clarity
23811 * Makefile.in: Rename GNAT target specific files.
23813 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
23814 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
23815 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
23816 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
23817 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
23818 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
23819 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
23820 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
23821 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
23822 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
23823 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
23824 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
23825 51osinte.adb, 51osinte.ads, 51system.ads,
23826 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
23827 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
23828 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
23829 56tpopsp.adb, 57system.ads, 58system.ads,
23830 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
23831 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
23832 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
23833 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
23834 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
23835 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
23836 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
23837 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
23838 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
23839 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
23840 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
23841 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
23842 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
23843 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
23844 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
23845 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
23846 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
23847 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
23848 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
23849 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
23850 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
23851 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
23852 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
23853 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
23854 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
23855 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
23856 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
23857 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
23858 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
23859 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
23860 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
23861 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
23862 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
23863 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
23864 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
23865 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
23866 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
23867 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
23868 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
23869 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
23871 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
23872 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
23873 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
23874 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
23875 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
23876 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
23877 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
23878 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
23879 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
23880 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
23881 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
23882 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
23883 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
23884 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
23885 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
23886 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
23887 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
23888 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
23889 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
23890 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
23891 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
23892 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
23893 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
23894 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
23895 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
23896 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
23897 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
23898 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
23899 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
23900 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
23901 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
23902 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
23903 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
23904 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
23905 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
23906 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
23907 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
23908 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
23909 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
23910 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
23911 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
23912 s-osinte-vms.ads, s-osinte-vxworks.adb,
23913 s-osinte-vxworks.ads, s-osprim-mingw.adb,
23914 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
23915 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23916 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
23917 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
23918 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
23919 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23920 s-stchop-vxworks.adb, s-taprop-dummy.adb,
23921 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
23922 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
23923 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
23924 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
23925 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
23926 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
23927 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
23928 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
23929 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
23930 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
23931 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
23932 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
23933 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
23934 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
23935 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
23936 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
23937 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
23938 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
23939 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
23940 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
23941 system-irix-o32.ads, system-linux-x86_64.ads,
23942 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
23943 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
23944 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
23945 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
23946 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
23947 system-vxworks-mips.ads, system-vxworks-ppc.ads,
23948 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
23951 2004-05-13 Zack Weinberg <zack@codesourcery.com>
23953 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
23955 2004-05-13 Diego Novillo <dnovillo@redhat.com>
23957 Merge from tree-ssa-20020619-branch.
23959 * config-lang.in (boot_language, build_by_default): Set
23961 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
23962 (max_size): Add static chain op for call_expr.
23964 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
23967 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
23969 2004-05-11 Roger Sayle <roger@eyesopen.com>
23971 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
23974 2004-05-10 Doug Rupp <rupp@gnat.com>
23976 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
23979 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
23981 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
23983 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
23984 Fixes undefined symbols in IA64 gnatlib.
23986 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
23988 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
23989 Short_Address). This will be moved to system.auxdec.
23991 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
23993 * sem_util.adb: Replace test for presence of a node that is always
23994 present with a call to Discard_Node.
23996 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
23997 Analyze on the library unit node after generation of distribution stub
23998 constructs. The call was a no-op because Unit_Node has already been
23999 Analyzed, and the tree fragments for the distribution stubs are
24000 analyzed as they are inserted in Exp_Dist.
24001 Update comment regarding to distribution stubs to reflect that we
24002 do not generate stub in separate files anymore.
24004 * einfo.ads: Clarify the fact that a tagged private type has the
24005 E_Record_Type_With_Private Ekind.
24007 * erroutc.adb: Minor reformatting
24009 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
24010 values if line length is increased using -gnatyM (noticed during code
24013 * eval_fat.adb: Minor reformatting
24014 Put spaces around exponentiation operator
24016 2004-05-10 Ed Schonberg <schonberg@gnat.com>
24019 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
24020 has been rewritten as an explicit dereference, retrieve type of
24021 original node to check for possibly unconstrained record type.
24023 2004-05-10 Ed Schonberg <schonberg@gnat.com>
24025 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
24026 overriding, use the operation of the parent unconditionally.
24028 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
24029 operation when either operand is a literal, to avoid further
24032 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
24033 overridden by a previous explicit declaration, mark the previous entity
24036 * sem_disp.adb (Check_Dispatching_Operation): New predicate
24037 Is_Visibly_Controlled, to determine whether a declaration of a
24038 primitive control operation for a derived type overrides an inherited
24039 one. Add warning if the explicit declaration does not override.
24041 2004-05-10 Vincent Celier <celier@gnat.com>
24043 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
24044 some cases when the sources are no longer present.
24046 * make.adb (Collect_Arguments): Fail if an external source, not part
24047 of any project need to be compiled, when switch -x has not been
24050 * makeusg.adb: Document new switch -x
24052 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
24053 defaulted to False.
24055 * switch-m.adb (Scan_Make_Switches): New switch -x
24057 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
24058 gnatmake switch -x.
24060 * gnat_ugn.texi: Document new gnatmake switch -x
24062 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
24064 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
24066 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
24067 (process_attributes): Likewise.
24069 2004-05-10 Joel Brobecker <brobecker@gnat.com>
24071 * s-inmaop.ads: Fix spelling mistake in one of the comments.
24073 2004-05-10 Robert Dewar <dewar@gnat.com>
24075 * gnat_ugn.texi: Document that for config pragma files, the maximum
24076 line length is always 32767.
24078 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
24079 literals is now allowed.
24081 * gnat-style.texi: Remove statement about splitting long lines before
24082 an operator rather than after, since we do not follow this rule at all.
24083 Clarify rule (really lack of rule) for spaces around exponentiation
24085 * sem_elim.adb: Allow concatenation of string literals as well as a
24086 single string literal for pragma arguments.
24088 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
24090 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
24091 written for append case.
24093 * frontend.adb: Changes to avoid checking max line length in config
24096 * g-os_lib.ads: Minor reformatting
24098 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
24099 wrong in any case. Instead use standard value. Noticed during code
24102 * opt.ads (Max_Line_Length): New field, used to implement removal of
24103 limitation on length of lines when scanning config pragma files.
24105 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
24106 makeutl.ads, makeutl.adb: Minor reformatting
24108 * scn.adb: Do not check line length while scanning config pragma files
24109 Do not check line length while scanning out license information
24111 * scng.adb: Changes to avoid line length checks while parsing config
24114 2004-05-10 GNAT Script <nobody@gnat.com>
24116 * Make-lang.in: Makefile automatically updated
24118 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
24120 * osint.adb (Find_Program_Name): Fix handling of VMS version
24123 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
24125 * g-os_lib.ads (Invalid_Time): New constant
24127 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
24128 return OS_Time instead of time_t to match what is imported by Ada.
24129 Now return -1 if the file doesn't exist, instead of a random value
24131 2004-05-05 Robert Dewar <dewar@gnat.com>
24133 * usage.adb: Add line for -gnatR?s switch
24135 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
24137 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
24138 and for Match (Data_First, Data_last)
24140 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
24141 written when we are dealing with multi-unit files.
24143 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
24145 * Makefile.in: Remove unused targets and variables.
24147 2004-05-05 Vincent Celier <celier@gnat.com>
24149 * switch-m.adb: New gnatmake switch -eI
24151 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
24152 of new gnatmake switch -eInnn.
24154 * makegpr.adb: Take into account new parameters Index and Src_Index in
24157 * clean.adb: Implement support for multi-unit sources, including new
24160 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
24163 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
24164 (Extract_From_Q): New out parameter Index
24165 (Mark, Is_Marked): Subprograms moved to Makeutl
24166 (Switches_Of): New parameter Source_Index
24167 (Add_Switch): New parameter Index
24168 (Check): New parameter Source_Index
24169 (Collect_Arguments): New parameter Source_Index
24170 (Collect_Arguments_And_Compile): New parameter Source_Index
24171 (Compile): New parameter Source_Index
24172 Put subprograms in alphabetical order
24173 Add support for multi-source sources, including in project files.
24175 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
24176 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
24179 * makeusg.adb: New gnatmake switch -eInnn
24181 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
24184 * opt.ads (Main_Index): New variable, defaulted to 0.
24186 * osint.ads, osinte.adb (Add_File): New parameter Index
24187 (Current_Source_Index): New function
24189 * prj.adb: Take into account new components Index and Src_Index
24191 * prj.ads (String_Element): New component Index
24192 (Variable_Value): New component Index
24193 (Array_Element): New component Src_Index
24195 * prj-attr.adb: Indicate that optional index may be specified for
24196 attributes Main, Executable, Spec, Body and some of Switches.
24198 * prj-attr.ads (Attribute_Kind): New values for optional indexes
24199 (Attribute_Record): New component Optional_Index
24201 * prj-com.ads (File_Name_Data): New component Index
24203 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
24205 * prj-env.adb (Put): Output optional index
24207 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
24208 attributes Spec and Body.
24210 * prj-nmsc.adb: Process optional indexes
24212 * prj-pp.adb: Ouput "at" for optional indexes
24214 * prj-proc.adb: Take into account optional indexes
24216 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
24217 Optional_Index. For string literal,
24218 process optional index when Optional_Index is True.
24219 (Parse_Expresion): New Boolean parameter Optional_Index
24221 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
24222 (Set_Source_Index_Of): New procedure
24224 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
24227 * prj-util.ads (Executable_Of): New parameter Index
24228 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
24229 New parameter Src_Index, defaulted to 0.
24231 2004-05-05 Ed Schonberg <schonberg@gnat.com>
24234 * sem_ch3.adb (Access_Definition): If this is an access parameter
24235 whose designated type is imported through a limited_with clause, do
24236 not add the enclosing subprogram to the list of private dependents of
24239 2004-05-05 Ed Schonberg <schonberg@gnat.com>
24242 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
24243 a limited_with clause, and the other is its non-limited view.
24245 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
24247 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
24249 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
24250 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
24251 Stand.Boolean_Literals to produce references to entities
24252 Standard_False and Standard_True from compile-time computed boolean
24255 * stand.ads (Boolean_Literals): New variable, provides the entity
24256 values for False and True, for use by the expander.
24258 2004-05-05 Doug Rupp <rupp@gnat.com>
24260 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
24261 5vinmaop.adb: Unchecked convert Short_Address vice Address
24263 * adaint.c, raise.c: Caste CRTL function return value
24264 to avoid gcc error on 32/64 bit IVMS.
24266 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
24269 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
24271 * 5qsystem.ads (Address): Declare as Long_Integer
24272 (Short_Address): Declare as 32 bit subtype of Address
24273 Declare abstract address operations to avoid gratuitous ambiguities.
24275 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
24277 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
24278 instead of the old Boolean_Entry_Barriers.
24279 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
24281 2004-05-05 GNAT Script <nobody@gnat.com>
24283 * Make-lang.in: Makefile automatically updated
24285 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
24287 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
24289 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
24292 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
24293 alone. Replacing object references by literals is inappropriate in a
24294 so low level context.
24296 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
24298 * a-exexpr.adb: Add comments
24300 2004-05-03 Joel Brobecker <brobecker@gnat.com>
24302 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
24303 declare the Ancestor_Tags array in Type_Specific_Data with a small size
24304 without risking a bounds check error when accessing one of its
24306 (Type_Specific_Data): Define Ancestor_Tags as a small array.
24307 This prevents us from hitting a limitation during the debug info
24308 generation when using stabs.
24310 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
24312 This prevents us from hitting a limitation during the debug info
24313 generation when using stabs.
24315 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
24317 lang-specs.h: Remove -gnatz* from specs.
24319 2004-05-03 Vincent Celier <celier@gnat.com>
24321 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
24323 * Make-lang.in, Makefile.in: Add gprmake
24325 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
24327 * sem_aggr.adb: Fix typo in comment.
24329 2004-05-03 Robert Dewar <dewar@gnat.com>
24331 * make.adb: Minor reformatting
24333 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
24335 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
24336 so that it works when address is not a private type.
24338 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
24339 properly with rewritten unchecked conversions. This prevents
24340 order-of-elaboration issues that can otherwise arise.
24341 (Minimum_Size): Don't check size of access types under VMS
24343 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
24344 interpretations of integer literals as type System.Address.
24346 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
24347 (Is_Descendent_Of): New function
24349 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
24351 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
24352 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
24353 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
24355 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
24356 of the old Max_Entry_Queue_Depth.
24358 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
24359 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
24360 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
24362 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
24363 New entry for proper handling of Max_Entry_Queue_Depth.
24364 New entry for proper handling of No_Dynamic_Interrupts.
24366 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
24367 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
24368 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
24369 the GNAT specific restriction Max_Entry_Queue_Depth.
24370 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
24371 the GNAT specific restriction No_Dynamic_Interrupts.
24373 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
24374 instead of the old Boolean_Entry_Barriers.
24375 Use the new restriction No_Dynamic_Attachment instead of the old
24376 No_Dynamic_Interrupts.
24378 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
24379 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
24381 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
24382 of the old Max_Entry_Queue_Depth.
24384 2004-05-03 GNAT Script <nobody@gnat.com>
24386 * Make-lang.in: Makefile automatically updated
24388 2004-04-29 Ed Schonberg <schonberg@gnat.com>
24390 * checks.adb (Enable_Range_Check): If the prefix of an index component
24391 is an access to an unconstrained array, perform check unconditionally.
24393 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24395 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
24398 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
24400 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
24401 alternate stack setting. There was no support for the tasking cases
24402 and the changes eventually caused a number of side-effect failures in
24403 the non-tasking case too.
24405 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
24407 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
24410 2004-04-29 Vincent Celier <celier@gnat.com>
24412 * make.adb (Gnatmake): Increase max size of argument array for
24413 gnatbind for the potential addition of -F.
24414 If there are Stand-Alone Library projects, invoke gnatbind with -F to
24415 be sure that elaboration flags will be checked.
24417 * switch-c.adb: Correct call to Scan_Pos for -gnateI
24419 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
24421 * sem_warn.adb (Check_References): Move '<access-variable> may be
24422 null' warning out of under Warn_On_No_Value_Assigned.
24424 2004-04-29 Ed Falis <falis@gnat.com>
24426 * gnat_ugn.texi: Fixed texi error
24428 2004-04-29 Robert Dewar <dewar@gnat.com>
24430 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
24431 abstract operations if they come from predefined files.
24433 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
24436 * s-addope.adb: Correct obvious error in mod function
24438 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
24440 * Makefile.in: Add target pairs for powerpc darwin*
24443 * a-intnam-darwin.ads, s-osinte-darwin.adb,
24444 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
24446 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
24448 * Makefile.in: Add target macro definitions for s390*-linux*.
24449 * system-linux-s390.ads: New file.
24450 * system-linux-s390x.ads: New file.
24452 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
24454 * gnat_ugn.texi: Correct argument to @setfilename.
24456 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
24458 * a-exexpr.adb (Unwind_Word): New data type.
24459 (Unwind_Exception): Use it as type of Private1 and Private2.
24461 * raise.c (db_action_for): Fix debug printf.
24463 2004-04-27 Ed Schonberg <schonberg@gnat.com>
24465 * a-wtmoio.ads: Formal type must be a modular type, not a signed
24468 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24470 * decl.c (gnat_to_gnu_entity, case object): Call
24471 __builtin_update_setjmp_buf.
24473 * gigi.h (update_setjmp_buf): Deleted.
24474 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
24476 * misc.c: (update_setjmp_buf): Deleted.
24478 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
24479 around block of RTL.
24481 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
24483 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
24485 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
24486 subprogram for which no pragma All_Calls_Remote applies, store the
24487 address of the real subprogram in the underlying record type, so local
24488 dereferences do not go through the PCS.
24490 2004-04-26 Robert Dewar <dewar@gnat.com>
24492 * i-c.ads: Add some type qualifications to avoid ambiguities when
24493 compiling with s-auxdec.ads and a non-private address type.
24495 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
24497 * Makefile.rtl: Fix error in previous check-in:
24498 Add s-addope.o to non tasking object list (rather than tasking object
24501 2004-04-26 Javier Miranda <miranda@gnat.com>
24503 * sem_aggr.adb: Fix typo in comments
24504 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
24505 Required to check the null-exclusion attribute.
24507 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
24508 case of anonymous access types in record and array components. For a
24509 component definition the level is the same of the enclosing composite
24512 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
24513 that are anonymous access types the level of accessibility depends on
24514 the enclosing type declaration. In order to have this information, set
24515 the scope of the anonymous access type to the enclosing record type
24517 (Array_Type_Declaration): In case of components that are anonymous
24518 access types the level of accessibility depends on the enclosing type
24519 declaration. In order to have this information, set the scope of the
24520 anonymous access type to the enclosing array type declaration.
24522 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
24525 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
24526 renaming of anonymous access-to-constant types allowed if and only if
24527 the renamed object is access-to-constant.
24529 * sem_util.adb (Type_Access_Level): In case of anonymous access types
24530 that are component_definition or discriminants of a nonlimited type,
24531 the level is the same as that of the enclosing component type.
24533 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
24535 * sem_elim.adb: Some minor code reorganization from code reading. Fix
24536 misprint in the function name (File_Name_Match).
24538 2004-04-23 Laurent GUERBY <laurent@guerby.net>
24540 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
24543 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24545 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
24547 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
24549 * adaint.c (__gnat_try_lock): No longer requires that the parent
24550 directory be writable, the directory itself is enough.
24551 (gnat_is_absolute_path): Change profile, so that the call from
24552 GNAT.OS_Lib can be made more efficient.
24554 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
24555 from GNAT.OS_Lib can be made more efficient.
24557 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
24558 one copy of the file name. Found by code reading.
24560 2004-04-23 Vincent Celier <celier@gnat.com>
24562 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
24563 Correct documentation on gnatmake switches transmitted to the compiler
24565 * ali.ads: Minor comment fix
24567 2004-04-23 Javier Miranda <miranda@gnat.com>
24569 * sem_ch6.adb: (Confirming Types): Code cleanup
24571 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
24572 subprogram types: E_Anonymous_Access_Subprogram_Type and
24573 E_Anonymous_Access_Protected_Subprogram_Type.
24575 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
24577 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
24578 whether a pragma All_Calls_Remote applies to the subprogram on which
24580 No functional change is introduced by this revision; the new parameter
24581 will be used to allow calls to local RCI subprograms to be optimized
24582 to not use the PCS in the case where no pragma All_Calls_Remote applies,
24583 as is already done in the PolyORB implementation of the DSA.
24585 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
24586 whether a pragma All_Calls_Remote applies to the subprogram on which
24588 No functional change is introduced by this revision; the new parameter
24589 will be used to allow calls to local RCI subprograms to be optimized
24590 to not use the PCS in the case where no pragma All_Calls_Remote applies,
24591 as is already done in the PolyORB implementation of the DSA.
24593 2004-04-23 Robert Dewar <dewar@gnat.com>
24595 * Makefile.rtl: Add entry for s-addope.o in run time library list
24596 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
24597 * s-addope.ads, s-addope.adb: New files.
24599 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
24600 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
24601 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
24602 System.Address to be non-private and signed.
24604 * sem_elim.adb: Minor reformatting (fairly extensive)
24605 Some minor code reorganization from code reading
24606 Add a couple of ??? comments
24608 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24610 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
24611 (tree_transform, case N_If_Statement): Remove non-determinism.
24613 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
24615 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
24617 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
24618 Eliminate' section.
24620 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
24621 no longer used as a parameter name for Eliminate pragma).
24623 2004-04-22 Laurent GUERBY <laurent@guerby.net>
24625 PR optimization/14984
24626 PR optimization/14985
24627 * trans.c (gigi): Fix non determinism leading to bootstrap
24628 comparison failures.
24630 2004-04-21 Pascal Obry <obry@gnat.com>
24632 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
24633 passed to spawnvp() to properly handle program pathname with spaces on
24636 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
24638 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
24639 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
24640 unlocked in case of exceptions.
24642 2004-04-21 Joel Brobecker <brobecker@gnat.com>
24644 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
24645 This function does not exist anymore.
24647 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
24649 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
24651 * link.c: Move variables to the __gnat name space.
24653 * Makefile.in: list link.o explicitly when needed.
24655 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
24657 2004-04-21 Javier Miranda <miranda@gnat.com>
24659 * einfo.adb (Original_Access_Type): New subprogram
24660 (Set_Original_Access_Type): New subprogram
24661 (Write_Field21_Name): Write the name of the new field
24663 * einfo.ads (Original_Access_Type): New field present in access to
24665 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
24666 E_Anonymous_Access_Protected_Subprogram_Type.
24668 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
24671 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
24672 to anonymous access to subprogram types.
24674 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
24675 to subprogram types.
24677 * sem_ch3.adb (Access_Definition): Complete decoration of entities
24678 corresponding to anonymous access to subprogram types.
24679 (Analyze_Component_Declaration): Add new actual to the call to
24680 subprogram replace_anonymous_access_to_protected_subprogram.
24681 (Array_Type_Declaration): Add new actual to the call to subprogram
24682 replace_anonymous_access_to_protected_subprogram.
24683 (Process_Discriminants): Add new actual to the call to subprogram
24684 replace_anonymous_access_to_protected_subprogram.
24685 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
24687 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
24690 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
24691 access to subprogram types.
24693 * sem_util.adb (Has_Declarations): Addition of package_specification
24696 2004-04-21 Ed Schonberg <schonberg@gnat.com>
24698 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
24699 inlined flags to renamed entity only if in current unit.
24701 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
24703 * s-parint.ads: Add DSA implementation marker.
24705 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
24706 value of System.Partition_Interface.DSA_Implementation to determine
24707 what version of the distributed systems annex is available (no
24708 implementation, GLADE, or PolyORB).
24710 2004-04-21 Joel Brobecker <brobecker@gnat.com>
24712 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
24714 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24716 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
24717 with new type if alias sets differ.
24718 Fixes ACATS c41103b.
24720 2004-04-21 Vincent Celier <celier@gnat.com>
24722 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
24723 Add array Lang_Args for the language specific compiling argument
24726 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
24728 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
24730 * gnat_rm.texi: Update the descripton of the Eliminate pragma
24731 according to the recent changes in the format of the parameters of the
24732 pragma (replacing Homonym_Number with Source_Location).
24734 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
24736 * 5isystem.ads: Removed, unused.
24738 * gnat_rm.texi: Redo 1.13 change.
24740 2004-04-19 Robert Dewar <dewar@gnat.com>
24742 * s-stoele.ads: Clean up definition of Storage_Offset (the new
24743 definition is cleaner, avoids the kludge of explicit Standard operator
24744 references, and also is consistent with a visible System.Address with
24745 no visible operations.
24747 * s-geveop.adb: Add declarations to avoid assumption of visible
24748 operations on type System.Address (since these might not be available
24749 if Address is a non-private type for which the operations
24750 are made abstract).
24752 * sem_eval.adb: Minor reformatting
24754 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
24755 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
24756 reformatting (new function spec format).
24758 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
24759 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
24760 s-caun64.adb: Add declarations to avoid assumption of visible
24761 operations on type System.Address (since these might not be available
24762 if Address is a non-private type for which the operations are made
24765 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
24767 * exp_intr.adb: Minor comment update
24769 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
24771 * 5omastop.adb: Add declarations to avoid assumption of visible
24772 operations on type System.Address (since these might not be available
24773 if Address is a non-private type for which the operations
24774 are made abstract).
24776 2004-04-19 Vincent Celier <celier@gnat.com>
24778 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
24780 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
24783 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
24785 Call Check with Process_Languages.
24786 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
24787 with Process_Languages.
24788 (Recursive_Check): New Boolean parameter Process_Languages. Call
24789 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
24792 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
24794 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
24795 parameter Ada_Main, defaulted to True.
24796 Check for Ada specific characteristics only when Ada_Main is True.
24798 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
24800 * prj.adb: (Project_Empty): Add new Project_Data components.
24802 * prj.ads: New types and tables for non Ada languages.
24803 (Project_Data): New components Languages, Impl_Suffixes,
24804 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
24805 Include_Path, Include_Data_Set.
24807 * prj-env.ads, prj-env.adb: Minor reformatting
24809 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
24810 Put subprograms in alphabetical order
24812 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
24813 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
24816 * mlib-prj.adb: Back out modification in last version, as they are
24818 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
24820 * make.adb: (Mains): Moved to package Makeutl
24821 (Linker_Opts): Moved to package Makeutl
24822 (Is_External_Assignment): Moved to package Makeutl
24823 (Test_If_Relative_Path): Moved to package Makeutl
24824 (Gnatmake): Move sorting of linker options to function
24825 Makeutl.Linker_Options_Switches.
24827 * makeutl.ads, makeutl.adb: New files.
24829 * Makefile.in: Add makeutl.o to the object files for gnatmake
24831 * makeusg.adb: Add line for new switch -eL.
24833 * gnatls.adb (Image): New function.
24834 (Output_Unit): If in verbose mode, output the list of restrictions
24835 specified by pragmas Restrictions.
24837 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
24840 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
24841 needed, to put it in the range 1970 (included) - 2026 (excluded).
24842 (Time_Of): Do not shift Unix_Min_Year (1970).
24843 Shift the date by multiple of 56 years, if needed, to put it in the
24844 range 1970 (included) - 2026 (excluded).
24846 * adaint.h, adaint.c (__gnat_set_executable): New function.
24848 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24850 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
24851 and pop GC context.
24852 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
24853 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
24854 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
24855 (tree_transform, case N_Code_Statement): Likewise.
24856 (gnat_expand_stmt, case LABEL_STMT): Don't look at
24857 LABEL_STMT_FIRST_IN_EH.
24858 (gnat_expand_stmt, case ASM_STMT): New case.
24860 * utils2.c (build_unary_op): Properly set TREE_READONLY of
24861 UNCONSTRAINED_ARRAY_REF.
24863 * utils.c (poplevel): Temporarily push/pop GC context around inline
24864 function expansion.
24866 * decl.c (maybe_variable): Properly set TREE_READONLY of
24867 UNCONSTRAINED_ARRAY_REF.
24868 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
24870 * ada-tree.def: (ASM_STMT): New.
24872 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
24873 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
24874 ASM_STMT_INPUT): New.
24875 (ASM_STMT_CLOBBER): Likewise.
24877 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
24879 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
24880 general rcheck mechanism to raise Program_Error for E.4(18), instead
24881 of a custom raiser in System.Partition_Interface.
24882 Part of general cleanup work before PolyORB integration.
24884 * snames.ads, snames.adb: Add new runtime library entities and names
24887 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
24889 (Build_Subprogram_Id): New subprogram provided by exp_dist
24890 Code reorganisation in preparation for PolyORB integration.
24892 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
24894 (Build_Subprogram_Id): New subprogram provided by exp_dist
24896 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
24897 actual parameter types for call to dereference of an
24898 access-to-subprogram type.
24900 * rtsfind.ads: Add new runtime library entities and names for PolyORB
24903 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
24904 instead, which has the same behaviour here since we never pass it a
24907 * link.c (run_path_option, Solaris case): Use -Wl, as for other
24910 * Makefile.in: adjust object file lists for gnatlink and gnatmake
24911 to account for new dependency upon Interfaces.C.Strings + link.o
24912 For x86 FreeBSD, use 86numaux.
24914 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
24915 from Mlib.Tgt to Mlib.
24917 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
24918 target-independent.
24920 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
24921 target-specific versions of this subprogram, now implemented as a
24922 target-independent function in Mlib.
24924 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
24925 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
24926 (Linker_Library_Path_Option): Remove target-specific versions of this
24927 subprogram, now implemented as a target-independent function in Mlib.
24929 * atree.adb: (Allocate_Initialize_Node): New subprogram.
24930 Factors out node table slots allocation.
24931 (Fix_Parents): New subprogram.
24932 Encapsulate the pattern of fixing up parent pointers for syntactic
24933 children of a rewritten node.
24934 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
24935 (Rewrite): Use New_Copy when creating saved copy of original node.
24936 (Replace): Use Copy_Node to copy nodes.
24938 2004-04-19 Javier Miranda <miranda@gnat.com>
24940 * sprint.adb (Sprint_Node_Actual): Give support to the new
24941 Access_To_Subprogram node available in Access_Definition nodes. In
24942 addition, give support to the AI-231 node fields: null-exclusion,
24943 all-present, constant-present.
24945 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
24947 * sinfo.ads, sinfo.adb:
24948 New field Access_To_Subprogram_Definition in Access_Definition nodes
24950 * sem_ch6.adb (Process_Formals): Move here the code that creates and
24951 decorates internal subtype declaration corresponding to the
24952 null-excluding formal. This code was previously in Set_Actual_Subtypes.
24953 In addition, carry out some code cleanup on this code. In case of
24954 access to protected subprogram call
24955 Replace_Anonymous_Access_To_Protected_Subprogram.
24956 (Set_Actual_Subtypes): Code cleanup.
24958 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
24959 Find_Type in case of anonymous access renamings. Add warning in case of
24960 null-excluding attribute used in anonymous access renaming.
24962 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
24965 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
24967 (Access_Definition): In case of anonymous access to subprograms call
24968 the corresponding semantic routine to decorate the node.
24969 (Access_Subprogram_Declaration): Addition of some comments indicating
24970 some code that probably should be added here. Detected by comparison
24971 with the access_definition subprogram.
24972 (Analyze_Component_Declaration): In case of access to protected
24973 subprogram call Replace_Anonymous_Access_To_Protected.
24974 (Array_Type_Declaration): In case of access to protected subprogram call
24975 Replace_Anonymous_Access_To_Protected_Subprogram.
24976 (Process_Discriminants): In case of access to protected subprogram call
24977 Replace_Anonymous_Access_To_Protected_Subprogram.
24979 * par.adb (P_Access_Definition): New formal that indicates if the
24980 null-exclusion part was present.
24981 (P_Access_Type_Definition): New formal that indicates if the caller has
24982 already parsed the null-excluding part.
24984 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
24985 (P_Identifier_Declarations): Code cleanup and give support to renamings
24986 of anonymous access to subprogram types.
24987 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
24988 (P_Array_Type_Definition): Give support to AI-254.
24989 (P_Component_Items): Give support to AI-254.
24990 (P_Access_Definition): New formal that indicates if the header was
24991 already parsed by the caller.
24992 (P_Access_Type_Definition): New formal that indicates if the caller has
24993 already parsed the null-excluding part.
24995 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
24996 call to P_Access_Definition.
24998 2004-04-19 Geert Bosch <bosch@gnat.com>
25000 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
25001 the delicate semantics of floating-point to integer conversion.
25002 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
25004 * eval_fat.adb (Machine_Mantissa): Moved to spec.
25005 (Machine_Radix): New function.
25007 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
25009 (Machine_Radix): New function also for use in conversion checks.
25011 2004-04-19 Ed Schonberg <schonberg@gnat.com>
25013 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
25015 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
25016 to decorate the access-to-protected subprogram and the equivalent type.
25018 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
25019 to anonymous access to subprogram types.
25021 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
25022 constant-folding, for legality checks in contexts that require an RM
25025 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
25026 temporary but stack checking is not enabled, increment serial number
25027 to so that symbol generation is consistent with and without stack
25030 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
25031 independent on whether stack checking is enabled, caller must check
25032 the corresponding flag.
25034 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
25036 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
25037 parent if it has discriminants.
25038 (Build_Derived_Private_Type): Constructed full view does
25039 not come from source.
25040 (Process_Discriminants): Default discriminants on a tagged type are
25041 legal if this is the internal completion of a private untagged
25044 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
25045 no constraint checks, because it corresponds to an existing object.
25047 * sem_prag.adb (Process_Convention): Pragma applies
25048 only to subprograms in the same declarative part, i.e. the same unit,
25049 not the same scope.
25051 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
25052 ignore type mismatch on a numeric conversion if expression comes from
25055 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
25057 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
25058 Homonym_Number parameter, add processing for Source_Location parameter
25060 (Check_Eliminated): Remove the check for homonym numbers, add the check
25061 for source location traces.
25063 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
25064 with Arg_Source_Location corresponding to the changes in the format of
25067 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
25068 Eliminate pragma corresponding to the changes in the format of the
25069 pragma: Homonym_Number is replaced with Source_Location, two ways of
25070 distinguishing homonyms are mutially-exclusive.
25072 2004-04-19 Joel Brobecker <brobecker@gnat.com>
25074 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
25076 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
25077 No_Dollar_In_Label, no longer necessary, as it is always True.
25078 (Strip_Suffixes): Likewise.
25080 2004-04-19 Gary Dismukes <dismukes@gnat.com>
25082 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
25083 modulus for compatibility with size clause on targets with 16-bit
25086 * layout.adb (Discrimify): In the case of private types, set Vtyp to
25087 full type to fix type mismatches on calls to size functions for
25088 discriminant-dependent array components.
25090 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
25092 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
25095 2004-04-19 Pascal Obry <obry@gnat.com>
25097 * mdll-utl.adb (Locate): New version is idempotent.
25099 2004-04-17 Laurent Guerby <laurent@guerby.net>
25101 PR ada/14988 (partial)
25102 * impunit.adb: Fix typo.
25104 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
25106 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
25107 and install-rts-cert targets. Remove all gnatlib and gnattools
25108 targets and all other rts-* targets (moved to libada). Remove (now)
25109 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
25110 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
25112 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25114 * trans.c (tree_transform): Shortcut returning error_mark_node for
25115 statements in annotate_only_mode.
25116 (tree_transform, case N_Label, case N_Return_Statement,
25117 N_Goto_Statement): Make statement tree instead of generating code.
25118 (tree_transform, case N_Assignment_Statement): No longer check
25119 type_annotate_only.
25120 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
25122 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
25124 (gnat_to_gnu): Collect any RTL generated and deal with it.
25125 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
25126 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
25127 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
25129 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
25131 * ada-tree.def (EXPR_STMT): Fix typo in name.
25132 (BLOCK_STMT, IF_STMT): New nodes.
25134 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
25135 LABEL_STMT_FIRST_IN_EH): New macros.
25136 (RETURN_STMT_EXPR): Likewise.
25138 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
25139 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
25141 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
25143 * atree.ads: Correct documentation on extended nodes.
25145 * link.c: Set run_path_option for FreeBSD.
25147 2004-04-08 Vincent Celier <celier@gnat.com>
25149 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
25150 one of the ALI file, do not link with DEC lib.
25152 * par.adb Remove the last two characters ("%s" or "%b") when checking
25153 if a language defined unit may be recompiled.
25155 2004-04-08 Ed Schonberg <schonberg@gnat.com>
25157 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
25158 removal of abstract operation leaves no possible interpretation for
25161 * sem_eval.adb (Eval_Qualified_Expression): Use
25162 Set_Raises_Constraint_Error on node when needed, so that it does not
25163 get optimized away by subsequent optimizations.
25165 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
25166 operands even when they are not wrapped in a type conversion.
25168 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
25170 * sem_prag.adb (Set_Exported): Warn about making static as result of
25171 export only when the export is coming from source. This may be not
25172 be true e.g. on VMS where we expand export pragmas for exception codes
25173 together with imported or exported exceptions, and we don't want the
25174 user to be warned about something he didn't write.
25176 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
25178 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
25179 duplication between normal entities and those declared as renamings.
25180 No functional change.
25182 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
25183 inline functions returning an unconstrained result.
25185 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
25187 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
25188 conform to what other front-ends do.
25190 2004-04-08 Doug Rupp <rupp@gnat.com>
25192 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
25195 2004-04-06 Pascal Obry <obry@gnat.com>
25197 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
25199 * osint.adb (Program_Name): Do not look past a directory separator.
25201 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
25203 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
25205 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
25206 requirement for preserving a copy of the original assignment node.
25208 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
25210 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
25212 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
25215 2004-04-06 Ed Schonberg <schonberg@gnat.com>
25217 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
25218 operator calls in functional notation, and apply
25219 Universal_Interpretation to operands, not to their type.
25221 2004-04-06 Robert Dewar <dewar@gnat.com>
25223 * 5wdirval.adb: Minor reformatting
25225 2004-04-06 Ed Falis <falis@gnat.com>
25227 * gnat_rm.texi: Improve a reference to the GCC manual
25229 2004-04-05 Vincent Celier <celier@gnat.com>
25231 * adaint.h, adaint.c: Add function __gnat_named_file_length
25233 * impunit.adb: Add Ada.Directories to the list
25235 * Makefile.in: Add VMS and Windows versions of
25236 Ada.Directories.Validity package body.
25238 * Makefile.rtl: Add a-direct and a-dirval
25240 * mlib-tgt.ads: Minor comment update.
25242 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
25243 a-direct.ads, a-direct.adb: New files.
25245 2004-04-05 Vincent Celier <celier@gnat.com>
25248 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
25249 just to the compiler.
25251 2004-04-05 Robert Dewar <dewar@gnat.com>
25253 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
25254 returned string is 1.
25256 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
25258 * eval_fat.ads: Minor reformatting
25260 * g-curexc.ads: Document that lower bound of returned string values
25263 * gnatlink.adb: Add ??? comment for previous change
25264 (need to document why this is VMS specific)
25266 * s-stoele.ads: Minor reformatting
25268 * tbuild.ads: Minor reformatting throughout (new function specs)
25270 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
25273 * scng.adb: Minor reformatting
25275 2004-04-05 Geert Bosch <bosch@gnat.com>
25277 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
25278 (Leading_Part): Still perform truncation to machine number if the
25279 specified radix_digits is greater or equal to machine_mantissa.
25281 2004-04-05 Javier Miranda <miranda@gnat.com>
25283 * par-ch3.adb: Complete documentation of previous change
25284 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
25285 (aliased must appear before constant).
25287 * par-ch4.adb: Complete documentation of previous change.
25289 * par-ch6.adb: Complete documentation of previous change.
25291 * sinfo.ads: Fix typo in commment.
25293 2004-04-05 Ed Schonberg <schonberg@gnat.com>
25295 * sem_ch3.adb (Inherit_Components): If derived type is private and has
25296 stored discriminants, use its discriminants to constrain parent type,
25297 as is done for non-private derived record types.
25299 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
25300 Ada 2005 AI-310: an abstract non-dispatching operation is not a
25301 candidate interpretation in an overloaded call.
25303 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
25304 expression is Null and target type is not an access type (e.g. a
25305 non-private address type).
25307 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
25309 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
25310 statement whose right-hand side is an inlined call, save a copy of the
25311 original assignment subtree to preserve enough consistency for
25312 Analyze_Assignment to proceed.
25314 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
25315 complete assignment subtree which is now unnecessary, as the expansion
25316 of inlined call has been improved to preserve a consistent assignment
25317 tree. Note_Possible_Modification must be called only
25318 after checks have been applied, or else unnecessary checks will
25321 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
25322 of explicit dereferences that do not Come_From_Source:
25323 - be selective on cases where we must go back to the dereferenced
25324 pointer (an assignment to an implicit dereference must not be
25325 recorded as modifying the pointer);
25326 - do not rely on Original_Node being present (Analyze_Assignment
25327 calls Note_Possible_Modification on a copied tree).
25329 * sem_warn.adb (Check_References): When an unset reference to a pointer
25330 that is never assigned is encountered, prefer '<pointer> may be null'
25331 warning over '<pointer> is never assigned a value'.
25333 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
25335 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
25338 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
25340 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
25341 libexc. We currently don't reference anything in this library and
25342 linking it in triggers linker warnings we don't want to see.
25344 * init.c: Update comments.
25346 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25348 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
25349 * utils.c (create_field_decl): Likewise.
25350 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
25352 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
25354 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
25355 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
25356 Add info directory entry and category.
25358 2004-04-02 Jan Hubicka <jh@suse.cz>
25360 * utils.c: Include function.h
25361 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
25363 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
25366 * Make-lang.in: Clean up generation of documentation
25368 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
25370 * xgnatug.adb: Removed, replaced by xgnatugn.adb
25372 * xgnatugn.adb: Replaces xgnatug.adb
25374 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
25376 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
25378 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
25379 gnat_ug_wnt.texi: Removed.
25381 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
25383 * utils2.c: Update copyright notice.
25385 2004-04-01 Robert Dewar <dewar@gnat.com>
25387 * checks.adb: Minor reformatting throughout
25388 Note that prev checkin added RM reference to alignment warning
25390 2004-04-01 Ed Schonberg <schonberg@gnat.com>
25392 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
25393 non-static when building aggregate for bit-packed array.
25395 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
25396 function call that is itself the actual in a procedure call, build
25399 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
25400 a string literal, create a temporary for it, constant folding only
25401 handles scalars here.
25403 2004-04-01 Vincent Celier <celier@gnat.com>
25405 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
25406 Error_Msg_SP): New empty procedures to instantiate the Scanner.
25407 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
25409 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
25410 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
25411 and get the checksum.
25413 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
25415 Increase the Marking_Label at the end of the Multiple_Main_Loop,
25416 instead of at the beginning.
25418 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
25420 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
25423 * osint.ads (Multi_Unit_Index_Character): New Character global variable
25425 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
25428 * par.adb: Remove test on file name to detect language defined units.
25429 Add test on unit name, after parsing, to detect language defined units
25430 that are not compiled with -gnatg (except System.RPC and its children)
25432 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
25433 following units without style checking.
25435 * switch-c.adb: Change -gnatC to -gnateI
25437 * usage.adb: Document new switch -gnateInnn
25439 * scng.adb (Accumulate_Token_Checksum): New procedure
25440 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
25441 word or literal number.
25442 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
25445 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
25448 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
25449 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
25450 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
25451 5vtpopde.adb: Add missing 'constant' keywords.
25453 2004-04-01 Javier Miranda <miranda@gnat.com>
25455 * par-ch4.adb: (P_Allocator): Code cleanup
25457 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
25460 * sinfo.ads: Complete documentation of previous change
25462 2004-04-01 Pascal Obry <obry@gnat.com>
25464 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
25465 only on VMS. This special handling was done because an old GNU/ld bug
25466 on Windows which has been fixed.
25468 2004-04-01 GNAT Script <nobody@gnat.com>
25470 * Make-lang.in: Makefile automatically updated
25472 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25474 * decl.c (gnat_to_gnu_entity, make_type_from_size):
25475 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
25476 * trans.c (tree_transform, convert_with_check): Likewise.
25477 * utils.c (gnat_signed_or_unsigned_type): Likewise.
25478 (build_vms_descriptor, unchecked_convert): Likewise.
25479 * utils2.c (nonbinary_modular_operation): Likewise.
25481 2004-03-29 Javier Miranda <miranda@gnat.com>
25483 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
25484 (Install_Null_Excluding_Check): Local subprogram that determines whether
25485 an access node requires a runtime access check and if so inserts the
25486 appropriate run-time check.
25487 (Apply_Access_Check): Call Install_Null_Excluding check if required
25488 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
25490 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
25492 * einfo.ads: Fix typo in comment
25494 * exp_ch3.adb (Build_Assignment): Generate conversion to the
25495 null-excluding type to force the corresponding run-time check.
25496 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
25497 type to force the corresponding run-time check.
25499 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
25500 the null-excluding type to force the corresponding run-time check.
25502 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
25503 case of access types unless they have the null-excluding attribute.
25505 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
25508 * exp_util.ads: Fix typo in comment
25510 * par.adb (P_Null_Exclusion): New subprogram
25511 (P_Subtype_Indication): New formal that indicates if the null-excluding
25512 part has been scanned-out and it was present
25514 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
25516 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
25517 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
25518 type to force the corresponding run-time check
25519 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
25521 (Resolve_Array_Aggregate): Carry out some static checks
25522 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
25524 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
25525 attribute must be set only if specified by means of the null-excluding
25526 part. In addition, we must also propagate the access-constant attribute
25528 (Access_Subprogram_Declaration, Access_Type_Declaration,
25529 Analyze_Component_Declaration, Analyze_Object_Declaration,
25530 Array_Type_Declaration, Process_Discriminants,
25531 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
25532 and carry out some static checks.
25533 (Build_Derived_Access_Type): Set the null-excluding attribute
25534 (Derived_Type_Declaration, Process_Subtype): Carry out some static
25537 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
25539 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
25541 * sem_ch6.adb (Process_Formals): Carry out some static checks.
25542 (Set_Actual_Subtypes): Generate null-excluding subtype if the
25543 null-excluding part was present; it is not required to be done here in
25544 case of anonymous access types.
25545 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
25548 * sem_res.adb (Resolve_Actuals): Carry out some static check
25549 (Resolve_Null): Allow null in anonymous access
25551 * sinfo.adb: New subprogram Null_Exclusion_Present
25552 All_Present and Constant_Present available on access_definition nodes
25554 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
25555 object_declaration, derived_type_definition, component_definition,
25556 discriminant_specification, access_to_object_definition,
25557 access_function_definition, allocator, access_procedure_definition,
25558 access_definition, parameter_specification, All_Present and
25559 Constant_Present flags available on access_definition nodes.
25561 2004-03-29 Robert Dewar <dewar@gnat.com>
25563 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
25564 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
25565 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
25566 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
25567 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
25568 sem_prag.adb: Updates to handle multiple units/file
25570 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
25572 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
25573 sem_util.adb: Minor reformatting
25575 * sem_ch12.adb: Add comment for previous change
25577 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
25579 * osint.adb (Executable_Prefix): Set Exec_Name to the current
25580 executable name when not initialized. Otherwise, use its current value.
25582 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
25583 initialize it to another executable name than the current one. This
25584 allows to configure paths for an executable name (gnatmake) different
25585 from the current one (gnatdist).
25587 2004-03-29 Ed Schonberg <schonberg@gnat.com>
25589 * exp_ch6.adb (Expand_Call): A call to a function declared in the
25590 current unit cannot be inlined if it appears in the body of a withed
25591 unit, to avoid order of elaboration problems in gigi.
25593 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
25594 information for protected (wrapper) operation as well, to simplify gdb
25597 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
25598 protected body, indicate that the entity for the generated spec comes
25599 from source, to ensure that references are properly generated for it.
25600 (Build_Body_To_Inline): Do not inline a function that returns a
25603 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
25604 apply convention to homonyms that are declared explicitly.
25606 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
25607 that renames an equality operator and the operands are overloaded,
25608 resolve them with the declared formal types, before rewriting as an
25611 2004-03-29 GNAT Script <nobody@gnat.com>
25613 * Make-lang.in: Makefile automatically updated
25615 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
25617 * memtrack.adb: Log realloc calls, which are treated as free followed
25620 2004-03-25 Vincent Celier <celier@gnat.com>
25622 * prj-makr.adb (Process_Directories): Detect when a file contains
25623 several units. Do not include such files in the config pragmas or
25624 in the naming scheme.
25626 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
25627 Resolve links only when not in Trusted_Mode.
25628 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
25629 Do not resolve links for the display names.
25631 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
25632 resolve links when computing the display names.
25634 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
25636 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
25637 attribute reference does not denote a subtype, it can be any
25638 expression that has a classwide type, potentially after an implicit
25639 dereference. In particular, the prefix can be a view conversion for
25640 a classwide type (for which Is_Object_Reference holds), but it can
25641 also be a value conversion for an access-to-classwide type. In the
25642 latter case, there is an implicit dereference, and the original node
25643 for the prefix does not verify Is_Object_Reference.
25645 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
25646 conversion of a discriminant-dependent component of a mutable object
25649 2004-03-25 Ed Schonberg <schonberg@gnat.com>
25651 * freeze.adb (Freeze_Entity): When an inherited subprogram is
25652 inherited, has convention C, and has unconstrained array parameters,
25653 place the corresponding warning on the derived type declaration rather
25654 than the original subprogram.
25656 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
25657 indication on renaming declaration, if formal has a box and actual
25660 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
25661 determine whether to generate an implicit or explicit reference to
25662 the renamed entity.
25664 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
25665 subprogram renaming comes from a defaulted formal subprogram in an
25668 2004-03-25 Gary Dismukes <dismukes@gnat.com>
25670 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
25671 value expressions to ensure that calls within a component definition
25672 will be checked (since those are evaluated during the record type's
25675 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
25677 * s-tpobop.adb: Code clean up:
25678 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
25680 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
25682 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
25684 * Makefile.in: Clean up in the ravenscar run time.
25686 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25688 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
25689 of No_Strict_Aliasing to build_pointer_type_for_mode.
25690 * utils.c (update_pointer_to): Walk pointer and ref chains.
25692 2004-03-22 Cyrille Comar <comar@act-europe.fr>
25694 * ali.ads: Fix Comment about Dynamic_Elab.
25696 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
25697 Has_RACW, Is_Generic, etc.)
25698 (Output_Object, Gnatls): Take into account ALI files not attached to
25701 2004-03-22 Vincent Celier <celier@gnat.com>
25703 * gprep.adb: Change all String_Access to Name_Id
25704 (Is_ASCII_Letter): new function
25705 (Double_File_Name_Buffer): New procedure
25706 (Preprocess_Infile_Name): New procedure
25707 (Process_Files): New procedure
25708 (Gnatprep): Check if output and input are existing directories.
25709 Call Process_Files to do the real job.
25711 2004-03-22 Robert Dewar <dewar@gnat.com>
25713 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
25714 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
25716 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
25718 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
25719 case when the source contains only comments.
25721 2004-03-22 Ed Schonberg <schonberg@gnat.com>
25723 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
25724 declaration for a child subprogram body that acts as a spec, indicate
25725 that the entity in the declaration needs debugging information.
25727 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
25728 full view if the subtype is created for a constrained record component;
25729 gigi has enough information to construct the record, and there is no
25730 place in the tree for the declaration.
25732 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
25733 serial number for the dummy body that is built for analysis, to avoid
25734 inconsistencies in the generation of internal names when compiling
25737 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
25739 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
25742 2004-03-22 GNAT Script <nobody@gnat.com>
25744 * Make-lang.in: Makefile automatically updated
25746 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25748 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
25749 * trans.c (tree_transform, emit_index_check): Likewise.
25750 * utils.c (build_template): Likewise.
25751 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
25752 (maybe_unconstrained_array, unchecked_convert): Likewise.
25753 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
25754 (build_unary_op): Likewise.
25755 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
25756 (fill_vms_descriptor): Likewise.
25757 (build_call_alloc_dealloc): Likewise.
25759 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
25761 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
25764 * gnat_ug.texi: Add info directory category and entry.
25765 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
25766 gnat_ug_wnt.texi: Regenerate.
25768 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
25770 * ada-tree.h: Update copyright notice.
25771 Minor reformatting.
25773 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
25775 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
25776 as regular exception objects and not as mere integers representing the
25777 condition code. The latter approach required some dynamics to mask off
25778 severity bits, which did not fit well into the GCC table based model.
25779 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
25780 exception data objects. We don't it and it would conflict with the other
25781 external symbol we have to generate for such exceptions.
25783 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
25784 the special code for VMS exceptions, since these are now represented
25785 as regular exceptions objects.
25787 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25789 * decl.c (debug_no_type_hash): Remove.
25790 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
25791 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
25793 2004-03-19 Laurent Guerby <laurent@guerby.net>
25795 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
25796 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
25798 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25800 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
25801 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
25802 (TYPE_RM_SIZE_INT): Directly use type.values.
25803 (TREE_LOOP_ID): Clean up check.
25804 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
25805 TYPE_VALUES, not TYPE_FIELDS.
25806 * trans.c (convert_with_check): Delay access of bounds of basetype
25807 until sure is numeric.
25809 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
25811 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
25814 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
25815 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
25816 Specific.Set instead of direct call to e.g pthread_setspecific.
25818 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
25820 * adaint.c: Update comments.
25822 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
25823 GNATLIB_SHARED for FreeBSD.
25825 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
25827 * init.c [VxWorks]: Do not fix the stack size for the environment task.
25828 When needed (stack checking) the stack size is retrieved
25829 from the VxWorks kernel.
25831 * Makefile.in: Flag -nostdinc is required when building the run time
25832 for avoiding looking for files in the base compiler.
25833 Add the VxWorks specific version of the package body for
25834 System.Stack_checking.Operations (5zstchop.adb).
25836 * Make-lang.in: Add the object file for
25837 System.Stack_Checking.Operations.
25839 * Makefile.rtl: Add object file for the package
25840 System.Stack_Checking.Operations.
25842 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
25844 * s-stache.ads, s-stache.adb: Move the operations related to stack
25845 checking from this package to package System.Stack_Checking.Operations.
25846 This way, stack checking operations are only linked in the final
25847 executable when using the -fstack-check flag.
25849 2004-03-18 Doug Rupp <rupp@gnat.com>
25851 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
25854 * 5qsystem.ads, 5xcrtl.ads: New files.
25856 2004-03-18 Vincent Celier <celier@gnat.com>
25858 * prj.adb (Reset): Reset hash table Files_Htable
25860 * prj-env.adb (Source_Paths, Object_Paths): New tables.
25861 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
25862 the procedures Add_To_Path_File.
25863 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
25864 making sure that each directory is present only once and, for object
25865 dirs, when a directory already present is added, the duplicate is
25866 removed and the directory is always put as the last in the table.
25867 Write the path files at the end of these accumulations.
25869 * prj-nmsc.adb (Record_Source): Add source file name in hash table
25870 Files_Htable for all sources.
25872 * prj-proc.adb (Process): Remove restrictions between not directly
25873 related extending projects.
25875 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
25877 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
25878 (Find_Sources): Minor speed optimization.
25880 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
25881 parameter Trusted_Mode.
25883 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
25885 * scn.adb (Determine_License): Take into account a degenerated case
25886 when the source contains only comments.
25888 2004-03-18 Ed Schonberg <schonberg@gnat.com>
25890 * sem_warn.adb (Check_References): For a warning on a selected
25891 component that does not come from source, locate an uninitialized
25892 component of the record type to produce a more precise error message.
25894 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
25896 * 3zsoccon.ads: Fix multicast options.
25898 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
25901 2004-03-15 Robert Dewar <dewar@gnat.com>
25903 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
25904 pragma used for a private type.
25906 * lib-xref.adb (Generate_Reference): Do not generate warning if
25907 reference is in a different unit from the pragma Unreferenced.
25909 * 5vtpopde.adb: Minor reformatting
25910 Fix casing of To_Task_ID
25912 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
25913 flag if we have an unchecked conversion to an access type in the same
25916 2004-03-15 Geert Bosch <bosch@gnat.com>
25918 * a-ngcoty.adb (Modulus): In alternate formula for large real or
25919 imaginary parts, use Double precision throughout.
25921 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
25922 we want to be able to compile run-time with -gnata for testing, but
25923 this may also be instantiated in user code that is compiled with -gnata.
25925 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
25927 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
25928 codes. Having a separate type for this is useful to enforce consistency
25929 throughout the various run-time units.
25930 (Exception_Data): Use Exception_Code for Import_Code.
25932 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
25933 Natural and Integer in various places.
25934 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
25935 with the severity bits masked off.
25936 (Register_VMS_Exception): Handle the additional exception data pointer
25939 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
25940 component, now reflected by an exported accessor.
25941 (is_handled_by): New routine to compute whether the propagated
25942 occurrence matches some handler choice specification. Extracted out of
25943 get_action_description_for, and expanded to take care of the VMS
25945 (get_action_description_for): Use is_handled_by instead of an explicit
25946 complex condition to decide if the current choice at hand catches the
25947 propagated occurrence.
25949 * raise.h (Exception_Code): New type for C.
25951 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
25952 System.Standard_Library.Exception_Code, to allow references from the
25953 pragma import/export expander.
25955 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
25956 New accessors to allow easy access to GNAT exception data
25958 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
25959 redundant Handled_By_Others component, helper for the personality
25960 routine which will now be able to call the appropriate exception data
25963 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
25964 component of Standard_Exception_Type to be the closest possible to
25965 Exception_Code in System.Standard_Library, that we cannot get at this
25966 point. Expand a ??? comment to notify that this type node should
25967 probably be rewritten later on.
25969 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
25970 registration call to include a pointer to the exception object in the
25973 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
25974 instead of int and explicit bitmasks.
25976 2004-03-15 Vincent Celier <celier@gnat.com>
25978 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
25979 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
25981 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
25982 longer needed now that it is in the spec of
25983 System.Tasking.Task_Attributes.
25985 * adaint.h, adaint.c: (__gnat_create_output_file): New function
25987 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
25989 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
25991 * make.adb (Gnatmake): Do not check the executable suffix; it is being
25992 taken care of in Scan_Make_Arg.
25993 (Scan_Make_Arg): Add the executable suffix only if the argument
25994 following -o, in canonical case, does not end with the executable
25995 suffix. When in verbose mode and executable file name does not end
25996 with executable suffix, output the executable name, in canonical case.
25998 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
25999 to avoid warnings when instantiating Ada.Task_Attributes.
26002 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
26003 in the correct order.
26005 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
26006 redirect standard output and error to a file for the invocation of the
26007 compiler, then read the file.
26009 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
26010 directory, instead of the Value.
26011 (Find_Source_Dirs): Remove useless code & comments.
26013 2004-03-15 Ed Schonberg <schonberg@gnat.com>
26015 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
26016 tagged type is inherited, and the parent operation is not frozen yet,
26017 force generation of a freeze node for the inherited operation, so the
26018 corresponding dispatch entry is properly initialized.
26019 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
26020 when looking for user-defined equality operation.
26022 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
26023 boolean when locating primitive equality of tagged component.
26025 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
26026 bit-aligned field and the right-hand side a string literal, introduce
26027 a temporary before expanding assignment into a loop.
26029 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
26030 priority in full, to ensure that any expanded subepxressions of it are
26031 elaborated in the scope of the init_proc.
26033 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
26034 after object declaration, skipping over code that may have been
26035 generated for validity checks.
26037 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
26038 discriminants, ignore the known discriminants of its full view, if
26039 any, to check legality.
26041 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
26042 component if type has unknown discriminants.
26043 (Analyze_Private_Extension_Declaration): Discriminant constraint is
26044 null if type has unknown discriminants.
26046 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
26047 for end label when present.
26049 * s-fileio.adb (Open): When called with a C_Stream, use given name for
26050 temporary file, rather than an empty string.
26052 2004-03-15 Ed Falis <falis@gnat.com>
26054 * s-thread.adb: Removed, no longer used.
26056 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26058 * decl.c (target.h): Now include.
26059 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
26060 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
26061 (validate_size): For POINTER_TYPE, get smallest size permitted on
26064 * fe.h: Sort Einfo decls and add Set_Mechanism.
26066 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
26067 (ada/decl.o): Depends on target.h.
26069 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
26070 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
26072 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
26074 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
26076 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
26077 Insert_Dereference_Action when rewriting an implicit dereference into
26078 an explicit one, this will be taken care of during expansion of the
26079 explicit dereference.
26080 (Expand_N_Slice): Same. Always do the rewriting, even for the case
26081 of non-packed slices, since the dereference action generated by
26082 expansion of the explicit dereference is needed in any case.
26083 (Expand_N_Selected_Component): When rewriting an implicit dereference,
26084 analyze and resolve the rewritten explicit dereference so it is seen
26086 (Insert_Dereference_Action): This procedure is now called only for the
26087 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
26088 dereferences that do not come from source (including explicit
26089 dereferences resulting from rewriting implicit ones), but do not
26090 recursively insert a check for the dereference nodes contained within
26092 (Insert_Dereference_Action): Clarify and correct comment.
26094 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
26097 Move language detection to the top level.
26098 * config-lang.in: Build by default.
26100 2004-03-05 Robert Dewar <dewar@gnat.com>
26102 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
26104 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
26105 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
26106 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
26107 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
26108 unchecked conversion to spec to avoid warnings.
26110 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
26113 * 7stpopsp.adb: Correct casing in To_Task_ID call
26115 * a-strsea.ads, a-strsea.adb: Minor reformatting
26117 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
26119 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
26120 Adjust Max_Msg_Length to be clearly large enough.
26122 * fe.h: Define In_Same_Source_Unit
26124 * osint.adb: Add pragma Warnings Off to suppress warnings
26125 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
26128 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
26130 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
26132 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
26134 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
26136 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
26138 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
26139 node. We now do generate them for gcc back end.
26141 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
26144 * sinput-c.adb: Fix bad name in header.
26145 Add pragma Warnings Off to suppress aliasing warning.
26147 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
26149 * snames.h, snames.ads, snames.adb: Add entry for pragma
26150 No_Strict_Aliasing.
26152 2004-03-05 Vincent Celier <celier@gnat.com>
26154 * prj-com.ads: Add hash table Files_Htable to check when a file name
26155 is already a source of another project.
26157 * prj-nmsc.adb (Record_Source): Before recording a new source, check
26158 if its file name is not already a source of another project. Report an
26161 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
26162 source file name, call gnatpp with all the sources of the main project.
26164 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
26167 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
26168 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
26169 /RUNTIME_SYSTEM=, converted to --RTS=
26170 /NOTABS, converted to -notabs
26172 2004-03-05 Pascal Obry <obry@gnat.com>
26174 * make.adb: Minor reformatting.
26176 2004-03-05 Ed Schonberg <schonberg@gnat.com>
26178 Part of implemention of AI-262.
26179 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
26181 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
26184 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
26185 when component type is a partially constrained class-wide subtype.
26186 (Constrain_Discriminated_Type): If parent type has unknown
26187 discriminants, a constraint is illegal, even if full view has
26189 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
26190 with unknown discriminants whose full view is a discriminated record.
26192 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
26193 flag, to handle properly derivations of tagged types with unknown
26195 (Analyze_Package_Spec, Analyze_Package_Body): Install
26196 Private_With_Clauses before analyzing private part or body.
26198 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
26199 Has_Discriminants can be true for a given type (documentation).
26201 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
26203 * s-restri.ads: Fix license (GPL->GMGPL).
26205 * s-tassta.adb: Minor reformatting.
26207 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
26208 by calls to Exit_One_ATC_Level, since additional clean up is performed
26211 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
26212 by calls to Exit_One_ATC_Level, since additional clean up is performed
26215 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26217 * trans.c: Reflect GCC changes to fix bootstrap problem.
26218 Add warning for suspicious aliasing unchecked conversion.
26220 2004-03-05 GNAT Script <nobody@gnat.com>
26222 * Make-lang.in: Makefile automatically updated
26224 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
26226 * ali.adb (Read_Instantiation_Instance): Do not modify the
26227 current_file_num when reading information about instantiations, since
26228 this corrupts files in later references.
26230 2004-03-02 Vincent Celier <celier@gnat.com>
26232 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
26233 before checking if it is read-only.
26235 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
26236 of SRC_DIRS and eliminate duplicates.
26238 * gprcmd.adb: Replace command "path" with command "path_sep" to return
26239 the path separator.
26240 (Usage): Document path_sep
26242 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
26243 C++ compiler. No need for a script.
26244 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
26245 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
26248 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
26249 where there are Ada sources.
26250 (Set_Ada_Paths): Only add to the include path the source dirs of project
26252 (Add_To_Path): Add the Display_Values of the directories, not their
26255 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
26258 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
26260 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
26261 Value is canonicalized.
26262 (Language_Independent_Check): Do not copy Value to Display_Value when
26263 canonicalizing Value.
26265 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
26266 path to find limited with cycles.
26267 (Parse_Single_Project): Use canonical cased path to find the end of a
26270 2004-03-02 Ed Schonberg <schonberg@gnat.com>
26272 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
26273 and not a child unit.
26275 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
26276 appear in a with_clause.
26278 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
26279 only happen in type_annotate mode, do not try to elaborate it.
26281 * exp_util.adb (Force_Evaluation): If expression is a selected
26282 component on the left of an assignment, use a renaming rather than a
26283 temporary to remove side effects.
26285 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
26286 inlined instance body, which is analyzed before the end of the
26289 2004-03-02 Robert Dewar <dewar@gnat.com>
26291 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
26292 sem_ch4.adb: Use new feature for substitution of keywords in VMS
26294 * errout.ads, errout.adb: Implement new circuit for substitution of
26297 * sem_case.adb (Analyze_Choices): Place message properly when case is
26298 a subtype reference rather than an explicit range.
26300 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
26302 2004-03-02 Doug Rupp <rupp@gnat.com>
26304 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
26306 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
26308 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
26310 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26312 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
26315 2004-02-25 Robert Dewar <dewar@gnat.com>
26317 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
26318 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
26319 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
26320 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
26321 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
26322 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
26323 the defining instance of the type to avoid aliasing problems.
26324 Fix copyright header. Fix bad comments in package header.
26326 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
26328 2004-02-25 Ed Schonberg <schonberg@gnat.com>
26330 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
26331 rewritten as references when aliased through an address clause.
26333 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
26334 whether call can be interpreted as an indirect call to the result of a
26335 parameterless function call returning an access subprogram.
26337 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
26340 * exp_ch7.adb (Make_Clean): Remove generation of calls to
26341 Unlock[_Entries], since this is now done by Service_Entries directly.
26343 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
26345 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
26346 Requeue_Call for better code readability. Change spec and update calls:
26347 PO_Service_Entries now unlock the PO on exit.
26348 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
26349 PO_Service_Entries.
26351 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
26353 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
26355 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
26357 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
26358 protected subprogram call and analyzing the result of such expanding
26359 in case when the called protected subprogram is eliminated.
26361 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
26364 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
26366 * Makefile.in: Clean ups.
26368 2004-02-23 Ed Schonberg <schonberg@gnat.com>
26370 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
26371 protected operations if original subprogram is flagged as eliminated.
26372 (Expand_N_Subprogram_Body): For a protected operation, create
26373 discriminals for next operation before checking whether the operation
26376 * exp_ch9.adb (Expand_N_Protected_Body,
26377 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
26378 for internal protected operations if the original subprogram is
26381 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
26382 declared in a single protected object.
26384 2004-02-23 Vincent Celier <celier@gnat.com>
26386 * prj-attr.adb: Make attribute Builder'Executable an associative array,
26387 case insensitive if file names are case insensitive, instead of a
26388 standard associative array.
26390 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
26391 them as case insensitive on platforms where the file names are case
26394 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
26395 project file has already been parsed that canonical path are compared.
26397 2004-02-23 Robert Dewar <dewar@gnat.com>
26399 * sinput-c.ads: Correct bad unit title in header
26401 * freeze.adb: Minor reformatting
26403 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26405 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
26406 nonaddressable COMPONENT_REF that is removing padding that we are
26407 taking the address of, take the address of the padded record instead
26408 if item is variable size.
26410 2004-02-20 Robert Dewar <dewar@gnat.com>
26412 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
26414 2004-02-20 Ed Schonberg <schonberg@gnat.com>
26416 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
26417 itype references for the constrained designated type of a component
26418 whose base type is already frozen.
26420 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
26422 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
26423 avoid GCC warnings.
26425 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
26427 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
26428 identifier for a phantom package that rewrites the formal package
26429 declaration with a box. The Add semantic decorations for the defining
26430 identifier from the original node (that represents the formal package).
26432 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
26434 * Make-lang.in (ada/stamp-sdefault): Use the top level
26437 2004-02-19 Richard Henderson <rth@redhat.com>
26439 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
26441 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
26443 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
26444 Scan_ALI can be used for multiple ALI files without reinitializing
26447 2004-02-18 Robert Dewar <dewar@gnat.com>
26449 * debug.adb: Minor reformatting.
26451 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26453 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
26454 to zero if there is an address clause.
26456 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
26458 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
26460 2004-02-18 Gary Dismukes <dismukes@gnat.com>
26462 * layout.adb (Layout_Component_List): Revise generation of call to
26463 discriminant-checking function to pass selections of all of the type's
26464 discriminants rather than just the variant-controlling discriminant.
26466 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
26468 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
26469 fail in the current setup and triggers spurious system error messages.
26470 Pretend it occurred and failed instead.
26472 2004-02-18 Vincent Celier <celier@gnat.com>
26474 * bld.adb: Mark FLDFLAGS as saved
26475 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
26476 it is not the root project. Put each directory to be
26477 extended between double quotes to prevent it to be expanded on Windows.
26478 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
26479 the project file. Set them back to their initial values if they have not
26480 been set in the project file.
26482 * gprcmd.adb: (Gprdebug, Debug): New global variables
26483 (Display_Command): New procedure
26484 (Usage): Document new command "linkopts"
26485 Call Display_Command when env var GPRDEBUG has the value "TRUE"
26486 Implement new command "linkopts"
26487 Remove quotes that may be around arguments for "extend"
26488 Always call Normalize_Pathname with arguments formatted for the platform
26490 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
26491 Change @echo to @$(display) in target clean to be able to clean silently
26493 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
26495 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
26498 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
26499 = Extending_All when current project is an extending all project.
26501 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
26502 set to True only for LINK command, after Unix switch -o.
26503 (Process_Arguments): Set Output_File_Expected to True for LINK command
26504 after Unix switch -o. When Output_File_Expected is True, never add an
26505 extension to a file name.
26507 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
26508 option file name, only to the --for-linker= switch.
26509 (Option_File_Name): If option file name do not end with ".opt", append
26512 2004-02-18 GNAT Script <nobody@gnat.com>
26514 * Make-lang.in: Makefile automatically updated
26516 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
26518 * Make-lang.in (stamp-sdefault): Do not depend on
26521 2004-02-12 Zack Weinberg <zack@codesourcery.com>
26523 * config-lang.in: Disable Ada by default until probe logic for
26524 a bootstrap Ada compiler can be moved to the top level configure
26527 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
26529 * decl.c (components_to_record): Don't claim that the internal fields
26530 we make to hold the variant parts are semantically addressable, because
26533 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
26534 adjust the comment describing the modular type form when we can use it.
26535 (Install_PAT): Account for the Esiz renaming.
26537 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
26538 sc_onstack context indication before raising the exception to which
26539 the signal is mapped. Allows better handling of later signals possibly
26540 triggered by the resumed user code if the exception is handled.
26542 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
26544 * 5zinit.adb: Removed, no longer used.
26546 2004-02-12 Robert Dewar <dewar@gnat.com>
26548 * ali.adb: Remove separating space between parameters on R line. Makes
26549 format consistent with format used by the binder for Set_Globals call.
26551 * atree.ads, atree.adb: Minor reformatting (new function header format)
26553 * bindgen.adb: Add Run-Time Globals documentation section containing
26554 detailed documentation of the globals passed from the binder file to
26557 * gnatls.adb: Minor reformatting
26559 * init.c (__gnat_set_globals): Add note pointing to documentation in
26562 * lib-writ.ads, lib-writ.adb: Remove separating space between
26563 parameters on R line.
26564 Makes format consistent with format used by the binder for Set_Globals
26567 * osint.ads: Add 2004 to copyright notice
26570 * snames.ads: Correct capitalization of FIFO_Within_Priorities
26571 Noticed during code reading, documentation issue only
26573 * usage.adb: Remove junk line for obsolete C switch
26574 Noticed during code reading
26576 2004-02-12 Vincent Celier <celier@gnat.com>
26578 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
26579 extend for each directory, so that multiple /** directories are
26580 extended individually.
26581 (Recursive_Process): Set the default for LANGUAGES to ada
26583 * gprcmd.adb: Define new command "ignore", to do nothing.
26584 Implement new comment "path".
26586 * Makefile.generic: Suppress output when SILENT is set
26587 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
26588 used, so that the correct compiler is invoked.
26589 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
26590 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
26592 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
26594 * Makefile.in: Clean ups and remove obsolete targets.
26596 2004-02-12 Ed Schonberg <schonberg@gnat.com>
26598 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
26599 predicate declared in exp_util.
26601 * exp_util.adb: Add comments.
26603 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
26604 visibility before compiling context of the subunit.
26606 * sem_res.adb (Check_Parameterless_Call): If the context expects a
26607 value but the name is a procedure, do not attempt to analyze as a call,
26608 in order to obtain more telling diagnostics.
26610 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
26611 'Access on parameterless function calls.
26612 (Normalize_Actuals): For a parameterless function call with missing
26613 actuals, defer diagnostic until resolution of enclosing call.
26615 * sem_util.adb (Wrong_Type): If the context type is an access to
26616 subprogram and the expression is a procedure name, suggest a missing
26619 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
26620 Nathanael Nerode <neroden@gcc.gnu.org>
26624 Merge with libada-branch:
26625 * config-lang.in: Build libada only when ada is built.
26627 2004-02-09 Ed Schonberg <schonberg@gnat.com>
26629 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
26630 for a tagged type, verify that both formals have the same type.
26632 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
26633 temporary when the formal is an in-parameter and the actual a possibly
26636 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
26637 when expansion is disabled, to ensure proper name capture with
26638 overloaded literals. Condition can be of any boolean type, resolve
26641 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
26642 renaming is for a formal subprogram with a default operator name, and
26643 there is a usable operator that is visible at the point of
26646 2004-02-09 Robert Dewar <dewar@gnat.com>
26648 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
26649 rewrite to ignore errors in ali files, intended to allow tools downward
26650 compatibility with new versions of ali files.
26652 * ali.ads: Add new parameter Ignore_Errors
26654 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
26655 duplicating the error message giving the file with restrictions.
26657 * debug.adb: Add debug flag I for gnatbind
26659 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
26660 operators for the case where the operator is a defining operator.
26662 * exp_ch3.adb: Minor reformatting (new function spec format).
26664 * exp_ch4.adb: Add comment for previous change, and make minor
26665 adjustment to loop to always check for improper loop termination.
26666 Minor reformatting throughout (new function spec format).
26668 * gnatbind.adb: Implement -di debug flag for gnatbind
26670 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
26672 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
26674 * lib-load.adb: Fix bad assertion.
26675 Found by testing and code reading.
26676 Minor reformatting.
26678 * lib-load.ads: Minor reformatting.
26680 * lib-writ.adb: There is only one R line now.
26682 * lib-writ.ads: Add documentation on making downward compatible changes
26683 to ali files so old tools work with new ali files.
26684 There is only one R line now.
26685 Add documentation on format incompatibilities (with special GPS note)
26687 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
26689 * par-load.adb: Minor reformatting
26691 * sem_ch8.adb: Fix to error message from last update
26692 Minor reformatting and restructuring of code from last update
26694 * par-prag.adb, snames.adb, snames.ads, snames.h,
26695 sem_prag.adb: Implement pragma Profile.
26697 * stylesw.adb: Implement -gnatyN switch to turn off all style check
26700 * usage.adb: Add line for -gnatyN switch
26702 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
26704 2004-02-09 Albert Lee <lee@gnat.com>
26706 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
26708 2004-02-09 Ed Schonberg <schonberg@gnat.com>
26710 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
26713 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
26714 is nested in an instance that is not frozen yet, to avoid
26715 order-of-elaboration problems in gigi.
26717 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
26718 body the attribute is legal.
26720 2004-02-09 Robert Dewar <dewar@gnat.com>
26722 * s-rident.ads: Minor comment correction
26724 * targparm.adb: Remove dependence on uintp completely. There was
26725 always a bug in Make in that it called Targparm before initializing
26726 the Uint package. The old code appeared to get away with this, but
26727 the new code did not! This caused an assertion error in gnatmake.
26729 * targparm.ads: Fix bad comment, restriction pragmas with parameters
26730 are indeed fully supported.
26732 2004-02-06 Alan Modra <amodra@bigpond.net.au>
26734 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
26736 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
26738 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
26739 with targetm.calls.promote_prototypes.
26741 2004-02-04 Robert Dewar <dewar@gnat.com>
26743 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
26744 ali.ads, gprcmd.adb: Minor reformatting
26746 * bindgen.adb: Output restrictions string for new style restrictions
26749 * impunit.adb: Add s-rident.ads (System.Rident) and
26750 s-restri (System.Restrictions)
26752 * lib-writ.adb: Fix bug in writing restrictions string (last few
26755 * s-restri.ads, s-restri.adb: Change name Restrictions to
26756 Run_Time_Restrictions to avoid conflict with package name.
26757 Add circuit to read and acquire run time restrictions.
26759 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
26761 * restrict.ads, restrict.adb: Use the new restriction
26762 No_Task_Attributes_Package instead of the old No_Task_Attributes.
26764 * sem_prag.adb: No_Task_Attributes is a synonym of
26765 No_Task_Attributes_Package.
26767 * snames.ads, snames.adb: New entry for proper handling of
26768 No_Task_Attributes.
26770 * s-rident.ads: Adding restriction No_Task_Attributes_Package
26771 (AI-00249) that supersedes the GNAT specific restriction
26772 No_Task_Attributes.
26774 2004-02-04 Ed Schonberg <schonberg@gnat.com>
26777 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
26778 body, an identifier may be wrapped in an unchecked conversion.
26780 2004-02-04 Vincent Celier <celier@gnat.com>
26782 * lib-writ.ads: Comment update for the W lines
26784 * bld.adb: (Expression): An empty string list is static
26786 * fname-uf.adb: Minor comment update
26788 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
26790 * gnatbind.adb: Initialize Cumulative_Restrictions with the
26791 restrictions on the target.
26793 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
26795 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
26798 2004-02-02 Arnaud Charlet <charlet@gnat.com>
26800 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
26802 2004-02-02 Vincent Celier <celier@gnat.com>
26804 * gprcmd.adb (Check_Args): If condition is false, print the invoked
26805 comment before the usage.
26806 Gprcmd: Fail when command is not recognized.
26807 (Usage): Document command "prefix"
26809 * g-md5.adb (Digest): Process last block.
26810 (Update): Do not process last block. Store remaining characters and
26813 * g-md5.ads (Update): Document that several call to update are
26814 equivalent to one call with the concatenated string.
26815 (Context): Add fields to allow new Update behaviour.
26817 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
26818 defaulted to False.
26819 When May_Fail is True and no existing file can be found, return No_File.
26821 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
26824 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
26825 spec file name instead on the W line.
26827 2004-02-02 Robert Dewar <dewar@gnat.com>
26829 * ali.adb: Read and acquire info from new format restrictions lines
26831 * bcheck.adb: Add circuits for checking restrictions with parameters
26833 * bindgen.adb: Output dummy restrictions data
26834 To be changed later
26836 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
26837 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
26838 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
26839 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
26840 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
26842 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
26843 the warning message on access to possibly uninitialized variable S)
26844 Minor changes for new restrictions handling.
26846 * gnatbind.adb: Minor reformatting
26847 Minor changes for new restrictions handling
26848 Move circuit for -r processing here from bcheck (cleaner)
26850 * gnatcmd.adb, gnatlink.adb: Minor reformatting
26852 * lib-writ.adb: Output new format restrictions lines
26854 * lib-writ.ads: Document new R format lines for new restrictions
26857 * s-restri.ads/adb: New files
26859 * Makefile.rtl: Add entry for s-restri.ads/adb
26861 * par-ch3.adb: Fix bad error messages starting with upper case letter
26864 * restrict.adb: Major rewrite throughout for new restrictions handling
26865 Major point is to handle restrictions with parameters
26867 * restrict.ads: Major changes in interface to handle restrictions with
26868 parameters. Also generally simplifies setting of restrictions.
26870 * snames.ads/adb: New entry for proper handling of No_Requeue
26872 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
26873 restriction counting.
26874 Other minor changes for new restrictions handling
26876 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
26877 Restriction_Warnings now allows full parameter notation
26878 Major rewrite of Restrictions for new restrictions handling
26880 2004-02-02 Javier Miranda <miranda@gnat.com>
26882 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
26883 syntax rule for object renaming declarations.
26884 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
26885 component definitions.
26887 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
26889 (Array_Type_Declaration): Give support to access components. In addition
26890 it was also modified to reflect the name of the object in anonymous
26891 array types. The old code did not take into account that it is possible
26892 to have an unconstrained anonymous array with an initial value.
26893 (Check_Or_Process_Discriminants): Allow access discriminant in
26895 (Process_Discriminants): Allow access discriminant in non-limited types
26896 Initialize the new Access_Definition field in N_Object_Renaming_Decl
26897 node. Change Ada0Y to Ada 0Y in comments
26899 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
26900 equality operators.
26901 Change Ada0Y to Ada 0Y in comments
26903 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
26904 renamings Change Ada0Y to Ada 0Y in comments
26906 * sem_type.adb (Find_Unique_Type): Give support to the equality
26907 operators for universal access types
26908 Change Ada0Y to Ada 0Y in comments
26910 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
26912 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
26914 (N_Object_Renaming_Declaration): Addition of Access_Definition field
26915 Change Ada0Y to Ada 0Y in comments
26917 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
26918 component definition and object renaming nodes
26919 Change Ada0Y to Ada 0Y in comments
26921 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
26923 * restrict.adb: Use the new restriction identifier
26924 No_Requeue_Statements instead of the old No_Requeue for defining the
26925 restricted profile.
26927 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
26928 No_Requeue_Statements.
26930 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
26931 that supersedes the GNAT specific restriction No_Requeue. The later is
26932 kept for backward compatibility.
26934 2004-02-02 Ed Schonberg <schonberg@gnat.com>
26936 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
26937 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
26938 pragma and fix incorrect ones.
26940 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
26941 warning if the pragma is redundant.
26943 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
26945 * 5staprop.adb: Add missing 'constant' keywords.
26947 * Makefile.in: use consistent value for SYMLIB on
26948 platforms where libaddr2line is supported.
26950 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26952 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
26955 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
26957 * init.c (__gnat_install_handler): Setup an alternate stack for signal
26958 handlers in the environment thread. This allows proper propagation of
26959 an exception on stack overflows in this thread even when the builtin
26960 ABI stack-checking scheme is used without support for a stack reserve
26963 * utils.c (create_field_decl): Augment the head comment about bitfield
26964 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
26965 here, because the former is not accurate enough at this point.
26966 Let finish_record_type decide instead.
26967 Don't make a bitfield if the field is to be addressable.
26968 Always set a size for the field if the record is packed, to ensure the
26969 checks for bitfield creation are triggered.
26970 (finish_record_type): During last pass over the fields, clear
26971 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
26972 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
26973 from DECL_BIT_FIELD.
26975 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
26977 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
26978 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
26979 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
26981 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
26983 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
26985 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
26986 (ZCX_By_Default): Likewise.
26987 (Front_End_ZCX_Support): Likewise.
26989 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
26990 (Initialize_Lock): Mark Level unreferenced.
26991 (Sleep): Mark Reason unreferenced.
26992 (Timed_Sleep): Likewise.
26993 (Wakeup): Likewise.
26994 (Exit_Task): Use Result.
26995 (Check_No_Locks): Mark Self_ID unreferenced.
26997 * 5gtasinf.adb (New_Sproc): Make Attr constant.
26998 (Bound_Thread_Attributes): Make Sproc constant.
26999 (New_Bound_Thread_Attributes): Likewise.
27001 2004-01-26 Ed Schonberg <schonberg@gnat.com>
27003 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
27004 one-dimensional array an slice assignments, when component type is
27007 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
27008 component type is controlled, and control_actions are in effect, use
27009 TSS procedure rather than generating inline code.
27011 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
27012 arrays with controlled components.
27014 2004-01-26 Vincent Celier <celier@gnat.com>
27016 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
27017 command line for the non VMS case.
27019 * gnatlink.adb (Process_Binder_File): When building object file, if
27020 GNU linker is used, put all object paths between quotes, to prevent ld
27021 error when there are unusual characters (such as '!') in the paths.
27023 * Makefile.generic: When there are sources in Ada and the main is in
27024 C/C++, invoke gnatmake with -B, instead of -z.
27026 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
27027 from VMS_Conversion.
27028 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
27029 specification of argument file on the command line.
27031 2004-01-26 Bernard Banner <banner@gnat.com>
27033 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
27035 2004-01-26 Ed Schonberg <schonberg@gnat.com>
27037 * snames.adb: Update copyright notice.
27038 Add info on slice assignment for controlled arrays.
27040 2004-01-23 Robert Dewar <dewar@gnat.com>
27042 * exp_aggr.adb: Minor reformatting
27044 * exp_ch9.adb: Minor code clean up
27046 Fix bad character in comment
27049 * targparm.adb (Get_Target_Parameters): Give clean abort error on
27050 unexpected end of file, along with more detailed message.
27052 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27054 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
27057 * decl.c (copy_alias_set): New function.
27058 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
27060 2004-01-23 Doug Rupp <rupp@gnat.com>
27062 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
27063 lib$${file} in case subsequent character is not a separator.
27065 2004-01-23 Vincent Celier <celier@gnat.com>
27067 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
27068 when the GCC version is at least 3.
27070 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
27071 Remove all "Opt.", to prepare for opt split
27073 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
27074 Extends_All. Set to True when the project parsed is an extending all
27075 project. Fails for importing an extending all project only when the
27076 imported project is an extending all project.
27077 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
27078 depending on the value of Extends_All returned.
27080 * prj-proc.adb (Process): Check that no project shares its object
27081 directory with a project that extends it, directly or indirectly,
27082 including a virtual project.
27083 Check that no project extended by another project shares its object
27084 directory with another also extended project.
27086 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
27087 Kind = N_With_Clause
27089 * prj-tree.ads: Minor reformatting
27090 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
27092 2004-01-23 Ed Schonberg <schonberg@gnat.com>
27094 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
27095 applies to a type with an incomplete view, use full view in Name of
27096 clause, for consistency with uses of Get_Attribute_Definition_Clause.
27098 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
27100 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
27101 SCHED_RR, since other values are not supported by this policy.
27102 (Initialize): Move initialization of mutex attribute to package
27103 elaboration, to prevent early access to this variable.
27105 * Makefile.in: Remove mention of Makefile.adalib, unused.
27107 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
27108 1ssecsta.ads: Removed, unused.
27110 2004-01-21 Javier Miranda <miranda@gnat.com>
27112 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
27113 entity if already built in the current scope.
27115 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
27116 reminder in internal scopes. Required for nested limited aggregates.
27118 2004-01-21 Doug Rupp <rupp@gnat.com>
27120 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
27121 VMS. Replace all occurences of libgnat- and libgnarl- with
27122 libgnat$(hyphen) and libgnarl$(hyphen).
27123 Fixed shared library build problem on VMS.
27125 2004-01-21 Robert Dewar <dewar@gnat.com>
27127 * mlib-prj.adb: Minor reformatting
27129 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
27131 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
27132 'constant' keywords for declaration of pointers that are not modified.
27134 * exp_pakd.adb: Fix English in comment.
27136 2004-01-21 Ed Schonberg <schonberg@gnat.com>
27139 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
27140 copy all attributes of the parent, including the foreign language
27143 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
27146 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
27147 for 'delay until' statement.
27149 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
27151 * Make-lang.in: Replace $(docdir) with doc.
27152 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
27153 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
27154 to use consistent MAKEINFO rule.
27155 (ada.man, ada.srcman): Dummy entry.
27156 (ADA_INFOFILES): Define.
27157 (ada.info, ada.srcinfo): New rules.
27159 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
27161 * utils.c: Update copyright notice, missed in previous change.
27163 2004-01-19 Vincent Celier <celier@gnat.com>
27165 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
27166 args if Bind is True. Set First_ALI, if not already done.
27167 (Build_Library): For Stand Alone Libraries, extract from one ALI file
27168 an eventual --RTS switch, for gnatbind, and all backend switches +
27169 --RTS, for linking.
27171 2004-01-19 Robert Dewar <dewar@gnat.com>
27173 * sem_attr.adb, memtrack.adb: Minor reformatting
27175 2004-01-19 Ed Schonberg <schonberg@gnat.com>
27177 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
27178 that rename enumeration literals. This is properly done in sem_eval.
27180 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
27181 to functions that rename enumeration literals.
27183 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
27184 functions that rename enumeration literals.
27186 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
27188 * Make-lang.in (utils.o): Depend on target.h.
27189 * utils.c: Include target.h.
27190 (process_attributes): Use targetm.have_named_sections instead
27191 of ASM_OUTPUT_SECTION_NAME.
27193 2004-01-16 Andreas Jaeger <aj@suse.de>
27195 * Makefile.in: Add $(DESTDIR).
27197 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
27199 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
27200 also when not defining if a Size clause applies. That information is
27203 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
27205 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
27206 symbolic links for the shared gnat run time when needed.
27208 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
27210 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
27211 for writing, and terminate with an error message if not.
27213 2004-01-15 Ed Schonberg <schonberg@gnat.com>
27215 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
27216 warning on an access to subprogram in an instance, when the target
27217 type is declared in the same generic unit.
27218 (Eval_Attribute): If 'access is known to fail accessibility check,
27219 rewrite as a raise statement.
27221 2004-01-15 GNAT Script <nobody@gnat.com>
27223 * Make-lang.in: Makefile automatically updated
27225 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
27227 * Make-lang.in (ada.srcextra): Dummy entry.
27229 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
27231 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
27233 2004-01-13 Ed Schonberg <schonberg@gnat.com>
27235 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
27236 components that are initialized with aggregates.
27238 2004-01-13 Vincent Celier <celier@gnat.com>
27240 * gnatlink.adb (Process_Binder_File): To find directory of shared
27241 libgcc, if "gcc-lib" is not a subdirectory, look for the last
27242 subdirectory "lib" in the path of the shared libgnat or libgnarl.
27244 * make.adb (Gnatmake): If GCC version is at least 3, link with
27245 -shared-libgcc, when there is at least one shared library project.
27247 * opt.ads (GCC_Version): New integer constant.
27249 * adaint.c (get_gcc_version): New function.
27251 2004-01-13 Robert Dewar <dewar@gnat.com>
27253 * sem_dist.adb, sem_res.adb, sem_util.adb,
27254 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
27255 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
27257 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
27259 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
27260 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
27263 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
27265 * misc.c: Remove trailing spaces.
27266 Update copyright notice missed in previous change.
27269 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
27272 * Makefile.generic: Update copyright.
27273 Add license notice.
27275 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
27276 of prefix/share/make.
27278 * Makefile.prolog: Update copyright.
27279 Add license notice.
27281 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
27283 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
27284 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
27285 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
27288 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
27291 2004-01-12 Javier Miranda <miranda@gnat.com>
27293 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
27294 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
27295 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
27296 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
27297 Component_Definition node.
27299 2004-01-12 Ed Falis <falis@gnat.com>
27301 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
27303 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
27305 * link.c: Change default libgnat kind to STATIC for FreeBSD.
27307 2004-01-12 Bernard Banner <banner@gnat.com>
27309 * Makefile.in: map 86numaux to a-numaux for x86_64
27311 2004-01-12 Ed Schonberg <schonberg@gnat.com>
27313 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
27314 generated to rename a generic actual, go to the actual itself, the
27315 subtype is not a user-visible entity.
27317 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
27318 part is a private subtype, reset the visibility of its full view, if
27319 any, to be consistent.
27322 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
27323 to use a generic package G as a formal package for another generic
27326 2004-01-12 Robert Dewar <dewar@gnat.com>
27328 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
27330 * usage.adb: Remove mention of obsolete -gnatwb switch
27331 Noticed during code reading
27333 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
27335 * 1ssecsta.adb: Minor changes for -gnatwa warnings
27337 2004-01-12 GNAT Script <nobody@gnat.com>
27339 * Make-lang.in: Makefile automatically updated
27341 2004-01-09 Mark Mitchell <mark@codesourcery.com>
27343 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
27345 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27347 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
27349 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
27351 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
27352 Update comment and copyright date.
27353 * stamp-xgnatug: Delete.
27355 2004-01-05 Robert Dewar <dewar@gnat.com>
27357 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
27358 be modified by the binder generated main program if the -D switch is
27361 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
27362 imported functions (since now we expect this to be done for imported
27365 * 5vtaprop.adb: Add several ??? for sections requiring more comments
27366 Minor reformatting throughout
27368 * 5zinit.adb: Minor reformatting
27369 Add 2004 to copyright date
27370 Minor changes to avoid -gnatwa warnings
27371 Correct some instances of using OR instead of OR ELSE (noted while
27372 doing reformatting)
27374 * sprint.adb: Minor updates to avoid -gnatwa warnings
27376 * s-secsta.ads, s-secsta.adb:
27377 (SS_Get_Max): New function to obtain high water mark for ss stack
27378 Default_Secondary_Stack is not a constant since it may be modified by
27379 the binder generated main program if the -D switch is used.
27381 * switch-b.adb: New -Dnnn switch for binder
27384 Make -gnatg imply all warnings currently in -gnatwa
27386 * vms_conv.adb: Minor reformatting
27387 Add 2004 to copyright notice
27388 Add 2004 to printed copyright notice
27390 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
27391 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
27392 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
27393 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
27394 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
27395 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
27396 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
27397 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
27398 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
27399 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
27400 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
27401 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
27402 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
27403 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
27404 checks.adb, clean.adb, cstand.adb, einfo.ads,
27405 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
27406 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
27407 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
27408 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
27409 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
27410 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
27411 Minor reformatting and code clean ups.
27412 Minor changes to prevent -gnatwa warnings
27414 * ali.adb: Minor reformatting and cleanup of code
27415 Acquire new SS indication of secondary stack use from ali files
27417 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
27418 (since now we expect this to be done for imported functions)
27420 * bindgen.adb: Generate call to modify default secondary stack size if
27423 * bindusg.adb: Add line for new -D switch
27425 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
27426 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
27427 Add circuitry for both records and arrays to avoid gigi
27428 processing if the type involved has non-bit-aligned components
27430 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
27431 N_String_Literal node always references an E_String_Literal_Subtype
27432 entity. This may not be true in the future.
27433 (Possible_Bit_Aligned_Component): Move processing of
27434 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
27436 * exp_ch6.adb (Expand_Thread_Body): Pick up
27437 Default_Secondary_Stack_Size as variable so that we get value modified
27438 by possible -Dnnn binder parameter.
27440 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
27441 (Type_May_Have_Bit_Aligned_Components): New function.
27443 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
27444 (Type_May_Have_Bit_Aligned_Components): New function.
27446 * fe.h: (Set_Identifier_Casing): Fix prototype.
27447 Add declaration for Sem_Elim.Eliminate_Error_Msg.
27448 Minor reformatting.
27450 * freeze.adb (Freeze_Entity): Add RM reference to error message about
27451 importing constant atomic/volatile objects.
27452 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
27453 unless explicit Pure_Function pragma given, to avoid insidious bug of
27454 call to non-pure imported function getting eliminated.
27456 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
27457 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
27458 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
27459 Add 2004 to printed copyright notice
27461 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
27464 * Makefile.rtl: Add entry for g-sestin.o
27465 g-sestin.ads: New file.
27467 * mdll.adb: Minor changes to avoid -gnatwa warnings
27469 * mlib-tgt.adb: Minor reformatting
27471 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
27472 New switch Sec_Stack_Used (GNAT, GNATBIND)
27473 Make Default_Secondary_Stack_Size a variable instead of a constant,
27474 so that it can be modified by the new -Dnnn bind switch.
27476 * rtsfind.adb (Load_Fail): Give full error message in configurable
27477 run-time mode if all_errors mode is set. This was not done in the case
27478 of a file not found, which was an oversight.
27479 Note if secondary stack unit is used by compiler.
27481 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
27482 ineffective elaborate all pragmas on non-visible packages (this
27483 happened when a renamed subprogram was called). Now the elaborate all
27484 always goes on the package containing the renaming rather than the one
27485 containing the renamed subprogram.
27487 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
27488 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
27490 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
27491 has an Etype that references an E_String_Literal.
27492 (Eval_String_Literal): Avoid assumption that N_String_Literal node
27493 always references an E_String_Literal_Subtype entity. This may not
27494 be true in the future.
27496 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
27499 * sem_res.adb (Resolve): Specialize msg for function name used in proc
27502 2004-01-05 Ed Falis <falis@gnat.com>
27504 * g-debuti.adb: Replaced direct boolean operator with short-circuit
27507 2004-01-05 Vincent Celier <celier@gnat.com>
27509 * bld.adb: Minor comment updates
27510 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
27513 * make.adb (Gnatmake): Special process for files to compile/check when
27514 -B is specified. Fail when there are only foreign mains in attribute
27515 Main of the project file and -B is not specified. Do not skip bind/link
27516 steps when -B is specified.
27518 * makeusg.adb: Document new switch -B
27520 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
27522 * switch-m.adb: (Scan_Make_Switches): Process -B switch
27524 * vms_data.ads: Add new GNAT PRETTY qualifier
27525 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
27527 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27529 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
27532 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
27533 Set_Identifier_Casing.
27535 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
27536 has size that overflows.
27538 2004-01-05 Gary Dismukes <dismukes@gnat.com>
27540 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
27541 -gnatwa warning on static condition.
27543 2004-01-05 Doug Rupp <rupp@gnat.com>
27545 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
27547 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
27549 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
27550 all attributes, including read-only attribute.
27552 2004-01-05 Pascal Obry <obry@gnat.com>
27554 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
27555 library naming scheme.
27557 * mlib-prj.adb (Build_Library): Generate different names for the static
27558 or dynamic version of the GNAT runtime. This is needed to support the
27559 new shared library naming scheme.
27560 (Process_Binder_File): Add detection of shared library in binder file
27561 based on the new naming scheme.
27563 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
27564 scheme for the shared runtime libraries.
27567 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
27569 (install-gnatlib): Do not create symlinks for shared libraries.
27570 (gnatlib-shared-default): Idem.
27571 (gnatlib-shared-dual-win32): New target. Not used for now as the
27572 auto-import feature does not support arrays/records.
27573 (gnatlib-shared-win32): Do not create copy for the shared libraries.
27574 (gnatlib-shared-vms): Fix shared runtime libraries names.
27576 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
27577 dependent runtime shared library name.
27579 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
27581 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
27584 2004-01-05 Ed Schonberg <schonberg@gnat.com>
27586 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
27587 protected objects when allocator has a subtype indication, not a
27588 qualified expression. Note that qualified expressions may have to be
27589 checked when limited aggregates are implemented.
27591 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
27592 pure, emit warning.
27593 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
27594 subprogram is imported, remove warning.
27596 2004-01-05 Geert Bosch <bosch@gnat.com>
27598 * s-poosiz.adb: Update copyright notice.
27599 (Allocate): Use Task_Lock to protect against concurrent access.
27600 (Deallocate): Likewise.
27602 2004-01-05 Joel Brobecker <brobecker@gnat.com>
27604 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
27607 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
27609 * gnat_ug.texi: Force a CVS commit by updating copyright.
27610 * gnat_ug_vxw.texi: Regenerate.
27611 * gnat_ug_wnt.texi: Regenerate.
27612 * gnat_ug_vms.texi: Regenerate.
27613 * gnat_ug_unx.texi: Regenerate.
27615 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
27617 * trans.c: Remove uses of "register" specifier in
27618 declarations of local variables.
27620 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
27622 * stamp-xgnatug: New stamp file.
27623 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
27624 (ada/doctools/xgnatug): Add $(build_exeext).
27625 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
27626 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
27628 2003-12-17 Ed Falis <falis@gnat.com>
27630 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
27633 * a-exextr.adb: Add context clause for
27634 Ada.Exceptions.Last_Chance_Handler.
27636 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
27638 * cstand.adb (Create_Standard): Change the way how the declaration of
27639 the Duration type is created (making it the same way as it is for all
27640 the other standard types).
27642 2003-12-17 Robert Dewar <dewar@gnat.com>
27644 * s-crtl.ads: Fix header format
27645 Change Pure to Preelaborate
27647 2003-12-17 Ed Schonberg <schonberg@gnat.com>
27649 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
27650 the expression type only if it is declared in the current unit.
27652 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
27653 are universal and already analyzed, as can occur in constrained
27654 subcomponents that depend on discriminants, when one constraint is a
27657 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
27658 type Any_Fixed is legal as the argument of a conversion, if only one
27659 fixed-point type is in context.
27661 2003-12-17 GNAT Script <nobody@gnat.com>
27663 * Make-lang.in: Makefile automatically updated
27665 2003-12-15 Robert Dewar <dewar@gnat.com>
27667 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
27670 2003-12-15 Vincent Celier <celier@gnat.com>
27672 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
27673 (Gnatchop): Do not set failure status when reporting the number of
27676 2003-12-15 Doug Rupp <rupp@gnat.com>
27678 * s-ctrl.ads: New file.
27680 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
27682 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
27683 (GNATBIND_OBJS): Add ada/s-crtl.o.
27685 * Makefile.in [VMS]: Clean up ifeq rules.
27687 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
27688 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
27689 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
27690 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
27691 s-tasdeb.adb: Update copyright.
27692 Import System.CRTL.
27693 Make minor modifications to use System.CRTL declared functions instead
27694 of importing locally.
27696 2003-12-15 GNAT Script <nobody@gnat.com>
27698 * Make-lang.in: Makefile automatically updated
27700 2003-12-11 Ed Falis <falis@gnat.com>
27702 * 5zinit.adb: Clean up.
27704 * 5zintman.adb (Notify_Exception): replaced case statement with a call
27705 to __gnat_map_signal, imported from init.c to support
27706 signal -> exception mappings that depend on the vxWorks version.
27709 Created and exported __gnat_map_signal to support signal -> exception
27710 mapping that is dependent on the VxWorks version.
27711 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
27713 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
27715 * 5wosinte.ads: Link with -mthreads switch.
27717 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
27719 * init.c (__gnat_install_handler [NetBSD]): Set
27720 __gnat_handler_installed, as done on all other platforms.
27721 Remove duplicated code.
27723 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
27725 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
27727 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
27729 * sinfo.ads: Fix inconsistent example code in comment.
27731 2003-12-11 Robert Dewar <dewar@gnat.com>
27733 * a-tiinau.adb: Add a couple of comments
27735 * sem_ch3.adb: Minor reformatting
27738 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
27739 Minor reformatting throughout
27741 2003-12-11 Ed Schonberg <schonberg@gnat.com>
27743 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
27744 bounds of a loop, create a separate block in order to generate proper
27745 cleanup actions to prevent memory leaks.
27747 * sem_res.adb (Resolve_Call): After a call to
27748 Establish_Transient_Scope, the call may be rewritten and relocated, in
27749 which case no further processing is needed.
27751 * sem_util.adb: (Wrong_Type): Refine previous fix.
27752 Fixes ACATS regressions.
27755 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
27758 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
27760 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
27761 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
27764 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
27767 2003-12-08 Robert Dewar <dewar@gnat.com>
27769 * 7sintman.adb: Minor reformatting
27771 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
27772 standard linker options to get standard libraries linked. We now plan
27773 to provide dummy versions of these libraries to match the appropriate
27774 configurable run-time (e.g. if a library is not needed at all, provide
27775 a dummy empty library).
27777 * targparm.ads: Configurable_Run_Time mode no longer affects linker
27778 options (-L parameters and standard libraries). What we plan to do is
27779 to provide dummy libraries where the libraries are not required.
27781 * gnatbind.adb: Minor comment improvement
27783 2003-12-08 Javier Miranda <miranda@gnat.com>
27785 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
27786 aggregate in the parent. Otherwise constants with limited aggregates
27787 are not supported. Add new formal to pass the component type (Ctype).
27788 It is required to call the corresponding IP subprogram in case of
27789 default initialized components.
27790 (Gen_Assign): In case of default-initialized component, generate a
27791 call to the IP subprogram associated with the component.
27792 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
27793 of aggregate with default initialized components.
27794 (Has_Default_Init_Comps): Improve implementation to recursively check
27795 all the present expressions.
27797 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
27798 to indicate that the initialization call corresponds to a
27799 default-initialized component of an aggregate.
27800 In case of default initialized aggregate with tasks this parameter is
27801 used to generate a null string (this is just a workaround that must be
27802 improved later). In case of discriminants, this parameter is used to
27803 generate a selected component node that gives access to the discriminant
27806 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
27807 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
27808 allocated aggregates with default-initialized components.
27810 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
27811 the box notation is used in positional aggregates.
27813 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
27815 * lib.ads: Fix typo in comment
27817 2003-12-08 Vincent Celier <celier@gnat.com>
27819 * prj.adb (Project_Empty): New component Unkept_Comments
27820 (Scan): Remove procedure; moved to Prj.Err.
27822 * prj.ads (Project_Data): New Boolean component Unkept_Comments
27823 (Scan): Remove procedure; moved to Prj.Err.
27825 * prj-dect.adb: Manage comments for the different declarations.
27827 * prj-part.adb (With_Record): New component Node
27828 (Parse): New Boolean parameter Store_Comments, defaulted to False.
27829 Set the scanner to return ends of line and comments as tokens, if
27830 Store_Comments is True.
27831 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
27832 comments are associated with these nodes. Store the node IDs in the
27834 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
27836 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
27837 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
27838 current project. Call Tree.Restore afterwards. Set the various nodes
27839 for comment storage (Next_End, End_Of_Line, Previous_Line,
27842 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
27843 defaulted to False.
27845 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
27846 to False. When Truncated is True, truncate the string, never go to the
27848 (Write_End_Of_Line_Comment): New procedure
27849 (Print): Process comments for nodes N_With_Clause,
27850 N_Package_Declaration, N_String_Type_Declaration,
27851 N_Attribute_Declaration, N_Typed_Variable_Declaration,
27852 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
27853 Process nodes N_Comment.
27855 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
27856 without comments and there are some comments, set the flag
27857 Unkept_Comments to True.
27858 (Scan): If there are comments, set the flag Unkept_Comments to True and
27859 clear the comments.
27860 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
27861 (Next_End_Nodes: New table
27862 (Comment_Zones_Of): New function
27863 (Scan): New procedure; moved from Prj. Accumulate comments in the
27864 Comments table and set end of line comments, comments after, after end
27866 (Add_Comments): New procedure
27867 (Save, Restore, Seset_State): New procedures
27868 (There_Are_Unkept_Comments): New function
27869 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
27870 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
27872 (First_Comment_After, First_Comment_After_End): New functions
27873 (First_Comment_Before, First_Comment_Before_End): New functions
27874 (Next_Comment): New function
27875 (End_Of_Line_Comment, Follows_Empty_Line,
27876 Is_Followed_By_Empty_Line): New functions
27877 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
27878 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
27879 (Set_Next_Comment): New procedure
27880 (Default_Project_Node): Associate comment before if the node can store
27883 * scans.ads (Token_Type): New enumeration value Tok_Comment
27884 (Comment_Id): New global variable
27886 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
27887 defaulted to False.
27888 (Scan): Store position of start of comment. If comments are tokens, set
27889 Comment_Id and set Token to Tok_Comment when scanning a comment.
27890 (Set_Comment_As_Token): New procedure
27892 * sinput-p.adb: Update Copyright notice
27893 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
27894 that no longer exists.
27896 2003-12-08 Javier Miranda <miranda@gnat.com>
27898 * sem_aggr.adb: Add dependence on Exp_Tss package
27899 Correct typo in comment
27900 (Resolve_Aggregate): In case of array aggregates set the estimated
27901 type of the aggregate before calling resolve. This is needed to know
27902 the name of the corresponding IP in case of limited array aggregates.
27903 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
27904 in case of default initialized array components.
27906 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
27907 types. Required to give support to limited aggregates in generic
27910 2003-12-08 Ed Schonberg <schonberg@gnat.com>
27912 * sem_ch3.adb (Check_Initialization): For legality purposes, an
27913 inlined body functions like an instantiation.
27914 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
27915 until bounds are analyzed, to diagnose premature use of type.
27917 * sem_util.adb (Wrong_Type): Improve error message when the type of
27918 the expression is used prematurely.
27920 2003-12-08 GNAT Script <nobody@gnat.com>
27922 * Make-lang.in: Makefile automatically updated
27924 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
27926 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
27927 they are automatically generated by Make-lang.in and cause nothing but
27928 maintenance troubles.
27930 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
27932 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
27933 version of this unit).
27935 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
27937 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
27938 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
27939 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
27940 the body of System.Interrupt_Management common to several targets.
27941 Update copyright notice when appropriate.
27943 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
27946 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
27947 to ensure that the kernel fills in the interrupted context structure
27948 before calling a signal handler, which is necessary to be able to
27949 unwind past it. Update the copyright notice.
27951 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
27953 * a-elchha.ads: New file.
27955 * a-elchha.adb: New default last chance handler. Contents taken from
27956 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
27958 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
27959 is moved to a-elchha.adb to provide a target-independent default last
27962 * Makefile.rtl: Add a-elchha.o
27964 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
27966 2003-12-05 Ed Schonberg <schonberg@gnat.com>
27968 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
27969 declared in an instance, do not inline the call if the instance is not
27970 frozen yet, to prevent order of elaboration problems.
27972 * sem_prag.adb: Add comments for previous fix.
27974 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
27976 * g-table.adb: Use the right variable in Set_Item.
27977 Update copyright notice.
27979 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
27981 * Makefile.in: Remove unused rules.
27983 2003-12-05 Vincent Celier <celier@gnat.com>
27985 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
27986 -nostdlib. Not needed here after all.
27988 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
27991 * adaint.h, adaint.c, g-os_lib.ads:
27992 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
27993 on some platforms (including FreeBSD), it is a 64 bit value.
27994 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
27996 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
27998 * gnatvsn.ads (Library_Version): Now contain only the relevant
28000 (Verbose_Library_Version): New constant.
28002 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
28003 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
28004 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
28006 * gnatlbr.adb: Clean up: replace Library_Version by
28007 Verbose_Library_Version.
28009 * make.adb, lib-writ.adb, exp_attr.adb:
28010 Clean up: replace Library_Version by Verbose_Library_Version.
28012 * 5lintman.adb: Removed.
28015 Update and simplify computation of LIBRARY_VERSION.
28016 Fix computation of GSMATCH_VERSION.
28017 5lintman.adb is no longer used: replaced by 7sintman.adb.
28019 2003-12-03 Robert Dewar <dewar@gnat.com>
28022 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
28023 name. Modified to consider small non-bit-packed arrays as troublesome
28024 and in need of component-by-component assigment expansion.
28026 2003-12-03 Vincent Celier <celier@gnat.com>
28028 * lang-specs.h: Process nostdlib as nostdinc
28030 * back_end.adb: Update Copyright notice
28031 (Scan_Compiler_Arguments): Process -nostdlib directly.
28033 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
28036 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
28037 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
28038 included in HIE_NONE_TARGET_PAIRS.
28040 2003-12-03 Ed Schonberg <schonberg@gnat.com>
28043 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
28044 is legal in an instance, because legality is cheched in the template.
28047 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
28048 appplied to an unchecked conversion of a formal parameter.
28051 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
28054 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
28056 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
28057 routines. The second one is new functionality to deal with backtracing
28058 through signal handlers.
28059 (unwind): Split into the two separate subroutines above.
28060 Update the documentation, and deal properly with sizeof (REG) different
28061 from sizeof (void*).
28063 2003-12-01 Nicolas Setton <setton@act-europe.fr>
28065 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
28066 so that the debugger can reliably access the value of the parameter,
28067 and therefore is able to display the exception name when an exception
28068 breakpoint is reached.
28070 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
28072 * fmap.adb: Fix typo in warning message.
28074 * g-socket.ads, g-socket.adb: Make Free a visible instance of
28075 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
28077 2003-12-01 Vincent Celier <celier@gnat.com>
28079 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
28081 (Build_Library): Get the switches only if Default_Switches is declared
28084 2003-12-01 Ed Schonberg <schonberg@gnat.com>
28086 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
28087 actuals that are indexed components, reanalyze actual to ensure that
28088 packed array references are properly expanded.
28090 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
28091 attempted assignment to a discriminant.
28093 2003-12-01 Robert Dewar <dewar@gnat.com>
28095 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
28098 * switch-c.adb: Minor reformatting of comments
28100 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
28102 * Makefile.in: Clean ups.
28104 2003-12-01 GNAT Script <nobody@gnat.com>
28106 * Make-lang.in: Makefile automatically updated
28108 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
28110 * 5wsystem.ads: Disable zero cost exception, not ready yet.
28112 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
28114 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
28115 to force serialization.
28117 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
28119 * g-socket.ads, g-socket.adb:
28120 Clarify documentation of function Stream. Introduce a Free procedure
28121 to release the returned Stream once it becomes unused.
28123 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
28125 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
28127 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
28128 since NT 4 cannot handle timeout values that are too large,
28129 e.g. DWORD'Last - 1.
28131 2003-11-26 Ed Schonberg <schonberg@gnat.com>
28134 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
28135 in procedure calls and whose expansion must be deferred.
28137 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
28141 (Build_Derived_Array_Type): Create operator for unconstrained type
28142 if ancestor is unconstrained.
28144 2003-11-26 Vincent Celier <celier@gnat.com>
28146 * make.adb (Project_Object_Directory): New global variable
28147 (Change_To_Object_Directory): New procedure
28148 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
28149 of Change_Dir directly. Do not change working directory to object
28150 directory of main project after each compilation.
28151 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
28153 Change to object directory of main project before binding step.
28154 (Initialize): Initialize Project_Object_Directory to No_Project
28157 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
28158 binding a Stand-Alone Library.
28160 * output.adb: Update Copyright notice
28161 (Write_Char): Output buffer when full
28163 2003-11-26 Robert Dewar <dewar@gnat.com>
28165 * sem_ch13.adb: (Check_Size): Reset size if size is too small
28168 (Check_Size): Fix documentation to include bit-packed array case
28170 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
28172 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
28174 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
28176 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
28179 * utils.c (init_gigi_decls): Change name of built-in setjmp to
28180 __builtin_setjmp, since this is apparently needed by recent
28183 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28185 * adadecode.c: Only include ctype.h if not IN_GCC.
28186 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
28188 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
28191 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
28192 signals and interrupts.
28194 * 5zintman.ads: New File.
28196 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
28197 add exception signals to the set of unmasked signals.
28200 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
28201 between signals and interrupts.
28202 Add to Unblocked_Signal_Mask the set of signals that are in
28206 Adding a check to see whether the Interrupt_ID we want to unmask is in
28207 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
28208 reason is that the index type of the Keep_Unmasked array is not always
28209 Interrupt_ID; it may be a subtype of Interrupt_ID.
28211 2003-11-24 Gary Dismukes <dismukes@gnat.com>
28214 (Remove_Side_Effects): Condition constantness of object created for a
28215 an unchecked type conversion on the constantness of the expression
28216 to ensure the correct value for 'Constrained when passing components
28217 of view-converted class-wide objects.
28219 2003-11-24 Robert Dewar <dewar@gnat.com>
28221 * par-load.adb (Load): Improve handling of misspelled and missing units
28222 Removes several cases of compilation abandoned messages
28224 * lib.adb: (Remove_Unit): New procedure
28226 * lib.ads: (Remove_Unit): New procedure
28228 * lib-load.adb: Minor reformatting
28230 2003-11-24 Vincent Celier <celier@gnat.com>
28233 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
28234 (Marking_Label): Label to mark processed source files. Incremented for
28236 (Gnatmake): Increase Marking_Labet for each executable
28237 (Is_Marked): Compare against marking label
28238 (Mark): Mark with marking label
28240 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
28243 Move the declaration of the TSD for System.Threads to System.Soft_Links.
28246 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
28247 (rts-cert): build a single relocatable object for the run-time lib.
28250 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
28253 Use gnatls rather than gcc to obtain the location of GNAT RTL for
28256 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
28258 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
28259 can not use it as before (that is, as a variable) when dumping it into
28260 the tree file. Add a local variable to store the result of this
28261 function and to be used as the string to be written into the tree.
28263 * scn.adb (Initialize_Scanner): Add comments explaining the recent
28266 * sinput.adb (Source_First, Source_Last): In case of
28267 Internal_Source_File, replace returning attributes of
28268 Internal_Source_Ptr (which is wrong) with returning attributes of
28271 2003-11-24 Ed Schonberg <schonberg@gnat.com>
28274 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
28275 used for implicit concatenation operators.
28279 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
28280 task bodies that are in the scope of a Suppress pragma.
28281 (Check_A Call): Use the flag to prevent spurious elaboration checks.
28283 * sinfo.ads, sinfo.adb:
28284 New flag No_Elaboration_Check on function/procedure calls, to properly
28285 suppress checks on calls in task bodies that are within a local suppress
28289 (Expand_Concatenate_Other): Use the proper integer type for the
28290 expression for the upper bound, to avoid universal_integer computations
28293 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
28295 * .cvsignore: Delete.
28297 2003-11-21 Andreas Schwab <schwab@suse.de>
28299 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
28301 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
28303 * 5wsystem.ads: Enable zero cost exception.
28305 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
28307 * 5ztiitho.adb: Remove an unreferenced variable.
28309 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
28311 * adaint.c: For FreeBSD, use mkstemp.
28313 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
28315 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
28317 2003-11-21 Robert Dewar <dewar@gnat.com>
28319 * bld.adb: Remove useless USE of gnatvsn
28321 * gnatchop.adb: Minor reformatting
28322 Clean up version handling to be more consistent
28324 * gnatxref.adb: Minor reformatting
28326 * gprcmd.adb: Minor reformatting
28327 Fix output of copyright to be more consistent with other tools
28329 2003-11-21 Vincent Celier <celier@gnat.com>
28331 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
28333 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
28335 * atree.adb (Initialize): Add initializations for global variables
28336 used in New_Copy_Tree.
28338 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
28339 Internal_Source_File as the actual).
28340 Put the set of statements creating Any_Character before the set of
28341 statements creating Any_Array to have Any_Character fully initialized
28342 when it is used in creating Any_Array.
28344 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
28345 not call Scan in case if the actual is Internal_Source_File
28346 Add 2003 to copyright note.
28348 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
28349 processing Internal_Source_File.
28351 * types.ads: Add the constant Internal_Source_File representing the
28352 source buffer for artificial source-code-like strings created within
28353 the compiler (the definition of Source_File_Index is changed).
28355 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
28357 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
28358 56system.ads: New file, FreeBSD version.
28360 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
28362 * Make-lang.in (ada.extraclean): Delete.
28364 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
28366 * gnatmem.adb: Clean up verbose output.
28368 * gprcmd.adb: Change copyright to FSF.
28370 2003-11-19 Vincent Celier <celier@gnat.com>
28372 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
28373 and Version (ignored).
28375 * symbols.ads: (Policy): New type
28376 (Initialize): New parameter Reference, Symbol_Policy and
28378 Remove parameter Force.
28379 Minor reformatting.
28381 * snames.ads, snames.adbadb: New standard names
28382 Library_Reference_Symbol_File and Library_Symbol_Policy
28385 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
28389 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
28391 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
28393 * prj.adb: (Project_Empty): New component Symbol_Data
28395 * prj.ads: (Policy, Symbol_Record): New types
28396 (Project_Data): New component Symbol_Data
28399 New attributes Library_Symbol_File, Library_Symbol_Policy and
28400 Library_Reference_Symbol_File.
28403 (Ada_Check): When project is a Stand-Alone library project, process
28404 attribute Library_Symbol_File, Library_Symbol_Policy and
28405 Library_Reference_Symbol_File.
28407 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
28408 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
28409 5sml-tgt.adb (Build_Dynamic_Library): New parameter
28410 Symbol_Data (ignored).
28412 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
28413 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
28414 functions Option_File_Name and Version_String. Set new options of
28415 gnatsym related to symbol file, symbol policy and reference symbol
28419 Extensive modifications to take into account the reference symbol file,
28420 the symbol policy, the library version and to put in the symbol file the
28421 minor and major IDs.
28423 * bld.adb (Process_Declarative_Items): Put second argument of
28424 gprcmd to_absolute between single quotes, to avoid problems with
28427 * bld-io.adb: Update Copyright notice.
28428 (Flush): Remove last character of a line, if it is a back slash, to
28429 avoid make problems.
28432 Implement new scheme with reference symbol file and symbol policy.
28434 * g-os_lib.ads: (Is_Directory): Clarify comment
28436 2003-11-19 Robert Dewar <dewar@gnat.com>
28438 * atree.adb: Move New_Copy_Tree global variables to head of package
28440 * errout.adb: Minor reformatting
28442 2003-11-19 Javier Miranda <miranda@gnat.com>
28444 * sem_ch4.adb: (Diagnose_Call): Improve error message.
28445 Add reference to Ada0Y (AI-50217)
28447 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
28448 sem_util.adb: Add reference to AI-50217
28450 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
28452 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
28454 * sem_aggr.adb: Complete documentation of AI-287 changes
28456 * par-ch4.adb: Document previous changes.
28458 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
28459 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
28462 * exp_aggr.adb: Add references to AI-287 in previous changes
28464 2003-11-19 Ed Schonberg <schonberg@gnat.com>
28467 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
28468 in the rewriting is the result of an inlined call.
28470 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
28471 parameter is a type conversion, use original node to construct the
28472 post-call assignment, because expression may have been rewritten, e.g.
28473 if it is a packed array.
28476 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
28477 body, just as it is in an instance.
28478 Categorization routines
28480 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
28481 Instantiate_Object): Set proper sloc reference for message on missing
28484 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
28486 * Makefile.in: Add FreeBSD libgnat pairs.
28488 * usage.adb: Fix typo in usage message.
28490 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
28492 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
28493 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
28494 pragma Thread_Body.
28495 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
28497 * s-thread.adb: This file is now a dummy implementation of
28500 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
28502 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
28504 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
28506 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
28507 instanciation references in the parent type description.
28509 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28511 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
28513 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
28514 TYPE_PRECISION directly from esize.
28516 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
28519 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
28521 * init.c: Initialization routines for FreeBSD
28523 * link.c: Link info for FreeBSD
28525 * sysdep.c: Add the case of FreeBSD
28527 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
28529 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
28530 already called in System.Threads.
28532 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
28533 environment task, as it has been moved to System.Threads.Initialization.
28535 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
28537 * adaint.c (__gnatlib_install_locks): Only reference
28538 __gnat_install_locks on VMS, since other platforms can avoid using
28539 --enable-threads=gnat
28541 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28543 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
28545 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
28546 TYPE_PACKED_ARRAY_TYPE_P.
28547 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
28549 Part of PR ada/12806
28550 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
28551 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
28553 2003-11-17 Vincent Celier <celier@gnat.com>
28555 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
28557 Do not set exit status to Failure when Warning is True.
28558 (Gnatchop): Make errors "no compilation units found" and
28559 "no source files written" warnings only.
28561 * make.adb (Gnatmake): When using a project file, set
28562 Look_In_Primary_Dir to False.
28563 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
28564 and Local_Configuration_Pragmas in the project where they are declared
28565 not an extending project which might have inherited them.
28567 * osint.adb (Locate_File): If Name is already an absolute path, do not
28568 look for a directory.
28570 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
28571 -gnats (Check_Syntax) is used, issue only a warning, not an error.
28573 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
28574 in objects of type Variable_Value.
28576 * prj.ads: (Variable_Value): New component Project
28578 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
28579 is in a project extended by Project.
28581 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
28582 Project of Variable_Values to this new parameter value.
28583 (Expression): Set component Project of Variable_Values.
28584 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
28585 Set the component Project in array elements.
28587 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
28589 * errout.adb: (Initialize): Add initialization for error nodes.
28591 * sem_ch12.adb (Initialize): Add missing initializations for
28592 Exchanged_Views and Hidden_Entities.
28594 2003-11-17 Ed Schonberg <schonberg@gnat.com>
28596 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
28597 already instantiated tree for use in subsequent inlining.
28598 (Analyze_Associations, Instantiate_Formal_Subprogram,
28599 Instantiate_Object): improve error message for mismatch in
28602 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
28603 instantiations of subprograms declared in instances.
28605 2003-11-17 Javier Miranda <miranda@gnat.com>
28607 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
28608 executed only under the Extensions_Allowed flag.
28610 2003-11-17 Robert Dewar <dewar@gnat.com>
28612 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
28614 (Address_Image): Fix bug of returning 0x instead of 0x0
28615 Minor reformatting (function specs).
28617 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
28618 (missed case of 33-63)
28620 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
28622 * s-thread.adb: Add comments for pragma Restriction
28624 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
28625 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
28627 2003-11-17 Ed Falis <falis@gnat.com>
28629 * s-thread.adb: Added No_Tasking restriction for this implementation.
28631 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
28633 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
28634 instanciation references in the parent type description.
28636 2003-11-17 GNAT Script <nobody@gnat.com>
28638 * Make-lang.in: Makefile automatically updated
28640 2003-11-16 Jason Merrill <jason@redhat.com>
28642 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
28643 and TAGS files that include them for each front end.
28645 2003-11-14 Andreas Jaeger <aj@suse.de>
28647 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
28648 is the canonical version.
28649 * misc.c (gnat_handle_option): Likewise.
28651 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
28653 * 5nsystem.ads: New file for x86_64-linux-gnu.
28655 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
28657 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
28659 * comperr.adb: Fix logic in previous change.
28661 2003-11-13 Vincent Celier <celier@gnat.com>
28663 * 5bml-tgt.adb (Build_Dynamic_Library): Use
28664 Osint.Include_Dir_Default_Prefix instead of
28665 Sdefault.Include_Dir_Default_Name.
28667 * gnatlbr.adb: Update Copyright notice
28668 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
28669 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
28670 instead of Sdefault.Object_Dir_Default_Name
28673 (Process_Binder_File): Never suppress the option following -Xlinker
28676 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
28677 Sdefault.Object_Dir_Default_Name.
28679 * osint.ads, osint.adb:
28680 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
28681 Minor reformatting.
28683 * vms_conv.ads: Minor reformating
28684 Remove GNAT STANDARD and GNAT PSTA
28687 Allow GNAT MAKE to have several files on the command line.
28688 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
28689 Sdefault.Object_Dir_Default_Name.
28691 Remove data for GNAT STANDARD
28694 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
28695 Remove data for GNAT STANDARD
28696 Remove options and documentation for -gnatwb/-gnatwB: these warning
28697 options no longer exist.
28699 2003-11-13 Ed Falis <falis@gnat.com>
28701 * 5zthrini.adb: (Init_RTS): Made visible
28704 (Register): Removed unnecessary call to taskVarGet that checked whether
28705 an ATSD was already set as a task var for the argument thread.
28708 Updated comment to reflect that this is a VxWorks version
28709 Added context clause for System.Threads.Initialization
28710 Added call to System.Threads.Initialization.Init_RTS
28712 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
28715 (Init_RTS): New procedure, for the initialization of the run-time lib.
28718 Remove dependancy on System.Init, so that this file can be used in the
28719 AE653 sequential run-time lib.
28721 2003-11-13 Robert Dewar <dewar@gnat.com>
28723 * bindgen.adb: Minor reformatting
28725 2003-11-13 Ed Schonberg <schonberg@gnat.com>
28728 (Apply_Discriminant_Check): Do no apply check if target type is derived
28729 from source type with no applicable constraint.
28732 (Ensure_System_Dependency): Do not apply the style checks that may have
28733 been specified for the main unit.
28736 (Find_Selected_Component): Further improvement in error message, with
28740 (Resolve): Handle properly the case of an illegal overloaded protected
28743 2003-11-13 Javier Miranda <miranda@gnat.com>
28746 (Has_Default_Init_Comps): New function to check the presence of
28747 default initialization in an aggregate.
28748 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
28749 extension aggregate of a limited record. In addition, a new formal
28750 was added to do not initialize the record controller (if any) during
28751 this recursive expansion of ancestors.
28752 (Init_Controller): Add support for limited record components.
28753 (Expand_Record_Aggregate): In case of default initialized components
28754 convert the aggregate into a set of assignments.
28756 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
28757 describing the new syntax.
28758 Nothing else needed to be done because this subprogram delegates part of
28759 its work to P_Precord_Or_Array_Component_Association.
28760 (P_Record_Or_Array_Component_Association): Give support to the new
28761 syntax for default initialization of components.
28764 (Resolve_Aggregate): Relax the strictness of the frontend in case of
28765 limited aggregates.
28766 (Resolve_Record_Aggregate): Give support to default initialized
28768 (Get_Value): In case of default initialized components, duplicate
28769 the corresponding default expression (from the record type
28770 declaration). In case of default initialization in the *others*
28771 choice, do not check that all components have the same type.
28772 (Resolve_Extension_Aggregate): Give support to limited extension
28776 (Check_Initialization): Relax the strictness of the front-end in case
28777 of aggregate and extension aggregates. This test is now done in
28778 Get_Value in a per-component manner.
28780 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
28781 expression corresponds to a limited aggregate. This test is now done
28784 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
28787 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
28788 present in an N_Component_Association node
28790 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
28792 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
28793 type-conformant entry only if they are homographs.
28795 2003-11-13 GNAT Script <nobody@gnat.com>
28797 * Make-lang.in: Makefile automatically updated
28799 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28801 * adadecode.c: Use <> form of include for ctype.h.
28802 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
28804 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28806 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
28807 Works around PR middle-end/6552.
28809 2003-11-10 Ed Falis <falis@gnat.com>
28811 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
28813 * 5zinit.adb: (Install_Handler): Moved back to spec
28814 (Install_Signal_Handlers): Deleted
28816 * 5zthrini.adb: Added context clause for System.Storage_Elements
28817 (Register): Only handles creation of taskVar; initialization moved to
28819 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
28820 Added declaration of environment task secondary stack and
28823 * s-thread.adb: Implement bodies for thread body processing
28826 Added comment identifying supported targets for pragma Thread_Body.
28828 2003-11-10 Pascal Obry <obry@gnat.com>
28830 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
28834 (Open): Properly check for string length before copying into the buffer.
28835 Raises Name_Error if buffer is too small. Note that this was a potential
28838 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
28840 * bindgen.adb, comperr.adb: Code clean ups.
28841 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
28843 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
28845 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
28847 2003-11-10 Vincent Celier <celier@gnat.com>
28850 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
28853 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
28855 * prj.adb: (Project_Empty): Add new boolean component Virtual
28857 * prj.ads: (Virtual_Prefix): New constant string
28858 (Project_Data): New boolean component Virtual
28860 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
28861 a library project is extended by a virtual extending project.
28864 Modifications throughout to implement extending-all project, including:
28865 (Virtual_Hash, Processed_Hash): New hash tables
28866 (Create_Virtual_Extending_Project): New procedure
28867 (Look_For_Virtual_Projects_For): New procedure
28870 (Process): After checking the projects, if main project is an
28871 extending-all project, set the object directory of all virtual extending
28872 project to the object directory of the main project.
28873 Adjust error message when a virtual extending project has the same
28874 object directory as an project being extended.
28875 (Recursive_Process): If name starts with the virtual prefix, set Virtual
28876 to True in the project data.
28879 (Default_Project_Node): Add new boolean component Extending_All
28880 (Is_Extending_All): New function
28881 (Set_Is_Extending_All): New procedure
28883 * prj-tree.ads: (Is_Extending_All): New function
28884 (Set_Is_Extending_All): New procedure
28885 (Project_Node_Record): New boolean component Extending_All
28887 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
28890 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
28892 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
28893 "gprcmd prefix" to define it.
28895 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
28897 * einfo.ads: Fix a typo and remove an extraneous word in comments.
28900 (Create_Dummy_Package_Unit): Set the scope of the entity for the
28901 created dummy package to Standard_Standard, not to itself, to
28902 defend other parts of the front-end against encoutering a cycle in
28906 (Analyze_With_Clause): When setting the entities for the successive
28907 N_Expanded_Names that constitute the name of a child unit, do not
28908 attempt to go further than Standard_Standard in the chain of scopes.
28909 This case arises from the placeholder units created by
28910 Create_Dummy_Package_Unit in the case of a with_clause for a
28911 nonexistent child unit.
28913 2003-11-10 Ed Schonberg <schonberg@gnat.com>
28916 (Expand_Thread_Body): Place subprogram on scope stack, so that new
28917 declarations are given the proper scope.
28920 (Check_Expr_Constants): Reject an expression that contains a constant
28921 created during expansion, and that appears after the object to which
28922 the address clause applies.
28924 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
28925 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
28926 that uses 'Range of a function call with controlled components, so
28927 that the function result can be finalized before starting the loop.
28930 (Find_Selected_Component): Improve error message when prefix is
28931 an implicit dereference of an incomplete type.
28933 2003-11-10 Robert Dewar <dewar@gnat.com>
28935 * opt.ads: New Print_Standard flag for -gnatS switch
28937 * sem_ch13.adb: Remove some additional checks for unaligned arrays
28939 * cstand.adb (Create_Standard): Print out package standard if -gnatS
28942 * debug.adb: Update doc for -gnatds to discuss relationship with new
28945 * sinfo.adb: Add new field Entity_Or_Associated_Node
28947 * sinfo.ads: Add new field Entity_Or_Associated_Node
28948 Update documentation for Associated_Node and Entity fields to clarify
28949 relationship and usage.
28952 (Write_Id): Properly process Associated_Node field in generic template
28955 Recognize new -gnatS switch for printing package Standard
28956 This replaces gnatpsta
28959 Add line for new -gnatS switch for printing package Standard
28960 This replaces gnatpsta
28962 2003-11-10 Andreas Jaeger <aj@suse.de>
28964 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
28967 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
28969 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
28972 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
28974 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
28977 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
28979 * sysdep.c: Add handling of cygwin.
28981 2003-11-10 GNAT Script <nobody@gnat.com>
28983 * Make-lang.in: Makefile automatically updated
28985 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
28988 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
28989 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
28990 Replace GNAT_ROOT by GCC_ROOT.
28992 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
28994 2003-11-06 Zack Weinberg <zack@codesourcery.com>
28996 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
28997 and update for changed meaning of GET_MODE_BITSIZE.
28999 2003-11-04 Doug Rupp <rupp@gnat.com>
29001 * sysdep.c: Problem discovered during IA64 VMS port.
29002 [VMS] #include <unixio.h> to get proper prototypes.
29005 Issues discovered/problems fixed during IA64 VMS port.
29006 [VMS] #define _POSIX_EXIT for proper semantics.
29007 [VMS] #include <unixio.h> for proper prototypes.
29008 [VMS] (fork): #define IA64 version.
29009 (__gnat_os_exit): Remove unnecessary VMS specific code.
29011 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29013 Part of PR ada/12806
29014 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
29018 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
29021 * targtyps.c, decl.c, misc.c,
29022 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
29023 routines to work around change in FP sizing semantics in GCC.
29026 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
29028 * gigi.h: (enumerate_modes): New function.
29030 * Make-lang.in: (ada/misc.o): Add real.h.
29032 * misc.c: (enumerate_modes): New function.
29034 2003-11-04 Robert Dewar <dewar@gnat.com>
29036 * 3vtrasym.adb: Minor reformatting
29037 Use terminology encoded/decoded name, rather than C++ specific notion
29038 of mangling (this is the terminology used throughout GNAT).
29040 * einfo.h: Regenerated
29042 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
29045 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
29047 * par-prag.adb: Add dummy entry for Thread_Body pragma
29050 Add entries for System.Threads entities for thread body processing
29053 (Analyze_Pragma, Access attributes): Check these are not applied to a
29054 thread body, since this is not permitted
29056 * sem_prag.adb: Add processing for Thread_Body pragma.
29060 (Resolve_Call): Check for incorrect attempt to call a thread body
29061 procedure with a direct call.
29063 * snames.ads, snames.adb: Add entry for Thread_Body pragma
29064 Add names associated with thread body expansion
29066 * snames.h: Add entry for Thread_Body pragma
29068 * s-thread.adb: Add entries for thread body processing
29069 These are dummy bodies so far
29071 * s-thread.ads: Add documentation on thread body handling.
29072 Add entries for thread body processing.
29074 2003-11-04 Javier Miranda <miranda@gnat.com>
29077 (Build_Limited_Views): Return after posting an error in case of limited
29078 with_clause on subprograms, generics, instances or generic renamings
29079 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
29080 on subprograms, generics, instances or generic renamings
29082 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
29084 * raise.c (setup_to_install): Correct mistake in last revision; two
29085 arguments out of order.
29087 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
29088 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
29089 notice, missed in previous change.
29090 Remove trailing blanks and other style errors introduced in previous
29093 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
29095 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
29096 rid of the wrapper for a LJM type, ensuring we don't do that if the
29097 field is addressable. This avoids potential low level type view
29098 mismatches later on, for instance in a by-reference argument passing
29101 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29103 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
29104 aligned at byte boundary.
29106 2003-11-04 Joel Brobecker <brobecker@gnat.com>
29108 * decl.c (components_to_record): Do not delete the empty variants from
29109 the end of the union type.
29111 2003-11-04 Ed Schonberg <schonberg@gnat.com>
29113 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
29114 operation for a derived type, an explicit declaration may use a local
29115 subtype of Boolean.
29117 2003-11-04 Vincent Celier <celier@gnat.com>
29119 * make.adb (Gnatmake): Allow main sources on the command line with a
29120 library project when it is only for compilation (no binding or
29123 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29125 * Makefile.in: Remove many duplicate variables.
29127 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
29129 * Make-lang.in (dvi): Move targets to $(docobjdir).
29130 (gnat_ug_vms.dvi): Simplify rule and adjust target.
29131 (gnat_ug_wnt.dvi): Likewise.
29132 (gnat_ug_unx.dvi): Likewise.
29133 (gnat_ug_vxw.dvi): Likewise.
29134 (gnat_rm.dvi): Likewise.
29135 (gnat-style.dvi): Likewise.
29137 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
29139 * gigi.h: Missed commit from update for C90.
29141 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
29143 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
29145 2003-10-31 Andreas Schwab <schwab@suse.de>
29147 * raise.c (get_action_description_for): Fix typo in last change.
29149 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
29152 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
29153 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
29155 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
29157 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
29158 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
29159 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
29160 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
29161 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
29163 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
29166 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
29167 numbers when symbol name is too long.
29169 2003-10-30 Ed Falis <falis@gnat.com>
29171 * g-signal.ads, g-signal.adb: New files
29173 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
29175 * Makefile.rtl: Introduce GNAT.Signals
29177 2003-10-30 Robert Dewar <dewar@gnat.com>
29179 * freeze.adb: Minor reformatting
29181 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
29183 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
29184 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
29185 New handling of Id_Check parameter to improve recognition of keywords
29186 used as identifiers.
29187 Update copyright notice to include 2003
29189 2003-10-29 Robert Dewar <dewar@gnat.com>
29191 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
29192 sem_ch10.adb: Minor reformatting
29194 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
29195 (Expand_Assign_Record): Test right hand side for bit unaligned as well
29197 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
29199 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
29200 Support for TBK$SYMBOLIZE-based symbolic traceback.
29202 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
29205 Revert previous change, that did not work well when pragma No_Run_Time
29206 was used in conjunction with a run-time other than ZFP.
29208 2003-10-29 Vincent Celier <celier@gnat.com>
29211 (Gnatmake): When there are no Ada mains in attribute Main, disable the
29212 bind and link steps only is switch -z is not used.
29214 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
29216 * Makefile.generic: Remove duplicated setting of CC.
29218 * Makefile.prolog: Set CC to gcc by default, to override make's
29221 * einfo.h: Regenerated.
29223 2003-10-29 Ed Schonberg <schonberg@gnat.com>
29225 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
29226 current body, after compiling subunit.
29228 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
29229 when in deleted code, because gigi needs properly ordered freeze
29230 actions to annotate types.
29232 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
29233 prevent the premature freezing of record type that contains
29234 subcomponents with a private type that does not yet have a completion.
29236 2003-10-29 Javier Miranda <miranda@gnat.com>
29239 (Analyze_Package_Instantiation): Check that instances can not be used in
29240 limited with_clauses.
29243 (Analyze_Package_Renaming): Check that limited withed packages cannot
29244 be renamed. Improve text on error messages related to limited
29247 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
29249 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
29250 Update copyright notice.
29252 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
29253 (Install_Limited_Context_Clauses): New subprogram that isolates all the
29254 checks required for limited context_clauses and installs the limited
29256 (Install_Limited_Withed_Unit): Complete its documentation.
29257 (Analyze_Context): Check that limited with_clauses are only allowed in
29259 (Install_Context): Call Install_Limited_Context_Clauses after the
29260 parents have been installed.
29261 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
29262 package as 'From_With_Type'; this mark indicates that the limited view
29263 is installed. Used to check bad usages of limited with_clauses.
29264 (Build_Limited_Views): Do not add shadow entities to the scope's list
29265 of entities. Do not add real entities to the Non_Limited_Views chain.
29266 Improve error notification.
29267 (Remove_Context_Clauses): Remove context clauses in two phases:
29268 limited views first and regular views later (to maintain the
29270 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
29271 its visible entities.
29273 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
29275 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
29276 with any type that Is_Fixed_Point_Type.
29278 * sinfo.ads: Fix documentation for Associated_Node attribute.
29280 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
29282 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
29283 both '-gnatc' and '-gnatt' are specified.
29285 * atree.adb (Initialize): Add initialization for Node_Count (set to
29288 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29290 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
29291 do not consider as Pure.
29293 Part of implementation of function-at-a-time:
29295 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
29296 (tree_transform): Add new argument to build_component_ref.
29297 (tree_transform, case N_Assignment_Statement): Make and return an
29299 (tree_transform): If result IS_STMT, set flags and return it.
29300 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
29302 * utils2.c (build_simple_component_ref, build_component_ref): Add new
29304 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
29305 (build_allocator): Likewise.
29307 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
29308 Add new arg to build_component_ref.
29309 (maybe_unconstrained_array, unchecked_convert): Likewise.
29311 * ada-tree.def (EXPR_STMT): New code.
29313 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
29315 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
29316 build_component_ref calls.
29318 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
29320 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
29321 (build_component_ref): Add new argument, NO_FOLD_P.
29323 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
29325 * Makefile.generic: Add missing substitution on object_deps handling.
29328 * Make-lang.in (check-ada): Enable ACATS test suite.
29330 2003-10-27 Robert Dewar <dewar@gnat.com>
29333 (Freeze_Array_Type): We do not need an initialization routine for types
29334 derived from String or Wide_String. They should be treated the same
29335 as String and Wide_String themselves. This caused problems with the
29336 use of Initialize_Scalars.
29339 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
29340 composites. This allows use of component clauses that are not byte
29344 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
29345 is an attempt to pack an array of atomic objects.
29347 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
29349 2003-10-27 Pascal Obry <obry@gnat.com>
29352 (Basename): Check for drive letters in a pathname only on DOS based OS.
29354 2003-10-27 Vincent Celier <celier@gnat.com>
29357 (Gnatmake): When unable to change dir to the object dir, display the
29358 content of the parent dir of the obj dir, to try to understand why this
29361 2003-10-27 GNAT Script <nobody@gnat.com>
29363 * Make-lang.in: Makefile automatically updated
29365 2003-10-27 Ed Schonberg <schonberg@gnat.com>
29368 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
29369 should not be done in Save/Restore_Scope_Stack, because it is performed
29373 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
29374 whether use clauses should be removed/restored.
29377 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
29378 whether use clauses should be removed/restored.
29380 2003-10-26 Andreas Jaeger <aj@suse.de>
29382 * Makefile.in: Remove duplicated lines.
29384 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
29386 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
29387 minimize the differences with ACT tree.
29389 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
29390 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
29391 Gnatvsn.Gnat_Static_Version_String to reduce differences between
29394 2003-10-24 Pascal Obry <obry@gnat.com>
29397 * adadecode.c (ostrcpy): New function.
29398 (__gnat_decode): Use ostrcpy of strcpy.
29399 (has_prefix): Set first parameter a const.
29400 (has_suffix): Set first parameter a const.
29401 Update copyright notice. Fix source name in header.
29402 Removes a trailing space.
29404 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
29407 Remove the test against being in No_Run_Time_Mode before generating a
29408 call to Register_Tag. It is redundant with the test against the
29409 availability of the function Register_Tag.
29411 2003-10-24 Vincent Celier <celier@gnat.com>
29413 * g-catiio.adb: (Month_Name): Correct spelling of February
29415 * make.adb: (Mains): New package
29416 (Initialize): Call Mains.Delete
29417 (Gnatmake): Check that each main on the command line is a source of a
29418 project file and, if there are several mains, each of them is a source
29419 of the same project file.
29420 (Gnatmake): When a foreign language is specified in attribute Languages,
29421 no main is specified on the command line and attribute Mains is not
29422 empty, only build the Ada main. If there is no Ada main, just compile
29423 the Ada sources and their closure.
29424 (Gnatmake): If a main is specified on the command line with directory
29425 information, check that the source exists and, if it does, that the path
29426 is the actual path of a source of a project.
29429 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
29430 Full_Path is True, return the full path instead of the simple file name.
29431 (Project_Of): New function
29434 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
29435 defaulted to False.
29436 (Project_Of): New function
29438 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
29440 * Makefile.generic:
29441 Ensure objects of main project are always checked and rebuilt if needed.
29442 Set CC to gcc by default.
29443 Prepare new handling of link by creating a global archive (not activated
29446 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
29447 stringt.h: Update copyright notice. Remove trailing blanks.
29448 Fix source name in header.
29450 2003-10-24 Robert Dewar <dewar@gnat.com>
29452 * sem_ch12.adb: Minor reformatting
29455 Minor reformatting (including new function return style throughout)
29458 Minor reformatting (including new function return style throughout)
29460 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
29462 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
29463 stringt.h: Update copyright notice. Remove trailing blanks.
29464 Fix source name in header.
29466 2003-10-24 GNAT Script <nobody@gnat.com>
29468 * Make-lang.in: Makefile automatically updated
29470 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
29472 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
29473 stringt.h: Convert to ISO C90 declarations and definitions.
29475 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
29478 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
29479 External_Tag attribute definition clauses.
29481 2003-10-23 Ed Schonberg <schonberg@gnat.com>
29484 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
29485 child unit, generate a fully qualified name to avoid spurious errors
29486 when the context contains renamings of different child units with
29487 the same simple name.
29489 * exp_dbug.ads: Add documentation on name qualification for renamings
29492 2003-10-23 Robert Dewar <dewar@gnat.com>
29494 * g-regpat.ads, g-regpat.adb: Minor reformatting
29496 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
29498 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
29500 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29502 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
29505 * urealp.h: (Machine): Update to proper definition.
29507 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
29509 * init.c, adaint.c: Minor reformatting.
29511 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
29513 * adaint.c (w32_epoch_offset): Define static const at file level.
29514 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
29515 rather than t_create, t_access in call to GetFileTime. Use union
29516 to convert between FILETIME and unsigned long long.
29517 (__gnat_file_time_name): Test for invalid file handle.
29518 (__gnat_set_filetime_name): Support win32 targets using
29519 w32api SetFileTime.
29521 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
29523 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
29525 * ctrl_c.c (__gnat_int_handler): Remove declaration.
29527 * decl.c (creat_concat_name): Const-ify prefix.
29529 * adaint.c: Include ctype.h if __MINGW32__.
29530 (__gnat_readlink): Mark arguments as possibly unused.
29531 (__gnat_symlink): Likewise.
29532 (__gnat_is_symbolic_link): Likewise.
29533 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
29535 (__gnat_file_time_name): Don't declare struct stat statbuf when
29537 (__gnat_is_absolute_path): Add parenthesis around condition of
29538 'if' statement to avoid warning.
29539 (__gnat_plist_init): Specify void as parameter.
29540 (plist_enter): Likewise.
29541 (plist_leave): Likewise.
29542 (remove_handle): Make static. Initialize prev.
29544 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
29547 * Makefile.in: Disable build of gnatpsta.
29548 * cstreams.c (__gnat_full_name): Minor improvements and clean up
29549 of previous change.
29551 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29553 * tracebak.c (MAX): Avoid redefinition warning.
29555 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
29556 Change msg to const char *.
29557 (__gnat_install_handler): Remove ss, unused.
29558 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
29560 * cstreams.c (__gnat_full_name): Declare p only when used.
29561 (__gnat_full_name) [sgi] Return buffer.
29563 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
29565 * mingw32.h: New file.
29566 * gnat_wrapper.adb: New file.
29568 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
29570 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
29571 string match a pre compiled regular expression (the corresponding
29572 version of the function working on a raw regular expression)
29573 Fix typos in various comments
29574 Update copyright notice in spec
29576 2003-10-21 Gary Dismukes <dismukes@gnat.com>
29579 (Component_Needs_Simple_Initialization): Return False when the type is a
29580 packed bit array. Revise spec comments to document this case.
29583 (Expand_Pragma_Import): Set any expression on the imported object to
29584 empty to avoid initializing imported objects (in particular this
29585 covers the case of zero-initialization of bit arrays).
29586 Update copyright notice.
29588 2003-10-21 Ed Schonberg <schonberg@gnat.com>
29591 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
29592 a subunit is missing.
29593 (Instantiate_Subprogram_Body): If body of function is missing, set type
29594 of return expression explicitly in dummy body, to prevent cascaded
29595 errors when a subunit is missing.
29599 (Access_Subprogram_Declaration): Verify that return type is valid.
29603 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
29608 (Corresponding_Discriminant): If the scope of the discriminant is a
29609 private type without discriminant, use its full view.
29612 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
29614 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
29615 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
29616 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
29617 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
29618 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
29619 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
29620 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
29621 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
29622 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
29623 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
29624 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
29625 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
29626 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
29627 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
29628 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
29629 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
29630 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
29631 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
29632 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
29633 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
29634 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
29635 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
29636 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
29637 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
29638 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
29639 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
29640 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
29641 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
29642 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
29643 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
29644 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
29645 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
29646 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
29647 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
29648 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
29649 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
29650 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
29651 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
29652 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
29653 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
29654 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
29655 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
29656 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
29657 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
29658 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
29659 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
29660 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
29661 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
29662 vms_conv.ads, vms_conv.adb, vms_data.ads,
29663 vxaddr2line.adb: Files added. Merge with ACT tree.
29665 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
29666 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
29667 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
29668 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
29669 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
29670 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
29671 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
29672 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
29673 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
29674 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
29676 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
29677 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
29678 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
29679 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
29680 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
29681 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
29682 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
29683 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
29684 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
29685 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
29686 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
29687 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
29688 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
29689 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
29690 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
29691 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
29692 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
29693 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
29694 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
29695 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
29696 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
29697 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
29698 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
29699 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
29700 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
29701 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
29702 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
29703 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
29704 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
29705 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
29706 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
29707 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
29708 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
29709 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
29710 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
29711 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
29712 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
29713 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
29714 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
29715 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
29716 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
29717 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
29718 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
29719 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
29720 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
29721 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
29722 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
29723 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
29724 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
29725 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
29726 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
29727 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
29728 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
29729 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
29730 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
29731 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
29732 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
29733 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
29734 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
29735 checks.adb, checks.ads, cio.c, comperr.adb,
29736 comperr.ads, csets.adb, cstand.adb, cstreams.c,
29737 debug_a.adb, debug_a.ads, debug.adb, decl.c,
29738 einfo.adb, einfo.ads, errout.adb, errout.ads,
29739 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
29740 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
29741 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
29742 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
29743 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
29744 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
29745 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
29746 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
29747 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
29748 fe.h, fmap.adb, fmap.ads, fname.adb,
29749 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
29750 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
29751 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
29752 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
29753 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
29754 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
29755 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
29756 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
29757 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
29758 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
29759 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
29760 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
29761 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
29762 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
29763 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
29764 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
29765 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
29766 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
29767 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
29768 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
29769 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
29770 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
29771 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
29772 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
29773 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
29774 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
29775 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
29776 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
29777 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
29778 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
29779 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
29780 layout.adb, lib.adb, lib.ads, lib-list.adb,
29781 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
29782 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
29783 link.c, live.adb, make.adb, make.ads,
29784 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
29785 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
29786 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
29787 misc.c, mkdir.c, mlib.adb, mlib.ads,
29788 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
29789 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
29790 namet.adb, namet.ads, namet.h, nlists.ads,
29791 nlists.h, nmake.adt, opt.adb, opt.ads,
29792 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
29793 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
29794 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
29795 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
29796 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
29797 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
29798 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
29799 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
29800 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
29801 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
29802 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
29803 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
29804 prj-util.adb, prj-util.ads, raise.c, raise.h,
29805 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
29806 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
29807 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
29808 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
29809 scans.ads, scn.adb, scn.ads, s-crc32.adb,
29810 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
29811 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
29812 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
29813 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
29814 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
29815 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
29816 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
29817 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
29818 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
29819 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
29820 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
29821 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
29822 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
29823 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
29824 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
29825 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
29826 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
29827 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
29828 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
29829 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
29830 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
29831 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
29832 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
29833 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
29834 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
29835 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
29836 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
29837 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
29838 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
29839 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
29840 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
29841 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
29842 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
29843 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
29844 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
29845 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
29846 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
29847 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
29848 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
29849 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
29850 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
29851 stringt.adb, stringt.ads, stringt.h, style.ads,
29852 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
29853 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
29854 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
29855 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
29856 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
29857 table.adb, table.ads, targparm.adb, targparm.ads,
29858 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
29859 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
29860 ttypes.ads, types.ads, types.h, uintp.adb,
29861 uintp.ads, uintp.h, uname.adb, urealp.adb,
29862 urealp.ads, urealp.h, usage.adb, utils2.c,
29863 utils.c, validsw.adb, validsw.ads, widechar.adb,
29864 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
29865 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
29866 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
29867 gnatvsn.ads: Merge with ACT tree.
29869 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
29871 2003-10-20 Mark Mitchell <mark@codesourcery.com>
29873 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
29874 (gnat_ug_vmx.info): Likewise.
29875 (gnat_ug_vxw.info): Likewise.
29876 (gnat_ug_wnt.info): Likewise.
29877 (gnat_rm.info): Likewise.
29878 (gnat-style.info): Likewise.
29880 * Make-lang.in (ada.install-info): Remove target.
29881 (info): New target.
29882 (install-info): Likewise.
29883 (gnat_ug_unx.info): Simplify rule.
29884 (gnat_ug_vmx.info): Likewise.
29885 (gnat_ug_vxw.info): Likewise.
29886 (gnat_ug_wnt.info): Likewise.
29887 (gnat_rm.info): Likewise.
29888 (gnat-style.info): Likewise.
29890 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
29892 * Make-lang.in: Replace uses of $(target_alias) with
29893 $(target_noncanonical).
29894 * ada/Makefile.in: Remove unused mention of $(target_alias).
29896 2003-10-06 Mark Mitchell <mark@codesourcery.com>
29898 * Make-lang.in (ada.info): Replace with ...
29900 (ada.dvi): Replace with ...
29903 2003-09-29 Zack Weinberg <zack@codesourcery.com>
29905 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
29906 initialize dconstp5 and dconstmp5.
29908 2003-09-28 Richard Henderson <rth@redhat.com>
29910 * trans.c (tree_transform): Update call to expand_asm_operands.
29912 2003-09-21 Richard Henderson <rth@redhat.com>
29914 * trans.c, utils.c: Revert.
29916 2003-09-21 Richard Henderson <rth@redhat.com>
29918 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
29921 2003-09-04 Michael Matz <matz@suse.de>
29923 * misc.c: Include "target.h".
29924 * Make-lang.in (misc.o): Add dependency on target.h.
29926 2003-09-03 DJ Delorie <dj@redhat.com>
29928 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
29931 2003-08-30 Zack Weinberg <zack@codesourcery.com>
29933 * Makefile.in: Update substitutions to match changes to
29934 configure. Use include directives instead of @-insertions
29935 to read in host and target fragments. Add a rule to
29936 regenerate ada/Makefile.
29938 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
29940 * lang-options.h: Remove.
29941 * lang.opt: Add help text.
29943 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
29945 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
29948 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
29950 * misc.c (gnat_handle_option): Don't handle filenames.
29952 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
29954 * Make-lang.in: Replace PWD with PWD_COMMAND.
29955 * Makefile.adalib: Likewise.
29956 * Makefile.in: Likewise.
29958 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
29960 * misc.c (gnat_argv): Revert last change.
29961 (gnat_handle_option, gnat_init_options): Copy arguments.
29963 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
29965 * misc.c (gnat_argv): Make const.
29967 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
29969 * misc.c (save_argc, save_argv): Keep non-static!
29971 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
29973 * misc.c (save_argc, save_argv): Make static.
29974 (gnat_init_options): New prototype.
29975 (gnat_init_options): Update.
29977 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
29979 * gnat_ug.texi: Remove unlikely characters from @vars.
29980 * gnat_ug_vms.texi: Regenerate.
29982 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
29984 * misc.c (record_code_position): Adjust emit_note call.
29986 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
29988 * misc.c (gnat_handle_option): Don't check for missing arguments.
29990 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
29992 * utils.c (end_subprog_body): Adjust expand_function_end call.
29994 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
29996 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
29999 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
30001 * lang.opt: Declare Ada.
30002 * misc.c (gnat_init_options): Update.
30004 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
30006 * utils.c (begin_subprog_body): Adjust init_function_start call.
30008 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
30010 * Make-lang.in: Update to use options.c and options.h.
30011 * misc.c: Include options.h not aoptions.h.
30012 (gnat_handle_option): Abort on unrecognized switch.
30013 (gnat_init_options): Request Ada switches.
30015 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
30017 * lang.opt: Add -Wall.
30018 * misc.c (gnat_handle_option): Handle it.
30020 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
30022 * misc.c (gnat_handle_option): Fix warnings.
30024 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
30026 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
30028 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
30030 * Make-lang.in: Update to handle command-line options.
30031 * lang.opt: New file.
30032 * misc.c: Include aoptions.h.
30033 (cl_options_count, cl_options): Remove.
30034 (gnat_handle_option): New.
30035 (gnat_decode_option): Remove.
30036 (LANG_HOOKS_DECODE_OPTION): Remove.
30037 (LANG_HOOKS_HANDLE_OPTION): Override.
30039 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
30041 * init.c, misc.c, trans.c, utils.c: Remove dead code.
30043 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
30045 * Makefile.in: Replace "host_canonical" with "host" for autoconf
30048 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
30050 * Make-lang.in: Update.
30051 * misc.c: Include opts.h. Define cl_options_count and cl_options.
30053 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
30055 * misc.c (gnat_init_options): Update.
30057 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
30059 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
30060 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
30061 __attribute__ ((__unused__)).
30063 2003-06-05 Jan Hubicka <jh@suse.cz>
30065 * Make-lang.in: Add support for stageprofile and stagefeedback
30067 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
30069 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
30070 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
30072 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
30074 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
30075 Remove non-VMS directive.
30076 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
30078 (Examples of gnatls Usage): Remove VMS alternative.
30080 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
30083 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
30084 and turn ZCX_By_Default back to False since the underlying support
30085 is not quite there yet.
30087 2003-06-01 Andreas Jaeger <aj@suse.de>
30089 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
30090 and ROUND_TYPE_SIZE_UNIT.
30092 2003-05-22 Geert Bosch <bosch@gnat.com>
30094 * gnat_rm.texi : Remove reference to Ada Core Technologies.
30096 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
30098 * trans.c (tree_transform): Use location_t and input_location
30100 (build_unit_elab): Likewise.
30101 * utils.c (create_label_decl): Likewise.
30103 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
30105 * trans.c (tree_transform, build_unit_elab,
30106 set_lineno): Rename lineno to input_line.
30107 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
30108 end_subprog_body): Likewise.
30109 * utils2.c (build_call_raise): Likewise.
30111 2003-05-01 Laurent Guerby <guerby@acm.org>
30114 * 5iosinte.ads: Increase pthread_cond_t size to match recent
30115 LinuxThread and NPTL version, merge from ACT.
30117 2003-04-28 Zack Weinberg <zack@codesourcery.com>
30119 * utils.c (convert): No need to clear TREE_CST_RTL.
30121 2003-04-23 Geert Bosch <bosch@gnat.com>
30123 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
30124 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
30125 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
30126 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
30127 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
30128 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
30129 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
30130 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
30131 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
30132 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
30133 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
30134 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
30135 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
30136 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
30137 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
30138 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
30139 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
30140 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
30141 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
30142 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
30143 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
30144 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
30145 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
30146 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
30147 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
30148 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
30149 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
30150 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
30151 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
30152 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
30153 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
30154 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
30155 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
30156 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
30157 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
30158 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
30159 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
30160 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
30161 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
30162 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
30163 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
30164 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
30165 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
30166 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
30167 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
30168 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
30169 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
30170 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
30171 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
30172 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
30173 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
30174 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
30175 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
30176 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
30177 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
30178 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
30179 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
30180 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
30181 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
30182 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
30183 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
30184 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
30185 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
30186 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
30187 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
30188 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
30189 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
30190 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
30191 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
30192 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
30193 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
30194 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
30195 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
30196 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
30197 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
30198 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
30199 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
30200 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
30201 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
30202 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
30203 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
30204 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
30205 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
30206 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
30207 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
30208 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
30209 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
30210 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
30211 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
30212 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
30213 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
30214 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
30215 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
30216 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
30217 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
30218 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
30219 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
30220 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
30221 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
30222 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
30223 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
30224 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
30225 ali.adb, ali.ads, alloc.ads, argv.c,
30226 atree.adb, atree.ads, atree.h, aux-io.c,
30227 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
30228 binde.adb, binde.ads, binderr.adb, binderr.ads,
30229 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
30230 butil.adb, butil.ads, cal.c, calendar.ads,
30231 casing.adb, casing.ads, ceinfo.adb, checks.adb,
30232 checks.ads, cio.c, comperr.adb, comperr.ads,
30233 config-lang.in, csets.adb, csets.ads, csinfo.adb,
30234 cstand.adb, cstand.ads, cuintp.c, debug.adb,
30235 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
30236 dec-io.ads, dec.ads, deftarg.c, directio.ads,
30237 einfo.adb, einfo.ads, elists.adb, elists.ads,
30238 elists.h, errno.c, errout.adb, errout.ads,
30239 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
30240 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
30241 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
30242 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
30243 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
30244 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
30245 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
30246 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
30247 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
30248 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
30249 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
30250 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
30251 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
30252 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
30253 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
30254 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
30255 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
30256 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
30257 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
30258 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
30259 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
30260 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
30261 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
30262 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
30263 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
30264 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
30265 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
30266 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
30267 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
30268 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
30269 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
30270 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
30271 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
30272 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
30273 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
30274 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
30275 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
30276 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
30277 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
30278 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
30279 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
30280 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
30281 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
30282 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
30283 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
30284 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
30285 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
30286 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
30287 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
30288 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
30289 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
30290 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
30291 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
30292 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
30293 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
30294 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
30295 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
30296 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
30297 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
30298 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
30299 lib.adb, lib.ads, live.adb, live.ads,
30300 machcode.ads, make.adb, make.ads, makeusg.adb,
30301 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
30302 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
30303 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
30304 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
30305 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
30306 mlib.ads, namet.adb, namet.ads, nlists.adb,
30307 nlists.ads, opt.adb, opt.ads, osint-b.adb,
30308 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
30309 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
30310 osint.ads, output.adb, output.ads, par-ch10.adb,
30311 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
30312 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
30313 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
30314 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
30315 par-tchk.adb, par-util.adb, par.adb, par.ads,
30316 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
30317 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
30318 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
30319 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
30320 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
30321 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
30322 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
30323 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
30324 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
30325 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
30326 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
30327 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
30328 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
30329 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
30330 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
30331 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
30332 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
30333 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
30334 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
30335 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
30336 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
30337 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
30338 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
30339 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
30340 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
30341 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
30342 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
30343 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
30344 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
30345 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
30346 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
30347 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
30348 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
30349 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
30350 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
30351 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
30352 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
30353 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
30354 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
30355 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
30356 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
30357 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
30358 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
30359 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
30360 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
30361 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
30362 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
30363 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
30364 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
30365 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
30366 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
30367 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
30368 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
30369 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
30370 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
30371 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
30372 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
30373 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
30374 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
30375 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
30376 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
30377 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
30378 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
30379 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
30380 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
30381 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
30382 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
30383 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
30384 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
30385 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
30386 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
30387 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
30388 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
30389 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
30390 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
30391 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
30392 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
30393 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
30394 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
30395 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
30396 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
30397 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
30398 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
30399 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
30400 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
30401 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
30402 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
30403 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
30404 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
30405 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
30406 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
30407 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
30408 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
30409 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
30410 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
30411 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
30412 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
30413 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
30414 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
30415 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
30416 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
30417 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
30418 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
30419 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
30420 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
30421 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
30422 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
30423 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
30424 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
30425 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
30426 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
30427 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
30428 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
30429 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
30430 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
30431 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
30432 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
30433 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
30434 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
30435 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
30436 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
30437 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
30438 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
30439 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
30440 snames.ads, sprint.adb, sprint.ads, stand.adb,
30441 stand.ads, stringt.adb, stringt.ads, style.adb,
30442 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
30443 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
30444 switch-m.ads, switch.adb, switch.ads, system.ads,
30445 table.adb, table.ads, targparm.adb, targparm.ads,
30446 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
30447 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
30448 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
30449 ttypef.ads, ttypes.ads, types.adb, types.ads,
30450 uintp.adb, uintp.ads, uname.adb, uname.ads,
30451 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
30452 usage.adb, usage.ads, validsw.adb, validsw.ads,
30453 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
30454 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
30455 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
30456 formatting and other trivial changes from ACT.
30458 2003-04-12 Zack Weinberg <zack@codesourcery.com>
30460 * gigi.h, utils2.c (build_constructor):
30461 Rename gnat_build_constructor. Use build_constructor.
30462 * decl.c (gnat_to_gnu_entity)
30463 * trans.c (tree_transform, pos_to_constructor, extract_values)
30464 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
30465 (unchecked_convert)
30466 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
30467 (fill_vms_descriptor):
30470 2003-04-06 Zack Weinberg <zack@codesourcery.com>
30472 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
30473 * misc.c (gnat_tree_size): New function.
30474 (LANG_HOOKS_TREE_SIZE): Override.
30476 2003-04-03 Jason Merrill <jason@redhat.com>
30478 * misc.c (gnat_adjust_rli): #if 0.
30480 2003-03-31 Geert Bosch <bosch@gnat.com>
30483 * link.c : Fix misspelled "const" keyword
30485 2003-03-23 Mark Mitchell <mark@codesourcery.com>
30488 * utils2.c: Adjust calls to put_var_into_stack.
30490 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
30492 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
30494 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
30496 * misc.c (gnat_init): Update for new prototype.
30498 2003-03-05 Olivier Hainque <hainque@gnat.com>
30501 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
30502 warning, and fix return type for the IN_RTS && !SJLJ case.
30504 2003-03-04 Tom Tromey <tromey@redhat.com>
30506 * Make-lang.in (ada.tags): New target.
30508 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
30511 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
30512 wrapper, which name remains constant whatever underlying GCC
30515 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
30516 the stable interface needed for a-except.
30518 2003-03-02 Andreas Jaeger <aj@suse.de>
30520 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30521 gnat_ug_wnt.texi: Regenerate.
30523 2003-03-02 Laurent Guerby <guerby@acm.org>
30525 * Makefile.in (install-gnatlib): Match previous change there
30528 2003-02-28 Andreas Schwab <schwab@suse.de>
30530 * Make-lang.in (install-gnatlib): Change to ada directory before
30531 running make instead of using ada/Makefile directly.
30533 2003-02-18 Ben Elliston <bje@redhat.com>
30535 Part of PR ada/9406
30536 * gnat_ug.texi (Binder output file): Grammar fix.
30538 2003-02-18 Ben Elliston <bje@redhat.com>
30541 * 5qtaprop.adb (Sleep): Fix typo in comment.
30543 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
30545 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
30546 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30547 gnat_ug_wnt.texi: Regenerate.
30549 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
30551 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
30552 be created if necessary.
30553 (ada.install-common): Let $(DESTDIR)$(bindir) be created
30554 if necessary. Remove erroneous and redundant gnatchop
30555 installation commands. Test for gnatdll before attempting
30557 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
30558 and gnatdll from all plausible locations.
30560 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
30562 * utils2.c (build_unary_op): Don't check flag_volatile.
30563 * gnat_ug.texi: Remove -fvolatile from example.
30564 * gnat_ug_vxw.texi: Likewise.
30566 2003-01-29 Laurent Guerby <guerby@acm.org>
30569 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
30570 * Makefile.in: match previous change.
30571 * Make-lang.in: match previous change.
30573 2003-01-29 Joel Sherrill <joel@OARcorp.com>
30575 * 5rosinte.ads: Add SIGXCPU.
30576 * 5rtpopsp.adb: New file.
30577 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
30578 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
30579 specific file 5rtpopsp.adb.
30580 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
30581 is likely needed for all newlib targets.
30582 * init.c: Add RTEMS specific version of __gnat_initialize().
30584 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30586 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
30588 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30590 * init.c (__gnat_error_handler): Make msg const.
30592 * gmem.c (convert_addresses): Move declaration ...
30593 * adaint.h: ... here.
30594 * adaint.c (convert_addresses): Adapt addrs type to match
30597 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
30599 2003-01-24 Andreas Schwab <schwab@suse.de>
30601 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
30602 size_t to avoid warning.
30604 2003-01-21 Zack Weinberg <zack@codesourcery.com>
30606 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
30608 2003-01-09 Geoffrey Keating <geoffk@apple.com>
30610 * gnat_rm.texi: Remove RCS version number.
30612 * ada-tree.h (union lang_tree_node): Add chain_next option.
30614 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
30616 * Make-lang.in (ada.install-info, ada.install-common,
30617 ada.uninstall): Prepend $(DESTDIR) to the destination
30618 directory in all (un)installation commands.
30619 * Makefile.in (install-gnatlib, install-rts): Ditto.
30621 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
30623 * gnat_rm.texi, gnat_ug.texi: Use @copying.
30624 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30625 gnat_ug_wnt.texi: Regenerate.
30627 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
30629 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
30631 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
30632 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
30633 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
30634 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
30635 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
30636 $(srcdir)/doc/include/gcc-common.texi.
30638 2002-12-15 Geert Bosch <bosch@gnat.com>
30640 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
30642 2002-12-14 Geert Bosch <bosch@gnat.com>
30645 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
30646 case of a body created for a Renaming_As_Body, on which
30647 conformance checks are not performed.
30649 2002-11-30 Zack Weinberg <zack@codesourcery.com>
30651 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
30652 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
30653 not already included.
30654 * Make-lang.in: Update dependencies.
30656 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
30657 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
30658 solution to buffer overflow bug on GNU/Linux.
30660 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
30664 * bindgen.adb: Remove all references to Public_Version.
30665 * comperr.adb: Remove all references to Public_Version and
30666 GNATPRO_Version; correct bug reporting instructions.
30667 * comperr.ads: Change to match bug box.
30668 * gnatvsn.ads: Remove all references to Public version and
30671 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
30674 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
30678 * config-lang.in: Remove diff_excludes.
30680 2002-11-05 Graham Stott <graham.stott@btinternet.com>
30683 * trans.c (gnu_pending_elaboration_lists): New GC root.
30684 (build_unit_elab): Use..
30686 2002-10-30 Geert Bosch <bosch@gnat.com>
30689 * misc.c : Include optabs.h
30691 * Make-lang.in (misc.o): Add dependency on optabs.h
30693 2002-10-29 Geert Bosch <bosch@gnat.com>
30696 * Make-lang.in (gnatbind): Depend on CONFIG_H
30698 2002-10-29 Geert bosch <bosch@gnat.com>
30701 * misc.c: Unrevert misc.c (1.13)
30703 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
30705 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
30706 maintainership comments.
30708 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
30711 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
30712 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
30713 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
30714 7staprop.adb: Correct statements in comments about
30715 maintainership of GNAT.
30718 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
30719 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
30720 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
30721 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
30722 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
30723 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
30724 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
30725 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
30726 comments about maintainership of GNAT.
30728 PR ada/6919 (forward port of patch for PR ada/5904)
30729 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
30730 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
30731 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
30732 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
30733 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
30734 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
30735 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
30736 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
30737 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
30738 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
30739 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
30740 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
30741 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
30742 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
30743 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
30744 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
30745 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
30746 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
30747 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
30748 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
30749 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
30750 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
30751 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
30752 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
30753 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
30754 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
30755 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
30756 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
30757 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
30758 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
30759 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
30760 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
30761 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
30762 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
30763 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
30764 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
30765 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
30766 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
30767 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
30768 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
30769 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
30770 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
30771 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
30772 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
30773 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
30774 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
30775 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
30776 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
30777 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
30778 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
30779 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
30780 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
30781 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
30782 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
30783 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
30784 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
30785 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
30786 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
30787 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
30788 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
30789 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
30790 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
30791 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
30792 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
30793 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
30794 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
30795 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
30796 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
30797 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
30798 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
30799 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
30800 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
30801 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
30802 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
30803 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
30804 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
30805 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
30806 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
30807 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
30808 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
30809 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
30810 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
30811 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
30812 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
30813 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
30814 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
30815 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
30816 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
30817 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
30818 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
30819 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
30820 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
30821 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
30822 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
30823 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
30824 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
30825 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
30826 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
30827 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
30828 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
30829 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
30830 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
30831 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
30832 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
30833 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
30834 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
30835 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
30836 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
30837 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
30838 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
30839 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
30840 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
30841 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
30842 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
30843 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
30844 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
30845 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
30846 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
30847 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
30848 par-endh.adb par-labl.adb par-load.adb par-prag.adb
30849 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
30850 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
30851 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
30852 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
30853 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
30854 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
30855 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
30856 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
30857 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
30858 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
30859 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
30860 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
30861 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
30862 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
30863 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
30864 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
30865 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
30866 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
30867 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
30868 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
30869 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
30870 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
30871 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
30872 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
30873 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
30874 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
30875 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
30876 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
30877 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
30878 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
30879 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
30880 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
30881 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
30882 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
30883 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
30884 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
30885 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
30886 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
30887 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
30888 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
30889 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
30890 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
30891 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
30892 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
30893 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
30894 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
30895 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
30896 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
30897 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
30898 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
30899 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
30900 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
30901 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
30902 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
30903 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
30904 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
30905 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
30906 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
30907 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
30908 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
30909 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
30910 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
30911 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
30912 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
30913 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
30914 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
30915 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
30916 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
30917 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
30918 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
30919 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
30920 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
30921 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
30922 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
30923 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
30924 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
30925 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
30926 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
30927 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
30928 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
30929 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
30930 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
30931 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
30932 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
30933 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
30934 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
30935 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
30936 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
30937 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
30938 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
30939 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
30940 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
30941 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
30942 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
30943 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
30944 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
30945 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
30946 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
30947 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
30948 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
30949 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
30950 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
30951 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
30952 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
30953 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
30954 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
30955 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
30956 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
30957 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
30958 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
30959 stringt.ads stringt.h style.adb style.ads stylesw.adb
30960 stylesw.ads switch.adb switch.ads sysdep.c system.ads
30961 table.adb table.ads targparm.adb targparm.ads targtyps.c
30962 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
30963 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
30964 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
30965 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
30966 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
30967 usage.ads utils.c utils2.c validsw.adb validsw.ads
30968 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
30969 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
30970 xtreeprs.adb: Correct statements in comments about maintainership
30973 2002-09-23 Zack Weinberg <zack@codesourcery.com>
30975 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
30976 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
30977 * gnatvsn.ads: Gnat_Version_String is now a function.
30978 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
30979 copy the C version_string into a String and return it.
30980 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
30981 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
30982 Remove pragma Ident (Gnat_Version_String). If this was the
30983 sole use of package Gnatvsn, remove the with statement too.
30984 * gnat1drv.adb: Tweak -gnatv output.
30986 2002-09-17 Richard Henderson <rth@redhat.com>
30988 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
30989 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
30990 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
30991 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
30992 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
30993 and real_2expN instead of a loop.
30994 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
30995 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
30997 2002-08-25 Andre Leis <a.leis@gmx.net>
30998 David Billinghurst (David.Billinghurst@riotinto.com>
31000 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
31002 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31004 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
31005 Remove $(CONFIG_H) dependency.
31007 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
31009 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
31011 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31013 * adadecode.c (ada_demangle): Use xstrdup in lieu of
31015 * misc.c (gnat_decode_option): Likewise.
31017 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
31019 * make.adb (Add_Switch): Make Generic_Position a procedure. The
31020 function approach did not work well because of a side effect (the
31021 function call could reallocate the table which was being indexed
31022 using its result). Fixes ada/4851. [RESURRECTED]
31024 2002-07-01 Roger Sayle <roger@eyesopen.com>
31026 * ada/utils.c (builtin_function): Accept an additional parameter.
31028 2002-06-28 Andreas Jaeger <aj@suse.de>
31031 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
31034 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31036 * Makefile.in (SHELL): Set to @SHELL@.
31038 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31040 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
31041 array size calculation.
31043 2002-06-04 Andreas Jaeger <aj@suse.de>
31045 * Make-lang.in (gnatbind): Readd rule that has been lost in last
31048 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
31050 Merge from pch-branch:
31052 * config-lang.in (gtfiles): Add ada-tree.h.
31053 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
31054 (SET_TYPE_MODULUS): New.
31055 (SET_TYPE_INDEX): New.
31056 (SET_TYPE_DIGITS_VALUE): New.
31057 (SET_TYPE_RM_SIZE): New.
31058 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
31059 (SET_TYPE_ADA_SIZE): New.
31060 (SET_TYPE_ACTUAL_BOUNDS): New.
31061 (SET_DECL_CONST_CORRESPONDING_VAR): New.
31062 (SET_DECL_ORIGINAL_FIELD): New.
31063 (TREE_LOOP_ID): Correct typo.
31064 * decl.c: Use new macros.
31065 * utils.c: Include debug.h, use new macros.
31066 * utils2.c: Use new macros.
31068 * ada-tree.h: Update all macros for new tree description.
31069 (struct tree_loop_id): New.
31070 (union lang_tree_node): New.
31071 (struct lang_decl): New.
31072 (struct lang_type): New.
31073 * misc.c (gnat_mark_tree): Delete.
31074 (LANG_HOOKS_MARK_TREE): Delete.
31075 * trans.c (tree_transform): No longer any need to cast
31078 * utils.c (struct language_function): New dummy structure.
31080 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
31081 (misc.o): Likewise.
31082 (utils.o): Likewise; also gtype-ada.h.
31083 * Make-lang.in (gnat1): Add dependency on s-gtype.
31084 (gnatbind): Add dependency on $(CONFIG_H).
31085 * utils.c: Correct last #include.
31086 (stuct e_stack): Remove unnecessary 'static'.
31087 (mark_e_stack): Remove unused prototype.
31089 * scn-nlit.adb: Remove whitespace after version number to
31090 keep lines under 80 chars.
31091 * snames.adb: Likewise.
31092 * treepr.ads: Likewise.
31094 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
31095 (misc.o): Likewise.
31096 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
31097 * config-lang.in (gtfiles): New.
31098 * decl.c: Use gengtype for roots.
31099 * gigi.h: Use gengtype for roots.
31100 * trans.c: Use gengtype for roots.
31101 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
31103 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
31105 * misc.c (gnat_init): Adjust setting of internal_error_function.
31107 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
31109 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
31110 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31111 gnat_ug_wnt.texi: Regenerate.
31113 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
31115 * 5ntaprop.adb (with System.OS_Primitives): Remove.
31117 * cstreams.c (max_path_len): Move from here ...
31118 * adaint.c (__gnat_max_path_len): ... to here.
31119 * adaint.c (__gnat_max_path_len): Declare.
31120 * g-dirope.adb (Max_Path): Adjust.
31121 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
31122 * i-cstrea.ads (max_path_len): Adjust.
31123 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
31124 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
31126 * Makefile.in, Make-lang.in: Documentation is now built in
31127 Make-lang.in. Store Info and generated Texinfo files in the
31129 * gnat_ug.texi: Remove CVS keywords, correct version number.
31130 Set file name correctly.
31132 * gnat_ug_*.texi: Add.
31133 * .cvsignore: Ignore generated Texinfo files.
31135 2002-05-30 Zack Weinberg <zack@codesourcery.com>
31137 * ada.h: Add MI guard macro.
31138 (SUBTYPE): Define constants with an anonymous enum, not static
31140 (IN): Cast constants to appropriate type before use.
31142 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
31144 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
31147 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31149 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
31150 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
31151 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
31152 (ALL_ADA_CFLAGS): Likewise.
31153 (ADA_INCLUDES): Likewise.
31154 Adapt for new working dir.
31155 (GNATBIND): Use Makefile.in version.
31156 (.SUFFIXES): Copy from Makefile.in.
31157 (ada-warn): Define.
31158 (.adb.o, .ads.o): Copy from Makefile.in.
31159 Added $(OUTPUT_OPTION).
31160 (GNAT1_C_OBJS): Moved from Makefile.in.
31161 Prefix with ada subdir.
31162 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
31163 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
31164 Adapt for new working dir.
31165 (EXTRA_GNATBIND_OBJS): Likewise.
31166 (ADA_BACKEND): Moved from Makefile.in.
31167 Renamed to avoid conflict with global BACKEND.
31169 (TARGET_ADA_SRCS): Moved from Makefile.in.
31170 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
31172 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
31173 (ada_extra_files): Moved from Makefile.in.
31174 Prefix with ada subdir.
31175 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
31176 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
31177 (ada/nmake.ads): Likewise.
31178 (update-sources): Moved from Makefile.in.
31179 Prefix with ada subdir.
31180 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
31181 (ADA_TREE_H): Likewise.
31182 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
31183 (ada/memtrack.o): Likewise.
31184 (ada/adadecode.o): Likewise.
31185 Update dependencies.
31186 (ada/adaint.o): New.
31187 (ada/argv.o): Moved from Makefile.in.
31188 Prefix with ada subdir.
31189 Update dependencies.
31190 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
31191 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
31192 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
31193 Prefix with ada subdir.
31194 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
31195 (GNAT DEPENDENCIES): Regenerate.
31196 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
31197 toplevel Makefile.in.
31198 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
31199 (TARGET_ADA_SRCS): Removed.
31200 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
31201 (GNATBIND_OBJS): Likewise.
31202 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
31203 (BACKEND): Removed.
31204 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
31205 (TREE_H): Likewise.
31206 (ada_extra_files): Likewise.
31207 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
31208 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
31209 (update-sources): Likewise.
31210 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
31211 (ADA_TREE_H): Likewise.
31212 (adadecoce.o): Likewise.
31213 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
31214 (GNAT DEPENDENCIES): Likewise.
31216 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31218 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
31219 * Makefile.in: Likewise.
31221 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31223 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
31224 Restore $(CONFIG_H) and prefix.o dependencies.
31225 (ada.stage[1-4]): Depend on stage?-start.
31227 * Makefile.in (b_gnatb.c): Depend on interfac.o.
31229 2002-05-02 Jim Wilson <wilson@redhat.com>
31231 * utils.c (finish_record_type): Change record_size to record_type.
31233 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
31235 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
31236 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
31237 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
31239 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
31241 * misc.c (gnat_parse_file): Update.
31243 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
31245 * misc.c (gnat_init): Don't set lang_attribute_common.
31247 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
31249 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
31251 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
31253 * gnat_ug.texi: New file.
31255 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
31256 instead of gfdl.texi
31258 * xgnatug.adb, ug_words: New files.
31260 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
31261 gnat_rm and gnat-style manuals.
31263 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
31265 * gigi.h (incomplete_type_error): Remove.
31266 * utils.c (incomplete_type_error): Remove.
31268 2002-04-16 Mark Mitchell <mark@codesourcery.com>
31270 * trans.c (tree_transform): Add has_scope argument to
31271 expand_start_stmt_expr.
31273 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
31275 * gigi.h (truthvalue_conversion): Rename.
31276 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
31277 * trans.c (tree_transform): Update.
31278 * utils2.c (truthvalue_conversion): Rename, update.
31279 (build_binary_op, build_unary_op): Update.
31281 2002-04-04 Laurent Guerby <guerby@acm.org>
31283 * make.adb: Implement -margs, remove restriction about file name placement.
31284 * makeusg.adb: Documentation update.
31285 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
31286 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
31288 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
31290 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
31291 (builtin_function): Similarly.
31293 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
31295 * decl.c (gnat_to_gnu_entity): Update.
31296 * gigi.h (mark_addressable): Rename.
31297 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
31298 * trans.c (tree_transform): Update.
31299 * utils.c (create_var_decl): Update.
31300 * util2.c (build_binary_op, build_unary_op,
31301 fill_vms_descriptor): Update.
31302 (mark_addressable): Rename, update.
31304 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
31306 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
31308 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
31309 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
31310 * trans.c (tree_transform, convert_with_check): Update.
31311 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
31314 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
31316 * gigi.h (finish_incomplete_decl): Rename.
31317 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
31318 * utils.c (gnat_init_decl_processing): Don't set hook.
31319 (finish_incomplete_decl): Rename.
31321 2002-03-29 Andreas Schwab <schwab@suse.de>
31323 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
31326 2001-03-28 Robert Dewar <dewar@gnat.com>
31329 (Remove_Checks): New procedure
31332 (Remove_Checks): New procedure
31335 Use new Duplicate_Subexpr functions
31336 (Duplicate_Subexpr_No_Checks): New procedure
31337 (Duplicate_Subexpr_No_Checks_Orig): New procedure
31338 (Duplicate_Subexpr): Restore original form (checks duplicated)
31339 (Duplicate_Subexpr): Call Remove_Checks
31342 (Duplicate_Subexpr_No_Checks): New procedure
31343 (Duplicate_Subexpr_No_Checks_Orig): New procedure
31344 Add 2002 to copyright notice
31346 * sem_util.adb: Use new Duplicate_Subexpr functions
31349 (Eval_Indexed_Component): This is the place to call
31350 Constant_Array_Ref and to replace the value. We simply merge
31351 the code of this function in here, since it is now no longer
31352 used elsewhere. This fixes the problem of the back end not
31353 realizing we were clever enough to see that this was
31355 (Expr_Val): Remove call to Constant_Array_Ref
31356 (Expr_Rep_Val): Remove call to Constant_Array_Ref
31358 (Constant_Array_Ref): Deal with string literals (patch
31359 suggested by Zack Weinberg on the gcc list)
31361 2001-03-28 Ed Schonberg <schonber@gnat.com>
31363 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
31364 Duplicate_Subexpr_Move_Checks.
31366 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
31367 Duplicate_Subexpr_Move_Checks.
31369 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
31370 value of array exists before retrieving it (it may a private
31371 protected component in a function).
31373 2002-03-28 Geert Bosch <bosch@gnat.com>
31375 * prj-pp.adb : New file.
31377 * prj-pp.ads : New file.
31379 2002-03-28 Andreas Jaeger <aj@suse.de>
31381 * Makefile.in (stamp-sdefault): Fix path for Makefile.
31383 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
31385 * misc.c (gnat_expand_expr): Move prototype.
31387 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
31389 * misc.c (insert_default_attributes): Remove.
31391 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
31393 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
31394 (gnat_init): Don't set hook.
31395 (gnat_expand_expr): Fix prototype.
31397 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
31399 * misc.c (ggc_p): Remove.
31401 2002-03-27 Geert Bosch <bosch@gnat.com>
31403 * prj-makr.ads, prj-makr.adb : New files.
31405 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
31407 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
31408 (lang_mark_tree): Make static, rename.
31410 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
31412 * misc.c (maybe_build_cleanup): Remove.
31414 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
31416 * gigi.h (yyparse): Remove.
31418 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
31420 * gnat_rm.texi: Sync with ACT version.
31421 (From Ben Brosgol <brosgol@gnat.com>)
31423 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
31425 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
31426 (gnat_init): Remove old hook.
31428 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
31430 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
31431 (yyparse): Rename gnat_parse_file.
31433 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
31435 Delete all lines containing "$Revision:".
31436 * xeinfo.adb: Don't look for revision numbers.
31437 * xnmake.adb: Likewise.
31438 * xsinfo.adb: Likewise.
31439 * xsnames.adb: Likewise.
31440 * xtreeprs.adb: Likewise.
31442 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31444 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
31445 gnat_tree_code_name): Delete.
31446 (tree_code_type, tree_code_length, tree_code_name): Define.
31447 (gnat_init): Don't try to copy into the various tree_code
31450 2002-03-11 Richard Henderson <rth@redhat.com>
31452 * Makefile.in (.NOTPARALLEL): Add fake tag.
31454 2002-03-07 Geert Bosch <bosch@gnat.com>
31456 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
31457 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
31458 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
31459 switch-m.adb, switch-m.ads : New files.
31461 2002-03-07 Geert Bosch <bosch@gnat.com>
31463 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
31464 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
31465 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
31466 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
31467 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
31468 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
31469 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
31470 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
31471 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
31472 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
31473 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
31474 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
31475 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
31476 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
31477 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
31478 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
31479 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
31480 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
31481 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
31482 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
31483 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
31484 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
31485 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
31486 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
31487 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
31488 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
31489 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
31490 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
31491 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
31492 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
31493 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
31494 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
31495 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
31496 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
31497 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
31498 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
31499 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
31500 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
31501 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
31502 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
31503 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
31504 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
31505 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
31506 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
31507 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
31508 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
31509 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
31510 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
31511 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
31512 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
31513 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
31514 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
31515 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
31516 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
31517 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
31518 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
31519 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
31520 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
31521 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
31522 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
31523 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
31524 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
31525 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
31526 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
31527 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
31528 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
31529 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
31530 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
31531 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
31532 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
31533 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
31534 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
31535 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
31536 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
31537 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
31538 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
31539 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
31540 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
31541 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
31542 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
31543 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
31544 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
31545 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
31546 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
31547 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
31548 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
31549 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
31550 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
31551 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
31552 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
31553 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
31554 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
31555 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
31556 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
31557 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
31558 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
31559 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
31561 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
31562 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
31563 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
31564 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
31566 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
31567 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
31569 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
31570 to mdll-fil.ad[bs] and mdll-util.ad[bs]
31572 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
31573 from mdllfile.ad[bs] and mdlltool.ad[bs]
31575 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31577 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
31578 lieu of explicit sizeof/sizeof.
31580 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
31582 * misc.c (copy_lang_decl): Remove.
31584 2002-02-27 Zack Weinberg <zack@codesourcery.com>
31586 * misc.c: Delete traditional-mode-related code copied from the
31587 C front end but not used, or used only to permit the compiler
31590 2002-02-07 Richard Henderson <rth@redhat.com>
31592 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
31593 * adaint.h (__gnat_to_gm_time): Update prototype.
31595 2002-01-30 Richard Henderson <rth@redhat.com>
31597 * trans.c (tree_transform) [N_Loop_Statement]: Use
31598 expand_exit_loop_top_cond.
31600 2001-12-23 Richard Henderson <rth@redhat.com>
31602 * utils.c (end_subprog_body): Push GC context around
31603 rest_of_compilation for nested functions.
31605 2001-12-23 Richard Henderson <rth@redhat.com>
31607 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
31609 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
31611 * gnat-style.texi (Declarations and Types): Remove ancient style
31612 rule which was mandated by code generation issues.
31614 * gnat-style.texi (header): Add @dircategory, @direntry.
31615 (title page): Remove date.
31616 (general) Add @./@: where approriate, and two spaces after the
31617 full stop at the end of a sentence. Use @samp markup when
31618 referring concrete lexical entities (keywords, attribute names
31619 etc.), and @syntax for ARM grammar elements. Use @r for English
31620 text in comments. Use @emph for emphasis. Change "if-statements"
31621 etc. to "if statements" (without @samp). Break long lines. Make
31622 casing of section names consistent.
31623 (Identifiers): Use @samp markup for variable names.
31624 (Comments): Use @samp markup for comment characters. Line-end
31625 comments may follow any Ada code, not just statements. Fix
31626 misspelling of "Integer" as "integer".
31627 (Loop statements): Do not use variable name "I", use "J".
31628 (Subprogram Declarations): Document alignment.
31629 (Subprogram Bodies, Block statements): Document empty line before
31632 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
31634 * make.adb (Add_Switch): Make Generic_Position a procedure. The
31635 function approach did not work well because of a side effect (the
31636 function call could reallocate the table which was being indexed
31637 using its result). Fixes ada/4851.
31639 2001-12-19 Robert Dewar <dewar@gnat.com>
31641 * bindgen.adb: Minor reformatting
31643 * cstand.adb: Minor reformatting
31645 * fmap.adb: Minor reformatting
31646 Change name from Add for Add_To_File_Map (Add is much too generic)
31647 Change Path_Name_Of to Mapped_Path_Name
31648 Change File_Name_Of to Mapped_File_Name
31649 Fix copyright dates in header
31652 Change name from Add for Add_To_File_Map (Add is much too generic)
31653 Change Path_Name_Of to Mapped_Path_Name
31654 Change File_Name_Of to Mapped_File_Name
31655 Fix copyright dates in header
31657 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
31658 Add use clause for Fmap.
31660 * make.adb: Minor reformatting
31662 * osint.adb: Minor reformatting. Change of names in Fmap.
31663 Add use clause for Fmap.
31665 * prj-env.adb: Minor reformatting
31667 * prj-env.ads: Minor reformatting
31669 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
31670 error found (there were odd exceptions to this general rule in
31671 -gnatec/-gnatem processing)
31673 2001-12-19 Olivier Hainque <hainque@gnat.com>
31675 * raise.c (__gnat_eh_personality): Exception handling personality
31676 routine for Ada. Still in rough state, inspired from the C++ version
31677 and still containing a bunch of debugging artifacts.
31678 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
31679 inspired from the C++ library.
31681 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
31682 exception handling integration.
31684 2001-12-19 Arnaud Charlet <charlet@gnat.com>
31686 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
31687 (HIE_SOURCES): Add s-secsta.ad{s,b}.
31688 (HIE_OBJS): Add s-fat*.o
31689 (RAVEN_SOURCES): Remove files that are no longer required. Add
31690 interrupt handling files.
31691 (RAVEN_MOD): Removed, no longer needed.
31693 2001-12-19 Robert Dewar <dewar@gnat.com>
31695 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
31696 Add 2001 to copyright date
31698 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
31699 need to force universal inlining for these cases.
31701 2001-12-19 Arnaud Charlet <charlet@gnat.com>
31703 * s-taprob.adb: Minor clean ups so that this unit can be used in
31706 * exp_ch7.adb: Allow use of secondary stack in HI mode.
31707 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
31709 2001-12-19 Vincent Celier <celier@gnat.com>
31711 * prj-tree.ads (Project_Node_Record): Add comments for components
31712 Pkg_Id and Case_Insensitive.
31714 2001-12-19 Pascal Obry <obry@gnat.com>
31716 * g-socket.adb: Minor reformatting. Found while reading code.
31718 2001-12-19 Robert Dewar <dewar@gnat.com>
31720 * prj-tree.ads: Minor reformatting
31722 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
31724 * config-lang.in (diff_excludes): Remove.
31726 2001-12-17 Ed Schonberg <schonber@gnat.com>
31728 * sem_res.adb (Resolve_Selected_Component): do not generate a
31729 discriminant check if the selected component is a component of
31730 the argument of an initialization procedure.
31732 * trans.c (tree_transform, case of arithmetic operators): If result
31733 type is private, the gnu_type is the base type of the full view,
31734 given that the full view itself may be a subtype.
31736 2001-12-17 Robert Dewar <dewar@gnat.com>
31738 * sem_res.adb: Minor reformatting
31740 * trans.c (tree_transform, case N_Real_Literal): Add missing third
31741 parameter in call to Machine (unknown horrible effects from this
31744 * urealp.h: Add definition of Round_Even for call to Machine
31745 Add third parameter for Machine
31747 2001-12-17 Ed Schonberg <schonber@gnat.com>
31749 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
31750 predefined units in No_Run_Time mode.
31752 2001-12-17 Richard Kenner <kenner@gnat.com>
31754 * misc.c (insn-codes.h): Now include.
31756 2001-12-17 Olivier Hainque <hainque@gnat.com>
31758 * a-except.adb: Preparation work for future integration of the GCC 3
31759 exception handling mechanism
31760 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
31761 to factorize previous code sequences and make them externally callable,
31762 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
31763 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
31764 Use the new notification routines.
31766 2001-12-17 Emmanuel Briot <briot@gnat.com>
31768 * prj-tree.ads (First_Choice_Of): Document the when others case
31770 2001-12-17 Arnaud Charlet <charlet@gnat.com>
31772 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
31773 HI-E mode, in order to support Ravenscar profile properly.
31775 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
31776 mode on 32 bits targets.
31778 2001-12-17 Vincent Celier <celier@gnat.com>
31780 * fmap.adb: Initial version.
31782 * fmap.ads: Initial version.
31784 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
31785 If search is successfully done, add to mapping.
31787 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
31790 (Gnatmake): Add new local variable Mapping_File_Name.
31791 Create mapping file when using project file(s).
31792 Delete mapping file before exiting.
31794 * opt.ads (Mapping_File_Name): New variable
31796 * osint.adb (Find_File): Use path name found in mapping, if any.
31798 * prj-env.adb (Create_Mapping_File): New procedure
31800 * prj-env.ads (Create_Mapping_File): New procedure.
31802 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
31805 * usage.adb: Add entry for new switch -gnatem.
31807 * Makefile.in: Add dependencies for fmap.o.
31809 2001-12-17 Ed Schonberg <schonber@gnat.com>
31811 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
31812 is a package instantiation rewritten as a package body.
31813 (Install_Withed_Unit): Undo previous change, now redundant.
31815 2001-12-17 Gary Dismukes <dismukes@gnat.com>
31818 (Compute_Length): Move conversion to Unsigned to callers.
31819 (Get_Max_Size): Convert Len expression to Unsigned after calls to
31820 Compute_Length and Determine_Range.
31821 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
31822 Compute_Length and Determine_Range.
31823 Above changes fix problem with length computation for supernull arrays
31824 where Max (Len, 0) wasn't getting applied due to the Unsigned
31825 conversion used by Compute_Length.
31827 2001-12-17 Arnaud Charlet <charlet@gnat.com>
31830 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
31831 System.Secondary_Stack.
31832 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
31834 Remove unused entity RE_Exception_Data.
31836 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
31838 * rident.ads (No_Secondary_Stack): New restriction.
31840 2001-12-17 Joel Brobecker <brobecke@gnat.com>
31842 * gnat_rm.texi: Fix minor typos. Found while reading the section
31843 regarding "Bit_Order Clauses" that was sent to a customer.
31844 Very interesting documentation!
31846 2001-12-17 Robert Dewar <dewar@gnat.com>
31848 * sem_case.adb (Choice_Image): Avoid creating improper character
31849 literal names by using the routine Set_Character_Literal_Name. This
31850 fixes bombs in certain error message cases.
31852 2001-12-17 Arnaud Charlet <charlet@gnat.com>
31854 * a-reatim.adb: Minor reformatting.
31856 2001-12-17 Ed Schonberg <schonber@gnat.com>
31858 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
31859 case where the formal is an extension of another formal in the current
31860 unit or in a parent generic unit.
31862 2001-12-17 Arnaud Charlet <charlet@gnat.com>
31864 * s-tposen.adb: Update comments. Minor reformatting.
31865 Minor code clean up.
31867 * s-tarest.adb: Update comments. Minor code reorganization.
31869 2001-12-17 Gary Dismukes <dismukes@gnat.com>
31871 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
31874 2001-12-17 Robert Dewar <dewar@gnat.com>
31876 * exp_attr.adb: Minor reformatting
31878 2001-12-17 Ed Schonberg <schonber@gnat.com>
31880 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
31881 derivations nested within a child unit: verify that the parent
31882 type is declared in an outer scope.
31884 2001-12-17 Robert Dewar <dewar@gnat.com>
31886 * sem_ch12.adb: Minor reformatting
31888 2001-12-17 Ed Schonberg <schonber@gnat.com>
31890 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
31891 warning if current unit is a predefined one, from which bodies may
31894 2001-12-17 Robert Dewar <dewar@gnat.com>
31896 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
31897 Fix header format. Add 2001 to copyright date.
31899 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
31900 which caused CE during compilation if checks were enabled.
31902 2001-12-17 Vincent Celier <celier@gnat.com>
31905 (Switches_Of): New function
31906 (Test_If_Relative_Path): New procedure
31907 (Add_Switches): Use new function Switches_Of
31908 (Collect_Arguments_And_Compile): Use new function Switches_Of.
31909 When using a project file, test if there are any relative
31910 search path. Fail if there are any.
31911 (Gnatmake): Only add switches for the primary directory when not using
31912 a project file. When using a project file, change directory to the
31913 object directory of the main project file. When using a project file,
31914 test if there are any relative search path. Fail if there are any.
31915 When using a project file, fail if specified executable is relative
31916 path with directory information, and prepend executable, if not
31917 specified as an absolute path, with the exec directory. Make sure
31918 that only one -o switch is transmitted to the linker.
31920 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
31923 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
31924 when using a non standard naming scheme.
31925 (Check_Ada_Naming_Scheme): Make sure that error messages
31926 do not raise exceptions.
31927 (Is_Illegal_Append): Return True if there is no dot in the suffix.
31928 (Language_Independent_Check): Check the exec directory.
31930 * prj.adb (Project_Empty): Add new component Exec_Directory
31933 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
31934 (Project_Data): Add component Exec_Directory
31936 * snames.adb: Updated to match snames.ads revision 1.215
31938 * snames.ads: Added Exec_Dir
31940 2001-12-17 Robert Dewar <dewar@gnat.com>
31942 * make.adb: Minor reformatting
31944 * prj-nmsc.adb: Minor reformatting
31946 * snames.adb: Updated to match snames.ads
31948 * snames.ads: Alphebetize entries for project file
31950 2001-12-17 Ed Schonberg <schonber@gnat.com>
31952 * trans.c (process_freeze_entity): Do nothing if the entity is a
31953 subprogram that was already elaborated.
31955 2001-12-17 Richard Kenner <kenner@gnat.com>
31957 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
31958 and Esize if object is referenced via pointer.
31960 2001-12-17 Ed Schonberg <schonber@gnat.com>
31962 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
31963 is discrete before analyzing choices.
31965 2001-12-17 Joel Brobecker <brobecke@gnat.com>
31967 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
31968 containing the name of the Ada Main Program. This string is mainly
31969 intended for the debugger.
31970 (Gen_Output_File_C): Do the equivalent change when generating a C file.
31972 2001-12-17 Robert Dewar <dewar@gnat.com>
31974 * ali.adb: Set new Dummy_Entry field in dependency entry
31976 * ali.ads: Add Dummy_Entry field to source dependency table
31978 * bcheck.adb (Check_Consistency): Ignore dummy D lines
31980 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
31982 * lib-writ.ads: Document dummy D lines for missing files.
31984 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
31986 2001-12-17 Robert Dewar <dewar@gnat.com>
31988 * ali.adb: Type reference does not reset current file.
31990 * ali.adb: Recognize and scan renaming reference
31992 * ali.ads: Add spec for storing renaming references.
31994 * lib-xref.ads: Add documentation for handling of renaming references
31996 * lib-xref.adb: Implement output of renaming reference.
31999 (Determine_Range): Document local variables
32000 (Determine_Range): Make sure Hbound is initialized. It looks as though
32001 there could be a real problem here with an uninitialized reference
32002 to Hbound, but no actual example of failure has been found.
32004 2001-12-17 Laurent Pautet <pautet@gnat.com>
32007 Fix comment of Shutdown_Socket and Close_Socket. These functions
32008 should not fail silently because if they are called twice, this
32009 probably means that there is a race condition in the user program.
32010 Anyway, this behaviour is consistent with the rest of this unit.
32011 When an error occurs, an exception is raised with the error message
32012 as exception message.
32014 2001-12-17 Robert Dewar <dewar@gnat.com>
32016 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
32017 that it happens before modification of Sloc values for -gnatD.
32019 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
32020 so that it happens before modification of Sloc values for -gnatD.
32022 * switch.adb: Minor reformatting
32024 2001-12-15 Richard Henderson <rth@redhat.com>
32026 * sem_ch7.adb: Wrap comment.
32028 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
32030 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
32031 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
32032 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
32033 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
32034 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
32035 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
32036 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
32037 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
32038 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
32039 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
32040 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
32041 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
32042 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
32043 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
32044 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
32045 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
32046 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
32047 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
32048 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
32049 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
32050 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
32051 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
32052 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
32053 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
32056 2001-12-14 Vincent Celier <celier@gnat.com>
32058 * osint.adb(Create_Debug_File): When an object file is specified,
32059 put the .dg file in the same directory as the object file.
32061 2001-12-14 Robert Dewar <dewar@gnat.com>
32063 * osint.adb: Minor reformatting
32065 * lib-xref.adb (Output_Instantiation): New procedure to generate
32066 instantiation references.
32068 * lib-xref.ads: Add documentation of handling of generic references.
32070 * ali.adb (Read_Instantiation_Ref): New procedure to read
32071 instantiation references
32073 * ali.ads: Add spec for storing instantiation references
32075 * bindusg.adb: Minor reformatting
32077 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32079 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32081 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32083 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32087 Add 2001 to copyright date
32088 Add entry for Latin-5 (Cyrillic ISO-8859-5)
32090 2001-12-14 Matt Gingell <gingell@gnat.com>
32092 * adaint.c: mktemp is a macro on Lynx and can not be used as an
32095 2001-12-14 Richard Kenner <kenner@gnat.com>
32097 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
32098 if operand is CONSTRUCTOR.
32100 2001-12-14 Ed Schonberg <schonber@gnat.com>
32102 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
32103 before emiting check on right-hand side, so that exception information
32106 2001-12-14 Richard Kenner <kenner@gnat.com>
32108 * utils.c (create_var_decl): Throw away initializing expression
32109 if just annotating types and non-constant.
32111 2001-12-14 Vincent Celier <celier@gnat.com>
32113 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
32116 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
32118 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
32120 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
32122 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
32124 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
32126 * ChangeLog: Remove piece of diff output.
32128 2001-12-14 Geert Bosch <bosch@gnat.com>
32130 * config-lang.in: Update copyright notice
32132 * layout.adb: Remove commented out code.
32134 * mdllfile.ads: Update copyright notice. Fix header format.
32136 * sem_case.ads: Likewise.
32138 * sem_ch3.adb: Minor reformatting.
32140 2001-12-12 Geert Bosch <bosch@gnat.com>
32142 * freeze.ads: Update copyright date.
32144 * g-comlin.ads: Minor reformatting.
32146 * gnat-style.texi: Fix typo.
32148 2001-12-12 Geert Bosch <bosch@gnat.com>
32150 * einfo.h: Regenerate.
32152 2001-12-12 Ed Schonberg <schonber@gnat.com>
32154 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
32155 on known node types, rather than untyped fields. Further cleanups.
32157 2001-12-12 Robert Dewar <dewar@gnat.com>
32160 (Save_Entity_Descendant): Minor comment update.
32161 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
32162 of an N_Attribute_Reference node. As per note below, this does not
32163 eliminate need for Associated_Node in attribute ref nodes.
32164 (Associated_Node): Documentation explicitly mentions attribute
32165 reference nodes, since this field is used in such nodes.
32167 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
32169 2001-12-12 Robert Dewar <dewar@gnat.com>
32171 * s-stalib.adb: Add more comments on with statements being needed
32173 * par-ch12.adb: Minor reformatting
32175 * prj-dect.ads: Fix copyright header
32177 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
32178 inputs fit in 32 bits, but the result still overflows.
32180 * s-fatgen.ads: Minor comment improvement
32182 2001-12-12 Ed Schonberg <schonber@gnat.com>
32184 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
32185 formal derived type, look for an inherited component from the full
32186 view of the parent, if any.
32188 2001-12-12 Robert Dewar <dewar@gnat.com>
32190 * checks.ads (Apply_Alignment_Check): New procedure.
32192 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
32193 ensure that the alignment of objects with address clauses is
32194 appropriate, and raise PE if not.
32196 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
32197 Exp_Pakd.Known_Aligned_Enough
32199 * mdllfile.ads: Minor reformatting
32201 * mlib-fil.ads: Minor reformatting
32203 2001-12-12 Ed Schonberg <schonber@gnat.com>
32205 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
32206 fix to any component reference if enclosing record has non-standard
32209 2001-12-12 Vincent Celier <celier@gnat.com>
32211 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
32214 2001-12-12 Ed Schonberg <schonber@gnat.com>
32216 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
32219 2001-12-12 Robert Dewar <dewar@gnat.com>
32221 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
32223 2001-12-12 Emmanuel Briot <briot@gnat.com>
32225 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
32226 and it adds dependencies to system.io.
32228 2001-12-12 Pascal Obry <obry@gnat.com>
32230 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
32233 2001-12-11 Ed Schonberg <schonber@gnat.com>
32235 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
32236 that is the parent of other generics, the instance body replaces the
32237 instance node. Retrieve the instance of the spec, which is the one
32238 that is visible in clients and within the body.
32240 2001-12-11 Vincent Celier <celier@gnat.com>
32242 * gnatmain.adb: Initial version.
32244 * gnatmain.ads: Initial version.
32246 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
32248 * snames.adb: Updated to match snames.ads.
32250 * snames.ads: Added Gnatstub.
32252 2001-12-11 Vincent Celier <celier@gnat.com>
32254 * prj-attr.adb (Initialization_Data): Change name from
32255 Initialisation_Data.
32257 2001-12-11 Emmanuel Briot <briot@gnat.com>
32259 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
32260 + and * applied to backslashed expressions like \r.
32262 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
32264 * g-os_lib.ads: String_List type added, Argument_List type is now
32265 subtype of String_List.
32267 2001-12-11 Robert Dewar <dewar@gnat.com>
32269 * g-os_lib.ads: Change copyright to FSF
32270 Add comments for String_List type
32272 2001-12-11 Vincent Celier <celier@gnat.com>
32274 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
32275 string to the buffer).
32277 2001-12-11 Ed Schonberg <schonber@gnat.com>
32279 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
32282 * sem_attr.adb: Simplify previous fix for Address.
32283 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
32284 to avoid anomalies where the bound of the type appears to raise
32287 2001-12-11 Robert Dewar <dewar@gnat.com>
32289 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
32292 2001-12-11 Ed Schonberg <schonber@gnat.com>
32294 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
32295 renamed unit before checking for recursive instantiations.
32297 2001-12-11 Emmanuel Briot <briot@gnat.com>
32299 * prj.ads: Add comments for some of the fields.
32301 2001-12-11 Robert Dewar <dewar@gnat.com>
32303 * lib-xref.adb (Output_Refs): Don't output type references outside
32304 the main unit if they are not otherwise referenced.
32306 2001-12-11 Ed Schonberg <schonber@gnat.com>
32308 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
32309 code and diagnose additional illegal uses
32311 * sem_util.adb (Is_Object_Reference): An indexed component is an
32312 object only if the prefix is.
32314 2001-12-11 Vincent Celier <celier@gnat.com>
32316 * g-diopit.adb: Initial version.
32318 * g-diopit.ads: Initial version.
32321 (Expand_Path): Avoid use of Unbounded_String
32322 (Find, Wildcard_Iterator): Moved to child package Iteration
32324 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
32326 2001-12-11 Robert Dewar <dewar@gnat.com>
32328 * sem_attr.adb: Minor reformatting
32330 2001-12-11 Ed Schonberg <schonber@gnat.com>
32332 * sem_ch3.adb: Clarify some ???.
32334 2001-12-11 Robert Dewar <dewar@gnat.com>
32336 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
32337 Exp_Pakd.Known_Aligned_Enough
32339 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
32340 version is moved to Exp_Ch13.
32342 2001-12-11 Robert Dewar <dewar@gnat.com>
32344 * einfo.ads: Minor reformatting
32346 * exp_ch5.adb: Add comment for previous.change
32348 * ali.adb: New interface for extended typeref stuff.
32350 * ali.ads: New interface for typeref stuff.
32352 * checks.adb (Apply_Alignment_Check): New procedure.
32354 * debug.adb: Add -gnatdM for modified ALI output
32356 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
32358 * lib-xref.adb: Extend generation of <..> notation to cover
32359 subtype/object types. Note that this is a complete rewrite,
32360 getting rid of the very nasty quadratic algorithm previously
32361 used for derived type output.
32363 * lib-xref.ads: Extend description of <..> notation to cover
32364 subtype/object types. Uses {..} for these other cases.
32365 Also use (..) for pointer types.
32367 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
32369 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
32370 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
32372 2001-12-11 Vincent Celier <celier@gnat.com>
32375 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
32376 Changed /BIND_ONLY to /ACTIONS=BIND
32377 Changed /LINK_ONLY to /ACTIONS=LINK
32379 2001-12-11 Ed Schonberg <schonber@gnat.com>
32381 * sem_ch8.adb (Find_Selected_Component): improved search for a
32382 candidate package in case of error.
32384 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
32385 chain back on scope stack before reinstalling use clauses.
32387 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
32388 is enabled, do not kill the code for the condition, to preserve
32391 2001-12-11 Robert Dewar <dewar@gnat.com>
32393 * checks.adb (Insert_Valid_Check): Apply validity check to expression
32394 of conversion, not to result of conversion.
32396 2001-12-11 Ed Schonberg <schonber@gnat.com>
32398 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
32399 before freezing parent. If the declarations are mutually recursive,
32400 an access to the current record type may be frozen before the
32401 derivation is complete.
32403 2001-12-05 Vincent Celier <celier@gnat.com>
32405 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
32406 -c /COMPILE_ONLY, -l /LINK_ONLY
32409 (Bind_Only): New Flag
32410 (Link_Only): New flag
32412 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
32415 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
32418 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
32419 (Gnatmake): Set the step flags. Only perform a step if the
32420 corresponding step flag is True.
32421 (Scan_Make_Arg): Reset the bind and link step flags when -u
32422 or -gnatc has been specified.
32424 2001-12-05 Ed Schonberg <schonber@gnat.com>
32426 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
32427 get bounds from right operand.
32429 * sem_eval.adb: Minor reformatting
32431 * exp_util.adb (Make_Literal_Range): use bound of literal rather
32432 than Index'First, its lower bound may be different from 1.
32434 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
32437 2001-12-05 Vincent Celier <celier@gnat.com>
32439 * prj-nmsc.adb Minor reformatting
32441 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
32442 set and libraries are not supported.
32444 2001-12-05 Ed Schonberg <schonber@gnat.com>
32446 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
32447 private view explicitly, so the back-end can treat as a global
32450 2001-12-05 Ed Schonberg <schonber@gnat.com>
32452 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
32453 unit, always replace instance node with new body, for ASIS use.
32455 2001-12-05 Vincent Celier <celier@gnat.com>
32457 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
32458 libraries are not supported and both attributes Library_Name and
32459 Library_Dir are specified.
32461 * prj-proc.adb (Expression): Set location of Result to location of
32464 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
32465 (prj-nmsc is now importing MLib.Tgt)
32467 * prj-proc.adb: Put the change indicated above that was forgotten.
32469 2001-12-05 Robert Dewar <dewar@gnat.com>
32471 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
32473 2001-12-05 Ed Schonberg <schonber@gnat.com>
32475 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
32476 constraint, introduce explicit subtype declaration and derive from it.
32478 * sem_ch3.adb: Minor reformatting
32480 2001-12-05 Robert Dewar <dewar@gnat.com>
32482 * checks.adb (Determine_Range): Increase cache size for checks.
32485 * exp_ch6.adb: Minor reformatting
32486 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
32487 a parameter whose root type is System.Address, since treating such
32488 subprograms as pure in the code generator is almost surely a mistake
32489 that will lead to unexpected results.
32491 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
32492 change handling of conversions.
32494 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
32496 2001-12-05 Ed Schonberg <schonber@gnat.com>
32498 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
32499 aggregate with static wrong size, attach generated Raise node to
32502 2001-12-05 Robert Dewar <dewar@gnat.com>
32504 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
32505 Fixes compilation abandoned bomb in B24009B.
32507 2001-12-05 Ed Schonberg <schonber@gnat.com>
32510 Document use of Associated_Node on Selected_Components.
32511 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
32512 to clarify use of untyped descendant fields.
32514 2001-12-05 Robert Dewar <dewar@gnat.com>
32516 * prj-dect.ads: Add ??? comment
32517 Add 2001 to copyright notice (was not done in after all)
32519 * prj-part.adb: Minor reformatting. Reword one awkward error message.
32521 * prj.ads: Minor reformatting throughout, and add some ??? comments
32523 * snames.ads: Minor reformatting
32525 2001-12-05 Geert Bosch <bosch@gnat.com>
32527 * snames.adb: Autoupdate
32529 2001-12-05 Vincent Celier <celier@gnat.com>
32531 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
32533 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
32535 * prj-env.adb: Minor comment changes (modifying -> extends).
32537 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
32539 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
32542 * prj.adb (Initialize): Change Modifying to Extends.
32544 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
32546 * prj.ads: Minor comment change (Modifying -> extending).
32548 * snames.ads: Change modifying to extends.
32550 2001-12-05 Robert Dewar <dewar@gnat.com>
32552 * sem_warn.adb: Remove stuff for conditionals, we are not going to
32555 * sem_warn.ads: Remove stuff for conditionals, we are not going to
32556 do this after all. Add 2001 to copyright notice
32558 2001-12-04 Geert Bosch <bosch@gnat.com>
32560 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
32562 2001-12-04 Robert Dewar <dewar@gnat.com>
32564 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
32565 location if we already have errors. Stops some cases of cascaded
32568 * errout.adb: Improve comment.
32570 2001-12-04 Robert Dewar <dewar@gnat.com>
32573 (Analyze_Formal_Type_Definition): Defend against Error.
32574 (Analyze_Formal_Subprogram): Defend against Error.
32576 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
32577 remove following semicolon if present. Removes cascaded error.
32579 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
32582 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
32583 exceptions equals 0.
32584 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
32585 Fixes PIWG E tests (which have to be run with -gnatL).
32587 2001-12-04 Robert Dewar <dewar@gnat.com>
32589 * einfo.ads: Minor reformatting
32591 2001-12-04 Ed Schonberg <schonber@gnat.com>
32593 * einfo.ads: Block_Node points to the identifier of the block, not to
32594 the block node itself, to preserve the link when the block is
32595 rewritten, e.g. within an if-statement with a static condition.
32597 * inline.adb (Cleanup_Scopes): recover block statement from block
32598 entity using new meaning of Block_Node.
32600 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
32601 identifier of block node, rather than to node itself.
32603 2001-12-04 Gary Dismukes <dismukes@gnat.com>
32606 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
32607 (Discrimify): Go back to setting the Etypes of the selected component
32608 because the Vname component does not exist at this point and will
32609 fail name resolution. Also set Analyzed.
32610 Remove with and use of Sem_Res.
32612 2001-12-04 Arnaud Charlet <charlet@gnat.com>
32614 * Makefile.in: (HIE_SOURCES): add s-fat*.
32616 2001-12-04 Robert Dewar <dewar@gnat.com>
32619 (Compile_Time_Known_Attribute): New procedure.
32620 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
32621 proper range check.
32623 2001-12-04 Ed Schonberg <schonber@gnat.com>
32625 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
32626 processing discriminants to diagnose illegal default values.
32628 2001-12-04 Ed Schonberg <schonber@gnat.com>
32630 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
32631 access discriminant within a type extension that constrains its
32632 parent discriminants.
32634 2001-12-04 Ed Schonberg <schonber@gnat.com>
32636 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
32637 is malformed, use instance of Any_Id to allow analysis to proceed.
32639 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
32640 type definition is illegal.
32641 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
32644 2001-12-04 Ed Schonberg <schonber@gnat.com>
32646 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
32649 2001-12-04 Robert Dewar <dewar@gnat.com>
32651 * errout.adb: Minor reformatting
32653 2001-12-04 Robert Dewar <dewar@gnat.com>
32655 * exp_util.adb: Minor reformatting from last change
32657 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
32658 which is a rewriting of an expression, traverse the original
32659 expression to remove warnings that may have been posted on it.
32661 2001-12-04 Ed Schonberg <schonber@gnat.com>
32663 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
32664 record that has other packed components.
32666 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
32668 * adaint.c: Minor cleanups.
32670 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
32672 * adaint.c: Do not use utime.h on vxworks.
32674 2001-12-04 Arnaud Charlet <charlet@gnat.com>
32676 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
32677 more confusion than it solves.
32679 2001-12-04 Geert bosch <bosch@gnat.com>
32681 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
32683 2001-12-04 Geert Bosch <bosch@gnat.com>
32685 * Makefile.in (update-sources): New target.
32686 For use by gcc_release script.
32688 2001-12-04 Ed Schonberg <schonber@gnat.com>
32690 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
32691 a configuration pragma, it is now legal wherever a pragma can appear.
32693 2001-12-04 Zack Weinberg <zack@codesourcery.com>
32695 * Makefile.in: Don't set ALL. Delete @cross_defines@,
32696 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
32697 is now @CROSS@ -DIN_GCC; update comment.
32699 2001-12-04 Robert Dewar <dewar@gnat.com>
32701 * einfo.adb (Has_Pragma_Pure_Function): New flag.
32702 Fix problem that stopped ceinfo from working
32704 * einfo.ads (Has_Pragma_Pure_Function): New flag.
32706 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
32708 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
32711 (File_Time_Stamp): New procedure.
32712 (Preserve_Mode): New boolean.
32713 (Write_Unit): Pass time stamp.
32714 Implement -p switch (preserve time stamps).
32716 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
32718 * gnatchop.adb: Do usage info for -p switch
32720 * adaint.h (__gnat_set_file_time_name): New function
32722 * adaint.c (__gnat_set_file_time_name): Implement
32724 * adaint.h: Fix typo
32726 2001-12-03 Robert Dewar <dewar@gnat.com>
32728 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
32729 have Associated_Node.
32731 2001-12-03 Robert Dewar <dewar@gnat.com>
32733 * prj-proc.adb: Minor reformatting
32735 * make.adb: Minor reformatting
32737 2001-12-03 Geert Bosch <bosch@gnat.com>
32739 * make.adb: Minor reformatting.
32741 2001-12-03 Robert Dewar <dewar@gnat.com>
32743 * sem_ch12.adb: Minor reformatting
32745 2001-12-03 Ed Schonberg <schonber@gnat.com>
32747 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
32748 push Standard on the stack before analyzing the instance body,
32749 in order to have a clean visibility environment.
32751 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
32753 2001-12-03 Ed Schonberg <schonber@gnat.com>
32755 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
32756 instantiation of a body that contains an inlined body.
32758 2001-12-03 Ed Schonberg <schonber@gnat.com>
32761 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
32762 to prevent freezing within formal packages.
32763 (Freeze_Subprogram_Body): If body comes from another instance that
32764 appeared before its own body, place freeze node at end of current
32765 declarative part, to prevent a back-end crash.
32766 (Inline_Instance_Body): Handle properly a package instance within
32767 a subprogram instance that is a child unit.
32769 2001-12-01 Graham Stott <grahams@redhat.com>
32771 * Makefile.in (misc.o): Add missing $(srcdir) prefix
32772 and add optabs.h dependency.
32774 * misc.c: Include optabs.h
32775 (gnat_tree_code_type): Make static and const.
32776 (gnat_tree_code_length): Likewise.
32777 (gnat_tree_code_name): Likewise.
32778 (update_setjmp_buf): Obtain operands mode from insn_data.
32780 2001-11-29 Richard Henderson <rth@redhat.com>
32782 * init.c: Remove obsolete dwarf2 frame.h section.
32784 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
32786 * Make-lang.in (ada.generated-manpages): New dummy target.
32788 2001-11-29 Ed Schonberg <schonber@gnat.com>
32790 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
32791 into Command, an array conversion is illegal here. Uncovered by
32794 2001-11-28 Geert Bosch <bosch@gnat.com>
32796 * init.c: Minor whitespace changes.
32798 2001-11-28 Doug Rupp <rupp@gnat.com>
32800 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
32803 2001-11-28 Zack Weinberg <zack@codesourcery.com>
32805 * misc.c (gnat_expand_constant): Move declaration above
32806 definition of lang_hooks.
32807 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
32808 (gnat_init): lang_expand_constant no longer exists.
32810 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
32811 always have vprintf.
32812 (gnat_init): Always call set_internal_error_function.
32814 2001-11-27 Andreas Jaeger <aj@suse.de>
32816 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
32818 2001-11-27 Laurent Guerby <guerby@acm.org>
32820 * Makefile.in: Regenerate Ada dependencies.
32822 2001-11-26 Richard Henderson <rth@redhat.com>
32824 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
32825 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
32826 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
32828 2001-11-25 Laurent Guerby <guerby@acm.org>
32830 * sysdep.c (rts_get_*): Fix style.
32832 2001-11-19 Laurent Guerby <guerby@acm.org>
32834 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
32835 since it is of no apparent use and cause warnings.
32837 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
32839 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
32841 (gnat_init): Don't return NULL.
32842 (finish_parse): Remove.
32844 2001-11-17 Laurent Guerby <guerby@acm.org>
32846 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
32847 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
32848 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
32849 * lang-spec.h: Add missing struct field to silence warnings.
32850 * sysdep.c (rts_get_*): Provide K&R prototype.
32851 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
32852 * traceback.c (Unlock_Task, Lock_Task): Likewise.
32853 * tracebak.c (__gnat_backtrace): Remove unused variable.
32854 * utils.c (end_subprog_body): Move to K&R style.
32856 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32858 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
32860 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
32862 * misc.c (gnat_init): Change prototype. Include the
32863 functionality of the old init_parse and init_decl_processing.
32864 (gnat_init_decl_processing): New prototype.
32865 (init_parse): Remove.
32866 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
32868 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
32870 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
32871 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
32872 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
32873 set_yydebug): Remove.
32875 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
32877 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
32878 (struct lang_hooks): Constify.
32879 (language_string, lang_identify): Remove.
32880 * utils.c (init_decl_processing): Update.
32882 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
32884 * misc.c: Include langhooks-def.h.
32885 * Makefile.in: Update.
32887 2001-10-30 Robert Dewar <dewar@gnat.com>
32890 (Check_Identifier): Rewrite circuit to be compatible with use of letters
32891 in the upper half of ASCII.
32892 (Check_Identifier): Minor reformatting
32894 2001-10-30 Geert Bosch <bosch@gnat.com>
32896 * (Associated_Node, Set_Associated_Node): Do not check for
32899 2001-10-30 Robert Dewar <dewar@gnat.com>
32901 * a-reatim.ads: Minor reformatting
32903 2001-10-30 Robert Dewar <dewar@gnat.com>
32905 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
32906 undocumented declarations.
32908 2001-10-30 Pascal Obry <obry@gnat.com>
32910 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
32911 to the binder and linker.
32914 * mdll.ads: Fix layout. Update copyright notice.
32916 * mdll.adb: Fix layout. Update copyright notice.
32918 2001-10-30 Robert Dewar <dewar@gnat.com>
32920 * usage.adb: Minor fix to output for -gnaty.
32922 2001-10-30 Ed Schonberg <schonber@gnat.com>
32924 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
32925 to accommodate all its possible values.
32927 * a-reatim.adb (Split): Special-case handling of Time_Span_First
32928 and of small absolute values of T.
32930 2001-10-30 Richard Kenner <kenner@gnat.com>
32932 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
32933 set_mem_attributes since not needed and wrong if RESULT if a REG;
32934 fixes ACATS failures.
32936 2001-10-30 Geert Bosch <bosch@gnat.com>
32938 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
32939 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
32941 2001-10-30 Robert Dewar <dewar@gnat.com>
32943 * bindusg.adb: Undocument -f switch.
32945 * gnatcmd.adb: Remove /FULL_ELABORATION.
32947 * opt.ads (Force_RM_Elaboration_Order): Document that this is
32950 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
32952 * gnatbind.adb: Minor update of warning msg.
32954 2001-10-30 Vincent Celier <celier@gnat.com>
32956 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
32957 for project file switches (-P (/PROJECT_FILE=),
32958 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
32961 2001-10-30 Geert Bosch <bosch@gnat.com>
32963 * decl.c: Minor whitespace fixes.
32965 2001-10-30 Richard Kenner <kenner@gnat.com>
32967 * utils2.c (build_allocator): Test for SIZE overflow in array case too
32969 2001-10-30 Geert Bosch <bosch@gnat.com>
32971 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
32972 Found due to GCC 3.0 warning of using uninitialized value.
32975 (Get_Max_Size): Use variant record for tracking value/expression.
32976 Makes logic clearer and prevents warnings for uninitialized variables.
32977 (Layout_Array_Type): Use variant record for tracking value/expression.
32978 Makes logic clearer and prevents warnings for uninitialized variables.
32980 2001-10-30 Robert Dewar <dewar@gnat.com>
32982 * lib.adb: Minor reformatting
32984 * s-taprop.ads: Minor reformatting
32986 2001-10-29 Laurent Guerby <guerby@acm.org>
32989 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
32991 (_gnat_error_handler): Make MSG const.
32993 2001-10-29 Richard Kenner <kenner@gnat.com>
32995 * sysdep.c: Fix localtime_r problem on LynxOS.
32996 Also remove #elif to avoid warnings.
32998 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
33001 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
33003 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
33005 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
33006 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
33007 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
33008 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
33009 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
33010 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
33011 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
33012 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
33013 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
33014 types.ads, urealp.adb: Fix spelling errors.
33016 2001-10-27 Laurent Guerby <guerby@acm.org>
33018 * trans.c (gigi): Fix non determinism leading to bootstrap
33019 comparison failures for debugging information.
33021 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
33023 * gnat_rm.texi: Use @./@: where appropriate.
33025 2001-10-26 Robert Dewar <dewar@gnat.com>
33027 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
33029 2001-10-26 Richard Kenner <kenner@gnat.com>
33031 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
33033 2001-10-26 Richard Kenner <kenner@gnat.com>
33035 * decl.c (validate_size): Modify message for bad size to avoid
33036 implication that compiler is modifying the size.
33038 2001-10-26 Robert Dewar <dewar@gnat.com>
33040 * prj-util.adb: Minor reformatting. Fix bad header format.
33042 2001-10-26 Robert Dewar <dewar@gnat.com>
33044 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
33046 * sinfo.ads: Clarify use of Associated_Node (documentation only).
33048 * sem_ch12.adb: Change Node4 to Associated_Node. Change
33049 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
33050 much more narrowly in places where needed. These are cleanups.
33052 2001-10-26 Joel Brobecker <brobecke@gnat.com>
33054 * 5zosinte.ads (null_pthread): new constant.
33057 (Initialize_TCB): Initialize thread ID to null, to be able to verify
33058 later that this field has been set.
33059 (Finalize_TCB): ditto.
33060 (Suspend_Task): Verify that the thread ID is not null before using it.
33061 (Resume_Task): ditto.
33064 (Resume_All_Tasks): Lock the tasks list before using it.
33065 (Suspend_All_Tasks): ditto.
33067 2001-10-26 Richard Kenner <kenner@gnat.com>
33069 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
33070 Make constant variant of designated type for Is_Access_Constant.
33071 Call update_pointer_to with main variant.
33073 * trans.c (process_freeze_entity, process_type):
33074 Call update_pointer_to on main variant.
33076 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
33077 If main variant, update all other variants.
33079 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
33082 2001-10-26 Robert Dewar <dewar@gnat.com>
33084 * prj-util.adb: Minor reformatting
33086 2001-10-26 Robert Dewar <dewar@gnat.com>
33088 * prj-util.adb: Minor reformatting
33090 2001-10-26 Robert Dewar <dewar@gnat.com>
33092 * prj-attr.adb: Minor reformatting throughout
33094 2001-10-26 Robert Dewar <dewar@gnat.com>
33096 * prj-attr.ads: Minor reformatting
33097 Add ??? comment (this whole spec has almost no comments)
33099 2001-10-26 Vincent Celier <celier@gnat.com>
33101 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
33102 ("//") that precede the drive letter on Interix.
33104 2001-10-26 Geert Bosch <bosch@gnat.com>
33106 * gnat_rm.texi: Add GNAT Reference Manual.
33108 2001-10-25 Robert Dewar <dewar@gnat.com>
33110 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
33111 is Error. Similar change for other renaming cases.
33113 2001-10-25 Robert Dewar <dewar@gnat.com>
33115 * s-atacco.ads: Add pragma Inline_Always for functions.
33116 Fix header format. Add copyright 2001
33118 2001-10-25 Ed Schonberg <schonber@gnat.com>
33120 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
33121 return Error rather than Empty so that analysis can proceed.
33123 2001-10-25 Ed Schonberg <schonber@gnat.com>
33125 * sem_util.adb (Enter_Name): better handling of cascaded error
33126 messages when a unit appears in its own context.
33128 2001-10-25 Ed Schonberg <schonber@gnat.com>
33130 * sem_util.adb (Defining_Entity): in case of error, attach created
33131 entity to specification, so that semantic analysis can proceed.
33133 2001-10-25 Robert Dewar <dewar@gnat.com>
33136 (Defining_Entity): Deal with Error.
33137 (Process_End_Label): Deal with bad end label for.
33139 2001-10-25 Ed Schonberg <schonber@gnat.com>
33141 * sem_elab.adb (Check_A_Call): refine message when call is in an
33142 instance but callee is not declared in the generic unit.
33144 2001-10-25 Ed Schonberg <schonber@gnat.com>
33146 * sem_elab.adb (Check_A_Call): check for renaming before finding the
33147 enclosing unit, which may already be different from the calling unit.
33149 2001-10-25 Geert Bosch <bosch@gnat.com>
33151 * 4gintnam.ads: fix header format.
33153 2001-10-25 Ed Schonberg <schonber@gnat.com>
33155 * sem_res.adb (Resolve_Call): if the call is actually an indexing
33156 operation on the result of a parameterless call, perform elaboration
33157 check after the node has been properly rewritten.
33159 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
33160 inlined within the generic tree, the defining identifier is not a
33163 2001-10-25 Ed Schonberg <schonber@gnat.com>
33165 * sem_res.adb (Resolve): special-case resolution of Null in an
33166 instance or an inlined body to avoid view conflicts.
33168 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
33169 compatibility by retrieving the access type of the generic copy.
33171 2001-10-25 Robert Dewar <dewar@gnat.com>
33174 (Analyze_Number_Declaration): Handle error expression.
33175 (Signed_Integer_Type_Declaration): Handle error bound.
33176 (Analyze_Subtype_Indication): Handle error range.
33178 * sem_util.adb (Get_Index_Bounds): Check for Error.
33180 2001-10-25 Robert Dewar <dewar@gnat.com>
33182 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
33183 in no run time mode.
33185 2001-10-25 Pascal Obry <obry@gnat.com>
33187 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
33188 mode case for ALLOC case.
33190 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
33191 all platforms. Improvement of last change.
33193 2001-10-25 Robert Dewar <dewar@gnat.com>
33195 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
33197 2001-10-25 Geert Bosch <bosch@gnat.com>
33199 * osint.adb (Is_Relative): Remove duplicate.
33201 2001-10-25 Pascal Obry <obry@gnat.com>
33203 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
33204 pathnames in UNIX and DOS style with drive letter.
33205 (Is_Relative): new routine.
33207 * osint.adb: Minor reformatting
33209 * osint.adb (Is_Relative): implementation using
33210 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
33212 2001-10-25 Pascal Obry <obry@gnat.com>
33214 * g-dirope.adb (Basename): correctly compute offset between the
33215 original Path and the translated one.
33217 * g-dirope.adb: (Base_Name): add some comments.
33219 2001-10-25 Robert Dewar <dewar@gnat.com>
33221 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
33222 in HIE mode, avoids compilation abandoned message
33224 * exp_imgv.adb: Correct typo in previous change
33226 * exp_imgv.adb: Correct typo in previous change (not my day!)
33228 2001-10-25 Robert Dewar <dewar@gnat.com>
33230 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
33232 2001-10-25 Pascal Obry <obry@gnat.com>
33234 * g-awk.ads: Move all pragma inlines next to the routine
33235 declarations. This is more uniform with other GNAT spec.
33237 2001-10-22 Geert Bosch <bosch@gnat.com>
33239 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
33241 2001-10-19 Geert Bosch <bosch@gnat.com>
33243 * Makefile.in (tools, gnattools): Remove gnatmem.
33245 2001-10-17 Richard Henderson <rth@redhat.com>
33247 * Makefile.in (misc.o): Depend on langhooks.h.
33248 * misc.c: Include it.
33249 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
33250 (LANG_HOOKS_DECODE_OPTION): New.
33251 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
33253 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
33255 * trans.c (tree_transform): Adjust to recent change in
33256 expand_asm_operands to implement named asm operands.
33258 2001-10-11 Ed Schonberg <schonber@gnat.com>
33260 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
33261 renaming of discriminant for mutable record type.
33263 2001-10-11 Robert Dewar <dewar@gnat.com>
33265 * validsw.adb: Properly save -gnatVn status.
33267 2001-10-11 Robert Dewar <dewar@gnat.com>
33269 * usage.adb: Add lines for V switch.
33271 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
33272 (/VALIDITY_CHECKING).
33274 2001-10-11 Ed Schonberg <schonber@gnat.com>
33276 * sem_type.adb (Add_One_Interp): an operator for a type declared in
33277 an extension of System is known to be visible.
33279 2001-10-11 Ed Schonberg <schonber@gnat.com>
33281 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
33282 properly. Fixes regression on ACATS C34005G.
33284 2001-10-11 Robert Dewar <dewar@gnat.com>
33286 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
33287 loop in generic instance, since this is likely not very useful.
33289 2001-10-11 Robert Dewar <dewar@gnat.com>
33291 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
33292 the error message for high integrity mode.
33294 * rtsfind.adb (RTE): Give message if we try to find an entity that
33295 is not available in high integrity mode.
33298 (OK_To_Use_In_HIE_Mode): New array.
33299 (RTE): May return Empty in high integrity mode.
33301 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
33302 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
33304 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
33305 unit if not inlined always and in no runtime mode. Fixes problem
33306 caused by new Rtsfind changes.
33308 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
33311 * rtsfind.adb (RTE): Make sure we do not try to load unit after
33312 giving message for entity not available in high integrity mode.
33314 2001-10-11 Pascal Obry <obry@gnat.com>
33316 * impunit.adb: Add GNAT.CRC32.
33318 2001-10-11 Ed Schonberg <schonber@gnat.com>
33320 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
33321 properly the case where one universal operand in a non-static
33322 exponentiation of a real literal.
33324 2001-10-11 Ed Schonberg <schonber@gnat.com>
33326 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
33327 clause, return the gobal finalization list, for lack of anthing else.
33329 2001-10-11 Ed Schonberg <schonber@gnat.com>
33331 * exp_ch7.adb (Make_Transient_Block): if statement is within
33332 exception handler, always use new transient scope to place Clean
33335 2001-10-11 Pascal Obry <obry@gnat.com>
33338 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
33339 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
33340 (GNATLS_RTL_OBJS): add g-crc32.o
33341 (GNATMAKE_RTL_OBJS): add g-crc32.o
33344 (CRC_Match): new function.
33345 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
33346 instead of the previous simple checksum algorithm.
33347 (Time_Stamp_Mismatch): use CRC_Match for comparison.
33348 (Set_Source_Table): idem.
33351 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
33352 instead of simple checksum.
33353 (CRC_Match): new function.
33354 (CRC_Error): new constant.
33356 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
33357 a CRC now and not a simple checksum. A CRC uses lower-case hex
33358 letters, fixes ambiguity in parsing.
33360 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
33361 is what this variable will store.
33363 * bcheck.adb: Change reference to chechsum in comments by CRC.
33364 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
33365 rename All_Checksum_Match to All_CRC_Match. Change due to API
33366 renaming since now GNAT does not use a simple checksum but a
33367 CRC using GNAT.CRC32.
33369 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
33370 now and not anymore a simple checksum.
33372 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
33375 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
33378 (Restore_Scan_State): rename Checksum to CRC.
33379 (Save_Scan_State): idem.
33383 (Checksum): rename to CRC.
33384 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
33386 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
33387 GNAT.CRC32). Update copyright notice.
33389 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
33390 GNAT.CRC32). Update copyright notice.
33393 (Accumulate_Checksum): removed.
33394 (Update): new procedure. Add a wide-character into the CRC.
33397 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
33398 (Load_File): fix initialization of S (change Source_Checksum to
33401 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
33402 Source_CRC in S initialization.
33404 * sinput.adb (Source_Checksum): renamed to Source_CRC.
33406 * sinput.ads (Source_Checksum): renamed to Source_CRC.
33407 Update comments for the CRC.
33409 * types.adb (Hex): Use lowercase for the letter part.
33411 * types.ads (Get_Hex_String): Returns the hexadecimal representation
33412 for a word. This is currently used only for CRC. In previous version,
33413 the checksum was using a representation with all letter being
33414 upper-case. With the new implementation (using CRC) we do not remove
33415 the 32th bit of the CRC, so we can have an upper-case starting letter
33416 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
33417 It is ambigous since the CRC was optional and could be followed by
33418 options like EB, EE. So now this routines uses lower-case letter for
33419 the hexadecimal representation. Strange enough only lower case letters
33420 where checked in Scan_ALI (even if this was not a possible case).
33422 * gnatvsn.ads (Library_Version): changed to 3.15a.
33424 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
33427 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
33430 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
33431 Add 2001 to copyright notice
33432 (Accumulate_Checksum): Modify to use System.CRC32.
33434 * ali-util.ads: Redo changes of previous revision to continue to use
33435 the word Checksum. Add 2001 to copyright notice.
33437 * ali.adb: Undo some of previous changes, not needed.
33438 Keep the change for lower case letters in the checksum.
33440 * ali.ads: Undo previous change not needed.
33442 * bcheck.adb: Undo most of previous change, not needed.
33443 But do use Checksums_Match for checksum comparison.
33445 * gnatls.adb: Undo most of previous change, not needed.
33446 But do use Checksums_Match for comparing checksums.
33448 * lib-load.adb: Undo previous change, not needed.
33450 * lib-writ.adb: Undo previous change, not needed.
33452 * lib-writ.ads: Document that checksums use lower case,
33453 not upper case letters.
33455 * scans.adb: Undo previous change, not needed
33457 * scans.ads: Undo previous change, not needed.
33459 * scn-nlit.adb: Undo previous changes, not needed.
33461 * scn-slit.adb: Undo previous change, not needed. Fix header format.
33464 (Accumulate_Checksum): Use System.CRC32.
33465 (Initialize_Checksum): New procedure.
33466 Remove other changes of previous revision.
33468 * sinput-p.adb: Undo previous change, not needed.
33470 * sinput.adb: Undo previous change, not needed.
33472 * sinput-l.adb: Undo previous change, not needed.
33474 * sinput.ads: Undo previous change, not needed. Keep only comment
33475 on new checksum algorithm
33477 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
33478 Also remove a-tags and a-stream from GNAT sources.
33480 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
33482 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
33484 2001-10-11 Geert Bosch <bosch@gnat.com>
33486 * einfo.h: Regenerate.
33488 * nmake.ads: Regenerate.
33490 * nmake.adb: Regenerate.
33492 * sinfo.h: Regenerate.
33494 * treeprs.adb: Regenerate.
33496 2001-10-10 Geert Bosch <bosch@gnat.com>
33498 * gnat-style.texi: New file describing coding guidelines for Ada.
33500 2001-10-10 Ed Schonberg <schonber@gnat.com>
33502 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
33505 2001-10-10 Geert Bosch <bosch@gnat.com>
33507 * snames.ads: Add new names for project facility.
33509 * snames.adb: Update to reflect snames.ads changes.
33511 * snames.h: Update to reflect snames.ads changes.
33513 2001-10-10 Vincent Celier <celier@gnat.com>
33516 (Add_Switches): reflect the changes for the switches attributes
33517 Default_Switches indexed by the programming language,
33518 Switches indexed by the file name.
33519 (Collect_Arguments_And_Compile): Idem.
33520 Reflect the attribute name changes.
33523 (Initialisation_Data): Change the names of some packages and
33525 (Initialize): process case insensitive associative arrays.
33528 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
33531 (Parse_Attribute_Declaration): For case insensitive associative
33532 arrays, set the index string to lower case.
33535 Reflect the changes of the project attributes.
33538 Replace Check_Naming_Scheme by Ada_Check and
33539 Language_Independent_Check.
33542 Replaced Check_Naming_Scheme by 2 procedures:
33543 Ada_Check and Language_Independent_Check.
33546 (Process_Declarative_Items): For case-insensitive associative
33547 arrays, set the index string to lower case.
33548 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
33549 Prj.Nmsc.Check_Naming_Scheme.
33552 (Case_Insensitive): New function
33553 (Set_Case_Insensitive): New procedure
33556 (Case_Insensitive): New function
33557 (Set_Case_Insensitive): New procedure
33558 (Project_Node_Record): New flag Case_Insensitive.
33561 (Value_Of): new function to get the string value of a single
33562 string variable or attribute.
33565 (Value_Of): new function to get the string value of a single
33566 string variable or attribute.
33569 (Ada_Default_Spec_Suffix): New function
33570 (Ada_Default_Impl_Suffix): New function
33571 Change definitions of several constants to reflect
33572 new components of record types.
33575 (Naming_Data): Change several components to reflect new
33576 elements of naming schemes.
33577 (Project_Data): New flags Sources_Present and
33578 Language_Independent_Checked.
33579 (Ada_Default_Spec_Suffix): New function.
33580 (Ada_Default_Impl_Suffix): New function.
33583 Modification of predefined names for project manager: added
33584 Implementation, Specification_Exceptions, Implementation_Exceptions,
33585 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
33586 Default_Switches, _Languages, Builder, Cross_Reference,
33587 Finder. Removed Body_Part, Specification_Append, Body_Append,
33588 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
33591 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
33594 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
33595 not that it is Nil_Variable_Value.
33597 * prj.ads: Add ??? for uncommented declarations
33599 2001-10-10 Ed Schonberg <schonber@gnat.com>
33601 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
33602 constant, do not indicate possible modification, so that gigi can
33603 treat it as a bona fide constant.
33605 2001-10-10 Robert Dewar <dewar@gnat.com>
33607 * sem_prag.adb: Add processing for pragma External.
33609 * snames.ads: Add entry for pragma External.
33611 * par-prag.adb: Add pragma External.
33613 * snames.adb: Updated to match snames.ads.
33615 2001-10-10 Ed Schonberg <schonber@gnat.com>
33617 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
33618 a dynamic task if the allocator appears in an indexed assignment
33619 or selected component assignment.
33621 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
33622 For a dynamic task in an assignment statement, use target of
33623 assignment to generate meaningful name.
33625 2001-10-10 Ed Schonberg <schonber@gnat.com>
33627 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
33630 * einfo.ads: Body_Entity is also defined for generic package.
33631 Documentation change only
33633 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
33634 others_choice for a discriminated component initialization,
33635 convert discriminant references into the corresponding discriminals.
33637 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
33638 only if original type is private and expression has to be wrapped
33642 (Apply_Constraint_Check): Do not perform length check
33643 if expression is an aggregate with only an others_choice.
33644 (Length_N_Cond): two references to the same in_parameter
33645 (typically the discriminal in an init_proc) denote the same value.
33646 Two useful optimization uncovered by bugfixes above.
33648 2001-10-10 Robert Dewar <dewar@gnat.com>
33650 * xeinfo.adb: Change int to char in translation of enumeration types.
33651 This fixes a problem in the C representation of component alignment.
33652 Add 2001 to copyright notice
33654 2001-10-10 Richard Kenner <kenner@gnat.com>
33656 * decl.c: (validate_size): Do check size of object of integral type
33657 if it is a packed array type.
33659 2001-10-10 Richard Kenner <kenner@gnat.com>
33661 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
33662 VAR_DECL for constant if not Is_Public but -O0.
33664 2001-10-10 Richard Kenner <kenner@gnat.com>
33666 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
33668 2001-10-10 Geert Bosch <bosch@gnat.com>
33670 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
33671 use '/' as switch character, allowing for absolute file names.
33673 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
33675 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
33678 2001-10-08 Geert Bosch <bosch@gnat.com>
33680 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
33681 Automatically build utilities when files need to be regenerated.
33683 2001-10-08 Geert Bosch <bosch@gnat.com>
33685 * xsnames.adb: New utility for updating snames.ads and snames.adb
33687 2001-10-08 Zack Weinberg <zack@codesourcery.com>
33689 * Make-lang.in (ADAFLAGS): Add -W -Wall.
33690 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
33691 (gnat1): Also depend on attribs.o.
33692 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
33693 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
33694 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
33695 (ADAFLAGS): Add -W -Wall.
33696 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
33699 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
33700 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
33701 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
33702 Use $(ADAC), not $(CC), as compilation command.
33704 (gnattools): Depend directly on tools to build, don't use
33706 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
33708 * einfo.h, sinfo.h: New files (autogenerated).
33710 2001-10-08 Richard Henderson <rth@redhat.com>
33712 * comperr.adb (Abort_In_Progress): New.
33713 (Compiler_Abort): Use it to prevent recursion.
33715 2001-10-08 Robert Dewar <dewar@gnat.com>
33717 * atree.adb: Set Error_Posted in Error node, helps error recovery.
33719 * par-endh.adb (Output_End_Expected): We should also not test
33720 Error_Posted on the Error node, since now it is always set.
33722 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
33723 to help error recovery. Part of general work on 9407-004.
33725 * par.adb: Add ??? for misuse of error
33728 (Resolve): Defend against Error, fixes 9407-003.
33729 (Resolve_Discrete_Subtype_Indication): Defend against Error.
33731 * sinfo.ads (N_Error): Now has Etype field (which will be set
33732 to Any_Type to help error recovery).
33734 2001-10-08 Richard Kenner (kenner@gnat.com)
33736 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
33737 Consistently set MEM attributes from expression; fixes
33738 bootstrap failure on x86.
33740 2001-10-08 Geert Bosch (bosch@gnat.com)
33742 * 5oosinte.adb: Add 2001 to copyright notice.
33744 2001-10-08 Geert Bosch (bosch@gnat.com)
33746 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
33748 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
33750 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
33752 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
33754 2001-10-05 Geert Bosch (bosch@gnat.com)
33756 * adaint.h: Small formatting fix.
33758 2001-10-04 Geert Bosch <bosch@gnat.com>
33760 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
33761 Arg is int, not FILE *, in dummy version of functions.
33763 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
33764 Arg is int, not FILE *.
33766 2001-10-04 Geert Bosch <bosch@gnat.com>
33768 * 3lsoccon.ads: Added file, missed with initial check ins.
33770 * 4lintnam.ads: Fix header format.
33771 Change Linux to GNU/Linux.
33773 * 5iosinte.adb: Change Linux to GNU/Linux.
33775 * 5iosinte.ads: Change Linux to GNU/Linux.
33777 * 5itaprop.adb: Change Linux to GNU/Linux.
33779 * 5itaspri.ads: Change Linux to GNU/Linux.
33780 Update copyright notice.
33782 * 5lintman.adb: Change Linux to GNU/Linux.
33784 * 5lml-tgt.adb: Change Linux to GNU/Linux.
33786 * 5losinte.ads: Change Linux to GNU/Linux.
33788 * 5lsystem.ads: Change Linux to GNU/Linux.
33790 * 5qosinte.adb: Change Linux to GNU/Linux.
33792 * 5qosinte.ads: Change Linux to GNU/Linux.
33794 * 5qparame.ads: Change Linux to GNU/Linux.
33796 * 5qtaprop.adb: Change Linux to GNU/Linux.
33798 * 5qtaspri.ads: Change Linux to GNU/Linux.
33799 Add 2001 to copyright notice.
33801 * 5vintman.ads: Change Linux to GNU/Linux.
33802 Fix header format. Add 2001 to copyright notice.
33804 * g-soccon.ads: Change Linux to GNU/Linux.
33806 * g-trasym.ads: Change Linux to GNU/Linux.
33807 Add 2001 to copyright notice.
33809 * memtrack.adb: Change Linux to GNU/Linux.
33811 * s-intman.ads: Change Linux to GNU/Linux.
33812 Add 2001 to copyright notice. Fix header format.
33814 * s-stache.adb: Change Linux to GNU/Linux.
33816 * adaint.c: Change Linux to GNU/Linux.
33818 * cio.c: Change Linux to GNU/Linux.
33820 * cstreams.c: Change Linux to GNU/Linux.
33822 * init.c: Change Linux to GNU/Linux.
33824 * gmem.c: Change Linux to GNU/Linux.
33826 * tracebak.c: Change Linux to GNU/Linux.
33829 2001-10-02 Geert Bosch <bosch@gnat.com>
33831 * misc.c (insert_default_attributes): Add dummy version.