]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ada/ChangeLog
err_vars.ads (Error_Msg_Lang, [...]): new variables for insertion character ~~
[thirdparty/gcc.git] / gcc / ada / ChangeLog
CommitLineData
53beff22
YM
12011-08-01 Yannick Moy <moy@adacore.com>
2
3 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
4 insertion character ~~
5 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
6 (Set_Error_Msg_Lang): new procedure which fixes the language for use
7 with insertion character ~~
8 (Set_Msg_Text): treat insertion character ~~
9 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
10 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
11 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
12 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
13 errors related to the formal language restriction not serious
14 (insertion character |).
15 * par.adb (Par): set formal language for error messages if needed
16 * sem_ch6.adb (Check_Missing_Return): take into account possible
17 generated statements at the end of the function
18 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
19 enumeration value to define a new pragma SPARK_95
20 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
21 SPARK_Version): new type and variables to store the SPARK version
22 (none by default).
23 (SPARK_Mode): return True when SPARK_Version is set
24 * par-prag.adb: Correct indentation
25 (Prag): take Pragma_SPARK_95 into account
26 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
27 into account.
28
8d606a78
RD
292011-08-01 Robert Dewar <dewar@adacore.com>
30
31 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
32 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
33 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
34
1982d5a8
PO
352011-08-01 Pascal Obry <obry@adacore.com>
36
37 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
38 Target_Name to Get_Path call.
39 (Parse_Single_Project): Likewise.
40 (Post_Parse_Context_Clause): Likewise.
41 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
42 Call Initialise_Project_Path with the proper Target_Name.
43 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
44 search path.
45 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
46 with the proper Target_Name.
47 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
48 Part.Parse routine.
49 (Parse_Project_And_Apply_Config): Likewise.
50 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
51 This is fine as this part of the code is supporting only native
52 compilation.
53 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
54 is fine as this part of the code is supporting only native compilation.
55
0d53d36b
AC
562011-08-01 Yannick Moy <moy@adacore.com>
57
58 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
59 of homonym, unless the homonym is one of the cases allowed in SPARK
60 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
61 package declaration occurring after a body.
62
632011-08-01 Robert Dewar <dewar@adacore.com>
64
65 * checks.adb, exp_ch4.adb: Minor reformatting.
66
672011-08-01 Javier Miranda <miranda@adacore.com>
68
69 * einfo.ads (Access_Disp_Table): Fix documentation.
70 (Dispatch_Table_Wrappers): Fix documentation.
71
722011-08-01 Pascal Obry <obry@adacore.com>
73
74 * prj-env.adb, prj-env.ads: Minor reformatting.
75
8ed68165
AC
762011-08-01 Yannick Moy <moy@adacore.com>
77
78 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
79 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
80 procedures out of these packages.
81 * errout.ads, errout.adb
82 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
83 procedures in of this package
84 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
85 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
86 on misplaced later vs initial declarations, like in Ada 83
87 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
88 formal mode on attribute of private type whose full type declaration
89 is not visible
90 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
91 package declaration inside a package specification
92 (Analyze_Full_Type_Declaration): issue error in formal mode on
93 controlled type or discriminant type
94 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
95 user-defined operator means that it should come from the source
96 (New_Overloaded_Entity): issue error in formal mode on overloaded
97 entity.
98 * sem_ch6.ads, sem_ch13.ads: typos in comments.
99
1002011-08-01 Thomas Quinot <quinot@adacore.com>
101
102 * atree.adb: Minor reformatting.
103 * checks.adb: Minor reformatting.
104
4230bdb7
AC
1052011-08-01 Vincent Celier <celier@adacore.com>
106
107 * s-parame-vms-ia64.ads: Fix typo in comment
108 Minor reformatting
109 * s-parame-vms-restrict.ads: Removed, unused.
110
1112011-08-01 Javier Miranda <miranda@adacore.com>
112
113 * exp_ch3.adb
114 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
115 * sem_ch3.adb
116 (Constrain_Index): Remove side effects in the evaluation of the bounds.
117 * sem_ch3.ads, sem_ch3.adb
118 (Is_Constant_Bound): New extended version of the subprogram that was
119 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
120 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
121 * sem_aux.ads (Constant_Value): Fix typo in comment.
122 * checks.adb (Generate_Index_Checks): New implementation which, for
123 array objects with constant bounds, generates the runtime check
124 referencing the bounds of the array type. For other cases this routine
125 provides its previous behavior obtaining such values from the array
126 object.
127 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
128 parent type.
129 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
130 we cannot have semantic interpretations of the new node.
131
2010d078
AC
1322011-08-01 Ed Schonberg <schonberg@adacore.com>
133
134 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
135 expressions.
136
1372011-08-01 Arnaud Charlet <charlet@adacore.com>
138
139 * sem_ch8.adb: Minor code editing.
140 * s-vxwext.adb: Remove trailing space.
141 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
142 consistency with other files.
143
1442011-08-01 Thomas Quinot <quinot@adacore.com>
145
146 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
147
1482011-08-01 Ed Schonberg <schonberg@adacore.com>
149
150 * par-ch10.adb: reject parameterized expressions as compilation unit.
151 * sem_ch4.adb: handle properly conditional expression with overloaded
152 then_clause and no else_clause.
153
1542011-08-01 Tristan Gingold <gingold@adacore.com>
155
156 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
157 like done by System.Aux_DEC.
158 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
159
daec8eeb
YM
1602011-08-01 Yannick Moy <moy@adacore.com>
161
162 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
163 missing label at end of declaration (subprogram or package)
164 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
165 of positional and named parameter association
166 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
167 Error_Msg_SP which adds a prefix to the error message giving the name
168 of the formal language analyzed
169 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
170 access result type in subprogram, unconstrained array as result type,.
171 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
172 procedure
173 * sem_ch8.adb: Code clean up.
174
38171f43
AC
1752011-08-01 Javier Miranda <miranda@adacore.com>
176
177 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
178 * einfo.ads (Access_Disp_Table): Fix documentation.
179 (Dispatch_Table_Wrappers): Fix documentation.
180 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
181 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
182 to enforce the documentation of this attribute.
183 (Set_Is_Interface): Cleanup the assertion.
184 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
185 the Underlying_Type entity before reading attribute Access_Disp_Table.
186 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
187 Locate the Underlying_Type before reading attribute Access_Disp_Table.
188 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
189 the Underlying_Type entity before reading attribute Access_Disp_Table.
190 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
191 Locate the Underlying_Type entity before reading attribute
192 Access_Disp_Table.
193
1942011-08-01 Ed Schonberg <schonberg@adacore.com>
195
196 * s-poosiz.ads: Additional overriding indicators.
197
1982011-08-01 Yannick Moy <moy@adacore.com>
199
200 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
201 formal mode.
202 (Analyze_Iteration_Scheme): issue error in formal mode when loop
203 parameter specification does not include a subtype mark.
204 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
205 formal mode on abstract subprogram.
206 (Analyze_Subprogram_Specification): issue error in formal mode on
207 user-defined operator.
208 (Process_Formals): issue error in formal mode on access parameter and
209 default expression.
210 * sem_ch9.adb (Analyze_Abort_Statement,
211 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
212 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
213 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
214 Analyze_Requeue, Analyze_Selective_Accept,
215 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
216 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
217 issue error in formal mode on user-defined raise statement.
218
1f250383
AC
2192011-08-01 Thomas Quinot <quinot@adacore.com>
220
221 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
222 declaration being hidden when overriding an implicit inherited
223 subprogram.
224 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
225 (-gnats), do not complain about a source file that contains only a
226 pragma No_Body.
227
2282011-08-01 Ed Schonberg <schonberg@adacore.com>
229
230 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
231 variable if already set.
232
607d0635
AC
2332011-08-01 Arnaud Charlet <charlet@adacore.com>
234
235 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
236 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
237 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
238 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
239 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
240 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
241 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
242 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
243 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
244 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
245 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
246 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
247 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
248 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
249 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
250 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
251 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
252 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
253 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
254 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
255 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
256 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
257 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
258 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
259 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
260 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
261 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
262 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
263 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
264 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
265 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
266 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
267 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
268 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
269 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
270 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
271 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
272 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
273 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
274 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
275 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
276 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
277 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
278 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
279 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
280 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
281 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
282 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
283 s-osinte-mingw.ads: Update to GPLv3 run-time license.
284 Use GNAT instead of GNARL.
285
2862011-08-01 Bob Duff <duff@adacore.com>
287
288 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
289 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
290 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
291 reformatting.
292
2932011-08-01 Yannick Moy <moy@adacore.com>
294
295 * debug.adb (d.D) reverve flag for the SPARK mode
296 (d.E) reverve flag for SPARK generation mode
297 (d.F) reverve flag for Why generation mode
298 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
299 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
300 functions which return True when the corresponding modes are set
301 (Formal_Language): return "spark" or "alfa" when in formal verification
302 mode.
303 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
304 Error_Msg to prefix the error message with a tag giving the formal
305 language
306 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
307 message with a tag giving the formal language
308 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
309 block statement
310 (Analyze_Case_Statement): issue error in formal mode on case statement
311 with a single "others" case alternative
312 (Analyze_Exit_Statement): issue errors in formal mode on exit
313 statements which do not respect SPARK restrictions
314 (Analyze_Goto_Statement): issue error in formal mode on goto statement
315 (Check_Unreachable_Code): always issue an error (not a warning) in
316 formal mode on unreachable code (concerns both code after an infinite
317 loop and after an unconditional jump, both not allowed in SPARK)
318 * sem_ch6.adb (Analyze_Return_Statement): add call to
319 Set_Return_Present for a procedure containing a return statement
320 (already done for functions in Analyze_Function_Return)
321 (Analyze_Function_Return): issue error in formal mode on extended
322 return or if return is not last statement in function
323 (Check_Missing_Return): issue error in formal mode if function does
324 not end with return or if procedure contains a return
325 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
326 function to detect if there is an inner scope of its parameter S which
327 is a loop.
328
3292011-08-01 Thomas Quinot <quinot@adacore.com>
330
331 * sem_ch6.ads: Minor reformatting.
332
d8b3ccb9
AC
3332011-08-01 Javier Miranda <miranda@adacore.com>
334
335 * sem_util.adb (Abstract_Interface_List): Complete condition when
336 processing private type declarations to avoid reading unavailable
337 attribute.
338 (Is_Synchronized_Tagged_Type): Complete condition when processing
339 private extension declaration nodes to avoid reading unavailable
340 attribute.
341
3422011-08-01 Thomas Quinot <quinot@adacore.com>
343
344 * sem_ch3.adb: Minor reformatting.
345
3462011-08-01 Thomas Quinot <quinot@adacore.com>
347
348 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
349 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
350 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
351 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
352 for VMS, instead parametrize the common implementation with
353 System.Parameters declarations.
354
0bb9276c
AC
3552011-08-01 Eric Botcazou <ebotcazou@adacore.com>
356
357 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
358
3592011-08-01 Tristan Gingold <gingold@adacore.com>
360
361 * seh_init.c: Fix SEH handler installation on win64.
362
3632011-08-01 Ed Schonberg <schonberg@adacore.com>
364
365 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
366 double analysis of an anonymous access to subprogram, because it can
367 lead to improper sharing of profiles and a back-end crash.
368
6a2e4f0b
AC
3692011-08-01 Robert Dewar <dewar@adacore.com>
370
371 * make.adb, sem_ch4.adb: Minor reformatting.
372 * gcc-interface/Make-lang.in: Update dependencies.
373 * sem_util.adb, exp_ch5.adb: Minor reformatting.
374
3752011-08-01 Arnaud Charlet <charlet@adacore.com>
376
377 * gnat_rm.texi: Fix definition of Long_Integer.
378
3792011-08-01 Ed Schonberg <schonberg@adacore.com>
380
381 * exp_aggr.adb: check limit size of static aggregate unconditionally,
382 to prevent storage exhaustion.
383 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
384 finalized is a function body, insert the cleanup code before the final
385 return statement, to prevent spurious warnings.
386 * s-pooglo.ads: add overriding indicator.
387
4561baf7
ES
3882011-08-01 Ed Schonberg <schonberg@adacore.com>
389
390 * sem_ch4.adb (Operator_Check): improve error message when both a
391 with_clause and a use_clause are needed to make operator usage legal.
392 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
393 determine whether a compilation unit is visible within an other,
394 either through a with_clause in the current unit, or a with_clause in
395 its library unit or one one of its parents.
396
383e179e
AC
3972011-08-01 Ed Schonberg <schonberg@adacore.com>
398
399 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
400 over an arbitrary expression of an array or container type.
401 * lib-xref.adb: clarify comment.
402
4032011-08-01 Bob Duff <duff@adacore.com>
404
405 * einfo.ads: Minor reformatting.
406 * debug.adb: Minor comment improvement.
407
4082011-08-01 Javier Miranda <miranda@adacore.com>
409
410 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
411 consider hidden subprograms as valid candidates.
412
4132011-08-01 Arnaud Charlet <charlet@adacore.com>
414
415 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
416
4172011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
418
419 * gnat_ugn.texi: Fix typo.
420
61c161b2
AC
4212011-08-01 Robert Dewar <dewar@adacore.com>
422
423 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
424 lib-xref.adb: Minor reformatting
425
4262011-08-01 Gary Dismukes <dismukes@adacore.com>
427
428 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
429 when to generate a call to Move_Final_List.
430 (Has_Controlled_Parts): Remove this function.
431
84df40f7
AC
4322011-08-01 Geert Bosch <bosch@adacore.com>
433
434 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
435 "," in choice list.
436
4372011-08-01 Thomas Quinot <quinot@adacore.com>
438
439 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
440 explicit raise of a predefined exception as Comes_From_Source if the
441 original N_Raise_Statement comes from source.
442
4432011-08-01 Robert Dewar <dewar@adacore.com>
444
445 * sinfo.ads: Add comment.
446 * sem_ch6.adb: Minor reformatting.
447
4482011-08-01 Robert Dewar <dewar@adacore.com>
449
450 * freeze.adb (Freeze_Entity): Refine check for bad component size
451 clause to avoid rejecting confirming clause when atomic/aliased present.
452
4532011-08-01 Ed Schonberg <schonberg@adacore.com>
454
455 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
456 better determine whether an entity reference is a write.
457 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
458 subcomponent.
459 * lib-xref.adb (Output_References): Do no suppress a read reference at
460 the same location as an immediately preceeding modify-reference, to
461 handle properly in-out actuals.
462
4632011-08-01 Tristan Gingold <gingold@adacore.com>
464
465 * env.c (__gnat_setenv) [VMS]: Refine previous change.
466
4672011-08-01 Quentin Ochem <ochem@adacore.com>
468
469 * i-cstrin.adb (New_String): Changed implementation, now uses only the
470 heap to compute the result.
471
c7f0d2c0
AC
4722011-08-01 Robert Dewar <dewar@adacore.com>
473
474 * atree.ads: Minor reformatting.
475
4762011-08-01 Emmanuel Briot <briot@adacore.com>
477
478 * g-expect.adb (Get_Command_Output): Fix memory leak.
479
4802011-08-01 Geert Bosch <bosch@adacore.com>
481
482 * cstand.adb (P_Float_Type): New procedure to print the definition of
483 predefined fpt types.
484 (P_Mixed_Name): New procedure to print a name using mixed case
485 (Print_Standard): Use P_Float_Type for printing floating point types
486 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
487 precision IEEE float.
488
4892011-08-01 Thomas Quinot <quinot@adacore.com>
490
491 * sem_ch3.adb: Minor reformatting.
492
4932011-08-01 Ed Schonberg <schonberg@adacore.com>
494
495 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
496 the completion of a generic function, insert the new body rather than
497 rewriting the original.
498
4992011-08-01 Yannick Moy <moy@adacore.com>
500
501 * sinfo.ads, errout.ads: Typos in comments.
502
1c54829e
AC
5032011-08-01 Robert Dewar <dewar@adacore.com>
504
505 * par-endh.adb: Minor reformatting.
506
5072011-08-01 Robert Dewar <dewar@adacore.com>
508
509 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
510 (Pre_Post_Aspects): New subtype.
511 * par-ch12.adb (P_Generic): New syntax for aspects in packages
512 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
513 * par-ch7.adb (P_Package): Remove Decl parameter
514 (P_Package): Handle new syntax for aspects (before IS)
515 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
516 new aspect syntax
517 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
518 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
519 (P_Package): Remove Decl parameter
520 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
521 aspects
522 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
523 specs
524 * sem_util.ads, sem_util.adb (Static_Boolean): New function
525 * sinfo.ads: Document new syntax for aspects in packages etc.
526 * sprint.adb: Handle new syntax of aspects before IS in package
527
5282011-08-01 Thomas Quinot <quinot@adacore.com>
529
530 * atree.ads: Minor reformatting.
531 * sem_prag.adb: Minor reformatting.
532
5332011-08-01 Robert Dewar <dewar@adacore.com>
534
535 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
536 case expr alternative.
537
5382011-08-01 Ed Schonberg <schonberg@adacore.com>
539
540 * sem_ch12.adb: Fix typo.
541
9eea4346
GB
5422011-08-01 Geert Bosch <bosch@adacore.com>
543
544 * sem_prag.adb (Check_No_Link_Name): New procedure.
545 (Process_Import_Or_Interface): Use Check_No_Link_Name.
546 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
547 instead of Standard_Long_Long_Float_Size global. Preparation for
548 eventual removal of per type constants.
549 * exp_util.ads (Get_Stream_Size): New function returning the stream
550 size value of subtype E.
551 * exp_util.adb (Get_Stream_Size): Implement new function.
552 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
553 function.
554 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
555 * einfo.adb:
556 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
557
3d6c3bd7
GB
5582011-08-01 Geert Bosch <bosch@adacore.com>
559
560 * cstand.adb: Fix comments.
561 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
562 count of arguments.
563
e7d897b8
AC
5642011-08-01 Robert Dewar <dewar@adacore.com>
565
566 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
567
5682011-08-01 Geert Bosch <bosch@adacore.com>
569
570 * atree.ads: Fix comment.
571
c228a069
AC
5722011-08-01 Robert Dewar <dewar@adacore.com>
573
574 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
575 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
576 * par.adb: Add with for Namet.Sp.
577 * par-tchk.adb: Minor reformatting.
578
5792011-08-01 Vincent Celier <celier@adacore.com>
580
581 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
582 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
583 of the init procedure of a SAL.
584 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
585 New procedure.
586
5872011-08-01 Thomas Quinot <quinot@adacore.com>
588
589 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
590 reformatting.
591
5922011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
593
594 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
595
5962011-08-01 Thomas Quinot <quinot@adacore.com>
597
598 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
599 conformant with its spec (return True only for types that have
600 an overriding Initialize primitive operation that prevents them from
601 having preelaborable initialization).
602 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
603 initialization for controlled types in Ada 2005 or later mode.
604
857ade1b
RD
6052011-08-01 Robert Dewar <dewar@adacore.com>
606
607 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
608 Postcondition.
609 (Same_Aspect): New function.
610 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
611 Type_Invariant, Precondition, Postcondition.
612 * snames.ads-tmpl: Add Name_Type_Invariant.
613
bd949ee2
RD
6142011-08-01 Robert Dewar <dewar@adacore.com>
615
616 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
617 here.
618 (Freeze_All_Ent): Fix error in handling inherited aspects.
619 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
620 already analyzed, but don't skip entire processing of a declaration,
621 that's wrong in some cases of declarations being rewritten.
622 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
623 Don't delay for integer, string literals
624 Treat predicates in usual manner for delay, remove special case code,
625 not needed.
626 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
627 (Build_Predicate_Function): Update saved expression in aspect
628 (Build_Invariant_Procedure): Update saved expression in aspect
629 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
630 of replacement of discriminant references if the reference is simple.
631
f1c952af
RD
6322011-08-01 Robert Dewar <dewar@adacore.com>
633
634 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
635 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
636 Static_Predicate and Dynamic_Predicate.
637 (Build_Predicate_Function): Add processing for Static_Predicate
638 and Dynamic_Predicate.
639 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
640 (From_Static_Predicate): New flag
641 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
642
6432011-08-01 Robert Dewar <dewar@adacore.com>
644
645 * usage.adb: Documentation cleanup for Ada version modes in usage.
646 * expander.adb: Minor reformatting.
647
47e11d08
AC
6482011-08-01 Robert Dewar <dewar@adacore.com>
649
650 * atree.ads: Minor comment fix.
651 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
652 a-witeio.ads, sem_prag.adb: Minor reformatting.
653
6542011-08-01 Doug Rupp <rupp@adacore.com>
655
656 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
657 pointers. Use descrip.h header file for convenience. Add some
658 comments.
659
6602011-08-01 Robert Dewar <dewar@adacore.com>
661
662 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
663 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
664 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
665 New procedure.
666 (Check_Aspect_At_End_Of_Declarations): New procedure
667 (Analye_Aspect_Specification): Minor changes for above procedures
668 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
669 specification node as well.
670
6712011-08-01 Pascal Obry <obry@adacore.com>
672
673 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
674 Windows files. Use GetFilesAttributes() in this case to check for file
675 existence instead of returning with an error code.
676
a3a16b21
VC
6772011-08-01 Vincent Celier <celier@adacore.com>
678
679 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
680 High is above Source length.
681
ff58cc69
RD
6822011-08-01 Robert Dewar <dewar@adacore.com>
683
684 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
685
6bb88533
AC
6862011-08-01 Robert Dewar <dewar@adacore.com>
687
688 * aspects.ads (Boolean_Aspects): New subtype.
689 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
690 for derived types in cases where the parent type and derived type have
691 aspects.
692 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
693 with aspects when parent type also has aspects.
694 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
695 boolean expression at this point).
696 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
697 accordance with final decision on the Ada 2012 feature.
698 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
699
7002011-08-01 Matthew Heaney <heaney@adacore.com>
701
702 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
703
060a3f28
AC
7042011-08-01 Pascal Obry <obry@adacore.com>
705
706 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
707 Fix Replace_Slice when High is above current string size.
708 (Replace_Slice): Fix DL computation when High is above current
709 string length.
710
7112011-08-01 Gary Dismukes <dismukes@adacore.com>
712
713 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
714
e7f567a3
AC
7152011-08-01 Matthew Heaney <heaney@adacore.com>
716
717 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
718 of node.
719
7202011-08-01 Pascal Obry <obry@adacore.com>
721
722 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
723 reformatting.
724
1a265e78
AC
7252011-08-01 Ed Schonberg <schonberg@adacore.com>
726
727 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
728 access to protected subprograms in generic bodies.
729 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
730 protected type, indicate that the convention of the subprogram is
731 Convention_Protected, because it may be used in subsequent declarations
732 within the protected declaration.
733
7342011-08-01 Vincent Celier <celier@adacore.com>
735
736 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
737 and "final" procedures when the name of the library is "ada", to avoid
738 duplicate symbols "adainit" and "adafinal" in executables.
739
67e28ef8
ES
7402011-08-01 Ed Schonberg <schonberg@adacore.com>
741
742 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
743 quantified expression that appears within a postcondition and uses the
744 Ada2012 'Result attribute.
745
6da2ca7d
RO
7462011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
747
748 * init.c (__gnat_error_handler): Cast reason to int.
749 (__gnat_install_handler): Explain sa_sigaction use.
750
7d5997c6
EB
7512011-07-24 Eric Botcazou <ebotcazou@adacore.com>
752
753 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
754 subprogram has copy-in copy-out parameters, try to promote the mode of
755 the return type if it is passed in registers.
756
4b4cfdd5
EB
7572011-07-24 Eric Botcazou <ebotcazou@adacore.com>
758
759 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
760 left operand as addressable.
761
f3d34576
EB
7622011-07-24 Eric Botcazou <ebotcazou@adacore.com>
763
764 * gcc-interface/gigi.h (build_function_stub): Remove.
765 (build_return_expr): Likewise.
766 (convert_vms_descriptor): Declare.
767 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
768 (build_function_stub): Move to...
769 * gcc-interface/utils2.c (build_return_expr): Move to...
770 * gcc-interface/trans.c (build_function_stub): ...here.
771 (build_return_expr): ...here.
772 (Subprogram_Body_to_gnu): Add local variable for language_function.
773 Disconnect the parameter attributes cache, if any, once done with it.
774 Call end_subprog_body only after setting the end_locus.
775 Build the stub associated with the function, if any, at the very end.
776 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
777 variables and streamline control flow.
778
0a6ecc08
AC
7792011-07-23 Arnaud Charlet <charlet@adacore.com>
780
781 PR ada/49819
782 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
783 g-trasym-dwarf.adb.
784
5b6d595b
RO
7852011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
786
787 PR bootstrap/49794
788 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
789 Assign to act.sa_sigaction.
790 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
791 current->return_address to char * before arithmetic.
792
94017021
RO
7932011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
794
795 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
796 Correct argument types.
797 Extract code from reason.
798 (__gnat_install_handler): Assign to act.sa_sigaction.
799
52fd02bb
EB
8002011-07-21 Eric Botcazou <ebotcazou@adacore.com>
801
802 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
803 (GNAT1_OBJS): ...here.
804
f39a9ca2
EB
8052011-07-15 Eric Botcazou <ebotcazou@adacore.com>
806
807 PR ada/48711
808 * g-socthi-mingw.adb (Fill): Fix formatting.
809
9e36aa23
EB
810 * gcc-interface/gigi.h: Move around comment.
811
e3aca522
JDA
8122011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
813
814 PR ada/46350
815 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
816
696b1960
FW
8172011-07-14 Florian Weimer <fw@deneb.enyo.de>
818
819 PR ada/48711
820 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
821
f542c405
EB
8222011-07-13 Eric Botcazou <ebotcazou@adacore.com>
823
824 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
825 range comparison if Pmode is SImode.
826
9e9bd455
LG
8272011-07-12 Laurent GUERBY <laurent@guerby.net>
828 Eric Botcazou <ebotcazou@adacore.com>
829
830 * adadecode.c: Wrap up in extern "C" block.
831 * adadecode.h: Likewise.
832 * adaint.c: Likewise. Remove 'const' keyword.
833 * adaint.h: Likewise.
834 * argv.c: Likewise.
835 * atree.h: Likewise.
836 * cio.c: Likewise.
837 * cstreams.c: Likewise.
838 * env.c: Likewise.
839 * exit.c: Likewise.
840 * fe.h: Likewise.
841 * final.c: Likewise.
842 * init.c: Likewise.
843 * initialize.c: Likewise.
844 * link.c: Likewise.
845 * namet.h: Likewise.
846 * nlists.h: Likewise.
847 * raise.c: Likewise.
848 * raise.h: Likewise.
849 * repinfo.h: Likewise.
850 * seh_init.c: Likewise.
851 * targext.c: Likewise.
852 * tracebak.c: Likewise.
853 * uintp.h: Likewise.
854 * urealp.h: Likewise.
855 * xeinfo.adb: Wrap up generated C code in extern "C" block.
856 * xsinfo.adb: Likewise.
857 * xsnamest.adb: Likewise.
858 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
859 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
860 * gcc-interface/misc.c: Likewise.
861 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
862 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
863 ada/targext.o here...
864 (GNAT_ADA_OBJS): ...and not here.
865 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
866 (GNATBIND_OBJS): Reorder.
867
7644b3c7
RH
8682011-07-07 Richard Henderson <rth@redhat.com>
869
870 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
871 dwarf2out_frame_init.
872
8384ac41
EB
8732011-07-07 Eric Botcazou <ebotcazou@adacore.com>
874
875 * gcc-interface/misc.c (gnat_init): Tweak previous change.
876
fbdd5d87
RO
8772011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
878
879 PR target/39150
880 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
881
1a072294
RG
8822011-07-06 Richard Guenther <rguenther@suse.de>
883
8384ac41
EB
884 * gcc-interface/misc.c (gnat_init): Merge calls to
885 build_common_tree_nodes and build_common_tree_nodes_2.
1a072294
RG
886 Re-initialize boolean_false_node.
887
bc712852
EB
8882011-07-02 Eric Botcazou <ebotcazou@adacore.com>
889 Olivier Hainque <hainque@adacore.com>
890 Nicolas Setton <setton@adacore.com>
891
892 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
893 the type according to the ARTIFICIAL_P parameter.
894 (create_type_decl): Likewise.
895 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
896
2eb22389
EB
8972011-07-01 Eric Botcazou <ebotcazou@adacore.com>
898
899 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
900 (gnatbind): Likewise.
901
4bdaaf2f
RO
9022011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
903
904 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
905
c020c92b
EB
9062011-06-18 Eric Botcazou <ebotcazou@adacore.com>
907
908 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
909 local variable throughout. Remove useless call to Base_Type.
910 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
911 Take it also into account for the volatileness of the field. Set the
912 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
913
96769d32
EB
9142011-06-18 Eric Botcazou <ebotcazou@adacore.com>
915
916 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
917 on a dereference built for a by-ref object if it has an address clause.
918
7e4680c1
EB
9192011-06-18 Eric Botcazou <ebotcazou@adacore.com>
920
921 * einfo.ads (Address_Taken): Document use for the second argument of
922 Asm_Input and Asm_Output attributes.
923 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
924 argument is an entity name, then set Address_Taken on it.
925 <Attribute_Asm_Output>: Likewise.
926 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
927 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
928 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
929 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
930
9312011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
932
933 PR middle-end/46500
934 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
935
677f3fa8
JM
9362011-06-14 Joseph Myers <joseph@codesourcery.com>
937
938 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
939 (ada/utils.o): Update dependencies.
940 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
941 ../../../libcpp/libcpp.a.
942 * gcc-interface/utils.c: Include common/common-target.h.
943 (process_attributes): Use targetm_common.have_named_sections.
944
009db074
RG
9452011-06-07 Richard Guenther <rguenther@suse.de>
946
0bad0e23
EB
947 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
948 set_sizetype.
009db074 949
3bfc61cf
EB
9502011-06-06 Eric Botcazou <ebotcazou@adacore.com>
951
0bad0e23 952 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
3bfc61cf
EB
953 TREE_THIS_NOTRAP flag.
954
5c4a1c7b
EB
9552011-06-06 Eric Botcazou <ebotcazou@adacore.com>
956
957 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
958 Fix thinko.
959
e9f57686
EB
9602011-06-06 Eric Botcazou <ebotcazou@adacore.com>
961
962 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
963 constants whose full view has discriminants specially.
964
10e4d056
EB
9652011-06-06 Eric Botcazou <ebotcazou@adacore.com>
966
967 * gcc-interface/utils.c: Include diagnostic.h.
968 (gnat_write_global_declarations): Output debug information for all
969 global type declarations before finalizing the compilation unit.
970 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
971
0957c029
JJ
9722011-05-25 Jakub Jelinek <jakub@redhat.com>
973
974 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
975
52d0a7ac
KT
9762011-05-25 Kai Tietz <ktietz@redhat.com>
977
978 * adaint.c (__gnat_to_canonical_file_list_next): Use array
979 initialization instead of const/none-const pointer assignment.
980
1ed1641d
JM
9812011-05-24 Joseph Myers <joseph@codesourcery.com>
982
983 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
984 $(EXTRA_GNAT1_OBJS).
985 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
986 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
987 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
988 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
989 libcommon-target.a instead of prefix.o.
990
9fe72ebd
JM
9912011-05-21 Joseph Myers <joseph@codesourcery.com>
992
993 PR ada/49097
0bad0e23 994 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
9fe72ebd 995
2691e6d7
JM
9962011-05-20 Joseph Myers <joseph@codesourcery.com>
997
0bad0e23
EB
998 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
999 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
1000 instead of version.o.
2691e6d7 1001
bf6490b5
KT
10022011-05-18 Kai Tietz <ktietz@redhat.com>
1003
1004 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
1005 boolean_false_node instead of integer_zero_node.
1006 (convert_with_check): Likewise.
1007 * gcc-interface/decl.c (choices_to_gnu): Likewise.
1008
7bf9a5ac
EB
10092011-05-12 Eric Botcazou <ebotcazou@adacore.com>
1010
1011 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
1012 type of the parameter is an unconstrained array, convert the actual to
1013 the type of the formal in the In Out and Out cases as well.
1014
e5b00edf
NF
10152011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1016
1017 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
1018 call build_function_type_array or build_varargs_function_type_array
1019 instead.
1020 (create_subprog_type): Don't call build_function_type; call
1021 build_function_type_vec instead.
1022
51545682
NF
10232011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1024
1025 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
1026 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
1027 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
1028
c99c0026
EB
10292011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1030
f620bd21
EB
1031 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
1032
c99c0026
EB
1033 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
1034 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
1035
3d528853
NF
10362011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1037
c99c0026 1038 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
3d528853 1039
d7d058c5
NF
10402011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1041
1042 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
1043 instead of accessing TYPE_ARG_TYPES directly.
1044 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
1045
805e60a0
EB
10462011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1047
1048 PR ada/48844
1049 * gcc-interface/gigi.h (get_variant_part): Declare.
1050 * gcc-interface/decl.c (get_variant_part): Make global.
1051 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
1052 types have the same constant size, are record types and T1 has a
1053 variant part while T2 doesn't.
1054
907a08d9
EB
10552011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1056
1057 * gcc-interface/utils.c (begin_subprog_body): Do not call
1058 get_pending_sizes.
1059 (end_subprog_body): Likewise.
1060
d35936ab
RG
10612011-05-04 Richard Guenther <rguenther@suse.de>
1062
1063 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
1064 int_const_binop.
1065 (pos_to_constructor): Likewise.
1066
c1fd8753
NF
10672011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1068 Eric Botcazou <ebotcazou@adacore.com>
1069
1070 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
1071 of build_function_type. Adjust calls to...
1072 (build_raise_check): ...this. Do not take a void_tree parameter.
1073 Call build_function_type_list instead of build_function_type.
1074 Fix head comment and swap couple of conditional blocks.
1075
4fb87d2b
EB
10762011-04-30 Eric Botcazou <ebotcazou@adacore.com>
1077
1078 * gnatvsn.ads (Library_Version): Bump to 4.7.
1079 (Current_Year): Bump to 2011.
1080
fa5e5a76
MM
10812011-04-29 Michael Matz <matz@suse.de>
1082
1083 * gcc-interface/misc.c (gnat_handle_option): Set
1084 warn_maybe_uninitialized.
1085
8d6a2f69
GP
10862011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
1087
1088 * gnat_ugn.texi (Complexity Metrics Control): Update link to
1089 the Watson/McCabe paper.
1090
770937fd
JM
10912011-04-23 Jim Meyering <meyering@redhat.com>
1092
1093 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
1094
eb601ae1
EB
10952011-04-22 Eric Botcazou <ebotcazou@adacore.com>
1096
1097 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
1098 onto the new type.
1099
7d7fcb08
EB
11002011-04-22 Eric Botcazou <ebotcazou@adacore.com>
1101
1102 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
1103 parameter.
1104 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
1105 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
1106 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
1107 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
1108 <all>: Do not set flags on the reused DECL node coming from an alias.
1109 Set DECL_IGNORED_P on the DECL node built for subprograms if they
1110 don't need debug info here...
1111 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
1112 (gigi): Adjust calls to create_subprog_decl.
1113 (build_raise_check): Likewise.
1114 (establish_gnat_vms_condition_handler): Likewise.
1115 (Compilation_Unit_to_gnu): Likewise.
1116 (gnat_to_gnu): Likewise.
1117
e1876cac
EB
11182011-04-21 Eric Botcazou <ebotcazou@adacore.com>
1119
1120 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
1121 (NO_REORDER_ADAFLAGS): New variable.
1122 (EXTRA_GNATTOOLS): Always define.
1123 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
1124 Clean up and adjust list of files compiled with special options.
1125 * gcc-interface/Make-lang.in: Likewise.
1126 (ada/decl.o): Cosmetical change.
1127 (ada/misc.o): Remove dependency on $(PLUGIN_H).
1128
04695783
JM
11292011-04-20 Jim Meyering <meyering@redhat.com>
1130
1131 * initialize.c (__gnat_initialize): Remove useless if-before-free.
1132
23399579
EB
11332011-04-17 Eric Botcazou <ebotcazou@adacore.com>
1134
1135 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
1136 $(CFLAGS) on the link line.
1137
51c5169c
EB
11382011-04-17 Eric Botcazou <ebotcazou@adacore.com>
1139
1140 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
1141 padded type built for the return type if it is unconstrained.
1142
61e46a7d
NF
11432011-04-14 Nathan Froyd <froydnj@codesourcery.com>
1144
1145 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
1146
81f653d6
NF
11472011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1148
b4867846
EB
1149 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
1150 before calling TREE_CHAIN.
81f653d6
NF
1151 * gcc-interface/misc.c (gnat_init_ts): New function.
1152 (LANG_HOOKS_INIT_TS): Define.
1153
a358e188
MJ
11542011-04-12 Martin Jambor <mjambor@suse.cz>
1155
b4867846
EB
1156 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
1157 instead of cgraph_node.
a358e188 1158
29b1c5a4
EB
11592011-04-08 Eric Botcazou <ebotcazou@adacore.com>
1160
1161 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
1162 alignment on fields of the RETURN type built for the Copy-In Copy-Out
1163 mechanism.
1164
88872b00
EB
11652011-04-08 Eric Botcazou <ebotcazou@adacore.com>
1166
1167 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
1168 of aggregate types that contain a placeholder.
1169
dcf0c47e
NF
11702011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1171
1172 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
b4867846 1173 TYPE_ARG_TYPES.
dcf0c47e
NF
1174 (handle_type_generic_attribute): Likewise.
1175
53e3000c
EB
11762011-04-04 Eric Botcazou <ebotcazou@adacore.com>
1177
1178 PR ada/47163
1179 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
1180
ab380bb4
KT
11812011-04-04 Kai Tietz <ktietz@redhat.com>
1182
1183 PR ada/47163
0bad0e23
EB
1184 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
1185 to flag value.
ab380bb4 1186
8ffac116
EB
11872011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1188
1189 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
1190 type case, do not strip a padding type around the array type.
1191
de9528f0
EB
11922011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1193
1194 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
1195 types.
1196
d9d7a26c
EB
11972011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1198
1199 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
1200 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
de9528f0 1201 code for -feliminate-unused-debug-types.
d9d7a26c
EB
1202 (gnat_post_options): Likewise.
1203
4cb12a90
EB
12042011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1205
1206 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
1207 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
1208 distinct copy.
1209
acccc61c
EB
12102011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1211
1212 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
1213 DECL_ARTIFICIAL flag on enumeration types.
1214
583eb0c9
EB
12152011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1216
1217 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
1218 fat pointer types artificial unconditionally.
1219 <E_Array_Subtype>: Attach the base array type as a parallel type if it
1220 isn't artificial.
1221
e3edbd56
EB
12222011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1223
1224 * gcc-interface/gigi.h (get_dummy_type): Declare.
1225 (build_dummy_unc_pointer_types): Likewise.
1226 (finish_fat_pointer_type): Likewise.
1227 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
1228 fat pointer type has been built, complete it in place.
1229 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
1230 and thin pointers. Remove useless variable.
1231 (finish_fat_pointer_type): Make global and move to...
1232 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
1233 (get_dummy_type): New function.
1234 (build_dummy_unc_pointer_types): Likewise.
1235 (gnat_pushdecl): Propage the name to the anonymous variants only.
1236 (update_pointer_to): Only adjust the pointer types in the unconstrained
1237 array case.
1238
65444786
EB
12392011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1240
1241 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
1242 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
1243 if this is a Taft amendment type and the full declaration is available.
1244 * gcc-interface/trans.c (process_type): Likewise.
1245 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
1246 (process_freeze_entity): Likewise.
1247 * gcc-interface/utils.c (dummy_global): New static variable.
1248 (gnat_write_global_declarations): If there are types declared as used
1249 at the global level, insert them in the global hash table.
1250
1aeb40dd
EB
12512011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1252
1253 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
1254 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
1255 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
1256 copy.
1257 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
1258 flag of the type accordingly.
1259 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
1260
80ec8b4c
EB
12612011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1262
1263 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
1264 finalizing types when updating the pointers to the designated type.
1265 <all>: Finalize the deferred types even if we didn't defer processing
1266 of incomplete types in this invocation.
1267
2a9d769a
OH
12682011-04-01 Olivier Hainque <hainque@adacore.com>
1269 Nicolas Setton <setton@adacore.com>
1270 Eric Botcazou <ebotcazou@adacore.com>
1271
1272 * gcc-interface/misc.c (gnat_descriptive_type): New function.
1273 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
1274
2438d7a6
KT
12752011-03-28 Kai Tietz <ktietz@redhat.com>
1276
333d8aff 1277 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
80ec8b4c
EB
1278 Windows targets.
1279 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
1280 * system-mingw.ads (System): Change ZCX_By_Default default to True.
333d8aff 1281
80ec8b4c 1282 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
2438d7a6 1283
8ad150f6
TG
12842011-03-28 Tristan Gingold <gingold@adacore.com>
1285
1286 PR ada/44431
80ec8b4c
EB
1287 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
1288 Use ada output of gnatbind.
8ad150f6
TG
1289 (ada/b_gnatb.adb): Ditto.
1290 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
1291 (ada.mostlyclean, ada.stage1)
1292 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
1293 (ada.stagefeedback): Adjust.
80ec8b4c 1294 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
8ad150f6
TG
1295 Use ada output of gnatbind.
1296 (b_gnatm.adb): Ditto.
1297 (b_gnatl.o, b_gnatm.o): New rules.
1298
51c7954d
EB
12992011-03-26 Eric Botcazou <ebotcazou@adacore.com>
1300
1301 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
1302 for the padded type built to support a specified size or alignment.
1303
6ddf9843
EB
13042011-03-26 Eric Botcazou <ebotcazou@adacore.com>
1305
1306 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
1307 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
1308 unconditionally to the end of the unit when the designated type is
1309 limited_with'ed.
1310 <all>: Rename local variable. Attempt to un-defer types only and do it
1311 for limited_with'ed types as well.
1312 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
1313 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
1314 consistently and remove redundant call to finalize_from_with_types.
1315
5daed84a
EB
13162011-03-26 Eric Botcazou <ebotcazou@adacore.com>
1317
1318 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
1319 subprograms without a previous spec declared in the same unit.
1320 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
1321 subprograms at the end of the unit instead of at the beginning.
1322 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
1323 isn't public for the special handling of non-inline functions nested
1324 inside inline external functions.
1325
0edf1bb2
JL
13262011-03-25 Jeff Law <law@redhat.com>
1327
5daed84a 1328 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
0edf1bb2 1329
e3c4580e
EB
13302011-03-24 Eric Botcazou <ebotcazou@adacore.com>
1331
1332 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
1333 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
1334 to compute Set_Size_Depends_On_Discriminant.
1335 (Layout_Type): Call it on array types in back-end layout mode.
1336 * sem_util.adb (Requires_Transient_Scope): Return true for array
1337 types only if the size depends on the value of discriminants.
1338 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
1339 type if the RHS is a call to a function that returns an unconstrained
1340 type with default discriminant.
1341
abbc8c7b
EB
13422011-03-24 Eric Botcazou <ebotcazou@adacore.com>
1343
1344 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
1345 non-conversion to the nominal result type at the end.
1346
ddb5a105
EB
13472011-03-23 Eric Botcazou <ebotcazou@adacore.com>
1348
1349 * gcc-interface/trans.c (create_temporary): New function taken from...
1350 (create_init_temporary): ...here. Call it.
1351 (call_to_gnu): Create the temporary for the return value early, if any.
1352 Create it for a function with copy-in/copy-out parameters if there is
1353 no target; in other cases of copy-in/copy-out, use another temporary.
1354 Push the new binding level lazily. Add and rename local variables.
1355
0d853156
EB
13562011-03-23 Eric Botcazou <ebotcazou@adacore.com>
1357
1358 * gcc-interface/decl.c (validate_size): Improve comments and tweak
1359 error message.
1360 (set_rm_size): Likewise.
1361
4184ef1b
EB
13622011-03-23 Eric Botcazou <ebotcazou@adacore.com>
1363
1364 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
1365 for the padded type built in order to support a specified alignment.
1366 Fix incorrect formatting.
1367
bf7eefab
EB
13682011-03-21 Eric Botcazou <ebotcazou@adacore.com>
1369
1370 PR bootstrap/48216
1371 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
1372
ef0feeb2
EB
13732011-03-21 Eric Botcazou <ebotcazou@adacore.com>
1374
1375 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
1376 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
1377 to the end of the list. Adjust recursive call. Rename local variable.
1378 If REORDER is true, reorder components of the record type.
1379 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
1380 components_to_record and adjust the parameter list.
1381
646f9414
EB
13822011-03-21 Eric Botcazou <ebotcazou@adacore.com>
1383
1384 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
1385 disabled, use the variable for bounds of loop iteration scheme.
1386
62d784f7
KT
13872011-03-21 Kai Tietz <ktietz@redhat.com>
1388
1389 PR target/12171
0bad0e23 1390 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
62d784f7 1391
f230d759
EB
13922011-03-17 Eric Botcazou <ebotcazou@adacore.com>
1393
1394 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
1395 out whether the expression is read-only. Short-circuit placeholder
1396 case and rename a couple of local variables.
1397
bb1f7929
EB
13982011-03-17 Eric Botcazou <ebotcazou@adacore.com>
1399
1400 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
1401 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
1402 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
1403 (convert): Deal with conversions from a smaller form type specially.
1404
400a2d24
EB
14052011-02-14 Eric Botcazou <ebotcazou@adacore.com>
1406
1407 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
1408 its argument, except for the special -I- switch.
1409
c26bc3ad
GP
14102011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
1411
0bad0e23
EB
1412 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
1413 "Ada Issues".
c26bc3ad 1414
07b8e910
EB
14152011-02-08 Eric Botcazou <ebotcazou@adacore.com>
1416
1417 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
1418
31a5a547
EB
14192011-02-03 Eric Botcazou <ebotcazou@adacore.com>
1420
1421 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
1422 GNAT_FORMAL.
1423 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
1424 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
1425 instead of GNAT_FORMAL. Protect the expression against multiple uses.
1426 Do not generate the check directly, instead instantiate the template
1427 check present in the descriptor.
1428 (make_descriptor_field): Move around.
1429 (build_vms_descriptor32): Build a template check in the POINTER field.
1430 (build_vms_descriptor): Remove useless suffixes.
1431 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
1432
dcf25f59
EB
14332011-01-26 Eric Botcazou <ebotcazou@adacore.com>
1434
1435 PR bootstrap/47467
1436 * targext.c: Include target files if IN_RTS is defined.
1437
0418e131
RG
14382011-01-26 Richard Guenther <rguenther@suse.de>
1439
1440 PR bootstrap/47467
1441 * targext.c: Include config.h.
1442 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
1443 dependency.
1444
c6eecbd8
PO
14452011-01-04 Pascal Obry <obry@adacore.com>
1446 Eric Botcazou <ebotcazou@adacore.com>
1447
1448 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
1449
2d3c7e4f
EB
14502011-01-04 Eric Botcazou <ebotcazou@adacore.com>
1451
1452 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
1453 end-of-case on the end label and its associated gotos, if any.
1454
0394741f
EB
14552011-01-04 Eric Botcazou <ebotcazou@adacore.com>
1456
1457 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
1458 expressions of the parameter cache within the statement group of
1459 the CICO mechanism.
1460
2a02d090
OH
14612011-01-04 Olivier Hainque <hainque@adacore.com>
1462 Eric Botcazou <ebotcazou@adacore.com>
1463
1464 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
1465 (set_end_locus_from_node): New function.
1466 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
1467 make and the function end_locus.
1468 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
1469 for the elaboration subprogram.
1470 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
1471 set the end_locus of the expression as well.
1472
89f5e978
EB
14732011-01-04 Eric Botcazou <ebotcazou@adacore.com>
1474
1475 PR ada/47131
1476 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
1477 variables that are referenced in exception handlers volatile.
1478
1479
ad41bd84 1480\f
797103eb 1481Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
1482
1483Copying and distribution of this file, with or without modification,
1484are permitted in any medium without royalty provided the copyright
1485notice and this notice are preserved.