]>
Commit | Line | Data |
---|---|---|
4561baf7 ES |
1 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
2 | ||
3 | * sem_ch4.adb (Operator_Check): improve error message when both a | |
4 | with_clause and a use_clause are needed to make operator usage legal. | |
5 | * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to | |
6 | determine whether a compilation unit is visible within an other, | |
7 | either through a with_clause in the current unit, or a with_clause in | |
8 | its library unit or one one of its parents. | |
9 | ||
383e179e AC |
10 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
11 | ||
12 | * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator | |
13 | over an arbitrary expression of an array or container type. | |
14 | * lib-xref.adb: clarify comment. | |
15 | ||
16 | 2011-08-01 Bob Duff <duff@adacore.com> | |
17 | ||
18 | * einfo.ads: Minor reformatting. | |
19 | * debug.adb: Minor comment improvement. | |
20 | ||
21 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
22 | ||
23 | * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not | |
24 | consider hidden subprograms as valid candidates. | |
25 | ||
26 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
27 | ||
28 | * make.adb (Compile): Strip -mxxx switches in CodePeer mode. | |
29 | ||
30 | 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com> | |
31 | ||
32 | * gnat_ugn.texi: Fix typo. | |
33 | ||
61c161b2 AC |
34 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
35 | ||
36 | * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb, | |
37 | lib-xref.adb: Minor reformatting | |
38 | ||
39 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
40 | ||
41 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of | |
42 | when to generate a call to Move_Final_List. | |
43 | (Has_Controlled_Parts): Remove this function. | |
44 | ||
84df40f7 AC |
45 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
46 | ||
47 | * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra | |
48 | "," in choice list. | |
49 | ||
50 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
51 | ||
52 | * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for | |
53 | explicit raise of a predefined exception as Comes_From_Source if the | |
54 | original N_Raise_Statement comes from source. | |
55 | ||
56 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
57 | ||
58 | * sinfo.ads: Add comment. | |
59 | * sem_ch6.adb: Minor reformatting. | |
60 | ||
61 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
62 | ||
63 | * freeze.adb (Freeze_Entity): Refine check for bad component size | |
64 | clause to avoid rejecting confirming clause when atomic/aliased present. | |
65 | ||
66 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
67 | ||
68 | * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to | |
69 | better determine whether an entity reference is a write. | |
70 | * sem_util.adb (Is_LHS): refine predicate to handle assignment to a | |
71 | subcomponent. | |
72 | * lib-xref.adb (Output_References): Do no suppress a read reference at | |
73 | the same location as an immediately preceeding modify-reference, to | |
74 | handle properly in-out actuals. | |
75 | ||
76 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
77 | ||
78 | * env.c (__gnat_setenv) [VMS]: Refine previous change. | |
79 | ||
80 | 2011-08-01 Quentin Ochem <ochem@adacore.com> | |
81 | ||
82 | * i-cstrin.adb (New_String): Changed implementation, now uses only the | |
83 | heap to compute the result. | |
84 | ||
c7f0d2c0 AC |
85 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
86 | ||
87 | * atree.ads: Minor reformatting. | |
88 | ||
89 | 2011-08-01 Emmanuel Briot <briot@adacore.com> | |
90 | ||
91 | * g-expect.adb (Get_Command_Output): Fix memory leak. | |
92 | ||
93 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
94 | ||
95 | * cstand.adb (P_Float_Type): New procedure to print the definition of | |
96 | predefined fpt types. | |
97 | (P_Mixed_Name): New procedure to print a name using mixed case | |
98 | (Print_Standard): Use P_Float_Type for printing floating point types | |
99 | * einfo.adb (Machine_Emax_Value): Add preliminary support for quad | |
100 | precision IEEE float. | |
101 | ||
102 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
103 | ||
104 | * sem_ch3.adb: Minor reformatting. | |
105 | ||
106 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
107 | ||
108 | * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is | |
109 | the completion of a generic function, insert the new body rather than | |
110 | rewriting the original. | |
111 | ||
112 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
113 | ||
114 | * sinfo.ads, errout.ads: Typos in comments. | |
115 | ||
1c54829e AC |
116 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
117 | ||
118 | * par-endh.adb: Minor reformatting. | |
119 | ||
120 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
121 | ||
122 | * aspects.ads, aspects.adb: Add aspects for library unit pragmas | |
123 | (Pre_Post_Aspects): New subtype. | |
124 | * par-ch12.adb (P_Generic): New syntax for aspects in packages | |
125 | * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter | |
126 | * par-ch7.adb (P_Package): Remove Decl parameter | |
127 | (P_Package): Handle new syntax for aspects (before IS) | |
128 | * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle | |
129 | new aspect syntax | |
130 | (P_Task_Definition): Remove Decl parameter, handle new aspect syntax | |
131 | * par.adb (P_Aspect_Specifications): Add Semicolon parameter | |
132 | (P_Package): Remove Decl parameter | |
133 | * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit | |
134 | aspects | |
135 | * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect | |
136 | specs | |
137 | * sem_util.ads, sem_util.adb (Static_Boolean): New function | |
138 | * sinfo.ads: Document new syntax for aspects in packages etc. | |
139 | * sprint.adb: Handle new syntax of aspects before IS in package | |
140 | ||
141 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
142 | ||
143 | * atree.ads: Minor reformatting. | |
144 | * sem_prag.adb: Minor reformatting. | |
145 | ||
146 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
147 | ||
148 | * exp_util.adb (Insert_Actions): Fix error in handling Actions for | |
149 | case expr alternative. | |
150 | ||
151 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
152 | ||
153 | * sem_ch12.adb: Fix typo. | |
154 | ||
9eea4346 GB |
155 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
156 | ||
157 | * sem_prag.adb (Check_No_Link_Name): New procedure. | |
158 | (Process_Import_Or_Interface): Use Check_No_Link_Name. | |
159 | * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float) | |
160 | instead of Standard_Long_Long_Float_Size global. Preparation for | |
161 | eventual removal of per type constants. | |
162 | * exp_util.ads (Get_Stream_Size): New function returning the stream | |
163 | size value of subtype E. | |
164 | * exp_util.adb (Get_Stream_Size): Implement new function. | |
165 | * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size | |
166 | function. | |
167 | * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size | |
168 | * einfo.adb: | |
169 | (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats | |
170 | ||
3d6c3bd7 GB |
171 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
172 | ||
173 | * cstand.adb: Fix comments. | |
174 | * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit | |
175 | count of arguments. | |
176 | ||
e7d897b8 AC |
177 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
178 | ||
179 | * exp_ch4.adb, sem_cat.adb: Minor reformatting. | |
180 | ||
181 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
182 | ||
183 | * atree.ads: Fix comment. | |
184 | ||
c228a069 AC |
185 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
186 | ||
187 | * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec. | |
188 | * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name. | |
189 | * par.adb: Add with for Namet.Sp. | |
190 | * par-tchk.adb: Minor reformatting. | |
191 | ||
192 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
193 | ||
194 | * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb | |
195 | (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name | |
196 | of the init procedure of a SAL. | |
197 | * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name): | |
198 | New procedure. | |
199 | ||
200 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
201 | ||
202 | * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor | |
203 | reformatting. | |
204 | ||
205 | 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
206 | ||
207 | * adaint.c (__gnat_file_time_name_attr): Get rid of warning. | |
208 | ||
209 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
210 | ||
211 | * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function | |
212 | conformant with its spec (return True only for types that have | |
213 | an overriding Initialize primitive operation that prevents them from | |
214 | having preelaborable initialization). | |
215 | * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable | |
216 | initialization for controlled types in Ada 2005 or later mode. | |
217 | ||
857ade1b RD |
218 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
219 | ||
220 | * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition, | |
221 | Postcondition. | |
222 | (Same_Aspect): New function. | |
223 | * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect | |
224 | Type_Invariant, Precondition, Postcondition. | |
225 | * snames.ads-tmpl: Add Name_Type_Invariant. | |
226 | ||
bd949ee2 RD |
227 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
228 | ||
229 | * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point | |
230 | here. | |
231 | (Freeze_All_Ent): Fix error in handling inherited aspects. | |
232 | * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is | |
233 | already analyzed, but don't skip entire processing of a declaration, | |
234 | that's wrong in some cases of declarations being rewritten. | |
235 | (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects. | |
236 | Don't delay for integer, string literals | |
237 | Treat predicates in usual manner for delay, remove special case code, | |
238 | not needed. | |
239 | (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point | |
240 | (Build_Predicate_Function): Update saved expression in aspect | |
241 | (Build_Invariant_Procedure): Update saved expression in aspect | |
242 | * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization | |
243 | of replacement of discriminant references if the reference is simple. | |
244 | ||
f1c952af RD |
245 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
246 | ||
247 | * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate. | |
248 | * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for | |
249 | Static_Predicate and Dynamic_Predicate. | |
250 | (Build_Predicate_Function): Add processing for Static_Predicate | |
251 | and Dynamic_Predicate. | |
252 | * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag | |
253 | (From_Static_Predicate): New flag | |
254 | * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate | |
255 | ||
256 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
257 | ||
258 | * usage.adb: Documentation cleanup for Ada version modes in usage. | |
259 | * expander.adb: Minor reformatting. | |
260 | ||
47e11d08 AC |
261 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
262 | ||
263 | * atree.ads: Minor comment fix. | |
264 | * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads, | |
265 | a-witeio.ads, sem_prag.adb: Minor reformatting. | |
266 | ||
267 | 2011-08-01 Doug Rupp <rupp@adacore.com> | |
268 | ||
269 | * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure | |
270 | pointers. Use descrip.h header file for convenience. Add some | |
271 | comments. | |
272 | ||
273 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
274 | ||
275 | * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point | |
276 | (Freeze_All): Call Check_Aspect_At_End_Of_Declarations | |
277 | * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point): | |
278 | New procedure. | |
279 | (Check_Aspect_At_End_Of_Declarations): New procedure | |
280 | (Analye_Aspect_Specification): Minor changes for above procedures | |
281 | * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect | |
282 | specification node as well. | |
283 | ||
284 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
285 | ||
286 | * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special | |
287 | Windows files. Use GetFilesAttributes() in this case to check for file | |
288 | existence instead of returning with an error code. | |
289 | ||
a3a16b21 VC |
290 | 2011-08-01 Vincent Celier <celier@adacore.com> |
291 | ||
292 | * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when | |
293 | High is above Source length. | |
294 | ||
ff58cc69 RD |
295 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
296 | ||
297 | * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment. | |
298 | ||
6bb88533 AC |
299 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
300 | ||
301 | * aspects.ads (Boolean_Aspects): New subtype. | |
302 | * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects | |
303 | for derived types in cases where the parent type and derived type have | |
304 | aspects. | |
305 | * freeze.adb (Freeze_Entity): Fix problems in handling derived type | |
306 | with aspects when parent type also has aspects. | |
307 | (Freeze_Entity): Deal with delay of boolean aspects (must evaluate | |
308 | boolean expression at this point). | |
309 | * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in | |
310 | accordance with final decision on the Ada 2012 feature. | |
311 | * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag. | |
312 | ||
313 | 2011-08-01 Matthew Heaney <heaney@adacore.com> | |
314 | ||
315 | * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector. | |
316 | ||
060a3f28 AC |
317 | 2011-08-01 Pascal Obry <obry@adacore.com> |
318 | ||
319 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: | |
320 | Fix Replace_Slice when High is above current string size. | |
321 | (Replace_Slice): Fix DL computation when High is above current | |
322 | string length. | |
323 | ||
324 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
325 | ||
326 | * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired. | |
327 | ||
e7f567a3 AC |
328 | 2011-08-01 Matthew Heaney <heaney@adacore.com> |
329 | ||
330 | * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child | |
331 | of node. | |
332 | ||
333 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
334 | ||
335 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor | |
336 | reformatting. | |
337 | ||
1a265e78 AC |
338 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
339 | ||
340 | * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named | |
341 | access to protected subprograms in generic bodies. | |
342 | * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a | |
343 | protected type, indicate that the convention of the subprogram is | |
344 | Convention_Protected, because it may be used in subsequent declarations | |
345 | within the protected declaration. | |
346 | ||
347 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
348 | ||
349 | * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init" | |
350 | and "final" procedures when the name of the library is "ada", to avoid | |
351 | duplicate symbols "adainit" and "adafinal" in executables. | |
352 | ||
67e28ef8 ES |
353 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
354 | ||
355 | * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a | |
356 | quantified expression that appears within a postcondition and uses the | |
357 | Ada2012 'Result attribute. | |
358 | ||
6da2ca7d RO |
359 | 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
360 | ||
361 | * init.c (__gnat_error_handler): Cast reason to int. | |
362 | (__gnat_install_handler): Explain sa_sigaction use. | |
363 | ||
7d5997c6 EB |
364 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
365 | ||
366 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the | |
367 | subprogram has copy-in copy-out parameters, try to promote the mode of | |
368 | the return type if it is passed in registers. | |
369 | ||
4b4cfdd5 EB |
370 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
371 | ||
372 | * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the | |
373 | left operand as addressable. | |
374 | ||
f3d34576 EB |
375 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
376 | ||
377 | * gcc-interface/gigi.h (build_function_stub): Remove. | |
378 | (build_return_expr): Likewise. | |
379 | (convert_vms_descriptor): Declare. | |
380 | * gcc-interface/utils.c (convert_vms_descriptor): Make global. | |
381 | (build_function_stub): Move to... | |
382 | * gcc-interface/utils2.c (build_return_expr): Move to... | |
383 | * gcc-interface/trans.c (build_function_stub): ...here. | |
384 | (build_return_expr): ...here. | |
385 | (Subprogram_Body_to_gnu): Add local variable for language_function. | |
386 | Disconnect the parameter attributes cache, if any, once done with it. | |
387 | Call end_subprog_body only after setting the end_locus. | |
388 | Build the stub associated with the function, if any, at the very end. | |
389 | (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local | |
390 | variables and streamline control flow. | |
391 | ||
0a6ecc08 AC |
392 | 2011-07-23 Arnaud Charlet <charlet@adacore.com> |
393 | ||
394 | PR ada/49819 | |
395 | * gcc-interface/Makefile.in (powerpc-linux): Remove reference to | |
396 | g-trasym-dwarf.adb. | |
397 | ||
5b6d595b RO |
398 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
399 | ||
400 | PR bootstrap/49794 | |
401 | * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler): | |
402 | Assign to act.sa_sigaction. | |
403 | * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast | |
404 | current->return_address to char * before arithmetic. | |
405 | ||
94017021 RO |
406 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
407 | ||
408 | * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation. | |
409 | Correct argument types. | |
410 | Extract code from reason. | |
411 | (__gnat_install_handler): Assign to act.sa_sigaction. | |
412 | ||
52fd02bb EB |
413 | 2011-07-21 Eric Botcazou <ebotcazou@adacore.com> |
414 | ||
415 | * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to... | |
416 | (GNAT1_OBJS): ...here. | |
417 | ||
f39a9ca2 EB |
418 | 2011-07-15 Eric Botcazou <ebotcazou@adacore.com> |
419 | ||
420 | PR ada/48711 | |
421 | * g-socthi-mingw.adb (Fill): Fix formatting. | |
422 | ||
9e36aa23 EB |
423 | * gcc-interface/gigi.h: Move around comment. |
424 | ||
e3aca522 JDA |
425 | 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
426 | ||
427 | PR ada/46350 | |
428 | * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast. | |
429 | ||
696b1960 FW |
430 | 2011-07-14 Florian Weimer <fw@deneb.enyo.de> |
431 | ||
432 | PR ada/48711 | |
433 | * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL. | |
434 | ||
f542c405 EB |
435 | 2011-07-13 Eric Botcazou <ebotcazou@adacore.com> |
436 | ||
437 | * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit | |
438 | range comparison if Pmode is SImode. | |
439 | ||
9e9bd455 LG |
440 | 2011-07-12 Laurent GUERBY <laurent@guerby.net> |
441 | Eric Botcazou <ebotcazou@adacore.com> | |
442 | ||
443 | * adadecode.c: Wrap up in extern "C" block. | |
444 | * adadecode.h: Likewise. | |
445 | * adaint.c: Likewise. Remove 'const' keyword. | |
446 | * adaint.h: Likewise. | |
447 | * argv.c: Likewise. | |
448 | * atree.h: Likewise. | |
449 | * cio.c: Likewise. | |
450 | * cstreams.c: Likewise. | |
451 | * env.c: Likewise. | |
452 | * exit.c: Likewise. | |
453 | * fe.h: Likewise. | |
454 | * final.c: Likewise. | |
455 | * init.c: Likewise. | |
456 | * initialize.c: Likewise. | |
457 | * link.c: Likewise. | |
458 | * namet.h: Likewise. | |
459 | * nlists.h: Likewise. | |
460 | * raise.c: Likewise. | |
461 | * raise.h: Likewise. | |
462 | * repinfo.h: Likewise. | |
463 | * seh_init.c: Likewise. | |
464 | * targext.c: Likewise. | |
465 | * tracebak.c: Likewise. | |
466 | * uintp.h: Likewise. | |
467 | * urealp.h: Likewise. | |
468 | * xeinfo.adb: Wrap up generated C code in extern "C" block. | |
469 | * xsinfo.adb: Likewise. | |
470 | * xsnamest.adb: Likewise. | |
471 | * gcc-interface/gadaint.h: Wrap up in extern "C" block. | |
472 | * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block. | |
473 | * gcc-interface/misc.c: Likewise. | |
474 | * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER. | |
475 | (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and | |
476 | ada/targext.o here... | |
477 | (GNAT_ADA_OBJS): ...and not here. | |
478 | (GNAT1_ADA_OBJS): Add ada/b_gnat1.o. | |
479 | (GNATBIND_OBJS): Reorder. | |
480 | ||
7644b3c7 RH |
481 | 2011-07-07 Richard Henderson <rth@redhat.com> |
482 | ||
483 | * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call | |
484 | dwarf2out_frame_init. | |
485 | ||
8384ac41 EB |
486 | 2011-07-07 Eric Botcazou <ebotcazou@adacore.com> |
487 | ||
488 | * gcc-interface/misc.c (gnat_init): Tweak previous change. | |
489 | ||
fbdd5d87 RO |
490 | 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
491 | ||
492 | PR target/39150 | |
493 | * gcc-interface/Makefile.in: Handle x86_64-solaris2. | |
494 | ||
1a072294 RG |
495 | 2011-07-06 Richard Guenther <rguenther@suse.de> |
496 | ||
8384ac41 EB |
497 | * gcc-interface/misc.c (gnat_init): Merge calls to |
498 | build_common_tree_nodes and build_common_tree_nodes_2. | |
1a072294 RG |
499 | Re-initialize boolean_false_node. |
500 | ||
bc712852 EB |
501 | 2011-07-02 Eric Botcazou <ebotcazou@adacore.com> |
502 | Olivier Hainque <hainque@adacore.com> | |
503 | Nicolas Setton <setton@adacore.com> | |
504 | ||
505 | * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on | |
506 | the type according to the ARTIFICIAL_P parameter. | |
507 | (create_type_decl): Likewise. | |
508 | (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1. | |
509 | ||
2eb22389 EB |
510 | 2011-07-01 Eric Botcazou <ebotcazou@adacore.com> |
511 | ||
512 | * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command. | |
513 | (gnatbind): Likewise. | |
514 | ||
4bdaaf2f RO |
515 | 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
516 | ||
517 | * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL). | |
518 | ||
c020c92b EB |
519 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
520 | ||
521 | * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE | |
522 | local variable throughout. Remove useless call to Base_Type. | |
523 | (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout. | |
524 | Take it also into account for the volatileness of the field. Set the | |
525 | TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings. | |
526 | ||
96769d32 EB |
527 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
528 | ||
529 | * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP | |
530 | on a dereference built for a by-ref object if it has an address clause. | |
531 | ||
7e4680c1 EB |
532 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
533 | ||
534 | * einfo.ads (Address_Taken): Document use for the second argument of | |
535 | Asm_Input and Asm_Output attributes. | |
536 | * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second | |
537 | argument is an entity name, then set Address_Taken on it. | |
538 | <Attribute_Asm_Output>: Likewise. | |
539 | * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the | |
540 | Attr_Asm_Input and Attr_Asm_Output attributes explicitly. | |
541 | (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in | |
542 | memory and is a CONST_DECL, retrieve its corresponding VAR_DECL. | |
543 | ||
544 | 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com> | |
d5cc9181 JR |
545 | |
546 | PR middle-end/46500 | |
547 | * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args. | |
548 | ||
677f3fa8 JM |
549 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
550 | ||
551 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o. | |
552 | (ada/utils.o): Update dependencies. | |
553 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add | |
554 | ../../../libcpp/libcpp.a. | |
555 | * gcc-interface/utils.c: Include common/common-target.h. | |
556 | (process_attributes): Use targetm_common.have_named_sections. | |
557 | ||
009db074 RG |
558 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
559 | ||
0bad0e23 EB |
560 | * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call |
561 | set_sizetype. | |
009db074 | 562 | |
3bfc61cf EB |
563 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
564 | ||
0bad0e23 | 565 | * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the |
3bfc61cf EB |
566 | TREE_THIS_NOTRAP flag. |
567 | ||
5c4a1c7b EB |
568 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
569 | ||
570 | * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>: | |
571 | Fix thinko. | |
572 | ||
e9f57686 EB |
573 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
574 | ||
575 | * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred | |
576 | constants whose full view has discriminants specially. | |
577 | ||
10e4d056 EB |
578 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
579 | ||
580 | * gcc-interface/utils.c: Include diagnostic.h. | |
581 | (gnat_write_global_declarations): Output debug information for all | |
582 | global type declarations before finalizing the compilation unit. | |
583 | * gcc-interface/Make-lang.in (ada/utils.o): Add dependency. | |
584 | ||
0957c029 JJ |
585 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
586 | ||
587 | * gcc-interface/utils.c (def_fn_type): Remove extra va_end. | |
588 | ||
52d0a7ac KT |
589 | 2011-05-25 Kai Tietz <ktietz@redhat.com> |
590 | ||
591 | * adaint.c (__gnat_to_canonical_file_list_next): Use array | |
592 | initialization instead of const/none-const pointer assignment. | |
593 | ||
1ed1641d JM |
594 | 2011-05-24 Joseph Myers <joseph@codesourcery.com> |
595 | ||
596 | * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include | |
597 | $(EXTRA_GNAT1_OBJS). | |
598 | (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS). | |
599 | (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove. | |
600 | (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a. | |
601 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use | |
602 | libcommon-target.a instead of prefix.o. | |
603 | ||
9fe72ebd JM |
604 | 2011-05-21 Joseph Myers <joseph@codesourcery.com> |
605 | ||
606 | PR ada/49097 | |
0bad0e23 | 607 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS). |
9fe72ebd | 608 | |
2691e6d7 JM |
609 | 2011-05-20 Joseph Myers <joseph@codesourcery.com> |
610 | ||
0bad0e23 EB |
611 | * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o. |
612 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a | |
613 | instead of version.o. | |
2691e6d7 | 614 | |
bf6490b5 KT |
615 | 2011-05-18 Kai Tietz <ktietz@redhat.com> |
616 | ||
617 | * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use | |
618 | boolean_false_node instead of integer_zero_node. | |
619 | (convert_with_check): Likewise. | |
620 | * gcc-interface/decl.c (choices_to_gnu): Likewise. | |
621 | ||
7bf9a5ac EB |
622 | 2011-05-12 Eric Botcazou <ebotcazou@adacore.com> |
623 | ||
624 | * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the | |
625 | type of the parameter is an unconstrained array, convert the actual to | |
626 | the type of the formal in the In Out and Out cases as well. | |
627 | ||
e5b00edf NF |
628 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> |
629 | ||
630 | * gcc-interface/utils.c (def_fn_type): Don't call build_function_type; | |
631 | call build_function_type_array or build_varargs_function_type_array | |
632 | instead. | |
633 | (create_subprog_type): Don't call build_function_type; call | |
634 | build_function_type_vec instead. | |
635 | ||
51545682 NF |
636 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> |
637 | ||
638 | * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL. | |
639 | (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL. | |
640 | (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL. | |
641 | ||
c99c0026 EB |
642 | 2011-05-07 Eric Botcazou <ebotcazou@adacore.com> |
643 | ||
f620bd21 EB |
644 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces. |
645 | ||
c99c0026 EB |
646 | * gcc-interface/gigi.h (global_bindings_p): Adjust prototype. |
647 | * gcc-interface/utils.c (global_bindings_p): Return bool and simplify. | |
648 | ||
3d528853 NF |
649 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
650 | ||
c99c0026 | 651 | * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label. |
3d528853 | 652 | |
d7d058c5 NF |
653 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
654 | ||
655 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators | |
656 | instead of accessing TYPE_ARG_TYPES directly. | |
657 | * gcc-interface/utils.c (handle_nonnull_attribute): Likewise. | |
658 | ||
805e60a0 EB |
659 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> |
660 | ||
661 | PR ada/48844 | |
662 | * gcc-interface/gigi.h (get_variant_part): Declare. | |
663 | * gcc-interface/decl.c (get_variant_part): Make global. | |
664 | * gcc-interface/utils2.c (find_common_type): Do not return T1 if the | |
665 | types have the same constant size, are record types and T1 has a | |
666 | variant part while T2 doesn't. | |
667 | ||
907a08d9 EB |
668 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> |
669 | ||
670 | * gcc-interface/utils.c (begin_subprog_body): Do not call | |
671 | get_pending_sizes. | |
672 | (end_subprog_body): Likewise. | |
673 | ||
d35936ab RG |
674 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
675 | ||
676 | * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to | |
677 | int_const_binop. | |
678 | (pos_to_constructor): Likewise. | |
679 | ||
c1fd8753 NF |
680 | 2011-05-03 Nathan Froyd <froydnj@codesourcery.com> |
681 | Eric Botcazou <ebotcazou@adacore.com> | |
682 | ||
683 | * gcc-interface/trans.c (gigi): Call build_function_type_list instead | |
684 | of build_function_type. Adjust calls to... | |
685 | (build_raise_check): ...this. Do not take a void_tree parameter. | |
686 | Call build_function_type_list instead of build_function_type. | |
687 | Fix head comment and swap couple of conditional blocks. | |
688 | ||
4fb87d2b EB |
689 | 2011-04-30 Eric Botcazou <ebotcazou@adacore.com> |
690 | ||
691 | * gnatvsn.ads (Library_Version): Bump to 4.7. | |
692 | (Current_Year): Bump to 2011. | |
693 | ||
fa5e5a76 MM |
694 | 2011-04-29 Michael Matz <matz@suse.de> |
695 | ||
696 | * gcc-interface/misc.c (gnat_handle_option): Set | |
697 | warn_maybe_uninitialized. | |
698 | ||
8d6a2f69 GP |
699 | 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com> |
700 | ||
701 | * gnat_ugn.texi (Complexity Metrics Control): Update link to | |
702 | the Watson/McCabe paper. | |
703 | ||
770937fd JM |
704 | 2011-04-23 Jim Meyering <meyering@redhat.com> |
705 | ||
706 | * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/ | |
707 | ||
eb601ae1 EB |
708 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> |
709 | ||
710 | * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE | |
711 | onto the new type. | |
712 | ||
7d7fcb08 EB |
713 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> |
714 | ||
715 | * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG | |
716 | parameter. | |
717 | * gcc-interface/utils.c (create_subprog_decl): Likewise. Set | |
718 | DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly. | |
719 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add | |
720 | ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl. | |
721 | <all>: Do not set flags on the reused DECL node coming from an alias. | |
722 | Set DECL_IGNORED_P on the DECL node built for subprograms if they | |
723 | don't need debug info here... | |
724 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here. | |
725 | (gigi): Adjust calls to create_subprog_decl. | |
726 | (build_raise_check): Likewise. | |
727 | (establish_gnat_vms_condition_handler): Likewise. | |
728 | (Compilation_Unit_to_gnu): Likewise. | |
729 | (gnat_to_gnu): Likewise. | |
730 | ||
e1876cac EB |
731 | 2011-04-21 Eric Botcazou <ebotcazou@adacore.com> |
732 | ||
733 | * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define. | |
734 | (NO_REORDER_ADAFLAGS): New variable. | |
735 | (EXTRA_GNATTOOLS): Always define. | |
736 | (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h. | |
737 | Clean up and adjust list of files compiled with special options. | |
738 | * gcc-interface/Make-lang.in: Likewise. | |
739 | (ada/decl.o): Cosmetical change. | |
740 | (ada/misc.o): Remove dependency on $(PLUGIN_H). | |
741 | ||
04695783 JM |
742 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
743 | ||
744 | * initialize.c (__gnat_initialize): Remove useless if-before-free. | |
745 | ||
23399579 EB |
746 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> |
747 | ||
748 | * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with | |
749 | $(CFLAGS) on the link line. | |
750 | ||
51c5169c EB |
751 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> |
752 | ||
753 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the | |
754 | padded type built for the return type if it is unconstrained. | |
755 | ||
61e46a7d NF |
756 | 2011-04-14 Nathan Froyd <froydnj@codesourcery.com> |
757 | ||
758 | * gcc-interface/utils.c (gnat_poplevel): Use block_chainon. | |
759 | ||
81f653d6 NF |
760 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
761 | ||
b4867846 EB |
762 | * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON |
763 | before calling TREE_CHAIN. | |
81f653d6 NF |
764 | * gcc-interface/misc.c (gnat_init_ts): New function. |
765 | (LANG_HOOKS_INIT_TS): Define. | |
766 | ||
a358e188 MJ |
767 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
768 | ||
b4867846 EB |
769 | * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node |
770 | instead of cgraph_node. | |
a358e188 | 771 | |
29b1c5a4 EB |
772 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> |
773 | ||
774 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum | |
775 | alignment on fields of the RETURN type built for the Copy-In Copy-Out | |
776 | mechanism. | |
777 | ||
88872b00 EB |
778 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> |
779 | ||
780 | * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers | |
781 | of aggregate types that contain a placeholder. | |
782 | ||
dcf0c47e NF |
783 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
784 | ||
785 | * gcc-interface/utils.c (handle_sentinel_attribute): Don't use | |
b4867846 | 786 | TYPE_ARG_TYPES. |
dcf0c47e NF |
787 | (handle_type_generic_attribute): Likewise. |
788 | ||
53e3000c EB |
789 | 2011-04-04 Eric Botcazou <ebotcazou@adacore.com> |
790 | ||
791 | PR ada/47163 | |
792 | * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change. | |
793 | ||
ab380bb4 KT |
794 | 2011-04-04 Kai Tietz <ktietz@redhat.com> |
795 | ||
796 | PR ada/47163 | |
0bad0e23 EB |
797 | * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets |
798 | to flag value. | |
ab380bb4 | 799 | |
8ffac116 EB |
800 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
801 | ||
802 | * gcc-interface/utils2.c (build_allocator): In the unconstrained array | |
803 | type case, do not strip a padding type around the array type. | |
804 | ||
de9528f0 EB |
805 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
806 | ||
807 | * gcc-interface/utils.c (update_pointer_to): Finalize named pointer | |
808 | types. | |
809 | ||
d9d7a26c EB |
810 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
811 | ||
812 | * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete. | |
813 | * gcc-interface/misc.c (gnat_handle_option): Remove special handling | |
de9528f0 | 814 | code for -feliminate-unused-debug-types. |
d9d7a26c EB |
815 | (gnat_post_options): Likewise. |
816 | ||
4cb12a90 EB |
817 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
818 | ||
819 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
820 | declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a | |
821 | distinct copy. | |
822 | ||
acccc61c EB |
823 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
824 | ||
825 | * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the | |
826 | DECL_ARTIFICIAL flag on enumeration types. | |
827 | ||
583eb0c9 EB |
828 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
829 | ||
830 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make | |
831 | fat pointer types artificial unconditionally. | |
832 | <E_Array_Subtype>: Attach the base array type as a parallel type if it | |
833 | isn't artificial. | |
834 | ||
e3edbd56 EB |
835 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
836 | ||
837 | * gcc-interface/gigi.h (get_dummy_type): Declare. | |
838 | (build_dummy_unc_pointer_types): Likewise. | |
839 | (finish_fat_pointer_type): Likewise. | |
840 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy | |
841 | fat pointer type has been built, complete it in place. | |
842 | <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat | |
843 | and thin pointers. Remove useless variable. | |
844 | (finish_fat_pointer_type): Make global and move to... | |
845 | * gcc-interface/utils.c (finish_fat_pointer_type): ...here. | |
846 | (get_dummy_type): New function. | |
847 | (build_dummy_unc_pointer_types): Likewise. | |
848 | (gnat_pushdecl): Propage the name to the anonymous variants only. | |
849 | (update_pointer_to): Only adjust the pointer types in the unconstrained | |
850 | array case. | |
851 | ||
65444786 EB |
852 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
853 | ||
854 | * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag. | |
855 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it | |
856 | if this is a Taft amendment type and the full declaration is available. | |
857 | * gcc-interface/trans.c (process_type): Likewise. | |
858 | If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P. | |
859 | (process_freeze_entity): Likewise. | |
860 | * gcc-interface/utils.c (dummy_global): New static variable. | |
861 | (gnat_write_global_declarations): If there are types declared as used | |
862 | at the global level, insert them in the global hash table. | |
863 | ||
1aeb40dd EB |
864 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
865 | ||
866 | * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param. | |
867 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
868 | declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct | |
869 | copy. | |
870 | (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL | |
871 | flag of the type accordingly. | |
872 | * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type. | |
873 | ||
80ec8b4c EB |
874 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
875 | ||
876 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
877 | finalizing types when updating the pointers to the designated type. | |
878 | <all>: Finalize the deferred types even if we didn't defer processing | |
879 | of incomplete types in this invocation. | |
880 | ||
2a9d769a OH |
881 | 2011-04-01 Olivier Hainque <hainque@adacore.com> |
882 | Nicolas Setton <setton@adacore.com> | |
883 | Eric Botcazou <ebotcazou@adacore.com> | |
884 | ||
885 | * gcc-interface/misc.c (gnat_descriptive_type): New function. | |
886 | (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type. | |
887 | ||
2438d7a6 KT |
888 | 2011-03-28 Kai Tietz <ktietz@redhat.com> |
889 | ||
333d8aff | 890 | * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native |
80ec8b4c EB |
891 | Windows targets. |
892 | (EH_MECHANISM): Use GCC exception mechanism for native Windows targets. | |
893 | * system-mingw.ads (System): Change ZCX_By_Default default to True. | |
333d8aff | 894 | |
80ec8b4c | 895 | * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype. |
2438d7a6 | 896 | |
8ad150f6 TG |
897 | 2011-03-28 Tristan Gingold <gingold@adacore.com> |
898 | ||
899 | PR ada/44431 | |
80ec8b4c EB |
900 | * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c. |
901 | Use ada output of gnatbind. | |
8ad150f6 TG |
902 | (ada/b_gnatb.adb): Ditto. |
903 | (ada/b_gnat1.o, ada/b_gnatb.o): New rules. | |
904 | (ada.mostlyclean, ada.stage1) | |
905 | (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile) | |
906 | (ada.stagefeedback): Adjust. | |
80ec8b4c | 907 | * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c. |
8ad150f6 TG |
908 | Use ada output of gnatbind. |
909 | (b_gnatm.adb): Ditto. | |
910 | (b_gnatl.o, b_gnatm.o): New rules. | |
911 | ||
51c7954d EB |
912 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
913 | ||
914 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
915 | for the padded type built to support a specified size or alignment. | |
916 | ||
6ddf9843 EB |
917 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
918 | ||
919 | * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment. | |
920 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
921 | unconditionally to the end of the unit when the designated type is | |
922 | limited_with'ed. | |
923 | <all>: Rename local variable. Attempt to un-defer types only and do it | |
924 | for limited_with'ed types as well. | |
925 | (finalize_from_with_types): Adjust comment. Rename variable and tidy. | |
926 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT | |
927 | consistently and remove redundant call to finalize_from_with_types. | |
928 | ||
5daed84a EB |
929 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
930 | ||
931 | * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to | |
932 | subprograms without a previous spec declared in the same unit. | |
933 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined | |
934 | subprograms at the end of the unit instead of at the beginning. | |
935 | * gcc-interface/utils.c (create_subprog_decl): Check that the entity | |
936 | isn't public for the special handling of non-inline functions nested | |
937 | inside inline external functions. | |
938 | ||
0edf1bb2 JL |
939 | 2011-03-25 Jeff Law <law@redhat.com> |
940 | ||
5daed84a | 941 | * gcc-interface/utils.c (def_fn_type): Add missing va_end. |
0edf1bb2 | 942 | |
e3c4580e EB |
943 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> |
944 | ||
945 | * einfo.ads (Size_Depends_On_Discriminant): Adjust description. | |
946 | * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure | |
947 | to compute Set_Size_Depends_On_Discriminant. | |
948 | (Layout_Type): Call it on array types in back-end layout mode. | |
949 | * sem_util.adb (Requires_Transient_Scope): Return true for array | |
950 | types only if the size depends on the value of discriminants. | |
951 | * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS | |
952 | type if the RHS is a call to a function that returns an unconstrained | |
953 | type with default discriminant. | |
954 | ||
abbc8c7b EB |
955 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> |
956 | ||
957 | * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of | |
958 | non-conversion to the nominal result type at the end. | |
959 | ||
ddb5a105 EB |
960 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
961 | ||
962 | * gcc-interface/trans.c (create_temporary): New function taken from... | |
963 | (create_init_temporary): ...here. Call it. | |
964 | (call_to_gnu): Create the temporary for the return value early, if any. | |
965 | Create it for a function with copy-in/copy-out parameters if there is | |
966 | no target; in other cases of copy-in/copy-out, use another temporary. | |
967 | Push the new binding level lazily. Add and rename local variables. | |
968 | ||
0d853156 EB |
969 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
970 | ||
971 | * gcc-interface/decl.c (validate_size): Improve comments and tweak | |
972 | error message. | |
973 | (set_rm_size): Likewise. | |
974 | ||
4184ef1b EB |
975 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
976 | ||
977 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
978 | for the padded type built in order to support a specified alignment. | |
979 | Fix incorrect formatting. | |
980 | ||
bf7eefab EB |
981 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
982 | ||
983 | PR bootstrap/48216 | |
984 | * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL. | |
985 | ||
ef0feeb2 EB |
986 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
987 | ||
988 | * gcc-interface/decl.c (components_to_record): Add REORDER parameter, | |
989 | rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter | |
990 | to the end of the list. Adjust recursive call. Rename local variable. | |
991 | If REORDER is true, reorder components of the record type. | |
992 | (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to | |
993 | components_to_record and adjust the parameter list. | |
994 | ||
646f9414 EB |
995 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
996 | ||
997 | * gcc-interface/decl.c (elaborate_expression_1): When optimization is | |
998 | disabled, use the variable for bounds of loop iteration scheme. | |
999 | ||
62d784f7 KT |
1000 | 2011-03-21 Kai Tietz <ktietz@redhat.com> |
1001 | ||
1002 | PR target/12171 | |
0bad0e23 | 1003 | * gcc-interface/utils.c (gnat_internal_attribute_table): Add column. |
62d784f7 | 1004 | |
f230d759 EB |
1005 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> |
1006 | ||
1007 | * gcc-interface/decl.c (elaborate_expression_1): Try harder to find | |
1008 | out whether the expression is read-only. Short-circuit placeholder | |
1009 | case and rename a couple of local variables. | |
1010 | ||
bb1f7929 EB |
1011 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> |
1012 | ||
1013 | * gcc-interface/gigi.h (smaller_form_type_p): Declare. | |
1014 | * gcc-interface/trans.c (smaller_form_type_p): Make global and move... | |
1015 | * gcc-interface/utils.c (smaller_form_type_p): ...to here. | |
1016 | (convert): Deal with conversions from a smaller form type specially. | |
1017 | ||
400a2d24 EB |
1018 | 2011-02-14 Eric Botcazou <ebotcazou@adacore.com> |
1019 | ||
1020 | * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and | |
1021 | its argument, except for the special -I- switch. | |
1022 | ||
c26bc3ad GP |
1023 | 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com> |
1024 | ||
0bad0e23 EB |
1025 | * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to |
1026 | "Ada Issues". | |
c26bc3ad | 1027 | |
07b8e910 EB |
1028 | 2011-02-08 Eric Botcazou <ebotcazou@adacore.com> |
1029 | ||
1030 | * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs. | |
1031 | ||
31a5a547 EB |
1032 | 2011-02-03 Eric Botcazou <ebotcazou@adacore.com> |
1033 | ||
1034 | * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of | |
1035 | GNAT_FORMAL. | |
1036 | * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to... | |
1037 | * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE | |
1038 | instead of GNAT_FORMAL. Protect the expression against multiple uses. | |
1039 | Do not generate the check directly, instead instantiate the template | |
1040 | check present in the descriptor. | |
1041 | (make_descriptor_field): Move around. | |
1042 | (build_vms_descriptor32): Build a template check in the POINTER field. | |
1043 | (build_vms_descriptor): Remove useless suffixes. | |
1044 | * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call. | |
1045 | ||
dcf25f59 EB |
1046 | 2011-01-26 Eric Botcazou <ebotcazou@adacore.com> |
1047 | ||
1048 | PR bootstrap/47467 | |
1049 | * targext.c: Include target files if IN_RTS is defined. | |
1050 | ||
0418e131 RG |
1051 | 2011-01-26 Richard Guenther <rguenther@suse.de> |
1052 | ||
1053 | PR bootstrap/47467 | |
1054 | * targext.c: Include config.h. | |
1055 | * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H) | |
1056 | dependency. | |
1057 | ||
c6eecbd8 PO |
1058 | 2011-01-04 Pascal Obry <obry@adacore.com> |
1059 | Eric Botcazou <ebotcazou@adacore.com> | |
1060 | ||
1061 | * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit. | |
1062 | ||
2d3c7e4f EB |
1063 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
1064 | ||
1065 | * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the | |
1066 | end-of-case on the end label and its associated gotos, if any. | |
1067 | ||
0394741f EB |
1068 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
1069 | ||
1070 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the | |
1071 | expressions of the parameter cache within the statement group of | |
1072 | the CICO mechanism. | |
1073 | ||
2a02d090 OH |
1074 | 2011-01-04 Olivier Hainque <hainque@adacore.com> |
1075 | Eric Botcazou <ebotcazou@adacore.com> | |
1076 | ||
1077 | * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default. | |
1078 | (set_end_locus_from_node): New function. | |
1079 | (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we | |
1080 | make and the function end_locus. | |
1081 | (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus | |
1082 | for the elaboration subprogram. | |
1083 | (set_gnu_expr_location_from_node) <default case>: Use it to attempt to | |
1084 | set the end_locus of the expression as well. | |
1085 | ||
89f5e978 EB |
1086 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
1087 | ||
1088 | PR ada/47131 | |
1089 | * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make | |
1090 | variables that are referenced in exception handlers volatile. | |
1091 | ||
1092 | ||
ad41bd84 | 1093 | \f |
797103eb | 1094 | Copyright (C) 2011 Free Software Foundation, Inc. |
ad41bd84 JM |
1095 | |
1096 | Copying and distribution of this file, with or without modification, | |
1097 | are permitted in any medium without royalty provided the copyright | |
1098 | notice and this notice are preserved. |