]>
Commit | Line | Data |
---|---|---|
45d04cbb GB |
1 | To: gcc-patches@gcc.gnu.org |
2 | Subject: [Ada] Reflect 2001-10-22 changes | |
3 | ||
4 | 2001-12-05 Ed Schonberg <schonber@gnat.com> | |
5 | ||
6 | * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation | |
7 | unit, always replace instance node with new body, for ASIS use. | |
8 | ||
9 | 2001-12-05 Vincent Celier <celier@gnat.com> | |
10 | ||
11 | * prj-nmsc.adb (Language_Independent_Check): Issue a warning if | |
12 | libraries are not supported and both attributes Library_Name and | |
13 | Library_Dir are specified. | |
14 | ||
15 | * prj-proc.adb (Expression): Set location of Result to location of | |
16 | first term. | |
17 | ||
18 | * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS. | |
19 | (prj-nmsc is now importing MLib.Tgt) | |
20 | ||
21 | * prj-proc.adb: Put the change indicated above that was forgotten. | |
22 | ||
23 | *** sem_ch12.adb 2001/10/14 14:08:26 1.790 | |
24 | --- sem_ch12.adb 2001/10/22 17:38:58 1.791 | |
25 | *************** | |
26 | *** 2550,2566 **** | |
27 | ||
28 | Set_Instance_Spec (N, Act_Decl); | |
29 | ||
30 | ! -- Case of not a compilation unit | |
31 | ||
32 | if Nkind (Parent (N)) /= N_Compilation_Unit then | |
33 | Mark_Rewrite_Insertion (Act_Decl); | |
34 | Insert_Before (N, Act_Decl); | |
35 | Analyze (Act_Decl); | |
36 | - | |
37 | - -- Case of compilation unit that is generic instantiation | |
38 | ||
39 | ! -- Place declaration on current node so context is complete | |
40 | ! -- for analysis (including nested instantiations). | |
41 | ||
42 | else | |
43 | if Cunit_Entity (Current_Sem_Unit) = Defining_Entity (N) then | |
44 | --- 2550,2570 ---- | |
45 | ||
46 | Set_Instance_Spec (N, Act_Decl); | |
47 | ||
48 | ! -- If not a compilation unit, insert the package declaration | |
49 | ! -- after the instantiation node. | |
50 | ||
51 | if Nkind (Parent (N)) /= N_Compilation_Unit then | |
52 | Mark_Rewrite_Insertion (Act_Decl); | |
53 | Insert_Before (N, Act_Decl); | |
54 | Analyze (Act_Decl); | |
55 | ||
56 | ! -- For an instantiation that is a compilation unit, place | |
57 | ! -- declaration on current node so context is complete | |
58 | ! -- for analysis (including nested instantiations). It this | |
59 | ! -- is the main unit, the declaration eventually replaces the | |
60 | ! -- instantiation node. If the instance body is later created, it | |
61 | ! -- replaces the instance node, and the declation is attached to | |
62 | ! -- it (see Build_Instance_Compilation_Unit_Nodes). | |
63 | ||
64 | else | |
65 | if Cunit_Entity (Current_Sem_Unit) = Defining_Entity (N) then | |
66 | *************** | |
67 | *** 2602,2608 **** | |
68 | First_Private_Entity (Act_Decl_Id)); | |
69 | ||
70 | if Nkind (Parent (N)) = N_Compilation_Unit | |
71 | ! and then not Needs_Body | |
72 | then | |
73 | Rewrite (N, Act_Decl); | |
74 | end if; | |
75 | --- 2606,2612 ---- | |
76 | First_Private_Entity (Act_Decl_Id)); | |
77 | ||
78 | if Nkind (Parent (N)) = N_Compilation_Unit | |
79 | ! and then not Needs_Body | |
80 | then | |
81 | Rewrite (N, Act_Decl); | |
82 | end if; | |
83 | *************** | |
84 | *** 3321,3326 **** | |
85 | --- 3325,3337 ---- | |
86 | Set_Library_Unit (Decl_Cunit, Body_Cunit); | |
87 | Set_Library_Unit (Body_Cunit, Decl_Cunit); | |
88 | ||
89 | + -- If the instance is not the main unit, its context, categorization, | |
90 | + -- and elaboration entity are not relevant to the compilation. | |
91 | + | |
92 | + if Parent (N) /= Cunit (Main_Unit) then | |
93 | + return; | |
94 | + end if; | |
95 | + | |
96 | -- The context clause items on the instantiation, which are now | |
97 | -- attached to the body compilation unit (since the body overwrote | |
98 | -- the original instantiation node), semantically belong on the spec, | |
99 | *************** | |
100 | *** 6581,6590 **** | |
101 | ||
102 | if Nkind (Parent (Inst_Node)) = N_Compilation_Unit then | |
103 | ||
104 | if Parent (Inst_Node) = Cunit (Main_Unit) then | |
105 | - Build_Instance_Compilation_Unit_Nodes | |
106 | - (Inst_Node, Act_Body, Act_Decl); | |
107 | - Analyze (Inst_Node); | |
108 | ||
109 | -- If the instance is a child unit itself, then set the | |
110 | -- scope of the expanded body to be the parent of the | |
111 | --- 6592,6605 ---- | |
112 | ||
113 | if Nkind (Parent (Inst_Node)) = N_Compilation_Unit then | |
114 | ||
115 | + -- Replace instance node with body of instance, and create | |
116 | + -- new node for corresponding instance declaration. | |
117 | + | |
118 | + Build_Instance_Compilation_Unit_Nodes | |
119 | + (Inst_Node, Act_Body, Act_Decl); | |
120 | + Analyze (Inst_Node); | |
121 | + | |
122 | if Parent (Inst_Node) = Cunit (Main_Unit) then | |
123 | ||
124 | -- If the instance is a child unit itself, then set the | |
125 | -- scope of the expanded body to be the parent of the | |
126 | *************** | |
127 | *** 6597,6606 **** | |
128 | Set_Scope | |
129 | (Defining_Entity (Inst_Node), Scope (Act_Decl_Id)); | |
130 | end if; | |
131 | - | |
132 | - else | |
133 | - Set_Parent (Act_Body, Parent (Inst_Node)); | |
134 | - Analyze (Act_Body); | |
135 | end if; | |
136 | ||
137 | -- Case where instantiation is not a library unit | |
138 | --- 6612,6617 ---- | |
139 | ||
140 | *** prj-nmsc.adb 2001/10/20 04:14:18 1.29 | |
141 | --- prj-nmsc.adb 2001/10/22 21:55:07 1.30 | |
142 | *************** | |
143 | *** 34,39 **** | |
144 | --- 34,40 ---- | |
145 | with GNAT.Case_Util; use GNAT.Case_Util; | |
146 | with GNAT.Directory_Operations; use GNAT.Directory_Operations; | |
147 | with GNAT.OS_Lib; use GNAT.OS_Lib; | |
148 | + with MLib.Tgt; | |
149 | with Namet; use Namet; | |
150 | with Osint; use Osint; | |
151 | with Output; use Output; | |
152 | *************** | |
153 | *** 1948,2008 **** | |
154 | Data.Library_Name /= No_Name; | |
155 | ||
156 | if Data.Library then | |
157 | - if Current_Verbosity = High then | |
158 | - Write_Line ("This is a library project file"); | |
159 | - end if; | |
160 | ||
161 | ! pragma Assert (Lib_Version.Kind = Single); | |
162 | ||
163 | ! if Lib_Version.Value = Empty_String then | |
164 | if Current_Verbosity = High then | |
165 | ! Write_Line ("No library version specified"); | |
166 | end if; | |
167 | ||
168 | ! else | |
169 | ! Stringt.String_To_Name_Buffer (Lib_Version.Value); | |
170 | ! Data.Lib_Internal_Name := Name_Find; | |
171 | ! end if; | |
172 | ||
173 | ! pragma Assert (The_Lib_Kind.Kind = Single); | |
174 | ||
175 | ! if The_Lib_Kind.Value = Empty_String then | |
176 | ! if Current_Verbosity = High then | |
177 | ! Write_Line ("No library kind specified"); | |
178 | end if; | |
179 | ||
180 | ! else | |
181 | ! Stringt.String_To_Name_Buffer (The_Lib_Kind.Value); | |
182 | ||
183 | ! declare | |
184 | ! Kind_Name : constant String := | |
185 | ! To_Lower (Name_Buffer (1 .. Name_Len)); | |
186 | ||
187 | ! OK : Boolean := True; | |
188 | ||
189 | ! begin | |
190 | ||
191 | ! if Kind_Name = "static" then | |
192 | ! Data.Library_Kind := Static; | |
193 | ||
194 | ! elsif Kind_Name = "dynamic" then | |
195 | ! Data.Library_Kind := Dynamic; | |
196 | ||
197 | ! elsif Kind_Name = "relocatable" then | |
198 | ! Data.Library_Kind := Relocatable; | |
199 | ||
200 | ! else | |
201 | ! Error_Msg | |
202 | ! ("illegal value for Library_Kind", | |
203 | ! The_Lib_Kind.Location); | |
204 | ! OK := False; | |
205 | ! end if; | |
206 | ||
207 | ! if Current_Verbosity = High and then OK then | |
208 | ! Write_Str ("Library kind = "); | |
209 | ! Write_Line (Kind_Name); | |
210 | ! end if; | |
211 | ! end; | |
212 | end if; | |
213 | end if; | |
214 | end; | |
215 | --- 1949,2016 ---- | |
216 | Data.Library_Name /= No_Name; | |
217 | ||
218 | if Data.Library then | |
219 | ||
220 | ! if not MLib.Tgt.Libraries_Are_Supported then | |
221 | ! Error_Msg ("?libraries are not supported on this platform", | |
222 | ! Lib_Name.Location); | |
223 | ||
224 | ! else | |
225 | if Current_Verbosity = High then | |
226 | ! Write_Line ("This is a library project file"); | |
227 | end if; | |
228 | ||
229 | ! pragma Assert (Lib_Version.Kind = Single); | |
230 | ||
231 | ! if Lib_Version.Value = Empty_String then | |
232 | ! if Current_Verbosity = High then | |
233 | ! Write_Line ("No library version specified"); | |
234 | ! end if; | |
235 | ||
236 | ! else | |
237 | ! Stringt.String_To_Name_Buffer (Lib_Version.Value); | |
238 | ! Data.Lib_Internal_Name := Name_Find; | |
239 | end if; | |
240 | ||
241 | ! pragma Assert (The_Lib_Kind.Kind = Single); | |
242 | ||
243 | ! if The_Lib_Kind.Value = Empty_String then | |
244 | ! if Current_Verbosity = High then | |
245 | ! Write_Line ("No library kind specified"); | |
246 | ! end if; | |
247 | ||
248 | ! else | |
249 | ! Stringt.String_To_Name_Buffer (The_Lib_Kind.Value); | |
250 | ||
251 | ! declare | |
252 | ! Kind_Name : constant String := | |
253 | ! To_Lower (Name_Buffer (1 .. Name_Len)); | |
254 | ||
255 | ! OK : Boolean := True; | |
256 | ||
257 | ! begin | |
258 | ||
259 | ! if Kind_Name = "static" then | |
260 | ! Data.Library_Kind := Static; | |
261 | ||
262 | ! elsif Kind_Name = "dynamic" then | |
263 | ! Data.Library_Kind := Dynamic; | |
264 | ||
265 | ! elsif Kind_Name = "relocatable" then | |
266 | ! Data.Library_Kind := Relocatable; | |
267 | ! | |
268 | ! else | |
269 | ! Error_Msg | |
270 | ! ("illegal value for Library_Kind", | |
271 | ! The_Lib_Kind.Location); | |
272 | ! OK := False; | |
273 | ! end if; | |
274 | ! | |
275 | ! if Current_Verbosity = High and then OK then | |
276 | ! Write_Str ("Library kind = "); | |
277 | ! Write_Line (Kind_Name); | |
278 | ! end if; | |
279 | ! end; | |
280 | ! end if; | |
281 | end if; | |
282 | end if; | |
283 | end; | |
284 | ||
285 | *** prj-proc.adb 2001/10/05 16:11:38 1.18 | |
286 | --- prj-proc.adb 2001/10/22 21:59:35 1.19 | |
287 | *************** | |
288 | *** 662,667 **** | |
289 | --- 662,668 ---- | |
290 | ||
291 | if Data.Modifies /= No_Project | |
292 | and then Projects.Table (Data.Modifies).Name = With_Name | |
293 | + | |
294 | then | |
295 | return Data.Modifies; | |
296 | ||
297 | ||
298 | *** Makefile.in 2001/10/22 00:45:45 1.1415 | |
299 | --- Makefile.in 2001/10/22 22:07:09 1.1416 | |
300 | *************** | |
301 | *** 488,493 **** | |
302 | --- 488,497 ---- | |
303 | hostparm.o \ | |
304 | krunch.o \ | |
305 | lib.o \ | |
306 | + mlib.o \ | |
307 | + mlib-fil.o \ | |
308 | + mlib-tgt.o \ | |
309 | + mlib-utl.o \ | |
310 | namet.o \ | |
311 | nlists.o \ | |
312 | opt.o \ | |
313 | ||
314 | *** prj-proc.adb 2001/10/22 21:59:35 1.19 | |
315 | --- prj-proc.adb 2001/10/22 22:11:00 1.20 | |
316 | *************** | |
317 | *** 246,252 **** | |
318 | -- Reference to the last string elements in Result, when Kind is List. | |
319 | ||
320 | begin | |
321 | ! Result.Location := Location_Of (From_Project_Node); | |
322 | ||
323 | -- Process each term of the expression, starting with First_Term | |
324 | ||
325 | --- 246,252 ---- | |
326 | -- Reference to the last string elements in Result, when Kind is List. | |
327 | ||
328 | begin | |
329 | ! Result.Location := Location_Of (First_Term); | |
330 | ||
331 | -- Process each term of the expression, starting with First_Term | |
332 | ||
333 | *************** | |
334 | *** 639,645 **** | |
335 | end case; | |
336 | ||
337 | The_Term := Next_Term (The_Term); | |
338 | - | |
339 | end loop; | |
340 | ||
341 | return Result; | |
342 | --- 639,644 ---- | |
343 | *************** | |
344 | *** 662,668 **** | |
345 | ||
346 | if Data.Modifies /= No_Project | |
347 | and then Projects.Table (Data.Modifies).Name = With_Name | |
348 | - | |
349 | then | |
350 | return Data.Modifies; | |
351 | ||
352 | --- 661,666 ---- | |
84436014 RD |
353 | 2001-12-05 Robert Dewar <dewar@gnat.com> |
354 | ||
355 | * Makefile.in: Add dependencies for System.IO for GNAT.Regexp | |
356 | ||
7ae0dcd8 ES |
357 | 2001-12-05 Ed Schonberg <schonber@gnat.com> |
358 | ||
359 | * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a | |
360 | constraint, introduce explicit subtype declaration and derive from it. | |
361 | ||
362 | * sem_ch3.adb: Minor reformatting | |
363 | ||
c9a4817d RD |
364 | 2001-12-05 Robert Dewar <dewar@gnat.com> |
365 | ||
366 | * checks.adb (Determine_Range): Increase cache size for checks. | |
367 | Minor reformatting | |
368 | ||
369 | * exp_ch6.adb: Minor reformatting | |
370 | (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has | |
371 | a parameter whose root type is System.Address, since treating such | |
372 | subprograms as pure in the code generator is almost surely a mistake | |
373 | that will lead to unexpected results. | |
374 | ||
375 | * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and | |
376 | change handling of conversions. | |
377 | ||
378 | * g-regexp.adb: Use System.IO instead of Ada.Text_IO. | |
379 | ||
2514b839 ES |
380 | 2001-12-05 Ed Schonberg <schonber@gnat.com> |
381 | ||
382 | * sem_ch3.adb (Analyze_Object_Declaration): If expression is an | |
383 | aggregate with static wrong size, attach generated Raise node to | |
384 | declaration. | |
385 | ||
457b6274 RD |
386 | 2001-12-05 Robert Dewar <dewar@gnat.com> |
387 | ||
388 | * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute. | |
389 | Fixes compilation abandoned bomb in B24009B. | |
390 | ||
19349925 ES |
391 | 2001-12-05 Ed Schonberg <schonber@gnat.com> |
392 | ||
393 | * sem_ch12.adb: | |
394 | Document use of Associated_Node on Selected_Components. | |
395 | (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants, | |
396 | to clarify use of untyped descendant fields. | |
397 | ||
6663c393 RD |
398 | 2001-12-05 Robert Dewar <dewar@gnat.com> |
399 | ||
400 | * prj-dect.ads: Add ??? comment | |
401 | Add 2001 to copyright notice (was not done in after all) | |
402 | ||
403 | * prj-part.adb: Minor reformatting. Reword one awkward error message. | |
404 | ||
405 | * prj.ads: Minor reformatting throughout, and add some ??? comments | |
406 | ||
407 | * snames.ads: Minor reformatting | |
408 | ||
d7b2a6af GB |
409 | 2001-12-05 Geert Bosch <bosch@gnat.com> |
410 | ||
411 | * snames.adb: Autoupdate | |
412 | ||
fbc9a404 VC |
413 | 2001-12-05 Vincent Celier <celier@gnat.com> |
414 | ||
415 | * prj-dect.adb (Parse): Rename parameter Modifying to Extends. | |
416 | ||
417 | * prj-dect.ads (Parse): Rename parameter Modifying to Extends. | |
418 | ||
419 | * prj-env.adb: Minor comment changes (modifying -> extends). | |
420 | ||
421 | * prj-nmsc.adb: Minor comment changes (modifying -> extends). | |
422 | ||
423 | * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to | |
424 | Tok_Extends. | |
425 | ||
426 | * prj.adb (Initialize): Change Modifying to Extends. | |
427 | ||
428 | * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends. | |
429 | ||
430 | * prj.ads: Minor comment change (Modifying -> extending). | |
431 | ||
432 | * snames.ads: Change modifying to extends. | |
433 | ||
7cff0b1b RD |
434 | 2001-12-05 Robert Dewar <dewar@gnat.com> |
435 | ||
436 | * sem_warn.adb: Remove stuff for conditionals, we are not going to | |
437 | do this after all. | |
438 | ||
439 | * sem_warn.ads: Remove stuff for conditionals, we are not going to | |
440 | do this after all. Add 2001 to copyright notice | |
441 | ||
4f56ebb7 GB |
442 | 2001-12-04 Geert Bosch <bosch@gnat.com> |
443 | ||
444 | * einfo.h, sinfo.h, treeprs.ads: Regenerate. | |
445 | ||
053defdf RD |
446 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
447 | ||
448 | * errout.adb (Error_Msg): Ignore attempt to put error msg at junk | |
449 | location if we already have errors. Stops some cases of cascaded | |
450 | errors. | |
451 | ||
452 | * errout.adb: Improve comment. | |
453 | ||
f311e166 RD |
454 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
455 | ||
456 | * sem_ch12.adb: | |
457 | (Analyze_Formal_Type_Definition): Defend against Error. | |
458 | (Analyze_Formal_Subprogram): Defend against Error. | |
459 | ||
460 | * par-ch12.adb (F_Formal_Type_Declaration): In case of error, | |
461 | remove following semicolon if present. Removes cascaded error. | |
462 | ||
d61bd65a DR |
463 | 2001-12-04 Douglas B. Rupp <rupp@gnat.com> |
464 | ||
465 | * bindgen.adb: | |
466 | (Gen_Exception_Table_Ada): Write "begin" and then return if Num | |
467 | exceptions equals 0. | |
468 | (Gen_Exception_Table_C): Return if Num exceptions equals 0. | |
469 | Fixes PIWG E tests (which have to be run with -gnatL). | |
470 | ||
4ba603e2 RD |
471 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
472 | ||
473 | * einfo.ads: Minor reformatting | |
474 | ||
57568d91 ES |
475 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
476 | ||
477 | * einfo.ads: Block_Node points to the identifier of the block, not to | |
478 | the block node itself, to preserve the link when the block is | |
479 | rewritten, e.g. within an if-statement with a static condition. | |
480 | ||
481 | * inline.adb (Cleanup_Scopes): recover block statement from block | |
482 | entity using new meaning of Block_Node. | |
483 | ||
484 | * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to | |
485 | identifier of block node, rather than to node itself. | |
486 | ||
0815d36a GD |
487 | 2001-12-04 Gary Dismukes <dismukes@gnat.com> |
488 | ||
489 | * layout.adb: | |
490 | (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size. | |
491 | (Discrimify): Go back to setting the Etypes of the selected component | |
492 | because the Vname component does not exist at this point and will | |
493 | fail name resolution. Also set Analyzed. | |
494 | Remove with and use of Sem_Res. | |
495 | ||
edc0f304 AC |
496 | 2001-12-04 Arnaud Charlet <charlet@gnat.com> |
497 | ||
498 | * Makefile.in: (HIE_SOURCES): add s-fat*. | |
499 | ||
32213142 RD |
500 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
501 | ||
502 | * sem_attr.adb: | |
503 | (Compile_Time_Known_Attribute): New procedure. | |
504 | (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure | |
505 | proper range check. | |
506 | ||
c0def2ad ES |
507 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
508 | ||
509 | * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before | |
510 | processing discriminants to diagnose illegal default values. | |
511 | ||
ee0a48c5 ES |
512 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
513 | ||
514 | * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide | |
515 | access discriminant within a type extension that constrains its | |
516 | parent discriminants. | |
517 | ||
dd5875a6 ES |
518 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
519 | ||
520 | * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication | |
521 | is malformed, use instance of Any_Id to allow analysis to proceed. | |
522 | ||
523 | * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if | |
524 | type definition is illegal. | |
525 | (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is | |
526 | misplaced. | |
527 | ||
c2a41e57 ES |
528 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
529 | ||
530 | * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to | |
531 | constants. | |
532 | ||
0ae84753 RD |
533 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
534 | ||
535 | * errout.adb: Minor reformatting | |
536 | ||
63db260e RD |
537 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
538 | ||
539 | * exp_util.adb: Minor reformatting from last change | |
540 | ||
541 | * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node | |
542 | which is a rewriting of an expression, traverse the original | |
543 | expression to remove warnings that may have been posted on it. | |
544 | ||
c6d289f4 ES |
545 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
546 | ||
547 | * exp_util.adb (Must_Be_Aligned): Return false for a component of a | |
548 | record that has other packed components. | |
549 | ||
5917e80d DR |
550 | 2001-12-04 Douglass B. Rupp <rupp@gnat.com> |
551 | ||
552 | * adaint.c: Minor cleanups. | |
553 | ||
2c70f9dd DR |
554 | 2001-12-04 Douglass B. Rupp <rupp@gnat.com> |
555 | ||
556 | * adaint.c: Do not use utime.h on vxworks. | |
557 | ||
e59b3387 AC |
558 | 2001-12-04 Arnaud Charlet <charlet@gnat.com> |
559 | ||
560 | * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes | |
561 | more confusion than it solves. | |
562 | ||
e288604a GB |
563 | 2001-12-04 Geert bosch <bosch@gnat.com> |
564 | ||
565 | * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate. | |
566 | ||
5ac21013 GB |
567 | 2001-12-04 Geert Bosch <bosch@gnat.com> |
568 | ||
569 | * Makefile.in (update-sources): New target. | |
570 | For use by gcc_release script. | |
571 | ||
7dd5bd5e ES |
572 | 2001-12-04 Ed Schonberg <schonber@gnat.com> |
573 | ||
574 | * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as | |
575 | a configuration pragma, it is now legal wherever a pragma can appear. | |
576 | ||
a078a589 ZW |
577 | 2001-12-04 Zack Weinberg <zack@codesourcery.com> |
578 | ||
579 | * Makefile.in: Don't set ALL. Delete @cross_defines@, | |
580 | @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS | |
581 | is now @CROSS@ -DIN_GCC; update comment. | |
582 | ||
0839863c GB |
583 | 2001-12-04 Robert Dewar <dewar@gnat.com> |
584 | ||
585 | * einfo.adb (Has_Pragma_Pure_Function): New flag. | |
586 | Fix problem that stopped ceinfo from working | |
587 | ||
588 | * einfo.ads (Has_Pragma_Pure_Function): New flag. | |
589 | ||
590 | * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function. | |
591 | ||
592 | 2001-12-04 Douglas B. Rupp <rupp@gnat.com> | |
9678de49 DR |
593 | |
594 | * gnatchop.adb: | |
595 | (File_Time_Stamp): New procedure. | |
596 | (Preserve_Mode): New boolean. | |
597 | (Write_Unit): Pass time stamp. | |
598 | Implement -p switch (preserve time stamps). | |
599 | ||
600 | * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE). | |
601 | ||
602 | * gnatchop.adb: Do usage info for -p switch | |
603 | ||
604 | * adaint.h (__gnat_set_file_time_name): New function | |
605 | ||
606 | * adaint.c (__gnat_set_file_time_name): Implement | |
607 | ||
608 | * adaint.h: Fix typo | |
609 | ||
3b9a13c4 RD |
610 | 2001-12-03 Robert Dewar <dewar@gnat.com> |
611 | ||
667e5c5d | 612 | * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not |
3b9a13c4 RD |
613 | have Associated_Node. |
614 | ||
767b404e RD |
615 | 2001-12-03 Robert Dewar <dewar@gnat.com> |
616 | ||
617 | * prj-proc.adb: Minor reformatting | |
667e5c5d | 618 | |
767b404e RD |
619 | * make.adb: Minor reformatting |
620 | ||
11ac71ba GB |
621 | 2001-12-03 Geert Bosch <bosch@gnat.com> |
622 | ||
667e5c5d | 623 | * make.adb: Minor reformatting. |
11ac71ba | 624 | |
b1446533 RD |
625 | 2001-12-03 <dewar@gnat.com> |
626 | ||
627 | * sem_ch12.adb: Minor reformatting | |
628 | ||
d6d32b24 ES |
629 | 2001-12-03 Ed Schonberg <schonber@gnat.com> |
630 | ||
667e5c5d AJ |
631 | * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and |
632 | push Standard on the stack before analyzing the instance body, | |
d6d32b24 | 633 | in order to have a clean visibility environment. |
667e5c5d AJ |
634 | |
635 | * sem_ch12.adb (Inline_Instance_Body): Remove redundant code. | |
d6d32b24 | 636 | |
13f08f03 ES |
637 | 2001-12-03 Ed Schonberg <schonber@gnat.com> |
638 | ||
667e5c5d | 639 | * sem_ch12.adb (Instantiate_Package_Body): Protect against double |
13f08f03 ES |
640 | instantiation of a body that contains an inlined body. |
641 | ||
3bd6c100 ES |
642 | 2001-12-03 Ed Schonberg <schonber@gnat.com> |
643 | ||
644 | * sem_ch12.adb: | |
645 | (Analyze_generic_subprogram_Declaration): Set outer_generic_scope, | |
646 | to prevent freezing within formal packages. | |
647 | (Freeze_Subprogram_Body): If body comes from another instance that | |
648 | appeared before its own body, place freeze node at end of current | |
649 | declarative part, to prevent a back-end crash. | |
650 | (Inline_Instance_Body): Handle properly a package instance within | |
651 | a subprogram instance that is a child unit. | |
652 | ||
58d07d8f GS |
653 | 2001-12-01 Graham Stott <grahams@redhat.com> |
654 | ||
655 | * Makefile.in (misc.o): Add missing $(srcdir) prefix | |
656 | and add optabs.h dependency. | |
657 | ||
658 | * misc.c: Include optabs.h | |
659 | (gnat_tree_code_type): Make static and const. | |
660 | (gnat_tree_code_length): Likewise. | |
661 | (gnat_tree_code_name): Likewise. | |
662 | (update_setjmp_buf): Obtain operands mode from insn_data. | |
663 | ||
c87222f0 RH |
664 | 2001-11-29 Richard Henderson <rth@redhat.com> |
665 | ||
666 | * init.c: Remove obsolete dwarf2 frame.h section. | |
667 | ||
d3945f0a JM |
668 | 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk> |
669 | ||
670 | * Make-lang.in (ada.generated-manpages): New dummy target. | |
671 | ||
9f639397 ES |
672 | 2001-11-29 Ed Schonberg <schonber@gnat.com> |
673 | ||
667e5c5d AJ |
674 | * g-os_lib.adb (Add_To_Command): use explicit loop to move string |
675 | into Command, an array conversion is illegal here. Uncovered by | |
9f639397 ES |
676 | ACATS B460005. |
677 | ||
c835e5c6 GB |
678 | 2001/11/28 Geert Bosch <bosch@gnat.com> |
679 | ||
680 | * init.c: Minor whitespace changes. | |
681 | ||
49bb4548 DR |
682 | 2001-11-28 Doug Rupp <rupp@gnat.com> |
683 | ||
667e5c5d | 684 | * init.c: (__gnat_install_handler,VMS): Increase size of alternate |
49bb4548 DR |
685 | signal stack. |
686 | ||
ea2417e5 ZW |
687 | 2001-11-28 Zack Weinberg <zack@codesourcery.com> |
688 | ||
689 | * misc.c (gnat_expand_constant): Move declaration above | |
690 | definition of lang_hooks. | |
691 | (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant. | |
692 | (gnat_init): lang_expand_constant no longer exists. | |
693 | ||
694 | (internal_error_function): Remove #ifdef HAVE_VPRINTF. We | |
695 | always have vprintf. | |
696 | (gnat_init): Always call set_internal_error_function. | |
697 | ||
f8e0aa73 AJ |
698 | 2001-11-27 Andreas Jaeger <aj@suse.de> |
699 | ||
700 | * Makefile.in (stamp-tool_src_dir): Use symbolic link. | |
701 | ||
d99b0e79 LG |
702 | 2001-11-27 Laurent Guerby <guerby@acm.org> |
703 | ||
704 | * Makefile.in: Regenerate Ada dependencies. | |
705 | ||
3f0496e5 RH |
706 | 2001-11-26 Richard Henderson <rth@redhat.com> |
707 | ||
708 | * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd, | |
709 | gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys, | |
710 | gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o. | |
711 | ||
92fa4733 LG |
712 | 2001-11-25 Laurent Guerby <guerby@acm.org> |
713 | ||
714 | * sysdep.c (rts_get_*): Fix style. | |
715 | ||
07626501 LG |
716 | 2001-11-19 Laurent Guerby <guerby@acm.org> |
717 | ||
718 | * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include | |
719 | since it is of no apparent use and cause warnings. | |
720 | ||
22703ccc NB |
721 | 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk> |
722 | ||
723 | * misc.c (gnat_decode_option, gnat_init_options): Make definitions | |
724 | static too. | |
725 | (gnat_init): Don't return NULL. | |
726 | (finish_parse): Remove. | |
727 | ||
b0df4321 LG |
728 | 2001-11-17 Laurent Guerby <guerby@acm.org> |
729 | ||
730 | * Make-lang.in (GNATLIBFLAGS): Add -W -Wall. | |
731 | * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing. | |
732 | * io-aux.c: Provide K&R prototypes to all functions, reformat code. | |
733 | * lang-spec.h: Add missing struct field to silence warnings. | |
734 | * sysdep.c (rts_get_*): Provide K&R prototype. | |
735 | * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype. | |
736 | * traceback.c (Unlock_Task, Lock_Task): Likewise. | |
737 | * tracebak.c (__gnat_backtrace): Remove unused variable. | |
738 | * utils.c (end_subprog_body): Move to K&R style. | |
739 | ||
d215024f RK |
740 | Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
741 | ||
742 | * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference. | |
743 | ||
f5e99456 NB |
744 | 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk> |
745 | ||
746 | * misc.c (gnat_init): Change prototype. Include the | |
747 | functionality of the old init_parse and init_decl_processing. | |
748 | (gnat_init_decl_processing): New prototype. | |
749 | (init_parse): Remove. | |
750 | * utils.c (init_decl_processing): Rename gnat_init_decl_processing. | |
751 | ||
5d69f816 NB |
752 | 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk> |
753 | ||
754 | * misc.c (gnat_print_decl, gnat_print_type): Renamed. | |
755 | (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override. | |
756 | (print_lang_statistics, lang_print_xnode, print_lang_identifier, | |
757 | set_yydebug): Remove. | |
758 | ||
3ac88239 NB |
759 | 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk> |
760 | ||
761 | * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override. | |
762 | (struct lang_hooks): Constify. | |
763 | (language_string, lang_identify): Remove. | |
764 | * utils.c (init_decl_processing): Update. | |
765 | ||
d23c55c2 NB |
766 | 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk> |
767 | ||
768 | * misc.c: Include langhooks-def.h. | |
769 | * Makefile.in: Update. | |
770 | ||
04a1b79c RD |
771 | 2001-10-30 Robert Dewar <dewar@gnat.com> |
772 | ||
773 | * style.adb: | |
774 | (Check_Identifier): Rewrite circuit to be compatible with use of letters | |
775 | in the upper half of ASCII. | |
776 | (Check_Identifier): Minor reformatting | |
777 | ||
81fa2d39 GB |
778 | 2001-10-30 Geert Bosch <bosch@gnat.com> |
779 | ||
f8e0aa73 | 780 | * (Associated_Node, Set_Associated_Node): Do not check for |
81fa2d39 GB |
781 | Freeze_Entity. |
782 | ||
ffc5527f RD |
783 | 2001-10-30 Robert Dewar <dewar@gnat.com> |
784 | ||
785 | * a-reatim.ads: Minor reformatting | |
786 | ||
865335eb RD |
787 | 2001-10-30 Robert Dewar <dewar@gnat.com> |
788 | ||
f8e0aa73 | 789 | * gnatdll.adb: Minor reformatting throughout. Many ??? added for |
865335eb RD |
790 | undocumented declarations. |
791 | ||
5e257178 PO |
792 | 2001-10-30 Pascal Obry <obry@gnat.com> |
793 | ||
f8e0aa73 | 794 | * gnatdll.adb (Parse_Command_Line): handle -g option to be passed |
5e257178 PO |
795 | to the binder and linker. |
796 | Minor style fix. | |
f8e0aa73 | 797 | |
5e257178 PO |
798 | * mdll.ads: Fix layout. Update copyright notice. |
799 | ||
800 | * mdll.adb: Fix layout. Update copyright notice. | |
801 | ||
1753e0ad RD |
802 | 2001-10-30 Robert Dewar <dewar@gnat.com> |
803 | ||
804 | * usage.adb: Minor fix to output for -gnaty. | |
805 | ||
84bfdde0 ES |
806 | 2001-10-30 Ed Schonberg <schonber@gnat.com> |
807 | ||
f8e0aa73 AJ |
808 | * a-reatim.ads: Makes Seconds_Count into a 64-bit integer, |
809 | to accommodate all its possible values. | |
84bfdde0 | 810 | |
f8e0aa73 | 811 | * a-reatim.adb (Split): Special-case handling of Time_Span_First |
84bfdde0 ES |
812 | and of small absolute values of T. |
813 | ||
c296e5fc RK |
814 | 2001-10-30 Richard Kenner <kenner@gnat.com> |
815 | ||
f8e0aa73 AJ |
816 | * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to |
817 | set_mem_attributes since not needed and wrong if RESULT if a REG; | |
c296e5fc RK |
818 | fixes ACATS failures. |
819 | ||
07c809df GB |
820 | 2001-10-30 Geert Bosch <bosch@gnat.com> |
821 | ||
822 | * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads, | |
823 | s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice. | |
824 | ||
54d22416 | 825 | 2001-10-30 Robert Dewar <dewar@gnat.com> |
f8e0aa73 | 826 | |
54d22416 | 827 | * bindusg.adb: Undocument -f switch. |
f8e0aa73 | 828 | |
54d22416 | 829 | * gnatcmd.adb: Remove /FULL_ELABORATION. |
f8e0aa73 AJ |
830 | |
831 | * opt.ads (Force_RM_Elaboration_Order): Document that this is | |
54d22416 | 832 | obsolescent. |
f8e0aa73 | 833 | |
54d22416 | 834 | * gnatbind.adb: Output new warning for use of obsolescent -f switch. |
f8e0aa73 | 835 | |
54d22416 RD |
836 | * gnatbind.adb: Minor update of warning msg. |
837 | ||
af5cf6f8 VC |
838 | 2001-10-30 Vincent Celier <celier@gnat.com> |
839 | ||
f8e0aa73 | 840 | * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations |
af5cf6f8 | 841 | for project file switches (-P (/PROJECT_FILE=), |
f8e0aa73 | 842 | -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT |
af5cf6f8 VC |
843 | or MEDIUM or HIGH) |
844 | ||
984bc4c3 GB |
845 | 2001-10-30 Geert Bosch <bosch@gnat.com> |
846 | ||
847 | * decl.c: Minor whitespace fixes. | |
848 | ||
5dece937 RK |
849 | 2001-10-30 Richard Kenner <kenner@gnat.com> |
850 | ||
851 | * utils2.c (build_allocator): Test for SIZE overflow in array case too | |
852 | ||
de4bf6cb GB |
853 | 2001-10-30 Geert Bosch <bosch@gnat.com> |
854 | ||
f8e0aa73 | 855 | * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out. |
de4bf6cb | 856 | Found due to GCC 3.0 warning of using uninitialized value. |
f8e0aa73 | 857 | |
de4bf6cb GB |
858 | * layout.adb: |
859 | (Get_Max_Size): Use variant record for tracking value/expression. | |
860 | Makes logic clearer and prevents warnings for uninitialized variables. | |
861 | (Layout_Array_Type): Use variant record for tracking value/expression. | |
862 | Makes logic clearer and prevents warnings for uninitialized variables. | |
863 | ||
f5e44987 RD |
864 | 2001-10-30 Robert Dewar <dewar@gnat.com> |
865 | ||
866 | * lib.adb: Minor reformatting | |
867 | ||
868 | * s-taprop.ads: Minor reformatting | |
869 | ||
45659035 | 870 | 2001-10-29 Laurent Guerby <guerby@acm.org> |
f8e0aa73 | 871 | |
45659035 GB |
872 | * init.c: |
873 | (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg | |
874 | const. | |
875 | (_gnat_error_handler): Make MSG const. | |
876 | ||
877 | 2001-10-29 Richard Kenner <kenner@gnat.com> | |
878 | ||
879 | * sysdep.c: Fix localtime_r problem on LynxOS. | |
880 | Also remove #elif to avoid warnings. | |
f8e0aa73 AJ |
881 | |
882 | * misc.c (yyparse): Don't set up and register jmpbuf; remove decls | |
45659035 | 883 | used by this. |
f8e0aa73 | 884 | |
45659035 GB |
885 | * decl.c (annotate_value): Make SIZE unsigned to avoid warning. |
886 | ||
638e383e JM |
887 | 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk> |
888 | ||
889 | * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb, | |
890 | exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb, | |
891 | g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads, | |
892 | g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c, | |
893 | layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads, | |
894 | s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads, | |
895 | sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb, | |
896 | sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb, | |
897 | sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads, | |
898 | types.ads, urealp.adb: Fix spelling errors. | |
899 | ||
97f6baa0 LG |
900 | 2001-10-27 Laurent Guerby <guerby@acm.org> |
901 | ||
902 | * trans.c (gigi): Fix non determinism leading to bootstrap | |
903 | comparison failures for debugging information. | |
904 | ||
46b58b8c FW |
905 | 2001-10-26 Florian Weimer <fw@deneb.enyo.de> |
906 | ||
907 | * gnat_rm.texi: Use @./@: where appropriate. | |
908 | ||
30151c7b RD |
909 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
910 | ||
911 | * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup. | |
912 | ||
c0b1738d RK |
913 | 2001-10-26 Richard Kenner <kenner@gnat.com> |
914 | ||
915 | * gmem.c (__gnat_gmem_read_next): Properly check for EOF | |
916 | ||
5b09c153 RK |
917 | 2001-10-26 Richard Kenner <kenner@gnat.com> |
918 | ||
f8e0aa73 | 919 | * decl.c (validate_size): Modify message for bad size to avoid |
5b09c153 RK |
920 | implication that compiler is modifying the size. |
921 | ||
4d553668 RD |
922 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
923 | ||
924 | * prj-util.adb: Minor reformatting. Fix bad header format. | |
925 | ||
3e542a58 RD |
926 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
927 | ||
928 | * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup. | |
f8e0aa73 | 929 | |
3e542a58 | 930 | * sinfo.ads: Clarify use of Associated_Node (documentation only). |
f8e0aa73 AJ |
931 | |
932 | * sem_ch12.adb: Change Node4 to Associated_Node. Change | |
933 | Associated_Node to Get_Associated_Node. Put use of Unchecked_Access | |
3e542a58 RD |
934 | much more narrowly in places where needed. These are cleanups. |
935 | ||
0bf08bfe JB |
936 | 2001-10-26 Joel Brobecker <brobecke@gnat.com> |
937 | ||
938 | * 5zosinte.ads (null_pthread): new constant. | |
f8e0aa73 | 939 | |
0bf08bfe JB |
940 | * 5ztaprop.adb: |
941 | (Initialize_TCB): Initialize thread ID to null, to be able to verify | |
942 | later that this field has been set. | |
943 | (Finalize_TCB): ditto. | |
944 | (Suspend_Task): Verify that the thread ID is not null before using it. | |
945 | (Resume_Task): ditto. | |
f8e0aa73 | 946 | |
0bf08bfe JB |
947 | * s-tasdeb.adb: |
948 | (Resume_All_Tasks): Lock the tasks list before using it. | |
949 | (Suspend_All_Tasks): ditto. | |
950 | ||
7a3a8c06 RK |
951 | 2001-10-26 Richard Kenner <kenner@gnat.com> |
952 | ||
f8e0aa73 | 953 | * decl.c (gnat_to_gnu_entity, case E_General_Access_Type): |
7a3a8c06 RK |
954 | Make constant variant of designated type for Is_Access_Constant. |
955 | Call update_pointer_to with main variant. | |
f8e0aa73 AJ |
956 | |
957 | * trans.c (process_freeze_entity, process_type): | |
7a3a8c06 | 958 | Call update_pointer_to on main variant. |
f8e0aa73 | 959 | |
7a3a8c06 RK |
960 | * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE. |
961 | If main variant, update all other variants. | |
f8e0aa73 AJ |
962 | |
963 | * utils2.c (build_unary_op, case INDIRECT_REF): No longer set | |
7a3a8c06 RK |
964 | TREE_STATIC. |
965 | ||
a160babb RD |
966 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
967 | ||
968 | * prj-util.adb: Minor reformatting | |
969 | ||
b403bd17 RD |
970 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
971 | ||
972 | * prj-util.adb: Minor reformatting | |
973 | ||
5fc3b4c7 RD |
974 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
975 | ||
976 | * prj-attr.adb: Minor reformatting throughout | |
977 | ||
8c736034 RD |
978 | 2001-10-26 Robert Dewar <dewar@gnat.com> |
979 | ||
980 | * prj-attr.ads: Minor reformatting | |
981 | Add ??? comment (this whole spec has almost no comments) | |
982 | ||
47d5b6ed VC |
983 | 2001-10-26 Vincent Celier <celier@gnat.com> |
984 | ||
f8e0aa73 | 985 | * g-os_lib.adb (Normalize_Pathname): Preserve the double slash |
47d5b6ed VC |
986 | ("//") that precede the drive letter on Interix. |
987 | ||
41af791f GB |
988 | 2001-10-26 Geert Bosch <bosch@gnat.com> |
989 | ||
990 | * gnat_rm.texi: Add GNAT Reference Manual. | |
991 | ||
ed4a1468 RD |
992 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
993 | ||
f8e0aa73 | 994 | * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name |
ed4a1468 RD |
995 | is Error. Similar change for other renaming cases. |
996 | ||
24377ae4 RD |
997 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
998 | ||
999 | * s-atacco.ads: Add pragma Inline_Always for functions. | |
1000 | Fix header format. Add copyright 2001 | |
1001 | ||
fef3204e ES |
1002 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
1003 | ||
f8e0aa73 | 1004 | * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array |
fef3204e ES |
1005 | return Error rather than Empty so that analysis can proceed. |
1006 | ||
dfc69d80 ES |
1007 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
1008 | ||
f8e0aa73 | 1009 | * sem_util.adb (Enter_Name): better handling of cascaded error |
dfc69d80 ES |
1010 | messages when a unit appears in its own context. |
1011 | ||
5a15af62 ES |
1012 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
1013 | ||
f8e0aa73 | 1014 | * sem_util.adb (Defining_Entity): in case of error, attach created |
5a15af62 ES |
1015 | entity to specification, so that semantic analysis can proceed. |
1016 | ||
2b881d53 RD |
1017 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
1018 | ||
f8e0aa73 | 1019 | * sem_util.adb |
2b881d53 RD |
1020 | (Defining_Entity): Deal with Error. |
1021 | (Process_End_Label): Deal with bad end label for. | |
1022 | ||
578053f2 ES |
1023 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
1024 | ||
f8e0aa73 | 1025 | * sem_elab.adb (Check_A_Call): refine message when call is in an |
578053f2 ES |
1026 | instance but callee is not declared in the generic unit. |
1027 | ||
0597ce0b | 1028 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
f8e0aa73 AJ |
1029 | |
1030 | * sem_elab.adb (Check_A_Call): check for renaming before finding the | |
0597ce0b ES |
1031 | enclosing unit, which may already be different from the calling unit. |
1032 | ||
3de6e6da GB |
1033 | 2001-10-25 Geert Bosch <bosch@gnat.com> |
1034 | ||
1035 | * 4gintnam.ads: fix header format. | |
1036 | ||
6f311316 ES |
1037 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
1038 | ||
f8e0aa73 AJ |
1039 | * sem_res.adb (Resolve_Call): if the call is actually an indexing |
1040 | operation on the result of a parameterless call, perform elaboration | |
6f311316 | 1041 | check after the node has been properly rewritten. |
f8e0aa73 AJ |
1042 | |
1043 | * sem_ch12.adb (Copy_Generic_Node): after the proper body has been | |
1044 | inlined within the generic tree, the defining identifier is not a | |
6f311316 ES |
1045 | compilation_unit. |
1046 | ||
17be0cdf ES |
1047 | 2001-10-25 Ed Schonberg <schonber@gnat.com> |
1048 | ||
f8e0aa73 | 1049 | * sem_res.adb (Resolve): special-case resolution of Null in an |
17be0cdf | 1050 | instance or an inlined body to avoid view conflicts. |
f8e0aa73 AJ |
1051 | |
1052 | * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view | |
17be0cdf ES |
1053 | compatibility by retrieving the access type of the generic copy. |
1054 | ||
ce9e9122 RD |
1055 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
1056 | ||
1057 | * sem_ch3.adb: | |
1058 | (Analyze_Number_Declaration): Handle error expression. | |
1059 | (Signed_Integer_Type_Declaration): Handle error bound. | |
1060 | (Analyze_Subtype_Indication): Handle error range. | |
f8e0aa73 | 1061 | |
ce9e9122 RD |
1062 | * sem_util.adb (Get_Index_Bounds): Check for Error. |
1063 | ||
e12fbc9e RD |
1064 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
1065 | ||
f8e0aa73 | 1066 | * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default |
e12fbc9e RD |
1067 | in no run time mode. |
1068 | ||
52b80488 PO |
1069 | 2001-10-25 Pascal Obry <obry@gnat.com> |
1070 | ||
f8e0aa73 | 1071 | * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet |
52b80488 | 1072 | mode case for ALLOC case. |
f8e0aa73 AJ |
1073 | |
1074 | * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on | |
52b80488 PO |
1075 | all platforms. Improvement of last change. |
1076 | ||
316ad9c5 RD |
1077 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
1078 | ||
1079 | * exp_ch4.adb (Expand_N_Allocator): Minor reformatting. | |
1080 | ||
1a7e4df4 GB |
1081 | 2001-10-25 Geert Bosch <bosch@gnat.com> |
1082 | ||
1083 | * osint.adb (Is_Relative): Remove duplicate. | |
1084 | ||
90a9fff2 PO |
1085 | 2001-10-25 Pascal Obry <obry@gnat.com> |
1086 | ||
f8e0aa73 | 1087 | * osint.adb (Read_Default_Search_Dirs): correctly detect relative |
90a9fff2 PO |
1088 | pathnames in UNIX and DOS style with drive letter. |
1089 | (Is_Relative): new routine. | |
f8e0aa73 | 1090 | |
90a9fff2 | 1091 | * osint.adb: Minor reformatting |
f8e0aa73 AJ |
1092 | |
1093 | * osint.adb (Is_Relative): implementation using | |
1a7e4df4 | 1094 | GNAT.OS_Lib.Is_Absolute_Path. Better fix. |
90a9fff2 | 1095 | |
5c1ba4cc PO |
1096 | 2001-10-25 Pascal Obry <obry@gnat.com> |
1097 | ||
f8e0aa73 | 1098 | * g-dirope.adb (Basename): correctly compute offset between the |
5c1ba4cc | 1099 | original Path and the translated one. |
f8e0aa73 | 1100 | |
5c1ba4cc PO |
1101 | * g-dirope.adb: (Base_Name): add some comments. |
1102 | ||
a7fb206d RD |
1103 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
1104 | ||
f8e0aa73 | 1105 | * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use |
a7fb206d | 1106 | in HIE mode, avoids compilation abandoned message |
f8e0aa73 | 1107 | |
a7fb206d | 1108 | * exp_imgv.adb: Correct typo in previous change |
f8e0aa73 | 1109 | |
a7fb206d RD |
1110 | * exp_imgv.adb: Correct typo in previous change (not my day!) |
1111 | ||
e6a7e62e RD |
1112 | 2001-10-25 Robert Dewar <dewar@gnat.com> |
1113 | ||
1114 | * s-tpinop.ads: Add 2001 to copyright notice. Fix header format. | |
1115 | ||
0d2b8e0b | 1116 | 2001-10-25 Pascal Obry <obry@gnat.com> |
75c09e7d | 1117 | |
f8e0aa73 | 1118 | * g-awk.ads: Move all pragma inlines next to the routine |
0d2b8e0b | 1119 | declarations. This is more uniform with other GNAT spec. |
75c09e7d | 1120 | |
0d2b8e0b | 1121 | 2001-10-22 Geert Bosch <bosch@gnat.com> |
d2740a69 GB |
1122 | |
1123 | * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem. | |
1124 | ||
0d2b8e0b | 1125 | 2001-10-19 Geert Bosch <bosch@gnat.com> |
d7ac9bdd GB |
1126 | |
1127 | * Makefile.in (tools, gnattools): Remove gnatmem. | |
1128 | ||
17ed6335 RH |
1129 | 2001-10-17 Richard Henderson <rth@redhat.com> |
1130 | ||
1131 | * Makefile.in (misc.o): Depend on langhooks.h. | |
1132 | * misc.c: Include it. | |
1133 | (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New. | |
1134 | (LANG_HOOKS_DECODE_OPTION): New. | |
1135 | (lang_hooks): Use LANG_HOOKS_INITIALIZER. | |
1136 | ||
f2436274 FW |
1137 | 2001-10-16 Florian Weimer <fw@deneb.enyo.de> |
1138 | ||
1139 | * trans.c (tree_transform): Adjust to recent change in | |
1140 | expand_asm_operands to implement named asm operands. | |
1141 | ||
b14127e6 ES |
1142 | 2001-10-11 Ed Schonberg <schonber@gnat.com> |
1143 | ||
f8e0aa73 | 1144 | * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in |
b14127e6 ES |
1145 | renaming of discriminant for mutable record type. |
1146 | ||
e70ee92a RD |
1147 | 2001-10-11 Robert Dewar <dewar@gnat.com> |
1148 | ||
1149 | * validsw.adb: Properly save -gnatVn status. | |
1150 | ||
9a5621d7 | 1151 | 2001-10-11 Robert Dewar <dewar@gnat.com> |
f8e0aa73 | 1152 | |
9a5621d7 RD |
1153 | * usage.adb: Add lines for V switch. |
1154 | ||
f8e0aa73 | 1155 | * gnatcmd.adb (COMPILE): Revise translations for -gnatV |
9a5621d7 RD |
1156 | (/VALIDITY_CHECKING). |
1157 | ||
45667f04 ES |
1158 | 2001-10-11 Ed Schonberg <schonber@gnat.com> |
1159 | ||
f8e0aa73 | 1160 | * sem_type.adb (Add_One_Interp): an operator for a type declared in |
45667f04 ES |
1161 | an extension of System is known to be visible. |
1162 | ||
c3de5c4c ES |
1163 | 2001-10-11 Ed Schonberg <schonber@gnat.com> |
1164 | ||
f8e0aa73 | 1165 | * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal |
c3de5c4c ES |
1166 | properly. Fixes regression on ACATS C34005G. |
1167 | ||
4fa964a6 RD |
1168 | 2001-10-11 Robert Dewar <dewar@gnat.com> |
1169 | ||
f8e0aa73 | 1170 | * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null |
4fa964a6 RD |
1171 | loop in generic instance, since this is likely not very useful. |
1172 | ||
0868e09c RD |
1173 | 2001-10-11 Robert Dewar <dewar@gnat.com> |
1174 | ||
f8e0aa73 | 1175 | * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize |
0868e09c | 1176 | the error message for high integrity mode. |
f8e0aa73 AJ |
1177 | |
1178 | * rtsfind.adb (RTE): Give message if we try to find an entity that | |
0868e09c | 1179 | is not available in high integrity mode. |
f8e0aa73 | 1180 | |
0868e09c RD |
1181 | * rtsfind.ads: |
1182 | (OK_To_Use_In_HIE_Mode): New array. | |
1183 | (RTE): May return Empty in high integrity mode. | |
f8e0aa73 AJ |
1184 | |
1185 | * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for | |
1186 | OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx. | |
1187 | ||
1188 | * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined | |
1189 | unit if not inlined always and in no runtime mode. Fixes problem | |
0868e09c | 1190 | caused by new Rtsfind changes. |
f8e0aa73 AJ |
1191 | |
1192 | * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if | |
0868e09c | 1193 | body is deleted. |
f8e0aa73 AJ |
1194 | |
1195 | * rtsfind.adb (RTE): Make sure we do not try to load unit after | |
0868e09c RD |
1196 | giving message for entity not available in high integrity mode. |
1197 | ||
934abf9c | 1198 | 2001-10-11 Pascal Obry <obry@gnat.com> |
f8e0aa73 | 1199 | |
934abf9c PO |
1200 | * impunit.adb: Add GNAT.CRC32. |
1201 | ||
3c72bea4 ES |
1202 | 2001-10-11 Ed Schonberg <schonber@gnat.com> |
1203 | ||
f8e0aa73 AJ |
1204 | * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle |
1205 | properly the case where one universal operand in a non-static | |
3c72bea4 ES |
1206 | exponentiation of a real literal. |
1207 | ||
44d8d2bb ES |
1208 | 2001-10-11 Ed Schonberg <schonber@gnat.com> |
1209 | ||
f8e0aa73 AJ |
1210 | * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type |
1211 | clause, return the gobal finalization list, for lack of anthing else. | |
44d8d2bb | 1212 | |
9e2b9627 ES |
1213 | 2001-10-11 Ed Schonberg <schonber@gnat.com> |
1214 | ||
f8e0aa73 AJ |
1215 | * exp_ch7.adb (Make_Transient_Block): if statement is within |
1216 | exception handler, always use new transient scope to place Clean | |
9e2b9627 ES |
1217 | procedure. |
1218 | ||
cfac6e9f PO |
1219 | 2001-10-11 Pascal Obry <obry@gnat.com> |
1220 | ||
1221 | * Makefile.in: | |
1222 | (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o | |
1223 | (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o | |
1224 | (GNATLS_RTL_OBJS): add g-crc32.o | |
1225 | (GNATMAKE_RTL_OBJS): add g-crc32.o | |
f8e0aa73 | 1226 | |
cfac6e9f PO |
1227 | * ali-util.adb: |
1228 | (CRC_Match): new function. | |
f8e0aa73 | 1229 | (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit |
cfac6e9f PO |
1230 | instead of the previous simple checksum algorithm. |
1231 | (Time_Stamp_Mismatch): use CRC_Match for comparison. | |
1232 | (Set_Source_Table): idem. | |
f8e0aa73 | 1233 | |
cfac6e9f | 1234 | * ali-util.ads: |
f8e0aa73 | 1235 | (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC |
cfac6e9f PO |
1236 | instead of simple checksum. |
1237 | (CRC_Match): new function. | |
1238 | (CRC_Error): new constant. | |
f8e0aa73 AJ |
1239 | |
1240 | * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling | |
1241 | a CRC now and not a simple checksum. A CRC uses lower-case hex | |
cfac6e9f | 1242 | letters, fixes ambiguity in parsing. |
f8e0aa73 AJ |
1243 | |
1244 | * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this | |
cfac6e9f | 1245 | is what this variable will store. |
f8e0aa73 | 1246 | |
cfac6e9f | 1247 | * bcheck.adb: Change reference to chechsum in comments by CRC. |
f8e0aa73 AJ |
1248 | (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC. |
1249 | rename All_Checksum_Match to All_CRC_Match. Change due to API | |
1250 | renaming since now GNAT does not use a simple checksum but a | |
cfac6e9f | 1251 | CRC using GNAT.CRC32. |
f8e0aa73 AJ |
1252 | |
1253 | * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC | |
cfac6e9f | 1254 | now and not anymore a simple checksum. |
f8e0aa73 AJ |
1255 | |
1256 | * lib-load.adb: Use Source_CRC instead of Source_Checksum in many | |
cfac6e9f | 1257 | places. |
f8e0aa73 | 1258 | |
cfac6e9f | 1259 | * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum. |
f8e0aa73 | 1260 | |
cfac6e9f PO |
1261 | * scans.adb: |
1262 | (Restore_Scan_State): rename Checksum to CRC. | |
1263 | (Save_Scan_State): idem. | |
f8e0aa73 | 1264 | |
cfac6e9f PO |
1265 | * scans.ads: |
1266 | With GNAT.CRC32. | |
1267 | (Checksum): rename to CRC. | |
1268 | (Saved_Scan_State): Save_Checksum field renamed to Save_CRC | |
f8e0aa73 AJ |
1269 | |
1270 | * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from | |
cfac6e9f | 1271 | GNAT.CRC32). Update copyright notice. |
f8e0aa73 AJ |
1272 | |
1273 | * scn-slit.adb: Rename many Accumulate_Checksum to Update (from | |
cfac6e9f | 1274 | GNAT.CRC32). Update copyright notice. |
f8e0aa73 | 1275 | |
cfac6e9f PO |
1276 | * scn.adb: |
1277 | (Accumulate_Checksum): removed. | |
1278 | (Update): new procedure. Add a wide-character into the CRC. | |
f8e0aa73 | 1279 | |
cfac6e9f PO |
1280 | * sinput-l.adb: |
1281 | (Complete_Source_File_Entry): use CRC32 instead of simple checksum. | |
f8e0aa73 | 1282 | (Load_File): fix initialization of S (change Source_Checksum to |
cfac6e9f | 1283 | Source_CRC) |
f8e0aa73 AJ |
1284 | |
1285 | * sinput-p.adb (Load_Project_File): rename Source_Checksum to | |
cfac6e9f | 1286 | Source_CRC in S initialization. |
f8e0aa73 | 1287 | |
cfac6e9f | 1288 | * sinput.adb (Source_Checksum): renamed to Source_CRC. |
f8e0aa73 | 1289 | |
cfac6e9f PO |
1290 | * sinput.ads (Source_Checksum): renamed to Source_CRC. |
1291 | Update comments for the CRC. | |
f8e0aa73 | 1292 | |
cfac6e9f | 1293 | * types.adb (Hex): Use lowercase for the letter part. |
f8e0aa73 AJ |
1294 | |
1295 | * types.ads (Get_Hex_String): Returns the hexadecimal representation | |
1296 | for a word. This is currently used only for CRC. In previous version, | |
1297 | the checksum was using a representation with all letter being | |
1298 | upper-case. With the new implementation (using CRC) we do not remove | |
1299 | the 32th bit of the CRC, so we can have an upper-case starting letter | |
1300 | in the CRC. This is not possible to parse in Scan_ALI (ali.adb). | |
1301 | It is ambigous since the CRC was optional and could be followed by | |
1302 | options like EB, EE. So now this routines uses lower-case letter for | |
1303 | the hexadecimal representation. Strange enough only lower case letters | |
cfac6e9f | 1304 | where checked in Scan_ALI (even if this was not a possible case). |
f8e0aa73 | 1305 | |
cfac6e9f | 1306 | * gnatvsn.ads (Library_Version): changed to 3.15a. |
f8e0aa73 AJ |
1307 | |
1308 | * s-crc32.ads: Initial version from GNAT.CRC32. This is the version | |
cfac6e9f | 1309 | for the compiler. |
f8e0aa73 AJ |
1310 | |
1311 | * s-crc32.adb: Initial version from GNAT.CRC32. This is the version | |
cfac6e9f | 1312 | for the compiler. |
f8e0aa73 | 1313 | |
cfac6e9f PO |
1314 | * ali-util.adb: Redo previous change to avoid using word CRC everywhere |
1315 | Add 2001 to copyright notice | |
1316 | (Accumulate_Checksum): Modify to use System.CRC32. | |
f8e0aa73 AJ |
1317 | |
1318 | * ali-util.ads: Redo changes of previous revision to continue to use | |
cfac6e9f | 1319 | the word Checksum. Add 2001 to copyright notice. |
f8e0aa73 | 1320 | |
cfac6e9f PO |
1321 | * ali.adb: Undo some of previous changes, not needed. |
1322 | Keep the change for lower case letters in the checksum. | |
f8e0aa73 | 1323 | |
cfac6e9f PO |
1324 | * ali.ads: Undo previous change not needed. |
1325 | ||
1326 | * bcheck.adb: Undo most of previous change, not needed. | |
1327 | But do use Checksums_Match for checksum comparison. | |
f8e0aa73 | 1328 | |
cfac6e9f PO |
1329 | * gnatls.adb: Undo most of previous change, not needed. |
1330 | But do use Checksums_Match for comparing checksums. | |
f8e0aa73 | 1331 | |
cfac6e9f | 1332 | * lib-load.adb: Undo previous change, not needed. |
f8e0aa73 | 1333 | |
cfac6e9f | 1334 | * lib-writ.adb: Undo previous change, not needed. |
f8e0aa73 AJ |
1335 | |
1336 | * lib-writ.ads: Document that checksums use lower case, | |
cfac6e9f | 1337 | not upper case letters. |
f8e0aa73 | 1338 | |
cfac6e9f | 1339 | * scans.adb: Undo previous change, not needed |
f8e0aa73 | 1340 | |
cfac6e9f | 1341 | * scans.ads: Undo previous change, not needed. |
f8e0aa73 | 1342 | |
cfac6e9f | 1343 | * scn-nlit.adb: Undo previous changes, not needed. |
f8e0aa73 | 1344 | |
cfac6e9f | 1345 | * scn-slit.adb: Undo previous change, not needed. Fix header format. |
f8e0aa73 | 1346 | |
cfac6e9f PO |
1347 | * scn.adb: |
1348 | (Accumulate_Checksum): Use System.CRC32. | |
1349 | (Initialize_Checksum): New procedure. | |
1350 | Remove other changes of previous revision. | |
f8e0aa73 | 1351 | |
cfac6e9f | 1352 | * sinput-p.adb: Undo previous change, not needed. |
f8e0aa73 | 1353 | |
cfac6e9f PO |
1354 | * sinput.adb: Undo previous change, not needed. |
1355 | ||
1356 | * sinput-l.adb: Undo previous change, not needed. | |
f8e0aa73 AJ |
1357 | |
1358 | * sinput.ads: Undo previous change, not needed. Keep only comment | |
cfac6e9f | 1359 | on new checksum algorithm |
f8e0aa73 | 1360 | |
cfac6e9f PO |
1361 | * Makefile.in: Add s-crc32 as needed, remove g-crc32. |
1362 | Also remove a-tags and a-stream from GNAT sources. | |
f8e0aa73 | 1363 | |
cfac6e9f | 1364 | * ali.adb (Scan_ALI): fix typo introduce in latest check-in. |
f8e0aa73 | 1365 | |
cfac6e9f PO |
1366 | * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o. |
1367 | ||
4d6d06a5 GB |
1368 | 2001-10-11 Geert Bosch <bosch@gnat.com> |
1369 | ||
1370 | * einfo.h: Regenerate. | |
1371 | ||
1372 | * nmake.ads: Regenerate. | |
1373 | ||
1374 | * nmake.adb: Regenerate. | |
1375 | ||
1376 | * sinfo.h: Regenerate. | |
1377 | ||
1378 | * treeprs.adb: Regenerate. | |
1379 | ||
c97412e2 GB |
1380 | 2001-10-10 Geert Bosch <bosch@gnat.com> |
1381 | ||
1382 | * gnat-style.texi: New file describing coding guidelines for Ada. | |
f8e0aa73 | 1383 | |
b83018ca ES |
1384 | 2001-10-10 Ed Schonberg <schonber@gnat.com> |
1385 | ||
f8e0aa73 | 1386 | * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required |
b83018ca ES |
1387 | is Flag174. |
1388 | ||
e834fe1f GB |
1389 | 2001-10-10 Geert Bosch <bosch@gnat.com> |
1390 | ||
1391 | * snames.ads: Add new names for project facility. | |
1392 | ||
1393 | * snames.adb: Update to reflect snames.ads changes. | |
1394 | ||
1395 | * snames.h: Update to reflect snames.ads changes. | |
1396 | ||
b30668b7 VC |
1397 | 2001-10-10 Vincent Celier <celier@gnat.com> |
1398 | ||
1399 | * make.adb: | |
1400 | (Add_Switches): reflect the changes for the switches attributes | |
1401 | Default_Switches indexed by the programming language, | |
1402 | Switches indexed by the file name. | |
1403 | (Collect_Arguments_And_Compile): Idem. | |
1404 | Reflect the attribute name changes. | |
f8e0aa73 | 1405 | |
b30668b7 VC |
1406 | * prj-attr.adb: |
1407 | (Initialisation_Data): Change the names of some packages and | |
1408 | attributes. | |
1409 | (Initialize): process case insensitive associative arrays. | |
f8e0aa73 | 1410 | |
b30668b7 VC |
1411 | * prj-attr.ads: |
1412 | (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array. | |
f8e0aa73 | 1413 | |
b30668b7 VC |
1414 | * prj-dect.adb: |
1415 | (Parse_Attribute_Declaration): For case insensitive associative | |
1416 | arrays, set the index string to lower case. | |
f8e0aa73 | 1417 | |
b30668b7 VC |
1418 | * prj-env.adb: |
1419 | Reflect the changes of the project attributes. | |
f8e0aa73 | 1420 | |
b30668b7 VC |
1421 | * prj-nmsc.adb: |
1422 | Replace Check_Naming_Scheme by Ada_Check and | |
1423 | Language_Independent_Check. | |
f8e0aa73 | 1424 | |
b30668b7 VC |
1425 | * prj-nmsc.ads: |
1426 | Replaced Check_Naming_Scheme by 2 procedures: | |
1427 | Ada_Check and Language_Independent_Check. | |
f8e0aa73 | 1428 | |
b30668b7 VC |
1429 | * prj-proc.adb: |
1430 | (Process_Declarative_Items): For case-insensitive associative | |
1431 | arrays, set the index string to lower case. | |
1432 | (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of | |
1433 | Prj.Nmsc.Check_Naming_Scheme. | |
f8e0aa73 | 1434 | |
b30668b7 VC |
1435 | * prj-tree.adb: |
1436 | (Case_Insensitive): New function | |
1437 | (Set_Case_Insensitive): New procedure | |
f8e0aa73 | 1438 | |
b30668b7 VC |
1439 | * prj-tree.ads: |
1440 | (Case_Insensitive): New function | |
1441 | (Set_Case_Insensitive): New procedure | |
1442 | (Project_Node_Record): New flag Case_Insensitive. | |
f8e0aa73 | 1443 | |
b30668b7 VC |
1444 | * prj-util.adb: |
1445 | (Value_Of): new function to get the string value of a single | |
1446 | string variable or attribute. | |
f8e0aa73 | 1447 | |
b30668b7 VC |
1448 | * prj-util.ads: |
1449 | (Value_Of): new function to get the string value of a single | |
1450 | string variable or attribute. | |
f8e0aa73 | 1451 | |
b30668b7 VC |
1452 | * prj.adb: |
1453 | (Ada_Default_Spec_Suffix): New function | |
1454 | (Ada_Default_Impl_Suffix): New function | |
1455 | Change definitions of several constants to reflect | |
1456 | new components of record types. | |
f8e0aa73 | 1457 | |
b30668b7 VC |
1458 | * prj.ads: |
1459 | (Naming_Data): Change several components to reflect new | |
1460 | elements of naming schemes. | |
1461 | (Project_Data): New flags Sources_Present and | |
1462 | Language_Independent_Checked. | |
1463 | (Ada_Default_Spec_Suffix): New function. | |
1464 | (Ada_Default_Impl_Suffix): New function. | |
f8e0aa73 | 1465 | |
b30668b7 VC |
1466 | * snames.ads: |
1467 | Modification of predefined names for project manager: added | |
1468 | Implementation, Specification_Exceptions, Implementation_Exceptions, | |
1469 | Specification_Suffix, Implementation_Suffix, Separate_Suffix, | |
1470 | Default_Switches, _Languages, Builder, Cross_Reference, | |
1471 | Finder. Removed Body_Part, Specification_Append, Body_Append, | |
1472 | Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind, | |
1473 | Gnatlink. | |
f8e0aa73 | 1474 | |
b30668b7 VC |
1475 | * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix): |
1476 | Add comments. | |
f8e0aa73 | 1477 | |
b30668b7 VC |
1478 | * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted, |
1479 | not that it is Nil_Variable_Value. | |
f8e0aa73 | 1480 | |
b30668b7 VC |
1481 | * prj.ads: Add ??? for uncommented declarations |
1482 | ||
662e57b4 ES |
1483 | 2001-10-10 Ed Schonberg <schonber@gnat.com> |
1484 | ||
f8e0aa73 AJ |
1485 | * sem_prag.adb: (Analyze_Pragma, case External): If entity is a |
1486 | constant, do not indicate possible modification, so that gigi can | |
662e57b4 ES |
1487 | treat it as a bona fide constant. |
1488 | ||
72e4357f RD |
1489 | 2001-10-10 Robert Dewar <dewar@gnat.com> |
1490 | ||
1491 | * sem_prag.adb: Add processing for pragma External. | |
f8e0aa73 | 1492 | |
72e4357f | 1493 | * snames.ads: Add entry for pragma External. |
f8e0aa73 | 1494 | |
72e4357f | 1495 | * par-prag.adb: Add pragma External. |
f8e0aa73 | 1496 | |
72e4357f RD |
1497 | * snames.adb: Updated to match snames.ads. |
1498 | ||
7bc1c7df ES |
1499 | 2001-10-10 Ed Schonberg <schonber@gnat.com> |
1500 | ||
1501 | * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for | |
1502 | a dynamic task if the allocator appears in an indexed assignment | |
1503 | or selected component assignment. | |
f8e0aa73 AJ |
1504 | |
1505 | * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image): | |
1506 | For a dynamic task in an assignment statement, use target of | |
7bc1c7df ES |
1507 | assignment to generate meaningful name. |
1508 | ||
c84700e7 ES |
1509 | 2001-10-10 Ed Schonberg <schonber@gnat.com> |
1510 | ||
f8e0aa73 | 1511 | * einfo.adb (Write_Field19_Name): Body_Entity is also defined for |
c84700e7 ES |
1512 | a generic package. |
1513 | ||
1514 | * einfo.ads: Body_Entity is also defined for generic package. | |
1515 | Documentation change only | |
f8e0aa73 AJ |
1516 | |
1517 | * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an | |
1518 | others_choice for a discriminated component initialization, | |
1519 | convert discriminant references into the corresponding discriminals. | |
1520 | ||
1521 | * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate | |
1522 | only if original type is private and expression has to be wrapped | |
c84700e7 | 1523 | in a conversion. |
f8e0aa73 AJ |
1524 | |
1525 | * checks.adb: | |
1526 | (Apply_Constraint_Check): Do not perform length check | |
c84700e7 | 1527 | if expression is an aggregate with only an others_choice. |
f8e0aa73 | 1528 | (Length_N_Cond): two references to the same in_parameter |
c84700e7 ES |
1529 | (typically the discriminal in an init_proc) denote the same value. |
1530 | Two useful optimization uncovered by bugfixes above. | |
1531 | ||
d8d80dcd RD |
1532 | 2001-10-10 Robert Dewar <dewar@gnat.com> |
1533 | ||
f8e0aa73 | 1534 | * xeinfo.adb: Change int to char in translation of enumeration types. |
d8d80dcd RD |
1535 | This fixes a problem in the C representation of component alignment. |
1536 | Add 2001 to copyright notice | |
1537 | ||
a8fee948 RK |
1538 | 2001-10-10 Richard Kenner <kenner@gnat.com> |
1539 | ||
f8e0aa73 | 1540 | * decl.c: (validate_size): Do check size of object of integral type |
a8fee948 RK |
1541 | if it is a packed array type. |
1542 | ||
c2d7fe59 RK |
1543 | 2001-10-10 Richard Kenner <kenner@gnat.com> |
1544 | ||
f8e0aa73 | 1545 | * decl.c: (gnat_to_gnu_entity, case object): Also materialize |
c2d7fe59 RK |
1546 | VAR_DECL for constant if not Is_Public but -O0. |
1547 | ||
fb75e100 RK |
1548 | 2001-10-10 Richard Kenner <kenner@gnat.com> |
1549 | ||
1550 | * misc.c (struct lang_hooks): Add new initializer to match GCC change. | |
1551 | ||
1724557a GB |
1552 | 2001-10-10 Geert Bosch <bosch@gnat.com> |
1553 | ||
f8e0aa73 | 1554 | * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer |
1724557a GB |
1555 | use '/' as switch character, allowing for absolute file names. |
1556 | ||
9f2f9eb6 JM |
1557 | 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk> |
1558 | ||
1559 | * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update | |
1560 | FSF address. | |
1561 | ||
8fecf41d GB |
1562 | 2001-10-08 Geert Bosch <bosch@gnat.com> |
1563 | ||
1564 | * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): | |
1565 | Automatically build utilities when files need to be regenerated. | |
1566 | ||
589f1edf GB |
1567 | 2001-10-08 Geert Bosch <bosch@gnat.com> |
1568 | ||
1569 | * xsnames.adb: New utility for updating snames.ads and snames.adb | |
1570 | ||
67f28219 ZW |
1571 | 2001-10-08 Zack Weinberg <zack@codesourcery.com> |
1572 | ||
1573 | * Make-lang.in (ADAFLAGS): Add -W -Wall. | |
1574 | (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also. | |
1575 | (gnat1): Also depend on attribs.o. | |
1576 | (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make. | |
1577 | * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New. | |
1578 | (ADAC): Set to @ADAC@ in stage1, $(CC) later. | |
1579 | (ADAFLAGS): Add -W -Wall. | |
1580 | (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS; | |
1581 | take out CFLAGS. | |
1582 | ||
1583 | (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o, | |
1584 | s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o, | |
1585 | s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o): | |
1586 | Use $(ADAC), not $(CC), as compilation command. | |
1587 | ||
1588 | (gnattools): Depend directly on tools to build, don't use | |
1589 | recursive make. | |
1590 | (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make. | |
1591 | ||
1592 | * einfo.h, sinfo.h: New files (autogenerated). | |
1593 | ||
295ef2bb RH |
1594 | 2001-10-08 Richard Henderson <rth@redhat.com> |
1595 | ||
1596 | * comperr.adb (Abort_In_Progress): New. | |
1597 | (Compiler_Abort): Use it to prevent recursion. | |
1598 | ||
5c736541 RD |
1599 | 2001-10-08 Robert Dewar <dewar@gnat.com> |
1600 | ||
1601 | * atree.adb: Set Error_Posted in Error node, helps error recovery. | |
67f28219 ZW |
1602 | |
1603 | * par-endh.adb (Output_End_Expected): We should also not test | |
5c736541 | 1604 | Error_Posted on the Error node, since now it is always set. |
67f28219 ZW |
1605 | |
1606 | * cstand.adb (Create_Standard): Set Etype of Error to Any_Type | |
5c736541 | 1607 | to help error recovery. Part of general work on 9407-004. |
67f28219 | 1608 | |
5c736541 | 1609 | * par.adb: Add ??? for misuse of error |
67f28219 | 1610 | |
5c736541 RD |
1611 | * sem_res.adb: |
1612 | (Resolve): Defend against Error, fixes 9407-003. | |
1613 | (Resolve_Discrete_Subtype_Indication): Defend against Error. | |
67f28219 ZW |
1614 | |
1615 | * sinfo.ads (N_Error): Now has Etype field (which will be set | |
5c736541 RD |
1616 | to Any_Type to help error recovery). |
1617 | ||
a153ae15 RK |
1618 | 2001-10-08 Richard Kenner (kenner@gnat.com) |
1619 | ||
1620 | * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR): | |
1621 | Consistently set MEM attributes from expression; fixes | |
1622 | bootstrap failure on x86. | |
1623 | ||
743f3c7b GB |
1624 | 2001-10-08 Geert Bosch (bosch@gnat.com) |
1625 | ||
1626 | * 5oosinte.adb: Add 2001 to copyright notice. | |
1627 | ||
210c4ef4 GB |
1628 | 2001-10-08 Geert Bosch (bosch@gnat.com) |
1629 | ||
1630 | * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs]. | |
1631 | ||
1632 | * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs]. | |
1633 | ||
cc712abf JM |
1634 | 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk> |
1635 | ||
1636 | * 5oosinte.adb: Fix spelling error of "separate" as "seperate". | |
1637 | ||
4c4abc0f GB |
1638 | 2001-10-05 Geert Bosch (bosch@gnat.com) |
1639 | ||
1640 | * adaint.h: Small formatting fix. | |
1641 | ||
7f50e2e3 GB |
1642 | 2001-10-04 Geert Bosch <bosch@gnat.com> |
1643 | ||
1644 | * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode): | |
1645 | Arg is int, not FILE *, in dummy version of functions. | |
67f28219 | 1646 | |
7f50e2e3 GB |
1647 | * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode): |
1648 | Arg is int, not FILE *. | |
1649 | ||
5d1a9698 GB |
1650 | 2001-10-04 Geert Bosch <bosch@gnat.com> |
1651 | ||
1652 | * 3lsoccon.ads: Added file, missed with initial check ins. | |
67f28219 | 1653 | |
5d1a9698 GB |
1654 | * 4lintnam.ads: Fix header format. |
1655 | Change Linux to GNU/Linux. | |
67f28219 | 1656 | |
5d1a9698 GB |
1657 | * 5iosinte.adb: Change Linux to GNU/Linux. |
1658 | ||
1659 | * 5iosinte.ads: Change Linux to GNU/Linux. | |
67f28219 | 1660 | |
5d1a9698 | 1661 | * 5itaprop.adb: Change Linux to GNU/Linux. |
67f28219 | 1662 | |
5d1a9698 GB |
1663 | * 5itaspri.ads: Change Linux to GNU/Linux. |
1664 | Update copyright notice. | |
67f28219 | 1665 | |
5d1a9698 | 1666 | * 5lintman.adb: Change Linux to GNU/Linux. |
67f28219 | 1667 | |
5d1a9698 | 1668 | * 5lml-tgt.adb: Change Linux to GNU/Linux. |
67f28219 | 1669 | |
5d1a9698 | 1670 | * 5losinte.ads: Change Linux to GNU/Linux. |
67f28219 | 1671 | |
5d1a9698 | 1672 | * 5lsystem.ads: Change Linux to GNU/Linux. |
67f28219 | 1673 | |
5d1a9698 | 1674 | * 5qosinte.adb: Change Linux to GNU/Linux. |
67f28219 | 1675 | |
5d1a9698 | 1676 | * 5qosinte.ads: Change Linux to GNU/Linux. |
67f28219 | 1677 | |
5d1a9698 | 1678 | * 5qparame.ads: Change Linux to GNU/Linux. |
67f28219 | 1679 | |
5d1a9698 | 1680 | * 5qtaprop.adb: Change Linux to GNU/Linux. |
67f28219 | 1681 | |
5d1a9698 GB |
1682 | * 5qtaspri.ads: Change Linux to GNU/Linux. |
1683 | Add 2001 to copyright notice. | |
67f28219 | 1684 | |
5d1a9698 GB |
1685 | * 5vintman.ads: Change Linux to GNU/Linux. |
1686 | Fix header format. Add 2001 to copyright notice. | |
67f28219 | 1687 | |
5d1a9698 | 1688 | * g-soccon.ads: Change Linux to GNU/Linux. |
67f28219 | 1689 | |
5d1a9698 GB |
1690 | * g-trasym.ads: Change Linux to GNU/Linux. |
1691 | Add 2001 to copyright notice. | |
67f28219 | 1692 | |
5d1a9698 | 1693 | * memtrack.adb: Change Linux to GNU/Linux. |
67f28219 | 1694 | |
5d1a9698 GB |
1695 | * s-intman.ads: Change Linux to GNU/Linux. |
1696 | Add 2001 to copyright notice. Fix header format. | |
67f28219 | 1697 | |
5d1a9698 | 1698 | * s-stache.adb: Change Linux to GNU/Linux. |
67f28219 | 1699 | |
5d1a9698 | 1700 | * adaint.c: Change Linux to GNU/Linux. |
67f28219 | 1701 | |
5d1a9698 | 1702 | * cio.c: Change Linux to GNU/Linux. |
67f28219 | 1703 | |
5d1a9698 | 1704 | * cstreams.c: Change Linux to GNU/Linux. |
67f28219 | 1705 | |
5d1a9698 | 1706 | * init.c: Change Linux to GNU/Linux. |
67f28219 | 1707 | |
5d1a9698 | 1708 | * gmem.c: Change Linux to GNU/Linux. |
67f28219 | 1709 | |
5d1a9698 GB |
1710 | * tracebak.c: Change Linux to GNU/Linux. |
1711 | ||
1712 | ||
c25ca2d7 GB |
1713 | 2001-10-02 Geert Bosch <bosch@gnat.com> |
1714 | ||
1715 | * misc.c (insert_default_attributes): Add dummy version. |