]>
Commit | Line | Data |
---|---|---|
b3d45d87 FW |
1 | 2001-12-23 Florian Weimer <fw@deneb.enyo.de> |
2 | ||
3 | * gnat-style.texi (header): Add @dircategory, @direntry. | |
4 | (title page): Remove date. | |
5 | (general) Add @./@: where approriate, and two spaces after the | |
6 | full stop at the end of a sentence. Use @samp markup when | |
7 | referring concrete lexical entities (keywords, attribute names | |
8 | etc.), and @syntax for ARM grammar elements. Use @r for English | |
9 | text in comments. Use @emph for emphasis. Change "if-statements" | |
10 | etc. to "if statements" (without @samp). Break long lines. Make | |
11 | casing of section names consistent. | |
12 | (Identifiers): Use @samp markup for variable names. | |
13 | (Comments): Use @samp markup for comment characters. Line-end | |
14 | comments may follow any Ada code, not just statements. Fix | |
15 | misspelling of "Integer" as "integer". | |
16 | (Loop statements): Do not use variable name "I", use "J". | |
17 | (Subprogram Declarations): Document alignment. | |
18 | (Subprogram Bodies, Block statements): Document empty line before | |
19 | "begin". | |
20 | ||
7a73ad55 FW |
21 | 2001-12-22 Florian Weimer <fw@deneb.enyo.de> |
22 | ||
23 | * make.adb (Add_Switch): Make Generic_Position a procedure. The | |
24 | function approach did not work well because of a side effect (the | |
25 | function call could reallocate the table which was being indexed | |
26 | using its result). Fixes ada/4851. | |
27 | ||
17c5c8a5 GB |
28 | 2001-12-19 Robert Dewar <dewar@gnat.com> |
29 | ||
30 | * bindgen.adb: Minor reformatting | |
31 | ||
32 | * cstand.adb: Minor reformatting | |
33 | ||
34 | * fmap.adb: Minor reformatting | |
35 | Change name from Add for Add_To_File_Map (Add is much too generic) | |
36 | Change Path_Name_Of to Mapped_Path_Name | |
37 | Change File_Name_Of to Mapped_File_Name | |
38 | Fix copyright dates in header | |
39 | ||
40 | * fmap.ads: | |
41 | Change name from Add for Add_To_File_Map (Add is much too generic) | |
42 | Change Path_Name_Of to Mapped_Path_Name | |
43 | Change File_Name_Of to Mapped_File_Name | |
44 | Fix copyright dates in header | |
45 | ||
46 | * fname-uf.adb: Minor reformatting. New names of stuff in Fmap. | |
47 | Add use clause for Fmap. | |
48 | ||
49 | * make.adb: Minor reformatting | |
50 | ||
51 | * osint.adb: Minor reformatting. Change of names in Fmap. | |
52 | Add use clause for Fmap. | |
53 | ||
54 | * prj-env.adb: Minor reformatting | |
55 | ||
56 | * prj-env.ads: Minor reformatting | |
57 | ||
58 | * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if | |
59 | error found (there were odd exceptions to this general rule in | |
60 | -gnatec/-gnatem processing) | |
61 | ||
62 | 2001-12-19 Olivier Hainque <hainque@gnat.com> | |
63 | ||
64 | * raise.c (__gnat_eh_personality): Exception handling personality | |
65 | routine for Ada. Still in rough state, inspired from the C++ version | |
66 | and still containing a bunch of debugging artifacts. | |
67 | (parse_lsda_header, get_ttype_entry): Local (static) helpers, also | |
68 | inspired from the C++ library. | |
69 | ||
70 | * raise.c (eh_personality): Add comments. Part of work for the GCC 3 | |
71 | exception handling integration. | |
72 | ||
73 | 2001-12-19 Arnaud Charlet <charlet@gnat.com> | |
74 | ||
75 | * Makefile.in: Remove use of 5smastop.adb which is obsolete. | |
76 | (HIE_SOURCES): Add s-secsta.ad{s,b}. | |
77 | (HIE_OBJS): Add s-fat*.o | |
78 | (RAVEN_SOURCES): Remove files that are no longer required. Add | |
79 | interrupt handling files. | |
80 | (RAVEN_MOD): Removed, no longer needed. | |
81 | ||
82 | 2001-12-19 Robert Dewar <dewar@gnat.com> | |
83 | ||
84 | * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always | |
85 | Add 2001 to copyright date | |
86 | ||
87 | * g-regpat.adb: Change pragma Inline_Always to Inline. There is no | |
88 | need to force universal inlining for these cases. | |
89 | ||
90 | 2001-12-19 Arnaud Charlet <charlet@gnat.com> | |
91 | ||
92 | * s-taprob.adb: Minor clean ups so that this unit can be used in | |
93 | Ravenscar HI. | |
94 | ||
95 | * exp_ch7.adb: Allow use of secondary stack in HI mode. | |
96 | Disallow it when pragma Restrictions (No_Secondary_Stack) is specified. | |
97 | ||
98 | 2001-12-19 Vincent Celier <celier@gnat.com> | |
99 | ||
100 | * prj-tree.ads (Project_Node_Record): Add comments for components | |
101 | Pkg_Id and Case_Insensitive. | |
102 | ||
103 | 2001-12-19 Pascal Obry <obry@gnat.com> | |
104 | ||
105 | * g-socket.adb: Minor reformatting. Found while reading code. | |
106 | ||
107 | 2001-12-19 Robert Dewar <dewar@gnat.com> | |
108 | ||
109 | * prj-tree.ads: Minor reformatting | |
110 | ||
38be19f6 JM |
111 | 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk> |
112 | ||
113 | * config-lang.in (diff_excludes): Remove. | |
114 | ||
6510f4c9 GB |
115 | 2001-12-17 Ed Schonberg <schonber@gnat.com> |
116 | ||
117 | * sem_res.adb (Resolve_Selected_Component): do not generate a | |
118 | discriminant check if the selected component is a component of | |
119 | the argument of an initialization procedure. | |
120 | ||
121 | * trans.c (tree_transform, case of arithmetic operators): If result | |
122 | type is private, the gnu_type is the base type of the full view, | |
123 | given that the full view itself may be a subtype. | |
124 | ||
125 | 2001-12-17 Robert Dewar <dewar@gnat.com> | |
126 | ||
127 | * sem_res.adb: Minor reformatting | |
128 | ||
129 | * trans.c (tree_transform, case N_Real_Literal): Add missing third | |
130 | parameter in call to Machine (unknown horrible effects from this | |
131 | omission). | |
132 | ||
133 | * urealp.h: Add definition of Round_Even for call to Machine | |
134 | Add third parameter for Machine | |
135 | ||
136 | 2001-12-17 Ed Schonberg <schonber@gnat.com> | |
137 | ||
138 | * sem_warn.adb (Check_One_Unit): Suppress warnings completely on | |
139 | predefined units in No_Run_Time mode. | |
140 | ||
141 | 2001-12-17 Richard Kenner <kenner@gnat.com> | |
142 | ||
143 | * misc.c (insn-codes.h): Now include. | |
144 | ||
145 | 2001-12-17 Olivier Hainque <hainque@gnat.com> | |
146 | ||
147 | * a-except.adb: Preparation work for future integration of the GCC 3 | |
148 | exception handling mechanism | |
149 | (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines | |
150 | to factorize previous code sequences and make them externally callable, | |
151 | e.g. for the Ada personality routine when the GCC 3 mechanism is used. | |
152 | (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler): | |
153 | Use the new notification routines. | |
154 | ||
155 | 2001-12-17 Emmanuel Briot <briot@gnat.com> | |
156 | ||
157 | * prj-tree.ads (First_Choice_Of): Document the when others case | |
158 | ||
159 | 2001-12-17 Arnaud Charlet <charlet@gnat.com> | |
160 | ||
161 | * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in | |
162 | HI-E mode, in order to support Ravenscar profile properly. | |
163 | ||
164 | * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E | |
165 | mode on 32 bits targets. | |
166 | ||
167 | 2001-12-17 Vincent Celier <celier@gnat.com> | |
168 | ||
169 | * fmap.adb: Initial version. | |
170 | ||
171 | * fmap.ads: Initial version. | |
172 | ||
173 | * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped. | |
174 | If search is successfully done, add to mapping. | |
175 | ||
176 | * frontend.adb: Initialize the mapping if a -gnatem switch was used. | |
177 | ||
178 | * make.adb: | |
179 | (Gnatmake): Add new local variable Mapping_File_Name. | |
180 | Create mapping file when using project file(s). | |
181 | Delete mapping file before exiting. | |
182 | ||
183 | * opt.ads (Mapping_File_Name): New variable | |
184 | ||
185 | * osint.adb (Find_File): Use path name found in mapping, if any. | |
186 | ||
187 | * prj-env.adb (Create_Mapping_File): New procedure | |
188 | ||
189 | * prj-env.ads (Create_Mapping_File): New procedure. | |
190 | ||
191 | * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem | |
192 | (Mapping_File) | |
193 | ||
194 | * usage.adb: Add entry for new switch -gnatem. | |
195 | ||
196 | * Makefile.in: Add dependencies for fmap.o. | |
197 | ||
198 | 2001-12-17 Ed Schonberg <schonber@gnat.com> | |
199 | ||
200 | * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit | |
201 | is a package instantiation rewritten as a package body. | |
202 | (Install_Withed_Unit): Undo previous change, now redundant. | |
203 | ||
204 | 2001-12-17 Gary Dismukes <dismukes@gnat.com> | |
205 | ||
206 | * layout.adb: | |
207 | (Compute_Length): Move conversion to Unsigned to callers. | |
208 | (Get_Max_Size): Convert Len expression to Unsigned after calls to | |
209 | Compute_Length and Determine_Range. | |
210 | (Layout_Array_Type): Convert Len expression to Unsigned after calls to | |
211 | Compute_Length and Determine_Range. | |
212 | Above changes fix problem with length computation for supernull arrays | |
213 | where Max (Len, 0) wasn't getting applied due to the Unsigned | |
214 | conversion used by Compute_Length. | |
215 | ||
216 | 2001-12-17 Arnaud Charlet <charlet@gnat.com> | |
217 | ||
218 | * rtsfind.ads: | |
219 | (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and | |
220 | System.Secondary_Stack. | |
221 | (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar | |
222 | in HI-E mode. | |
223 | Remove unused entity RE_Exception_Data. | |
224 | ||
225 | * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode. | |
226 | ||
227 | * rident.ads (No_Secondary_Stack): New restriction. | |
228 | ||
3a77b68d GB |
229 | 2001-12-17 Joel Brobecker <brobecke@gnat.com> |
230 | ||
231 | * gnat_rm.texi: Fix minor typos. Found while reading the section | |
232 | regarding "Bit_Order Clauses" that was sent to a customer. | |
233 | Very interesting documentation! | |
234 | ||
235 | 2001-12-17 Robert Dewar <dewar@gnat.com> | |
236 | ||
237 | * sem_case.adb (Choice_Image): Avoid creating improper character | |
238 | literal names by using the routine Set_Character_Literal_Name. This | |
239 | fixes bombs in certain error message cases. | |
240 | ||
241 | 2001-12-17 Arnaud Charlet <charlet@gnat.com> | |
242 | ||
243 | * a-reatim.adb: Minor reformatting. | |
244 | ||
245 | 2001-12-17 Ed Schonberg <schonber@gnat.com> | |
246 | ||
247 | * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the | |
248 | case where the formal is an extension of another formal in the current | |
249 | unit or in a parent generic unit. | |
250 | ||
251 | 2001-12-17 Arnaud Charlet <charlet@gnat.com> | |
252 | ||
253 | * s-tposen.adb: Update comments. Minor reformatting. | |
254 | Minor code clean up. | |
255 | ||
256 | * s-tarest.adb: Update comments. Minor code reorganization. | |
257 | ||
258 | 2001-12-17 Gary Dismukes <dismukes@gnat.com> | |
259 | ||
260 | * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag | |
261 | when Java_VM. | |
262 | ||
263 | 2001-12-17 Robert Dewar <dewar@gnat.com> | |
264 | ||
265 | * exp_attr.adb: Minor reformatting | |
266 | ||
267 | 2001-12-17 Ed Schonberg <schonber@gnat.com> | |
268 | ||
269 | * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle | |
270 | derivations nested within a child unit: verify that the parent | |
271 | type is declared in an outer scope. | |
272 | ||
273 | 2001-12-17 Robert Dewar <dewar@gnat.com> | |
274 | ||
275 | * sem_ch12.adb: Minor reformatting | |
276 | ||
277 | 2001-12-17 Ed Schonberg <schonber@gnat.com> | |
278 | ||
279 | * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post | |
280 | warning if current unit is a predefined one, from which bodies may | |
281 | have been deleted. | |
282 | ||
283 | 2001-12-17 Robert Dewar <dewar@gnat.com> | |
284 | ||
285 | * eval_fat.ads: Add comment that Round_Even is referenced in Ada code | |
286 | Fix header format. Add 2001 to copyright date. | |
287 | ||
288 | * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference, | |
289 | which caused CE during compilation if checks were enabled. | |
290 | ||
79503fdd GB |
291 | 2001-12-17 Vincent Celier <celier@gnat.com> |
292 | ||
293 | * make.adb: | |
294 | (Switches_Of): New function | |
295 | (Test_If_Relative_Path): New procedure | |
296 | (Add_Switches): Use new function Switches_Of | |
297 | (Collect_Arguments_And_Compile): Use new function Switches_Of. | |
298 | When using a project file, test if there are any relative | |
299 | search path. Fail if there are any. | |
300 | (Gnatmake): Only add switches for the primary directory when not using | |
301 | a project file. When using a project file, change directory to the | |
302 | object directory of the main project file. When using a project file, | |
303 | test if there are any relative search path. Fail if there are any. | |
304 | When using a project file, fail if specified executable is relative | |
305 | path with directory information, and prepend executable, if not | |
306 | specified as an absolute path, with the exec directory. Make sure | |
307 | that only one -o switch is transmitted to the linker. | |
308 | ||
309 | * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir | |
310 | ||
311 | * prj-nmsc.adb: | |
312 | (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc, | |
313 | when using a non standard naming scheme. | |
314 | (Check_Ada_Naming_Scheme): Make sure that error messages | |
315 | do not raise exceptions. | |
316 | (Is_Illegal_Append): Return True if there is no dot in the suffix. | |
317 | (Language_Independent_Check): Check the exec directory. | |
318 | ||
319 | * prj.adb (Project_Empty): Add new component Exec_Directory | |
320 | ||
321 | * prj.ads: | |
322 | (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults. | |
323 | (Project_Data): Add component Exec_Directory | |
324 | ||
325 | * snames.adb: Updated to match snames.ads revision 1.215 | |
326 | ||
327 | * snames.ads: Added Exec_Dir | |
328 | ||
329 | 2001-12-17 Robert Dewar <dewar@gnat.com> | |
330 | ||
331 | * make.adb: Minor reformatting | |
332 | ||
333 | * prj-nmsc.adb: Minor reformatting | |
334 | ||
335 | * snames.adb: Updated to match snames.ads | |
336 | ||
337 | * snames.ads: Alphebetize entries for project file | |
338 | ||
339 | 2001-12-17 Ed Schonberg <schonber@gnat.com> | |
340 | ||
341 | * trans.c (process_freeze_entity): Do nothing if the entity is a | |
342 | subprogram that was already elaborated. | |
343 | ||
344 | 2001-12-17 Richard Kenner <kenner@gnat.com> | |
345 | ||
346 | * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment | |
347 | and Esize if object is referenced via pointer. | |
348 | ||
855ff2e1 GB |
349 | 2001-12-17 Ed Schonberg <schonber@gnat.com> |
350 | ||
351 | * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant | |
352 | is discrete before analyzing choices. | |
353 | ||
354 | 2001-12-17 Joel Brobecker <brobecke@gnat.com> | |
355 | ||
356 | * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string | |
357 | containing the name of the Ada Main Program. This string is mainly | |
358 | intended for the debugger. | |
359 | (Gen_Output_File_C): Do the equivalent change when generating a C file. | |
360 | ||
361 | 2001-12-17 Robert Dewar <dewar@gnat.com> | |
362 | ||
363 | * ali.adb: Set new Dummy_Entry field in dependency entry | |
364 | ||
365 | * ali.ads: Add Dummy_Entry field to source dependency table | |
366 | ||
367 | * bcheck.adb (Check_Consistency): Ignore dummy D lines | |
368 | ||
369 | * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files | |
370 | ||
371 | * lib-writ.ads: Document dummy D lines for missing files. | |
372 | ||
373 | * types.ads: (Dummy_Time_Stamp): New value for non-existant files | |
374 | ||
c1c22e7a GB |
375 | 2001-12-17 Robert Dewar <dewar@gnat.com> |
376 | ||
377 | * ali.adb: Type reference does not reset current file. | |
378 | ||
379 | * ali.adb: Recognize and scan renaming reference | |
380 | ||
381 | * ali.ads: Add spec for storing renaming references. | |
382 | ||
383 | * lib-xref.ads: Add documentation for handling of renaming references | |
384 | ||
385 | * lib-xref.adb: Implement output of renaming reference. | |
386 | ||
387 | * checks.adb: | |
388 | (Determine_Range): Document local variables | |
389 | (Determine_Range): Make sure Hbound is initialized. It looks as though | |
390 | there could be a real problem here with an uninitialized reference | |
391 | to Hbound, but no actual example of failure has been found. | |
392 | ||
393 | 2001-12-17 Laurent Pautet <pautet@gnat.com> | |
394 | ||
395 | * g-socket.ads: | |
396 | Fix comment of Shutdown_Socket and Close_Socket. These functions | |
397 | should not fail silently because if they are called twice, this | |
398 | probably means that there is a race condition in the user program. | |
399 | Anyway, this behaviour is consistent with the rest of this unit. | |
400 | When an error occurs, an exception is raised with the error message | |
401 | as exception message. | |
402 | ||
7eb7bb07 RD |
403 | 2001-12-17 Robert Dewar <dewar@gnat.com> |
404 | ||
405 | * frontend.adb: Move call to Check_Unused_Withs from Frontend, so | |
406 | that it happens before modification of Sloc values for -gnatD. | |
407 | ||
408 | * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend, | |
409 | so that it happens before modification of Sloc values for -gnatD. | |
410 | ||
411 | * switch.adb: Minor reformatting | |
412 | ||
b6434700 RH |
413 | 2001-12-15 Richard Henderson <rth@redhat.com> |
414 | ||
415 | * sem_ch7.adb: Wrap comment. | |
416 | ||
44d6a706 JM |
417 | 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk> |
418 | ||
419 | * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb, | |
420 | 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb, | |
421 | 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb, | |
422 | 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb, | |
423 | 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb, | |
424 | 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in, | |
425 | a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb, | |
426 | a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb, | |
427 | cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb, | |
428 | exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb, | |
429 | exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads, | |
430 | g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb, | |
431 | gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c, | |
432 | make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads, | |
433 | par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb, | |
434 | repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, | |
435 | s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb, | |
436 | s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads, | |
437 | s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads, | |
438 | s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb, | |
439 | sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb, | |
440 | sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb, | |
441 | sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads, | |
442 | sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix | |
443 | spelling errors. | |
444 | ||
226ada7a GB |
445 | 2001-12-14 Vincent Celier <celier@gnat.com> |
446 | ||
447 | * osint.adb(Create_Debug_File): When an object file is specified, | |
448 | put the .dg file in the same directory as the object file. | |
449 | ||
450 | 2001-12-14 Robert Dewar <dewar@gnat.com> | |
451 | ||
452 | * osint.adb: Minor reformatting | |
453 | ||
454 | * lib-xref.adb (Output_Instantiation): New procedure to generate | |
455 | instantiation references. | |
456 | ||
457 | * lib-xref.ads: Add documentation of handling of generic references. | |
458 | ||
459 | * ali.adb (Read_Instantiation_Ref): New procedure to read | |
460 | instantiation references | |
461 | ||
462 | * ali.ads: Add spec for storing instantiation references | |
463 | ||
464 | * bindusg.adb: Minor reformatting | |
465 | ||
466 | * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5) | |
467 | ||
468 | * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5) | |
469 | ||
470 | * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5) | |
471 | ||
472 | * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5) | |
473 | ||
474 | * csets.ads: | |
475 | Fix header format | |
476 | Add 2001 to copyright date | |
477 | Add entry for Latin-5 (Cyrillic ISO-8859-5) | |
478 | ||
479 | 2001-12-14 Matt Gingell <gingell@gnat.com> | |
480 | ||
481 | * adaint.c: mktemp is a macro on Lynx and can not be used as an | |
482 | expression. | |
483 | ||
484 | 2001-12-14 Richard Kenner <kenner@gnat.com> | |
485 | ||
486 | * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR | |
487 | if operand is CONSTRUCTOR. | |
488 | ||
489 | 2001-12-14 Ed Schonberg <schonber@gnat.com> | |
490 | ||
491 | * trans.c (tree_transform, case N_Assignment_Statement): Set lineno | |
492 | before emiting check on right-hand side, so that exception information | |
493 | is correct. | |
494 | ||
495 | 2001-12-14 Richard Kenner <kenner@gnat.com> | |
496 | ||
497 | * utils.c (create_var_decl): Throw away initializing expression | |
498 | if just annotating types and non-constant. | |
499 | ||
500 | 2001-12-14 Vincent Celier <celier@gnat.com> | |
501 | ||
502 | * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to | |
503 | Default_Ada_... | |
504 | ||
505 | * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix): | |
506 | Remove functions. | |
507 | (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec. | |
508 | ||
509 | * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix): | |
510 | Remove functions. | |
511 | (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body. | |
512 | ||
9b94bf9e JM |
513 | 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk> |
514 | ||
515 | * ChangeLog: Remove piece of diff output. | |
516 | ||
449d2be3 GB |
517 | 2001-12-14 Geert Bosch <bosch@gnat.com> |
518 | ||
519 | * config-lang.in: Update copyright notice | |
520 | ||
521 | * layout.adb: Remove commented out code. | |
522 | ||
523 | * mdllfile.ads: Update copyright notice. Fix header format. | |
524 | ||
525 | * sem_case.ads: Likewise. | |
526 | ||
527 | * sem_ch3.adb: Minor reformatting. | |
528 | ||
e5bd5cb4 GB |
529 | 2001-12-12 Geert Bosch <bosch@gnat.com> |
530 | ||
531 | * freeze.ads: Update copyright date. | |
532 | ||
533 | * g-comlin.ads: Minor reformatting. | |
534 | ||
535 | * gnat-style.texi: Fix typo. | |
536 | ||
b468d8ec GB |
537 | 2001-12-12 Geert Bosch <bosch@gnat.com> |
538 | ||
539 | * einfo.h: Regenerate. | |
540 | ||
ed7da216 GB |
541 | 2001-12-12 Ed Schonberg <schonber@gnat.com> |
542 | ||
543 | * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names | |
544 | on known node types, rather than untyped fields. Further cleanups. | |
545 | ||
546 | 2001-12-12 Robert Dewar <dewar@gnat.com> | |
547 | ||
548 | * sem_ch12.adb: | |
549 | (Save_Entity_Descendant): Minor comment update. | |
550 | (Copy_Generic_Node): Deal with incorrect reference to Associated_Node | |
551 | of an N_Attribute_Reference node. As per note below, this does not | |
552 | eliminate need for Associated_Node in attribute ref nodes. | |
553 | (Associated_Node): Documentation explicitly mentions attribute | |
554 | reference nodes, since this field is used in such nodes. | |
555 | ||
556 | * sem_ch12.adb (Associated_Node): Minor documentation cleanup. | |
557 | ||
de76a39c GB |
558 | 2001-12-12 Robert Dewar <dewar@gnat.com> |
559 | ||
560 | * s-stalib.adb: Add more comments on with statements being needed | |
561 | ||
562 | * par-ch12.adb: Minor reformatting | |
563 | ||
564 | * prj-dect.ads: Fix copyright header | |
565 | ||
566 | * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both | |
567 | inputs fit in 32 bits, but the result still overflows. | |
568 | ||
569 | * s-fatgen.ads: Minor comment improvement | |
570 | ||
571 | 2001-12-12 Ed Schonberg <schonber@gnat.com> | |
572 | ||
573 | * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a | |
574 | formal derived type, look for an inherited component from the full | |
575 | view of the parent, if any. | |
576 | ||
577 | 2001-12-12 Robert Dewar <dewar@gnat.com> | |
578 | ||
579 | * checks.ads (Apply_Alignment_Check): New procedure. | |
580 | ||
581 | * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to | |
582 | ensure that the alignment of objects with address clauses is | |
583 | appropriate, and raise PE if not. | |
584 | ||
585 | * exp_util.ads (Must_Be_Aligned): Removed, replaced by | |
586 | Exp_Pakd.Known_Aligned_Enough | |
587 | ||
588 | * mdllfile.ads: Minor reformatting | |
589 | ||
590 | * mlib-fil.ads: Minor reformatting | |
591 | ||
592 | 2001-12-12 Ed Schonberg <schonber@gnat.com> | |
593 | ||
594 | * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous | |
595 | fix to any component reference if enclosing record has non-standard | |
596 | representation. | |
597 | ||
598 | 2001-12-12 Vincent Celier <celier@gnat.com> | |
599 | ||
600 | * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package | |
601 | Iteration | |
602 | ||
603 | 2001-12-12 Ed Schonberg <schonber@gnat.com> | |
604 | ||
605 | * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in | |
606 | sem_attr. | |
607 | ||
608 | 2001-12-12 Robert Dewar <dewar@gnat.com> | |
609 | ||
610 | * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration | |
611 | ||
612 | 2001-12-12 Emmanuel Briot <briot@gnat.com> | |
613 | ||
614 | * g-regexp.adb: Remove all debug code, since it isn't required anymore, | |
615 | and it adds dependencies to system.io. | |
616 | ||
617 | 2001-12-12 Pascal Obry <obry@gnat.com> | |
618 | ||
619 | * g-dirope.adb (Expand_Path.Var): Correctly detect end of | |
620 | variable name. | |
621 | ||
0b09835f ES |
622 | 2001-12-11 Ed Schonberg <schonber@gnat.com> |
623 | ||
624 | * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance | |
625 | that is the parent of other generics, the instance body replaces the | |
626 | instance node. Retrieve the instance of the spec, which is the one | |
627 | that is visible in clients and within the body. | |
628 | ||
598c3446 GB |
629 | 2001-12-11 Vincent Celier <celier@gnat.com> |
630 | ||
631 | * gnatmain.adb: Initial version. | |
632 | ||
633 | * gnatmain.ads: Initial version. | |
634 | ||
635 | * prj-attr.adb (Initialisation_Data): Add package Gnatstub. | |
636 | ||
637 | * snames.adb: Updated to match snames.ads. | |
638 | ||
639 | * snames.ads: Added Gnatstub. | |
640 | ||
641 | 2001-12-11 Vincent Celier <celier@gnat.com> | |
642 | ||
643 | * prj-attr.adb (Initialization_Data): Change name from | |
644 | Initialisation_Data. | |
645 | ||
646 | 2001-12-11 Emmanuel Briot <briot@gnat.com> | |
647 | ||
648 | * g-regpat.adb (Parse_Literal): Properly handle simple operators ?, | |
649 | + and * applied to backslashed expressions like \r. | |
650 | ||
651 | 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com> | |
652 | ||
653 | * g-os_lib.ads: String_List type added, Argument_List type is now | |
654 | subtype of String_List. | |
655 | ||
656 | 2001-12-11 Robert Dewar <dewar@gnat.com> | |
657 | ||
658 | * g-os_lib.ads: Change copyright to FSF | |
659 | Add comments for String_List type | |
660 | ||
661 | 2001-12-11 Vincent Celier <celier@gnat.com> | |
662 | ||
663 | * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a | |
664 | string to the buffer). | |
665 | ||
7fb754a1 GB |
666 | 2001-12-11 Ed Schonberg <schonber@gnat.com> |
667 | ||
668 | * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in | |
669 | sem_attr. | |
670 | ||
671 | * sem_attr.adb: Simplify previous fix for Address. | |
672 | (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now, | |
673 | to avoid anomalies where the bound of the type appears to raise | |
674 | constraint error. | |
675 | ||
676 | 2001-12-11 Robert Dewar <dewar@gnat.com> | |
677 | ||
678 | * lib-xref.adb (Output_Refs): Make sure pointers are always properly | |
679 | handled. | |
680 | ||
681 | 2001-12-11 Ed Schonberg <schonber@gnat.com> | |
682 | ||
683 | * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a | |
684 | renamed unit before checking for recursive instantiations. | |
685 | ||
686 | 2001-12-11 Emmanuel Briot <briot@gnat.com> | |
687 | ||
688 | * prj.ads: Add comments for some of the fields. | |
689 | ||
0873bafc GB |
690 | 2001-12-11 Robert Dewar <dewar@gnat.com> |
691 | ||
692 | * lib-xref.adb (Output_Refs): Don't output type references outside | |
693 | the main unit if they are not otherwise referenced. | |
694 | ||
695 | 2001-12-11 Ed Schonberg <schonber@gnat.com> | |
696 | ||
697 | * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify | |
698 | code and diagnose additional illegal uses | |
699 | ||
700 | * sem_util.adb (Is_Object_Reference): An indexed component is an | |
701 | object only if the prefix is. | |
702 | ||
703 | 2001-12-11 Vincent Celier <celier@gnat.com> | |
704 | ||
705 | * g-diopit.adb: Initial version. | |
706 | ||
707 | * g-diopit.ads: Initial version. | |
708 | ||
709 | * g-dirope.adb: | |
710 | (Expand_Path): Avoid use of Unbounded_String | |
711 | (Find, Wildcard_Iterator): Moved to child package Iteration | |
712 | ||
713 | * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS | |
714 | ||
7fb754a1 | 715 | 2001-12-11 Robert Dewar <dewar@gnat.com> |
0873bafc GB |
716 | |
717 | * sem_attr.adb: Minor reformatting | |
718 | ||
d087cd96 GB |
719 | 2001-12-11 Ed Schonberg <schonber@gnat.com> |
720 | ||
721 | * sem_ch3.adb: Clarify some ???. | |
722 | ||
723 | 2001-12-11 Robert Dewar <dewar@gnat.com> | |
724 | ||
725 | * exp_util.adb (Must_Be_Aligned): Removed, replaced by | |
726 | Exp_Pakd.Known_Aligned_Enough | |
727 | ||
728 | * sem_ch13.adb (Check_Address_Alignment): Removed, extended | |
729 | version is moved to Exp_Ch13. | |
730 | ||
731 | 2001-12-11 Robert Dewar <dewar@gnat.com> | |
732 | ||
733 | * einfo.ads: Minor reformatting | |
734 | ||
735 | * exp_ch5.adb: Add comment for previous.change | |
736 | ||
737 | * ali.adb: New interface for extended typeref stuff. | |
738 | ||
739 | * ali.ads: New interface for typeref stuff. | |
740 | ||
741 | * checks.adb (Apply_Alignment_Check): New procedure. | |
742 | ||
743 | * debug.adb: Add -gnatdM for modified ALI output | |
744 | ||
745 | * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough. | |
746 | ||
747 | * lib-xref.adb: Extend generation of <..> notation to cover | |
748 | subtype/object types. Note that this is a complete rewrite, | |
749 | getting rid of the very nasty quadratic algorithm previously | |
750 | used for derived type output. | |
751 | ||
752 | * lib-xref.ads: Extend description of <..> notation to cover | |
753 | subtype/object types. Uses {..} for these other cases. | |
754 | Also use (..) for pointer types. | |
755 | ||
756 | * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup. | |
757 | ||
758 | * exp_pakd.adb: Minor reformatting. Note that prevous RH should say: | |
759 | (Known_Aligned_Enough): Replaces Must_Be_Aligned. | |
760 | ||
290986ed GB |
761 | 2001-12-11 Vincent Celier <celier@gnat.com> |
762 | ||
763 | * gnatcmd.adb: | |
764 | Changed /COMPILE_ONLY to /ACTIONS=COMPILE | |
765 | Changed /BIND_ONLY to /ACTIONS=BIND | |
766 | Changed /LINK_ONLY to /ACTIONS=LINK | |
767 | ||
768 | 2001-12-11 Ed Schonberg <schonber@gnat.com> | |
769 | ||
770 | * sem_ch8.adb (Find_Selected_Component): improved search for a | |
771 | candidate package in case of error. | |
772 | ||
773 | * sem_ch12.adb (Inline_Instance_Body): place head of use_clause | |
774 | chain back on scope stack before reinstalling use clauses. | |
775 | ||
776 | * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings | |
777 | is enabled, do not kill the code for the condition, to preserve | |
778 | warning. | |
779 | ||
84157f51 GB |
780 | 2001-12-11 Robert Dewar <dewar@gnat.com> |
781 | ||
782 | * checks.adb (Insert_Valid_Check): Apply validity check to expression | |
783 | of conversion, not to result of conversion. | |
784 | ||
785 | 2001-12-11 Ed Schonberg <schonber@gnat.com> | |
786 | ||
787 | * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag | |
788 | before freezing parent. If the declarations are mutually recursive, | |
789 | an access to the current record type may be frozen before the | |
790 | derivation is complete. | |
791 | ||
7ffa903f VC |
792 | 2001-12-05 Vincent Celier <celier@gnat.com> |
793 | ||
794 | * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY, | |
795 | -c /COMPILE_ONLY, -l /LINK_ONLY | |
796 | ||
797 | * opt.ads: | |
798 | (Bind_Only): New Flag | |
799 | (Link_Only): New flag | |
800 | ||
801 | * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only) | |
802 | and -l (Link_Only) | |
803 | ||
804 | * makeusg.adb: Add new switches -b and -l. Update Copyright notice. | |
805 | ||
806 | * make.adb: | |
807 | (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags. | |
808 | (Gnatmake): Set the step flags. Only perform a step if the | |
809 | corresponding step flag is True. | |
810 | (Scan_Make_Arg): Reset the bind and link step flags when -u | |
811 | or -gnatc has been specified. | |
812 | ||
f91b40db GB |
813 | 2001-12-05 Ed Schonberg <schonber@gnat.com> |
814 | ||
815 | * sem_eval.adb (Eval_Concatenation): If left operand is a null string, | |
816 | get bounds from right operand. | |
817 | ||
818 | * sem_eval.adb: Minor reformatting | |
819 | ||
820 | * exp_util.adb (Make_Literal_Range): use bound of literal rather | |
821 | than Index'First, its lower bound may be different from 1. | |
822 | ||
823 | * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B | |
824 | and C48009J | |
825 | ||
826 | 2001-12-05 Vincent Celier <celier@gnat.com> | |
827 | ||
828 | * prj-nmsc.adb Minor reformatting | |
829 | ||
830 | * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if | |
831 | set and libraries are not supported. | |
832 | ||
833 | 2001-12-05 Ed Schonberg <schonber@gnat.com> | |
834 | ||
835 | * sem_ch3.adb (Build_Derived_Private_Type): set Public status of | |
836 | private view explicitly, so the back-end can treat as a global | |
837 | when appropriate. | |
838 | ||
45d04cbb GB |
839 | 2001-12-05 Ed Schonberg <schonber@gnat.com> |
840 | ||
841 | * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation | |
842 | unit, always replace instance node with new body, for ASIS use. | |
843 | ||
844 | 2001-12-05 Vincent Celier <celier@gnat.com> | |
845 | ||
846 | * prj-nmsc.adb (Language_Independent_Check): Issue a warning if | |
847 | libraries are not supported and both attributes Library_Name and | |
848 | Library_Dir are specified. | |
849 | ||
850 | * prj-proc.adb (Expression): Set location of Result to location of | |
851 | first term. | |
852 | ||
853 | * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS. | |
854 | (prj-nmsc is now importing MLib.Tgt) | |
855 | ||
856 | * prj-proc.adb: Put the change indicated above that was forgotten. | |
857 | ||
84436014 RD |
858 | 2001-12-05 Robert Dewar <dewar@gnat.com> |
859 | ||
860 | * Makefile.in: Add dependencies for System.IO for GNAT.Regexp | |
861 | ||
7ae0dcd8 ES |
862 | 2001-12-05 Ed Schonberg <schonber@gnat.com> |
863 | ||
864 | * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a | |
865 | constraint, introduce explicit subtype declaration and derive from it. | |
866 | ||
867 | * sem_ch3.adb: Minor reformatting | |
868 | ||
c9a4817d RD |
869 | 2001-12-05 Robert Dewar <dewar@gnat.com> |
870 | ||
871 | * checks.adb (Determine_Range): Increase cache size for checks. | |
872 | Minor reformatting | |
873 | ||
874 | * exp_ch6.adb: Minor reformatting | |
875 | (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has | |
876 | a parameter whose root type is System.Address, since treating such | |
877 | subprograms as pure in the code generator is almost surely a mistake | |
878 | that will lead to unexpected results. | |
879 | ||
880 | * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and | |
881 | change handling of conversions. | |
882 | ||
883 | * g-regexp.adb: Use System.IO instead of Ada.Text_IO. | |
884 | ||
2514b839 ES |
885 | 2001-12-05 Ed Schonberg <schonber@gnat.com> |
886 | ||
887 | * sem_ch3.adb (Analyze_Object_Declaration): If expression is an | |
888 | aggregate with static wrong size, attach generated Raise node to | |
889 | declaration. | |
890 | ||
457b6274 RD |
891 | 2001-12-05 Robert Dewar <dewar@gnat.com> |
892 | ||
893 | * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute. | |
894 | Fixes compilation abandoned bomb in B24009B. | |
895 | ||
19349925 ES |
896 | 2001-12-05 Ed Schonberg <schonber@gnat.com> |
897 | ||
898 | * sem_ch12.adb: | |
899 | Document use of Associated_Node on Selected_Components. | |
900 | (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants, | |
901 | to clarify use of untyped descendant fields. | |
902 | ||
6663c393 RD |
903 | 2001-12-05 Robert Dewar <dewar@gnat.com> |
904 | ||
905 | * prj-dect.ads: Add ??? comment | |
906 | Add 2001 to copyright notice (was not done in after all) | |
907 | ||
908 | * prj-part.adb: Minor reformatting. Reword one awkward error message. | |
909 | ||
910 | * prj.ads: Minor reformatting throughout, and add some ??? comments | |
911 | ||
912 | * snames.ads: Minor reformatting | |
913 | ||
d7b2a6af GB |
914 | 2001-12-05 Geert Bosch <bosch@gnat.com> |
915 | ||
916 | * snames.adb: Autoupdate | |
917 | ||
fbc9a404 VC |
918 | 2001-12-05 Vincent Celier <celier@gnat.com> |
919 | ||
920 | * prj-dect.adb (Parse): Rename parameter Modifying to Extends. | |
921 | ||
922 | * prj-dect.ads (Parse): Rename parameter Modifying to Extends. | |
923 | ||
924 | * prj-env.adb: Minor comment changes (modifying -> extends). | |
925 | ||
926 | * prj-nmsc.adb: Minor comment changes (modifying -> extends). | |
927 | ||
928 | * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to | |
929 | Tok_Extends. | |
930 | ||
931 | * prj.adb (Initialize): Change Modifying to Extends. | |
932 | ||
933 | * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends. | |
934 | ||
935 | * prj.ads: Minor comment change (Modifying -> extending). | |
936 | ||
937 | * snames.ads: Change modifying to extends. | |
938 | ||
7cff0b1b RD |
939 | 2001-12-05 Robert Dewar <dewar@gnat.com> |
940 | ||
941 | * sem_warn.adb: Remove stuff for conditionals, we are not going to | |
942 | do this after all. | |
943 | ||
944 | * sem_warn.ads: Remove stuff for conditionals, we are not going to | |
945 | do this after all. Add 2001 to copyright notice | |
946 | ||
4f56ebb7 GB |
947 | 2001-12-04 Geert Bosch <bosch@gnat.com> |
948 | ||
949 | * einfo.h, sinfo.h, treeprs.ads: Regenerate. | |
950 | ||
053defdf RD |
951 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
952 | ||
953 | * errout.adb (Error_Msg): Ignore attempt to put error msg at junk | |
954 | location if we already have errors. Stops some cases of cascaded | |
955 | errors. | |
956 | ||
957 | * errout.adb: Improve comment. | |
958 | ||
f311e166 RD |
959 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
960 | ||
961 | * sem_ch12.adb: | |
962 | (Analyze_Formal_Type_Definition): Defend against Error. | |
963 | (Analyze_Formal_Subprogram): Defend against Error. | |
964 | ||
965 | * par-ch12.adb (F_Formal_Type_Declaration): In case of error, | |
966 | remove following semicolon if present. Removes cascaded error. | |
967 | ||
d61bd65a DR |
968 | 2001-12-04 Douglas B. Rupp <rupp@gnat.com> |
969 | ||
970 | * bindgen.adb: | |
971 | (Gen_Exception_Table_Ada): Write "begin" and then return if Num | |
972 | exceptions equals 0. | |
973 | (Gen_Exception_Table_C): Return if Num exceptions equals 0. | |
974 | Fixes PIWG E tests (which have to be run with -gnatL). | |
975 | ||
4ba603e2 RD |
976 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
977 | ||
978 | * einfo.ads: Minor reformatting | |
979 | ||
57568d91 ES |
980 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
981 | ||
982 | * einfo.ads: Block_Node points to the identifier of the block, not to | |
983 | the block node itself, to preserve the link when the block is | |
984 | rewritten, e.g. within an if-statement with a static condition. | |
985 | ||
986 | * inline.adb (Cleanup_Scopes): recover block statement from block | |
987 | entity using new meaning of Block_Node. | |
988 | ||
989 | * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to | |
990 | identifier of block node, rather than to node itself. | |
991 | ||
0815d36a GD |
992 | 2001-12-04 Gary Dismukes <dismukes@gnat.com> |
993 | ||
994 | * layout.adb: | |
995 | (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size. | |
996 | (Discrimify): Go back to setting the Etypes of the selected component | |
997 | because the Vname component does not exist at this point and will | |
998 | fail name resolution. Also set Analyzed. | |
999 | Remove with and use of Sem_Res. | |
1000 | ||
edc0f304 AC |
1001 | 2001-12-04 Arnaud Charlet <charlet@gnat.com> |
1002 | ||
1003 | * Makefile.in: (HIE_SOURCES): add s-fat*. | |
1004 | ||
32213142 RD |
1005 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
1006 | ||
1007 | * sem_attr.adb: | |
1008 | (Compile_Time_Known_Attribute): New procedure. | |
1009 | (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure | |
1010 | proper range check. | |
1011 | ||
c0def2ad ES |
1012 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
1013 | ||
1014 | * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before | |
1015 | processing discriminants to diagnose illegal default values. | |
1016 | ||
ee0a48c5 ES |
1017 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
1018 | ||
1019 | * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide | |
1020 | access discriminant within a type extension that constrains its | |
1021 | parent discriminants. | |
1022 | ||
dd5875a6 ES |
1023 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
1024 | ||
1025 | * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication | |
1026 | is malformed, use instance of Any_Id to allow analysis to proceed. | |
1027 | ||
1028 | * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if | |
1029 | type definition is illegal. | |
1030 | (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is | |
1031 | misplaced. | |
1032 | ||
c2a41e57 ES |
1033 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
1034 | ||
1035 | * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to | |
1036 | constants. | |
1037 | ||
0ae84753 RD |
1038 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
1039 | ||
1040 | * errout.adb: Minor reformatting | |
1041 | ||
63db260e RD |
1042 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
1043 | ||
1044 | * exp_util.adb: Minor reformatting from last change | |
1045 | ||
1046 | * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node | |
1047 | which is a rewriting of an expression, traverse the original | |
1048 | expression to remove warnings that may have been posted on it. | |
1049 | ||
c6d289f4 ES |
1050 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
1051 | ||
1052 | * exp_util.adb (Must_Be_Aligned): Return false for a component of a | |
1053 | record that has other packed components. | |
1054 | ||
5917e80d DR |
1055 | 2001-12-04 Douglass B. Rupp <rupp@gnat.com> |
1056 | ||
1057 | * adaint.c: Minor cleanups. | |
1058 | ||
2c70f9dd DR |
1059 | 2001-12-04 Douglass B. Rupp <rupp@gnat.com> |
1060 | ||
1061 | * adaint.c: Do not use utime.h on vxworks. | |
1062 | ||
e59b3387 AC |
1063 | 2001-12-04 Arnaud Charlet <charlet@gnat.com> |
1064 | ||
1065 | * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes | |
1066 | more confusion than it solves. | |
1067 | ||
e288604a GB |
1068 | 2001-12-04 Geert bosch <bosch@gnat.com> |
1069 | ||
1070 | * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate. | |
1071 | ||
5ac21013 GB |
1072 | 2001-12-04 Geert Bosch <bosch@gnat.com> |
1073 | ||
1074 | * Makefile.in (update-sources): New target. | |
1075 | For use by gcc_release script. | |
1076 | ||
7dd5bd5e ES |
1077 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
1078 | ||
1079 | * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as | |
1080 | a configuration pragma, it is now legal wherever a pragma can appear. | |
1081 | ||
a078a589 ZW |
1082 | 2001-12-04 Zack Weinberg <zack@codesourcery.com> |
1083 | ||
1084 | * Makefile.in: Don't set ALL. Delete @cross_defines@, | |
1085 | @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS | |
1086 | is now @CROSS@ -DIN_GCC; update comment. | |
1087 | ||
0839863c GB |
1088 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
1089 | ||
1090 | * einfo.adb (Has_Pragma_Pure_Function): New flag. | |
1091 | Fix problem that stopped ceinfo from working | |
1092 | ||
1093 | * einfo.ads (Has_Pragma_Pure_Function): New flag. | |
1094 | ||
1095 | * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function. | |
1096 | ||
1097 | 2001-12-04 Douglas B. Rupp <rupp@gnat.com> | |
9678de49 DR |
1098 | |
1099 | * gnatchop.adb: | |
1100 | (File_Time_Stamp): New procedure. | |
1101 | (Preserve_Mode): New boolean. | |
1102 | (Write_Unit): Pass time stamp. | |
1103 | Implement -p switch (preserve time stamps). | |
1104 | ||
1105 | * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE). | |
1106 | ||
1107 | * gnatchop.adb: Do usage info for -p switch | |
1108 | ||
1109 | * adaint.h (__gnat_set_file_time_name): New function | |
1110 | ||
1111 | * adaint.c (__gnat_set_file_time_name): Implement | |
1112 | ||
1113 | * adaint.h: Fix typo | |
1114 | ||
3b9a13c4 RD |
1115 | 2001-12-03 Robert Dewar <dewar@gnat.com> |
1116 | ||
667e5c5d | 1117 | * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not |
3b9a13c4 RD |
1118 | have Associated_Node. |
1119 | ||
767b404e RD |
1120 | 2001-12-03 Robert Dewar <dewar@gnat.com> |
1121 | ||
1122 | * prj-proc.adb: Minor reformatting | |
667e5c5d | 1123 | |
767b404e RD |
1124 | * make.adb: Minor reformatting |
1125 | ||
11ac71ba GB |
1126 | 2001-12-03 Geert Bosch <bosch@gnat.com> |
1127 | ||
667e5c5d | 1128 | * make.adb: Minor reformatting. |
11ac71ba | 1129 | |
ef3d4d6e | 1130 | 2001-12-03 Robert Dewar <dewar@gnat.com> |
b1446533 RD |
1131 | |
1132 | * sem_ch12.adb: Minor reformatting | |
1133 | ||
d6d32b24 ES |
1134 | 2001-12-03 Ed Schonberg <schonber@gnat.com> |
1135 | ||
667e5c5d AJ |
1136 | * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and |
1137 | push Standard on the stack before analyzing the instance body, | |
d6d32b24 | 1138 | in order to have a clean visibility environment. |
667e5c5d AJ |
1139 | |
1140 | * sem_ch12.adb (Inline_Instance_Body): Remove redundant code. | |
d6d32b24 | 1141 | |
13f08f03 ES |
1142 | 2001-12-03 Ed Schonberg <schonber@gnat.com> |
1143 | ||
667e5c5d | 1144 | * sem_ch12.adb (Instantiate_Package_Body): Protect against double |
13f08f03 ES |
1145 | instantiation of a body that contains an inlined body. |
1146 | ||
3bd6c100 ES |
1147 | 2001-12-03 Ed Schonberg <schonber@gnat.com> |
1148 | ||
1149 | * sem_ch12.adb: | |
1150 | (Analyze_generic_subprogram_Declaration): Set outer_generic_scope, | |
1151 | to prevent freezing within formal packages. | |
1152 | (Freeze_Subprogram_Body): If body comes from another instance that | |
1153 | appeared before its own body, place freeze node at end of current | |
1154 | declarative part, to prevent a back-end crash. | |
1155 | (Inline_Instance_Body): Handle properly a package instance within | |
1156 | a subprogram instance that is a child unit. | |
1157 | ||
58d07d8f GS |
1158 | 2001-12-01 Graham Stott <grahams@redhat.com> |
1159 | ||
1160 | * Makefile.in (misc.o): Add missing $(srcdir) prefix | |
1161 | and add optabs.h dependency. | |
1162 | ||
1163 | * misc.c: Include optabs.h | |
1164 | (gnat_tree_code_type): Make static and const. | |
1165 | (gnat_tree_code_length): Likewise. | |
1166 | (gnat_tree_code_name): Likewise. | |
1167 | (update_setjmp_buf): Obtain operands mode from insn_data. | |
1168 | ||
c87222f0 RH |
1169 | 2001-11-29 Richard Henderson <rth@redhat.com> |
1170 | ||
1171 | * init.c: Remove obsolete dwarf2 frame.h section. | |
1172 | ||
d3945f0a JM |
1173 | 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk> |
1174 | ||
1175 | * Make-lang.in (ada.generated-manpages): New dummy target. | |
1176 | ||
9f639397 ES |
1177 | 2001-11-29 Ed Schonberg <schonber@gnat.com> |
1178 | ||
667e5c5d AJ |
1179 | * g-os_lib.adb (Add_To_Command): use explicit loop to move string |
1180 | into Command, an array conversion is illegal here. Uncovered by | |
9f639397 ES |
1181 | ACATS B460005. |
1182 | ||
c835e5c6 GB |
1183 | 2001/11/28 Geert Bosch <bosch@gnat.com> |
1184 | ||
1185 | * init.c: Minor whitespace changes. | |
1186 | ||
49bb4548 DR |
1187 | 2001-11-28 Doug Rupp <rupp@gnat.com> |
1188 | ||
667e5c5d | 1189 | * init.c: (__gnat_install_handler,VMS): Increase size of alternate |
49bb4548 DR |
1190 | signal stack. |
1191 | ||
ea2417e5 ZW |
1192 | 2001-11-28 Zack Weinberg <zack@codesourcery.com> |
1193 | ||
1194 | * misc.c (gnat_expand_constant): Move declaration above | |
1195 | definition of lang_hooks. | |
1196 | (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant. | |
1197 | (gnat_init): lang_expand_constant no longer exists. | |
1198 | ||
1199 | (internal_error_function): Remove #ifdef HAVE_VPRINTF. We | |
1200 | always have vprintf. | |
1201 | (gnat_init): Always call set_internal_error_function. | |
1202 | ||
f8e0aa73 AJ |
1203 | 2001-11-27 Andreas Jaeger <aj@suse.de> |
1204 | ||
1205 | * Makefile.in (stamp-tool_src_dir): Use symbolic link. | |
1206 | ||
d99b0e79 LG |
1207 | 2001-11-27 Laurent Guerby <guerby@acm.org> |
1208 | ||
1209 | * Makefile.in: Regenerate Ada dependencies. | |
1210 | ||
3f0496e5 RH |
1211 | 2001-11-26 Richard Henderson <rth@redhat.com> |
1212 | ||
1213 | * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd, | |
1214 | gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys, | |
1215 | gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o. | |
1216 | ||
92fa4733 LG |
1217 | 2001-11-25 Laurent Guerby <guerby@acm.org> |
1218 | ||
1219 | * sysdep.c (rts_get_*): Fix style. | |
1220 | ||
07626501 LG |
1221 | 2001-11-19 Laurent Guerby <guerby@acm.org> |
1222 | ||
1223 | * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include | |
1224 | since it is of no apparent use and cause warnings. | |
1225 | ||
22703ccc NB |
1226 | 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk> |
1227 | ||
1228 | * misc.c (gnat_decode_option, gnat_init_options): Make definitions | |
1229 | static too. | |
1230 | (gnat_init): Don't return NULL. | |
1231 | (finish_parse): Remove. | |
1232 | ||
b0df4321 LG |
1233 | 2001-11-17 Laurent Guerby <guerby@acm.org> |
1234 | ||
1235 | * Make-lang.in (GNATLIBFLAGS): Add -W -Wall. | |
1236 | * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing. | |
1237 | * io-aux.c: Provide K&R prototypes to all functions, reformat code. | |
1238 | * lang-spec.h: Add missing struct field to silence warnings. | |
1239 | * sysdep.c (rts_get_*): Provide K&R prototype. | |
1240 | * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype. | |
1241 | * traceback.c (Unlock_Task, Lock_Task): Likewise. | |
1242 | * tracebak.c (__gnat_backtrace): Remove unused variable. | |
1243 | * utils.c (end_subprog_body): Move to K&R style. | |
1244 | ||
d215024f RK |
1245 | Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
1246 | ||
1247 | * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference. | |
1248 | ||
f5e99456 NB |
1249 | 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk> |
1250 | ||
1251 | * misc.c (gnat_init): Change prototype. Include the | |
1252 | functionality of the old init_parse and init_decl_processing. | |
1253 | (gnat_init_decl_processing): New prototype. | |
1254 | (init_parse): Remove. | |
1255 | * utils.c (init_decl_processing): Rename gnat_init_decl_processing. | |
1256 | ||
5d69f816 NB |
1257 | 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk> |
1258 | ||
1259 | * misc.c (gnat_print_decl, gnat_print_type): Renamed. | |
1260 | (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override. | |
1261 | (print_lang_statistics, lang_print_xnode, print_lang_identifier, | |
1262 | set_yydebug): Remove. | |
1263 | ||
3ac88239 NB |
1264 | 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk> |
1265 | ||
1266 | * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override. | |
1267 | (struct lang_hooks): Constify. | |
1268 | (language_string, lang_identify): Remove. | |
1269 | * utils.c (init_decl_processing): Update. | |
1270 | ||
d23c55c2 NB |
1271 | 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk> |
1272 | ||
1273 | * misc.c: Include langhooks-def.h. | |
1274 | * Makefile.in: Update. | |
1275 | ||
04a1b79c RD |
1276 | 2001-10-30 Robert Dewar <dewar@gnat.com> |
1277 | ||
1278 | * style.adb: | |
1279 | (Check_Identifier): Rewrite circuit to be compatible with use of letters | |
1280 | in the upper half of ASCII. | |
1281 | (Check_Identifier): Minor reformatting | |
1282 | ||
81fa2d39 GB |
1283 | 2001-10-30 Geert Bosch <bosch@gnat.com> |
1284 | ||
f8e0aa73 | 1285 | * (Associated_Node, Set_Associated_Node): Do not check for |
81fa2d39 GB |
1286 | Freeze_Entity. |
1287 | ||
ffc5527f RD |
1288 | 2001-10-30 Robert Dewar <dewar@gnat.com> |
1289 | ||
1290 | * a-reatim.ads: Minor reformatting | |
1291 | ||
865335eb RD |
1292 | 2001-10-30 Robert Dewar <dewar@gnat.com> |
1293 | ||
f8e0aa73 | 1294 | * gnatdll.adb: Minor reformatting throughout. Many ??? added for |
865335eb RD |
1295 | undocumented declarations. |
1296 | ||
5e257178 PO |
1297 | 2001-10-30 Pascal Obry <obry@gnat.com> |
1298 | ||
f8e0aa73 | 1299 | * gnatdll.adb (Parse_Command_Line): handle -g option to be passed |
5e257178 PO |
1300 | to the binder and linker. |
1301 | Minor style fix. | |
f8e0aa73 | 1302 | |
5e257178 PO |
1303 | * mdll.ads: Fix layout. Update copyright notice. |
1304 | ||
1305 | * mdll.adb: Fix layout. Update copyright notice. | |
1306 | ||
1753e0ad RD |
1307 | 2001-10-30 Robert Dewar <dewar@gnat.com> |
1308 | ||
1309 | * usage.adb: Minor fix to output for -gnaty. | |
1310 | ||
84bfdde0 ES |
1311 | 2001-10-30 Ed Schonberg <schonber@gnat.com> |
1312 | ||
f8e0aa73 AJ |
1313 | * a-reatim.ads: Makes Seconds_Count into a 64-bit integer, |
1314 | to accommodate all its possible values. | |
84bfdde0 | 1315 | |
f8e0aa73 | 1316 | * a-reatim.adb (Split): Special-case handling of Time_Span_First |
84bfdde0 ES |
1317 | and of small absolute values of T. |
1318 | ||
c296e5fc RK |
1319 | 2001-10-30 Richard Kenner <kenner@gnat.com> |
1320 | ||
f8e0aa73 AJ |
1321 | * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to |
1322 | set_mem_attributes since not needed and wrong if RESULT if a REG; | |
c296e5fc RK |
1323 | fixes ACATS failures. |
1324 | ||
07c809df GB |
1325 | 2001-10-30 Geert Bosch <bosch@gnat.com> |
1326 | ||
1327 | * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads, | |
1328 | s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice. | |
1329 | ||
54d22416 | 1330 | 2001-10-30 Robert Dewar <dewar@gnat.com> |
f8e0aa73 | 1331 | |
54d22416 | 1332 | * bindusg.adb: Undocument -f switch. |
f8e0aa73 | 1333 | |
54d22416 | 1334 | * gnatcmd.adb: Remove /FULL_ELABORATION. |
f8e0aa73 AJ |
1335 | |
1336 | * opt.ads (Force_RM_Elaboration_Order): Document that this is | |
54d22416 | 1337 | obsolescent. |
f8e0aa73 | 1338 | |
54d22416 | 1339 | * gnatbind.adb: Output new warning for use of obsolescent -f switch. |
f8e0aa73 | 1340 | |
54d22416 RD |
1341 | * gnatbind.adb: Minor update of warning msg. |
1342 | ||
af5cf6f8 VC |
1343 | 2001-10-30 Vincent Celier <celier@gnat.com> |
1344 | ||
f8e0aa73 | 1345 | * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations |
af5cf6f8 | 1346 | for project file switches (-P (/PROJECT_FILE=), |
f8e0aa73 | 1347 | -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT |
af5cf6f8 VC |
1348 | or MEDIUM or HIGH) |
1349 | ||
984bc4c3 GB |
1350 | 2001-10-30 Geert Bosch <bosch@gnat.com> |
1351 | ||
1352 | * decl.c: Minor whitespace fixes. | |
1353 | ||
5dece937 RK |
1354 | 2001-10-30 Richard Kenner <kenner@gnat.com> |
1355 | ||
1356 | * utils2.c (build_allocator): Test for SIZE overflow in array case too | |
1357 | ||
de4bf6cb GB |
1358 | 2001-10-30 Geert Bosch <bosch@gnat.com> |
1359 | ||
f8e0aa73 | 1360 | * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out. |
de4bf6cb | 1361 | Found due to GCC 3.0 warning of using uninitialized value. |
f8e0aa73 | 1362 | |
de4bf6cb GB |
1363 | * layout.adb: |
1364 | (Get_Max_Size): Use variant record for tracking value/expression. | |
1365 | Makes logic clearer and prevents warnings for uninitialized variables. | |
1366 | (Layout_Array_Type): Use variant record for tracking value/expression. | |
1367 | Makes logic clearer and prevents warnings for uninitialized variables. | |
1368 | ||
f5e44987 RD |
1369 | 2001-10-30 Robert Dewar <dewar@gnat.com> |
1370 | ||
1371 | * lib.adb: Minor reformatting | |
1372 | ||
1373 | * s-taprop.ads: Minor reformatting | |
1374 | ||
45659035 | 1375 | 2001-10-29 Laurent Guerby <guerby@acm.org> |
f8e0aa73 | 1376 | |
45659035 GB |
1377 | * init.c: |
1378 | (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg | |
1379 | const. | |
1380 | (_gnat_error_handler): Make MSG const. | |
1381 | ||
1382 | 2001-10-29 Richard Kenner <kenner@gnat.com> | |
1383 | ||
1384 | * sysdep.c: Fix localtime_r problem on LynxOS. | |
1385 | Also remove #elif to avoid warnings. | |
f8e0aa73 AJ |
1386 | |
1387 | * misc.c (yyparse): Don't set up and register jmpbuf; remove decls | |
45659035 | 1388 | used by this. |
f8e0aa73 | 1389 | |
45659035 GB |
1390 | * decl.c (annotate_value): Make SIZE unsigned to avoid warning. |
1391 | ||
638e383e JM |
1392 | 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk> |
1393 | ||
1394 | * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb, | |
1395 | exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb, | |
1396 | g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads, | |
1397 | g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c, | |
1398 | layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads, | |
1399 | s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads, | |
1400 | sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb, | |
1401 | sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb, | |
1402 | sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads, | |
1403 | types.ads, urealp.adb: Fix spelling errors. | |
1404 | ||
97f6baa0 LG |
1405 | 2001-10-27 Laurent Guerby <guerby@acm.org> |
1406 | ||
1407 | * trans.c (gigi): Fix non determinism leading to bootstrap | |
1408 | comparison failures for debugging information. | |
1409 | ||
46b58b8c FW |
1410 | 2001-10-26 Florian Weimer <fw@deneb.enyo.de> |
1411 | ||
1412 | * gnat_rm.texi: Use @./@: where appropriate. | |
1413 | ||
30151c7b RD |
1414 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
1415 | ||
1416 | * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup. | |
1417 | ||
c0b1738d RK |
1418 | 2001-10-26 Richard Kenner <kenner@gnat.com> |
1419 | ||
1420 | * gmem.c (__gnat_gmem_read_next): Properly check for EOF | |
1421 | ||
5b09c153 RK |
1422 | 2001-10-26 Richard Kenner <kenner@gnat.com> |
1423 | ||
f8e0aa73 | 1424 | * decl.c (validate_size): Modify message for bad size to avoid |
5b09c153 RK |
1425 | implication that compiler is modifying the size. |
1426 | ||
4d553668 RD |
1427 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
1428 | ||
1429 | * prj-util.adb: Minor reformatting. Fix bad header format. | |
1430 | ||
3e542a58 RD |
1431 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
1432 | ||
1433 | * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup. | |
f8e0aa73 | 1434 | |
3e542a58 | 1435 | * sinfo.ads: Clarify use of Associated_Node (documentation only). |
f8e0aa73 AJ |
1436 | |
1437 | * sem_ch12.adb: Change Node4 to Associated_Node. Change | |
1438 | Associated_Node to Get_Associated_Node. Put use of Unchecked_Access | |
3e542a58 RD |
1439 | much more narrowly in places where needed. These are cleanups. |
1440 | ||
0bf08bfe JB |
1441 | 2001-10-26 Joel Brobecker <brobecke@gnat.com> |
1442 | ||
1443 | * 5zosinte.ads (null_pthread): new constant. | |
f8e0aa73 | 1444 | |
0bf08bfe JB |
1445 | * 5ztaprop.adb: |
1446 | (Initialize_TCB): Initialize thread ID to null, to be able to verify | |
1447 | later that this field has been set. | |
1448 | (Finalize_TCB): ditto. | |
1449 | (Suspend_Task): Verify that the thread ID is not null before using it. | |
1450 | (Resume_Task): ditto. | |
f8e0aa73 | 1451 | |
0bf08bfe JB |
1452 | * s-tasdeb.adb: |
1453 | (Resume_All_Tasks): Lock the tasks list before using it. | |
1454 | (Suspend_All_Tasks): ditto. | |
1455 | ||
7a3a8c06 RK |
1456 | 2001-10-26 Richard Kenner <kenner@gnat.com> |
1457 | ||
f8e0aa73 | 1458 | * decl.c (gnat_to_gnu_entity, case E_General_Access_Type): |
7a3a8c06 RK |
1459 | Make constant variant of designated type for Is_Access_Constant. |
1460 | Call update_pointer_to with main variant. | |
f8e0aa73 AJ |
1461 | |
1462 | * trans.c (process_freeze_entity, process_type): | |
7a3a8c06 | 1463 | Call update_pointer_to on main variant. |
f8e0aa73 | 1464 | |
7a3a8c06 RK |
1465 | * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE. |
1466 | If main variant, update all other variants. | |
f8e0aa73 AJ |
1467 | |
1468 | * utils2.c (build_unary_op, case INDIRECT_REF): No longer set | |
7a3a8c06 RK |
1469 | TREE_STATIC. |
1470 | ||
a160babb RD |
1471 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
1472 | ||
1473 | * prj-util.adb: Minor reformatting | |
1474 | ||
b403bd17 RD |
1475 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
1476 | ||
1477 | * prj-util.adb: Minor reformatting | |
1478 | ||
5fc3b4c7 RD |
1479 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
1480 | ||
1481 | * prj-attr.adb: Minor reformatting throughout | |
1482 | ||
8c736034 RD |
1483 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
1484 | ||
1485 | * prj-attr.ads: Minor reformatting | |
1486 | Add ??? comment (this whole spec has almost no comments) | |
1487 | ||
47d5b6ed VC |
1488 | 2001-10-26 Vincent Celier <celier@gnat.com> |
1489 | ||
f8e0aa73 | 1490 | * g-os_lib.adb (Normalize_Pathname): Preserve the double slash |
47d5b6ed VC |
1491 | ("//") that precede the drive letter on Interix. |
1492 | ||
41af791f GB |
1493 | 2001-10-26 Geert Bosch <bosch@gnat.com> |
1494 | ||
1495 | * gnat_rm.texi: Add GNAT Reference Manual. | |
1496 | ||
ed4a1468 RD |
1497 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
1498 | ||
f8e0aa73 | 1499 | * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name |
ed4a1468 RD |
1500 | is Error. Similar change for other renaming cases. |
1501 | ||
24377ae4 RD |
1502 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
1503 | ||
1504 | * s-atacco.ads: Add pragma Inline_Always for functions. | |
1505 | Fix header format. Add copyright 2001 | |
1506 | ||
fef3204e ES |
1507 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
1508 | ||
f8e0aa73 | 1509 | * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array |
fef3204e ES |
1510 | return Error rather than Empty so that analysis can proceed. |
1511 | ||
dfc69d80 ES |
1512 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
1513 | ||
f8e0aa73 | 1514 | * sem_util.adb (Enter_Name): better handling of cascaded error |
dfc69d80 ES |
1515 | messages when a unit appears in its own context. |
1516 | ||
5a15af62 ES |
1517 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
1518 | ||
f8e0aa73 | 1519 | * sem_util.adb (Defining_Entity): in case of error, attach created |
5a15af62 ES |
1520 | entity to specification, so that semantic analysis can proceed. |
1521 | ||
2b881d53 RD |
1522 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
1523 | ||
f8e0aa73 | 1524 | * sem_util.adb |
2b881d53 RD |
1525 | (Defining_Entity): Deal with Error. |
1526 | (Process_End_Label): Deal with bad end label for. | |
1527 | ||
578053f2 ES |
1528 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
1529 | ||
f8e0aa73 | 1530 | * sem_elab.adb (Check_A_Call): refine message when call is in an |
578053f2 ES |
1531 | instance but callee is not declared in the generic unit. |
1532 | ||
0597ce0b | 1533 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
f8e0aa73 AJ |
1534 | |
1535 | * sem_elab.adb (Check_A_Call): check for renaming before finding the | |
0597ce0b ES |
1536 | enclosing unit, which may already be different from the calling unit. |
1537 | ||
3de6e6da GB |
1538 | 2001-10-25 Geert Bosch <bosch@gnat.com> |
1539 | ||
1540 | * 4gintnam.ads: fix header format. | |
1541 | ||
6f311316 ES |
1542 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
1543 | ||
f8e0aa73 AJ |
1544 | * sem_res.adb (Resolve_Call): if the call is actually an indexing |
1545 | operation on the result of a parameterless call, perform elaboration | |
6f311316 | 1546 | check after the node has been properly rewritten. |
f8e0aa73 AJ |
1547 | |
1548 | * sem_ch12.adb (Copy_Generic_Node): after the proper body has been | |
1549 | inlined within the generic tree, the defining identifier is not a | |
6f311316 ES |
1550 | compilation_unit. |
1551 | ||
17be0cdf ES |
1552 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
1553 | ||
f8e0aa73 | 1554 | * sem_res.adb (Resolve): special-case resolution of Null in an |
17be0cdf | 1555 | instance or an inlined body to avoid view conflicts. |
f8e0aa73 AJ |
1556 | |
1557 | * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view | |
17be0cdf ES |
1558 | compatibility by retrieving the access type of the generic copy. |
1559 | ||
ce9e9122 RD |
1560 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
1561 | ||
1562 | * sem_ch3.adb: | |
1563 | (Analyze_Number_Declaration): Handle error expression. | |
1564 | (Signed_Integer_Type_Declaration): Handle error bound. | |
1565 | (Analyze_Subtype_Indication): Handle error range. | |
f8e0aa73 | 1566 | |
ce9e9122 RD |
1567 | * sem_util.adb (Get_Index_Bounds): Check for Error. |
1568 | ||
e12fbc9e RD |
1569 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
1570 | ||
f8e0aa73 | 1571 | * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default |
e12fbc9e RD |
1572 | in no run time mode. |
1573 | ||
52b80488 PO |
1574 | 2001-10-25 Pascal Obry <obry@gnat.com> |
1575 | ||
f8e0aa73 | 1576 | * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet |
52b80488 | 1577 | mode case for ALLOC case. |
f8e0aa73 AJ |
1578 | |
1579 | * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on | |
52b80488 PO |
1580 | all platforms. Improvement of last change. |
1581 | ||
316ad9c5 RD |
1582 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
1583 | ||
1584 | * exp_ch4.adb (Expand_N_Allocator): Minor reformatting. | |
1585 | ||
1a7e4df4 GB |
1586 | 2001-10-25 Geert Bosch <bosch@gnat.com> |
1587 | ||
1588 | * osint.adb (Is_Relative): Remove duplicate. | |
1589 | ||
90a9fff2 PO |
1590 | 2001-10-25 Pascal Obry <obry@gnat.com> |
1591 | ||
f8e0aa73 | 1592 | * osint.adb (Read_Default_Search_Dirs): correctly detect relative |
90a9fff2 PO |
1593 | pathnames in UNIX and DOS style with drive letter. |
1594 | (Is_Relative): new routine. | |
f8e0aa73 | 1595 | |
90a9fff2 | 1596 | * osint.adb: Minor reformatting |
f8e0aa73 AJ |
1597 | |
1598 | * osint.adb (Is_Relative): implementation using | |
1a7e4df4 | 1599 | GNAT.OS_Lib.Is_Absolute_Path. Better fix. |
90a9fff2 | 1600 | |
5c1ba4cc PO |
1601 | 2001-10-25 Pascal Obry <obry@gnat.com> |
1602 | ||
f8e0aa73 | 1603 | * g-dirope.adb (Basename): correctly compute offset between the |
5c1ba4cc | 1604 | original Path and the translated one. |
f8e0aa73 | 1605 | |
5c1ba4cc PO |
1606 | * g-dirope.adb: (Base_Name): add some comments. |
1607 | ||
a7fb206d RD |
1608 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
1609 | ||
f8e0aa73 | 1610 | * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use |
a7fb206d | 1611 | in HIE mode, avoids compilation abandoned message |
f8e0aa73 | 1612 | |
a7fb206d | 1613 | * exp_imgv.adb: Correct typo in previous change |
f8e0aa73 | 1614 | |
a7fb206d RD |
1615 | * exp_imgv.adb: Correct typo in previous change (not my day!) |
1616 | ||
e6a7e62e RD |
1617 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
1618 | ||
1619 | * s-tpinop.ads: Add 2001 to copyright notice. Fix header format. | |
1620 | ||
0d2b8e0b | 1621 | 2001-10-25 Pascal Obry <obry@gnat.com> |
75c09e7d | 1622 | |
f8e0aa73 | 1623 | * g-awk.ads: Move all pragma inlines next to the routine |
0d2b8e0b | 1624 | declarations. This is more uniform with other GNAT spec. |
75c09e7d | 1625 | |
0d2b8e0b | 1626 | 2001-10-22 Geert Bosch <bosch@gnat.com> |
d2740a69 GB |
1627 | |
1628 | * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem. | |
1629 | ||
0d2b8e0b | 1630 | 2001-10-19 Geert Bosch <bosch@gnat.com> |
d7ac9bdd GB |
1631 | |
1632 | * Makefile.in (tools, gnattools): Remove gnatmem. | |
1633 | ||
17ed6335 RH |
1634 | 2001-10-17 Richard Henderson <rth@redhat.com> |
1635 | ||
1636 | * Makefile.in (misc.o): Depend on langhooks.h. | |
1637 | * misc.c: Include it. | |
1638 | (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New. | |
1639 | (LANG_HOOKS_DECODE_OPTION): New. | |
1640 | (lang_hooks): Use LANG_HOOKS_INITIALIZER. | |
1641 | ||
f2436274 FW |
1642 | 2001-10-16 Florian Weimer <fw@deneb.enyo.de> |
1643 | ||
1644 | * trans.c (tree_transform): Adjust to recent change in | |
1645 | expand_asm_operands to implement named asm operands. | |
1646 | ||
b14127e6 ES |
1647 | 2001-10-11 Ed Schonberg <schonber@gnat.com> |
1648 | ||
f8e0aa73 | 1649 | * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in |
b14127e6 ES |
1650 | renaming of discriminant for mutable record type. |
1651 | ||
e70ee92a RD |
1652 | 2001-10-11 Robert Dewar <dewar@gnat.com> |
1653 | ||
1654 | * validsw.adb: Properly save -gnatVn status. | |
1655 | ||
9a5621d7 | 1656 | 2001-10-11 Robert Dewar <dewar@gnat.com> |
f8e0aa73 | 1657 | |
9a5621d7 RD |
1658 | * usage.adb: Add lines for V switch. |
1659 | ||
f8e0aa73 | 1660 | * gnatcmd.adb (COMPILE): Revise translations for -gnatV |
9a5621d7 RD |
1661 | (/VALIDITY_CHECKING). |
1662 | ||
45667f04 ES |
1663 | 2001-10-11 Ed Schonberg <schonber@gnat.com> |
1664 | ||
f8e0aa73 | 1665 | * sem_type.adb (Add_One_Interp): an operator for a type declared in |
45667f04 ES |
1666 | an extension of System is known to be visible. |
1667 | ||
c3de5c4c ES |
1668 | 2001-10-11 Ed Schonberg <schonber@gnat.com> |
1669 | ||
f8e0aa73 | 1670 | * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal |
c3de5c4c ES |
1671 | properly. Fixes regression on ACATS C34005G. |
1672 | ||
4fa964a6 RD |
1673 | 2001-10-11 Robert Dewar <dewar@gnat.com> |
1674 | ||
f8e0aa73 | 1675 | * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null |
4fa964a6 RD |
1676 | loop in generic instance, since this is likely not very useful. |
1677 | ||
0868e09c RD |
1678 | 2001-10-11 Robert Dewar <dewar@gnat.com> |
1679 | ||
f8e0aa73 | 1680 | * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize |
0868e09c | 1681 | the error message for high integrity mode. |
f8e0aa73 AJ |
1682 | |
1683 | * rtsfind.adb (RTE): Give message if we try to find an entity that | |
0868e09c | 1684 | is not available in high integrity mode. |
f8e0aa73 | 1685 | |
0868e09c RD |
1686 | * rtsfind.ads: |
1687 | (OK_To_Use_In_HIE_Mode): New array. | |
1688 | (RTE): May return Empty in high integrity mode. | |
f8e0aa73 AJ |
1689 | |
1690 | * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for | |
1691 | OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx. | |
1692 | ||
1693 | * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined | |
1694 | unit if not inlined always and in no runtime mode. Fixes problem | |
0868e09c | 1695 | caused by new Rtsfind changes. |
f8e0aa73 AJ |
1696 | |
1697 | * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if | |
0868e09c | 1698 | body is deleted. |
f8e0aa73 AJ |
1699 | |
1700 | * rtsfind.adb (RTE): Make sure we do not try to load unit after | |
0868e09c RD |
1701 | giving message for entity not available in high integrity mode. |
1702 | ||
934abf9c | 1703 | 2001-10-11 Pascal Obry <obry@gnat.com> |
f8e0aa73 | 1704 | |
934abf9c PO |
1705 | * impunit.adb: Add GNAT.CRC32. |
1706 | ||
3c72bea4 ES |
1707 | 2001-10-11 Ed Schonberg <schonber@gnat.com> |
1708 | ||
f8e0aa73 AJ |
1709 | * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle |
1710 | properly the case where one universal operand in a non-static | |
3c72bea4 ES |
1711 | exponentiation of a real literal. |
1712 | ||
44d8d2bb ES |
1713 | 2001-10-11 Ed Schonberg <schonber@gnat.com> |
1714 | ||
f8e0aa73 AJ |
1715 | * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type |
1716 | clause, return the gobal finalization list, for lack of anthing else. | |
44d8d2bb | 1717 | |
9e2b9627 ES |
1718 | 2001-10-11 Ed Schonberg <schonber@gnat.com> |
1719 | ||
f8e0aa73 AJ |
1720 | * exp_ch7.adb (Make_Transient_Block): if statement is within |
1721 | exception handler, always use new transient scope to place Clean | |
9e2b9627 ES |
1722 | procedure. |
1723 | ||
cfac6e9f PO |
1724 | 2001-10-11 Pascal Obry <obry@gnat.com> |
1725 | ||
1726 | * Makefile.in: | |
1727 | (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o | |
1728 | (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o | |
1729 | (GNATLS_RTL_OBJS): add g-crc32.o | |
1730 | (GNATMAKE_RTL_OBJS): add g-crc32.o | |
f8e0aa73 | 1731 | |
cfac6e9f PO |
1732 | * ali-util.adb: |
1733 | (CRC_Match): new function. | |
f8e0aa73 | 1734 | (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit |
cfac6e9f PO |
1735 | instead of the previous simple checksum algorithm. |
1736 | (Time_Stamp_Mismatch): use CRC_Match for comparison. | |
1737 | (Set_Source_Table): idem. | |
f8e0aa73 | 1738 | |
cfac6e9f | 1739 | * ali-util.ads: |
f8e0aa73 | 1740 | (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC |
cfac6e9f PO |
1741 | instead of simple checksum. |
1742 | (CRC_Match): new function. | |
1743 | (CRC_Error): new constant. | |
f8e0aa73 AJ |
1744 | |
1745 | * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling | |
1746 | a CRC now and not a simple checksum. A CRC uses lower-case hex | |
cfac6e9f | 1747 | letters, fixes ambiguity in parsing. |
f8e0aa73 AJ |
1748 | |
1749 | * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this | |
cfac6e9f | 1750 | is what this variable will store. |
f8e0aa73 | 1751 | |
cfac6e9f | 1752 | * bcheck.adb: Change reference to chechsum in comments by CRC. |
f8e0aa73 AJ |
1753 | (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC. |
1754 | rename All_Checksum_Match to All_CRC_Match. Change due to API | |
1755 | renaming since now GNAT does not use a simple checksum but a | |
cfac6e9f | 1756 | CRC using GNAT.CRC32. |
f8e0aa73 AJ |
1757 | |
1758 | * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC | |
cfac6e9f | 1759 | now and not anymore a simple checksum. |
f8e0aa73 AJ |
1760 | |
1761 | * lib-load.adb: Use Source_CRC instead of Source_Checksum in many | |
cfac6e9f | 1762 | places. |
f8e0aa73 | 1763 | |
cfac6e9f | 1764 | * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum. |
f8e0aa73 | 1765 | |
cfac6e9f PO |
1766 | * scans.adb: |
1767 | (Restore_Scan_State): rename Checksum to CRC. | |
1768 | (Save_Scan_State): idem. | |
f8e0aa73 | 1769 | |
cfac6e9f PO |
1770 | * scans.ads: |
1771 | With GNAT.CRC32. | |
1772 | (Checksum): rename to CRC. | |
1773 | (Saved_Scan_State): Save_Checksum field renamed to Save_CRC | |
f8e0aa73 AJ |
1774 | |
1775 | * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from | |
cfac6e9f | 1776 | GNAT.CRC32). Update copyright notice. |
f8e0aa73 AJ |
1777 | |
1778 | * scn-slit.adb: Rename many Accumulate_Checksum to Update (from | |
cfac6e9f | 1779 | GNAT.CRC32). Update copyright notice. |
f8e0aa73 | 1780 | |
cfac6e9f PO |
1781 | * scn.adb: |
1782 | (Accumulate_Checksum): removed. | |
1783 | (Update): new procedure. Add a wide-character into the CRC. | |
f8e0aa73 | 1784 | |
cfac6e9f PO |
1785 | * sinput-l.adb: |
1786 | (Complete_Source_File_Entry): use CRC32 instead of simple checksum. | |
f8e0aa73 | 1787 | (Load_File): fix initialization of S (change Source_Checksum to |
cfac6e9f | 1788 | Source_CRC) |
f8e0aa73 AJ |
1789 | |
1790 | * sinput-p.adb (Load_Project_File): rename Source_Checksum to | |
cfac6e9f | 1791 | Source_CRC in S initialization. |
f8e0aa73 | 1792 | |
cfac6e9f | 1793 | * sinput.adb (Source_Checksum): renamed to Source_CRC. |
f8e0aa73 | 1794 | |
cfac6e9f PO |
1795 | * sinput.ads (Source_Checksum): renamed to Source_CRC. |
1796 | Update comments for the CRC. | |
f8e0aa73 | 1797 | |
cfac6e9f | 1798 | * types.adb (Hex): Use lowercase for the letter part. |
f8e0aa73 AJ |
1799 | |
1800 | * types.ads (Get_Hex_String): Returns the hexadecimal representation | |
1801 | for a word. This is currently used only for CRC. In previous version, | |
1802 | the checksum was using a representation with all letter being | |
1803 | upper-case. With the new implementation (using CRC) we do not remove | |
1804 | the 32th bit of the CRC, so we can have an upper-case starting letter | |
1805 | in the CRC. This is not possible to parse in Scan_ALI (ali.adb). | |
1806 | It is ambigous since the CRC was optional and could be followed by | |
1807 | options like EB, EE. So now this routines uses lower-case letter for | |
1808 | the hexadecimal representation. Strange enough only lower case letters | |
cfac6e9f | 1809 | where checked in Scan_ALI (even if this was not a possible case). |
f8e0aa73 | 1810 | |
cfac6e9f | 1811 | * gnatvsn.ads (Library_Version): changed to 3.15a. |
f8e0aa73 AJ |
1812 | |
1813 | * s-crc32.ads: Initial version from GNAT.CRC32. This is the version | |
cfac6e9f | 1814 | for the compiler. |
f8e0aa73 AJ |
1815 | |
1816 | * s-crc32.adb: Initial version from GNAT.CRC32. This is the version | |
cfac6e9f | 1817 | for the compiler. |
f8e0aa73 | 1818 | |
cfac6e9f PO |
1819 | * ali-util.adb: Redo previous change to avoid using word CRC everywhere |
1820 | Add 2001 to copyright notice | |
1821 | (Accumulate_Checksum): Modify to use System.CRC32. | |
f8e0aa73 AJ |
1822 | |
1823 | * ali-util.ads: Redo changes of previous revision to continue to use | |
cfac6e9f | 1824 | the word Checksum. Add 2001 to copyright notice. |
f8e0aa73 | 1825 | |
cfac6e9f PO |
1826 | * ali.adb: Undo some of previous changes, not needed. |
1827 | Keep the change for lower case letters in the checksum. | |
f8e0aa73 | 1828 | |
cfac6e9f PO |
1829 | * ali.ads: Undo previous change not needed. |
1830 | ||
1831 | * bcheck.adb: Undo most of previous change, not needed. | |
1832 | But do use Checksums_Match for checksum comparison. | |
f8e0aa73 | 1833 | |
cfac6e9f PO |
1834 | * gnatls.adb: Undo most of previous change, not needed. |
1835 | But do use Checksums_Match for comparing checksums. | |
f8e0aa73 | 1836 | |
cfac6e9f | 1837 | * lib-load.adb: Undo previous change, not needed. |
f8e0aa73 | 1838 | |
cfac6e9f | 1839 | * lib-writ.adb: Undo previous change, not needed. |
f8e0aa73 AJ |
1840 | |
1841 | * lib-writ.ads: Document that checksums use lower case, | |
cfac6e9f | 1842 | not upper case letters. |
f8e0aa73 | 1843 | |
cfac6e9f | 1844 | * scans.adb: Undo previous change, not needed |
f8e0aa73 | 1845 | |
cfac6e9f | 1846 | * scans.ads: Undo previous change, not needed. |
f8e0aa73 | 1847 | |
cfac6e9f | 1848 | * scn-nlit.adb: Undo previous changes, not needed. |
f8e0aa73 | 1849 | |
cfac6e9f | 1850 | * scn-slit.adb: Undo previous change, not needed. Fix header format. |
f8e0aa73 | 1851 | |
cfac6e9f PO |
1852 | * scn.adb: |
1853 | (Accumulate_Checksum): Use System.CRC32. | |
1854 | (Initialize_Checksum): New procedure. | |
1855 | Remove other changes of previous revision. | |
f8e0aa73 | 1856 | |
cfac6e9f | 1857 | * sinput-p.adb: Undo previous change, not needed. |
f8e0aa73 | 1858 | |
cfac6e9f PO |
1859 | * sinput.adb: Undo previous change, not needed. |
1860 | ||
1861 | * sinput-l.adb: Undo previous change, not needed. | |
f8e0aa73 AJ |
1862 | |
1863 | * sinput.ads: Undo previous change, not needed. Keep only comment | |
cfac6e9f | 1864 | on new checksum algorithm |
f8e0aa73 | 1865 | |
cfac6e9f PO |
1866 | * Makefile.in: Add s-crc32 as needed, remove g-crc32. |
1867 | Also remove a-tags and a-stream from GNAT sources. | |
f8e0aa73 | 1868 | |
cfac6e9f | 1869 | * ali.adb (Scan_ALI): fix typo introduce in latest check-in. |
f8e0aa73 | 1870 | |
cfac6e9f PO |
1871 | * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o. |
1872 | ||
4d6d06a5 GB |
1873 | 2001-10-11 Geert Bosch <bosch@gnat.com> |
1874 | ||
1875 | * einfo.h: Regenerate. | |
1876 | ||
1877 | * nmake.ads: Regenerate. | |
1878 | ||
1879 | * nmake.adb: Regenerate. | |
1880 | ||
1881 | * sinfo.h: Regenerate. | |
1882 | ||
1883 | * treeprs.adb: Regenerate. | |
1884 | ||
c97412e2 GB |
1885 | 2001-10-10 Geert Bosch <bosch@gnat.com> |
1886 | ||
1887 | * gnat-style.texi: New file describing coding guidelines for Ada. | |
f8e0aa73 | 1888 | |
b83018ca ES |
1889 | 2001-10-10 Ed Schonberg <schonber@gnat.com> |
1890 | ||
f8e0aa73 | 1891 | * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required |
b83018ca ES |
1892 | is Flag174. |
1893 | ||
e834fe1f GB |
1894 | 2001-10-10 Geert Bosch <bosch@gnat.com> |
1895 | ||
1896 | * snames.ads: Add new names for project facility. | |
1897 | ||
1898 | * snames.adb: Update to reflect snames.ads changes. | |
1899 | ||
1900 | * snames.h: Update to reflect snames.ads changes. | |
1901 | ||
b30668b7 VC |
1902 | 2001-10-10 Vincent Celier <celier@gnat.com> |
1903 | ||
1904 | * make.adb: | |
1905 | (Add_Switches): reflect the changes for the switches attributes | |
1906 | Default_Switches indexed by the programming language, | |
1907 | Switches indexed by the file name. | |
1908 | (Collect_Arguments_And_Compile): Idem. | |
1909 | Reflect the attribute name changes. | |
f8e0aa73 | 1910 | |
b30668b7 VC |
1911 | * prj-attr.adb: |
1912 | (Initialisation_Data): Change the names of some packages and | |
1913 | attributes. | |
1914 | (Initialize): process case insensitive associative arrays. | |
f8e0aa73 | 1915 | |
b30668b7 VC |
1916 | * prj-attr.ads: |
1917 | (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array. | |
f8e0aa73 | 1918 | |
b30668b7 VC |
1919 | * prj-dect.adb: |
1920 | (Parse_Attribute_Declaration): For case insensitive associative | |
1921 | arrays, set the index string to lower case. | |
f8e0aa73 | 1922 | |
b30668b7 VC |
1923 | * prj-env.adb: |
1924 | Reflect the changes of the project attributes. | |
f8e0aa73 | 1925 | |
b30668b7 VC |
1926 | * prj-nmsc.adb: |
1927 | Replace Check_Naming_Scheme by Ada_Check and | |
1928 | Language_Independent_Check. | |
f8e0aa73 | 1929 | |
b30668b7 VC |
1930 | * prj-nmsc.ads: |
1931 | Replaced Check_Naming_Scheme by 2 procedures: | |
1932 | Ada_Check and Language_Independent_Check. | |
f8e0aa73 | 1933 | |
b30668b7 VC |
1934 | * prj-proc.adb: |
1935 | (Process_Declarative_Items): For case-insensitive associative | |
1936 | arrays, set the index string to lower case. | |
1937 | (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of | |
1938 | Prj.Nmsc.Check_Naming_Scheme. | |
f8e0aa73 | 1939 | |
b30668b7 VC |
1940 | * prj-tree.adb: |
1941 | (Case_Insensitive): New function | |
1942 | (Set_Case_Insensitive): New procedure | |
f8e0aa73 | 1943 | |
b30668b7 VC |
1944 | * prj-tree.ads: |
1945 | (Case_Insensitive): New function | |
1946 | (Set_Case_Insensitive): New procedure | |
1947 | (Project_Node_Record): New flag Case_Insensitive. | |
f8e0aa73 | 1948 | |
b30668b7 VC |
1949 | * prj-util.adb: |
1950 | (Value_Of): new function to get the string value of a single | |
1951 | string variable or attribute. | |
f8e0aa73 | 1952 | |
b30668b7 VC |
1953 | * prj-util.ads: |
1954 | (Value_Of): new function to get the string value of a single | |
1955 | string variable or attribute. | |
f8e0aa73 | 1956 | |
b30668b7 VC |
1957 | * prj.adb: |
1958 | (Ada_Default_Spec_Suffix): New function | |
1959 | (Ada_Default_Impl_Suffix): New function | |
1960 | Change definitions of several constants to reflect | |
1961 | new components of record types. | |
f8e0aa73 | 1962 | |
b30668b7 VC |
1963 | * prj.ads: |
1964 | (Naming_Data): Change several components to reflect new | |
1965 | elements of naming schemes. | |
1966 | (Project_Data): New flags Sources_Present and | |
1967 | Language_Independent_Checked. | |
1968 | (Ada_Default_Spec_Suffix): New function. | |
1969 | (Ada_Default_Impl_Suffix): New function. | |
f8e0aa73 | 1970 | |
b30668b7 VC |
1971 | * snames.ads: |
1972 | Modification of predefined names for project manager: added | |
1973 | Implementation, Specification_Exceptions, Implementation_Exceptions, | |
1974 | Specification_Suffix, Implementation_Suffix, Separate_Suffix, | |
1975 | Default_Switches, _Languages, Builder, Cross_Reference, | |
1976 | Finder. Removed Body_Part, Specification_Append, Body_Append, | |
1977 | Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind, | |
1978 | Gnatlink. | |
f8e0aa73 | 1979 | |
b30668b7 VC |
1980 | * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix): |
1981 | Add comments. | |
f8e0aa73 | 1982 | |
b30668b7 VC |
1983 | * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted, |
1984 | not that it is Nil_Variable_Value. | |
f8e0aa73 | 1985 | |
b30668b7 VC |
1986 | * prj.ads: Add ??? for uncommented declarations |
1987 | ||
662e57b4 ES |
1988 | 2001-10-10 Ed Schonberg <schonber@gnat.com> |
1989 | ||
f8e0aa73 AJ |
1990 | * sem_prag.adb: (Analyze_Pragma, case External): If entity is a |
1991 | constant, do not indicate possible modification, so that gigi can | |
662e57b4 ES |
1992 | treat it as a bona fide constant. |
1993 | ||
72e4357f RD |
1994 | 2001-10-10 Robert Dewar <dewar@gnat.com> |
1995 | ||
1996 | * sem_prag.adb: Add processing for pragma External. | |
f8e0aa73 | 1997 | |
72e4357f | 1998 | * snames.ads: Add entry for pragma External. |
f8e0aa73 | 1999 | |
72e4357f | 2000 | * par-prag.adb: Add pragma External. |
f8e0aa73 | 2001 | |
72e4357f RD |
2002 | * snames.adb: Updated to match snames.ads. |
2003 | ||
7bc1c7df ES |
2004 | 2001-10-10 Ed Schonberg <schonber@gnat.com> |
2005 | ||
2006 | * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for | |
2007 | a dynamic task if the allocator appears in an indexed assignment | |
2008 | or selected component assignment. | |
f8e0aa73 AJ |
2009 | |
2010 | * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image): | |
2011 | For a dynamic task in an assignment statement, use target of | |
7bc1c7df ES |
2012 | assignment to generate meaningful name. |
2013 | ||
c84700e7 ES |
2014 | 2001-10-10 Ed Schonberg <schonber@gnat.com> |
2015 | ||
f8e0aa73 | 2016 | * einfo.adb (Write_Field19_Name): Body_Entity is also defined for |
c84700e7 ES |
2017 | a generic package. |
2018 | ||
2019 | * einfo.ads: Body_Entity is also defined for generic package. | |
2020 | Documentation change only | |
f8e0aa73 AJ |
2021 | |
2022 | * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an | |
2023 | others_choice for a discriminated component initialization, | |
2024 | convert discriminant references into the corresponding discriminals. | |
2025 | ||
2026 | * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate | |
2027 | only if original type is private and expression has to be wrapped | |
c84700e7 | 2028 | in a conversion. |
f8e0aa73 AJ |
2029 | |
2030 | * checks.adb: | |
2031 | (Apply_Constraint_Check): Do not perform length check | |
c84700e7 | 2032 | if expression is an aggregate with only an others_choice. |
f8e0aa73 | 2033 | (Length_N_Cond): two references to the same in_parameter |
c84700e7 ES |
2034 | (typically the discriminal in an init_proc) denote the same value. |
2035 | Two useful optimization uncovered by bugfixes above. | |
2036 | ||
d8d80dcd RD |
2037 | 2001-10-10 Robert Dewar <dewar@gnat.com> |
2038 | ||
f8e0aa73 | 2039 | * xeinfo.adb: Change int to char in translation of enumeration types. |
d8d80dcd RD |
2040 | This fixes a problem in the C representation of component alignment. |
2041 | Add 2001 to copyright notice | |
2042 | ||
a8fee948 RK |
2043 | 2001-10-10 Richard Kenner <kenner@gnat.com> |
2044 | ||
f8e0aa73 | 2045 | * decl.c: (validate_size): Do check size of object of integral type |
a8fee948 RK |
2046 | if it is a packed array type. |
2047 | ||
c2d7fe59 RK |
2048 | 2001-10-10 Richard Kenner <kenner@gnat.com> |
2049 | ||
f8e0aa73 | 2050 | * decl.c: (gnat_to_gnu_entity, case object): Also materialize |
c2d7fe59 RK |
2051 | VAR_DECL for constant if not Is_Public but -O0. |
2052 | ||
fb75e100 RK |
2053 | 2001-10-10 Richard Kenner <kenner@gnat.com> |
2054 | ||
2055 | * misc.c (struct lang_hooks): Add new initializer to match GCC change. | |
2056 | ||
1724557a GB |
2057 | 2001-10-10 Geert Bosch <bosch@gnat.com> |
2058 | ||
f8e0aa73 | 2059 | * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer |
1724557a GB |
2060 | use '/' as switch character, allowing for absolute file names. |
2061 | ||
9f2f9eb6 JM |
2062 | 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk> |
2063 | ||
2064 | * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update | |
2065 | FSF address. | |
2066 | ||
8fecf41d GB |
2067 | 2001-10-08 Geert Bosch <bosch@gnat.com> |
2068 | ||
2069 | * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): | |
2070 | Automatically build utilities when files need to be regenerated. | |
2071 | ||
589f1edf GB |
2072 | 2001-10-08 Geert Bosch <bosch@gnat.com> |
2073 | ||
2074 | * xsnames.adb: New utility for updating snames.ads and snames.adb | |
2075 | ||
67f28219 ZW |
2076 | 2001-10-08 Zack Weinberg <zack@codesourcery.com> |
2077 | ||
2078 | * Make-lang.in (ADAFLAGS): Add -W -Wall. | |
2079 | (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also. | |
2080 | (gnat1): Also depend on attribs.o. | |
2081 | (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make. | |
2082 | * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New. | |
2083 | (ADAC): Set to @ADAC@ in stage1, $(CC) later. | |
2084 | (ADAFLAGS): Add -W -Wall. | |
2085 | (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS; | |
2086 | take out CFLAGS. | |
2087 | ||
2088 | (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o, | |
2089 | s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o, | |
2090 | s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o): | |
2091 | Use $(ADAC), not $(CC), as compilation command. | |
2092 | ||
2093 | (gnattools): Depend directly on tools to build, don't use | |
2094 | recursive make. | |
2095 | (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make. | |
2096 | ||
2097 | * einfo.h, sinfo.h: New files (autogenerated). | |
2098 | ||
295ef2bb RH |
2099 | 2001-10-08 Richard Henderson <rth@redhat.com> |
2100 | ||
2101 | * comperr.adb (Abort_In_Progress): New. | |
2102 | (Compiler_Abort): Use it to prevent recursion. | |
2103 | ||
5c736541 RD |
2104 | 2001-10-08 Robert Dewar <dewar@gnat.com> |
2105 | ||
2106 | * atree.adb: Set Error_Posted in Error node, helps error recovery. | |
67f28219 ZW |
2107 | |
2108 | * par-endh.adb (Output_End_Expected): We should also not test | |
5c736541 | 2109 | Error_Posted on the Error node, since now it is always set. |
67f28219 ZW |
2110 | |
2111 | * cstand.adb (Create_Standard): Set Etype of Error to Any_Type | |
5c736541 | 2112 | to help error recovery. Part of general work on 9407-004. |
67f28219 | 2113 | |
5c736541 | 2114 | * par.adb: Add ??? for misuse of error |
67f28219 | 2115 | |
5c736541 RD |
2116 | * sem_res.adb: |
2117 | (Resolve): Defend against Error, fixes 9407-003. | |
2118 | (Resolve_Discrete_Subtype_Indication): Defend against Error. | |
67f28219 ZW |
2119 | |
2120 | * sinfo.ads (N_Error): Now has Etype field (which will be set | |
5c736541 RD |
2121 | to Any_Type to help error recovery). |
2122 | ||
a153ae15 RK |
2123 | 2001-10-08 Richard Kenner (kenner@gnat.com) |
2124 | ||
2125 | * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR): | |
2126 | Consistently set MEM attributes from expression; fixes | |
2127 | bootstrap failure on x86. | |
2128 | ||
743f3c7b GB |
2129 | 2001-10-08 Geert Bosch (bosch@gnat.com) |
2130 | ||
2131 | * 5oosinte.adb: Add 2001 to copyright notice. | |
2132 | ||
210c4ef4 GB |
2133 | 2001-10-08 Geert Bosch (bosch@gnat.com) |
2134 | ||
2135 | * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs]. | |
2136 | ||
2137 | * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs]. | |
2138 | ||
cc712abf JM |
2139 | 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk> |
2140 | ||
2141 | * 5oosinte.adb: Fix spelling error of "separate" as "seperate". | |
2142 | ||
4c4abc0f GB |
2143 | 2001-10-05 Geert Bosch (bosch@gnat.com) |
2144 | ||
2145 | * adaint.h: Small formatting fix. | |
2146 | ||
7f50e2e3 GB |
2147 | 2001-10-04 Geert Bosch <bosch@gnat.com> |
2148 | ||
2149 | * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode): | |
2150 | Arg is int, not FILE *, in dummy version of functions. | |
67f28219 | 2151 | |
7f50e2e3 GB |
2152 | * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode): |
2153 | Arg is int, not FILE *. | |
2154 | ||
5d1a9698 GB |
2155 | 2001-10-04 Geert Bosch <bosch@gnat.com> |
2156 | ||
2157 | * 3lsoccon.ads: Added file, missed with initial check ins. | |
67f28219 | 2158 | |
5d1a9698 GB |
2159 | * 4lintnam.ads: Fix header format. |
2160 | Change Linux to GNU/Linux. | |
67f28219 | 2161 | |
5d1a9698 GB |
2162 | * 5iosinte.adb: Change Linux to GNU/Linux. |
2163 | ||
2164 | * 5iosinte.ads: Change Linux to GNU/Linux. | |
67f28219 | 2165 | |
5d1a9698 | 2166 | * 5itaprop.adb: Change Linux to GNU/Linux. |
67f28219 | 2167 | |
5d1a9698 GB |
2168 | * 5itaspri.ads: Change Linux to GNU/Linux. |
2169 | Update copyright notice. | |
67f28219 | 2170 | |
5d1a9698 | 2171 | * 5lintman.adb: Change Linux to GNU/Linux. |
67f28219 | 2172 | |
5d1a9698 | 2173 | * 5lml-tgt.adb: Change Linux to GNU/Linux. |
67f28219 | 2174 | |
5d1a9698 | 2175 | * 5losinte.ads: Change Linux to GNU/Linux. |
67f28219 | 2176 | |
5d1a9698 | 2177 | * 5lsystem.ads: Change Linux to GNU/Linux. |
67f28219 | 2178 | |
5d1a9698 | 2179 | * 5qosinte.adb: Change Linux to GNU/Linux. |
67f28219 | 2180 | |
5d1a9698 | 2181 | * 5qosinte.ads: Change Linux to GNU/Linux. |
67f28219 | 2182 | |
5d1a9698 | 2183 | * 5qparame.ads: Change Linux to GNU/Linux. |
67f28219 | 2184 | |
5d1a9698 | 2185 | * 5qtaprop.adb: Change Linux to GNU/Linux. |
67f28219 | 2186 | |
5d1a9698 GB |
2187 | * 5qtaspri.ads: Change Linux to GNU/Linux. |
2188 | Add 2001 to copyright notice. | |
67f28219 | 2189 | |
5d1a9698 GB |
2190 | * 5vintman.ads: Change Linux to GNU/Linux. |
2191 | Fix header format. Add 2001 to copyright notice. | |
67f28219 | 2192 | |
5d1a9698 | 2193 | * g-soccon.ads: Change Linux to GNU/Linux. |
67f28219 | 2194 | |
5d1a9698 GB |
2195 | * g-trasym.ads: Change Linux to GNU/Linux. |
2196 | Add 2001 to copyright notice. | |
67f28219 | 2197 | |
5d1a9698 | 2198 | * memtrack.adb: Change Linux to GNU/Linux. |
67f28219 | 2199 | |
5d1a9698 GB |
2200 | * s-intman.ads: Change Linux to GNU/Linux. |
2201 | Add 2001 to copyright notice. Fix header format. | |
67f28219 | 2202 | |
5d1a9698 | 2203 | * s-stache.adb: Change Linux to GNU/Linux. |
67f28219 | 2204 | |
5d1a9698 | 2205 | * adaint.c: Change Linux to GNU/Linux. |
67f28219 | 2206 | |
5d1a9698 | 2207 | * cio.c: Change Linux to GNU/Linux. |
67f28219 | 2208 | |
5d1a9698 | 2209 | * cstreams.c: Change Linux to GNU/Linux. |
67f28219 | 2210 | |
5d1a9698 | 2211 | * init.c: Change Linux to GNU/Linux. |
67f28219 | 2212 | |
5d1a9698 | 2213 | * gmem.c: Change Linux to GNU/Linux. |
67f28219 | 2214 | |
5d1a9698 GB |
2215 | * tracebak.c: Change Linux to GNU/Linux. |
2216 | ||
2217 | ||
c25ca2d7 GB |
2218 | 2001-10-02 Geert Bosch <bosch@gnat.com> |
2219 | ||
2220 | * misc.c (insert_default_attributes): Add dummy version. |