]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ada/ChangeLog
configure.ac (fixed-point): Add ARM support.
[thirdparty/gcc.git] / gcc / ada / ChangeLog
CommitLineData
3d6c3bd7
GB
12011-08-01 Geert Bosch <bosch@adacore.com>
2
3 * cstand.adb: Fix comments.
4 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
5 count of arguments.
6
e7d897b8
AC
72011-08-01 Robert Dewar <dewar@adacore.com>
8
9 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
10
112011-08-01 Geert Bosch <bosch@adacore.com>
12
13 * atree.ads: Fix comment.
14
c228a069
AC
152011-08-01 Robert Dewar <dewar@adacore.com>
16
17 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
18 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
19 * par.adb: Add with for Namet.Sp.
20 * par-tchk.adb: Minor reformatting.
21
222011-08-01 Vincent Celier <celier@adacore.com>
23
24 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
25 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
26 of the init procedure of a SAL.
27 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
28 New procedure.
29
302011-08-01 Thomas Quinot <quinot@adacore.com>
31
32 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
33 reformatting.
34
352011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36
37 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
38
392011-08-01 Thomas Quinot <quinot@adacore.com>
40
41 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
42 conformant with its spec (return True only for types that have
43 an overriding Initialize primitive operation that prevents them from
44 having preelaborable initialization).
45 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
46 initialization for controlled types in Ada 2005 or later mode.
47
857ade1b
RD
482011-08-01 Robert Dewar <dewar@adacore.com>
49
50 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
51 Postcondition.
52 (Same_Aspect): New function.
53 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
54 Type_Invariant, Precondition, Postcondition.
55 * snames.ads-tmpl: Add Name_Type_Invariant.
56
bd949ee2
RD
572011-08-01 Robert Dewar <dewar@adacore.com>
58
59 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
60 here.
61 (Freeze_All_Ent): Fix error in handling inherited aspects.
62 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
63 already analyzed, but don't skip entire processing of a declaration,
64 that's wrong in some cases of declarations being rewritten.
65 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
66 Don't delay for integer, string literals
67 Treat predicates in usual manner for delay, remove special case code,
68 not needed.
69 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
70 (Build_Predicate_Function): Update saved expression in aspect
71 (Build_Invariant_Procedure): Update saved expression in aspect
72 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
73 of replacement of discriminant references if the reference is simple.
74
f1c952af
RD
752011-08-01 Robert Dewar <dewar@adacore.com>
76
77 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
78 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
79 Static_Predicate and Dynamic_Predicate.
80 (Build_Predicate_Function): Add processing for Static_Predicate
81 and Dynamic_Predicate.
82 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
83 (From_Static_Predicate): New flag
84 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
85
862011-08-01 Robert Dewar <dewar@adacore.com>
87
88 * usage.adb: Documentation cleanup for Ada version modes in usage.
89 * expander.adb: Minor reformatting.
90
47e11d08
AC
912011-08-01 Robert Dewar <dewar@adacore.com>
92
93 * atree.ads: Minor comment fix.
94 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
95 a-witeio.ads, sem_prag.adb: Minor reformatting.
96
972011-08-01 Doug Rupp <rupp@adacore.com>
98
99 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
100 pointers. Use descrip.h header file for convenience. Add some
101 comments.
102
1032011-08-01 Robert Dewar <dewar@adacore.com>
104
105 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
106 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
107 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
108 New procedure.
109 (Check_Aspect_At_End_Of_Declarations): New procedure
110 (Analye_Aspect_Specification): Minor changes for above procedures
111 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
112 specification node as well.
113
1142011-08-01 Pascal Obry <obry@adacore.com>
115
116 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
117 Windows files. Use GetFilesAttributes() in this case to check for file
118 existence instead of returning with an error code.
119
a3a16b21
VC
1202011-08-01 Vincent Celier <celier@adacore.com>
121
122 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
123 High is above Source length.
124
ff58cc69
RD
1252011-08-01 Robert Dewar <dewar@adacore.com>
126
127 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
128
6bb88533
AC
1292011-08-01 Robert Dewar <dewar@adacore.com>
130
131 * aspects.ads (Boolean_Aspects): New subtype.
132 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
133 for derived types in cases where the parent type and derived type have
134 aspects.
135 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
136 with aspects when parent type also has aspects.
137 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
138 boolean expression at this point).
139 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
140 accordance with final decision on the Ada 2012 feature.
141 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
142
1432011-08-01 Matthew Heaney <heaney@adacore.com>
144
145 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
146
060a3f28
AC
1472011-08-01 Pascal Obry <obry@adacore.com>
148
149 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
150 Fix Replace_Slice when High is above current string size.
151 (Replace_Slice): Fix DL computation when High is above current
152 string length.
153
1542011-08-01 Gary Dismukes <dismukes@adacore.com>
155
156 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
157
e7f567a3
AC
1582011-08-01 Matthew Heaney <heaney@adacore.com>
159
160 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
161 of node.
162
1632011-08-01 Pascal Obry <obry@adacore.com>
164
165 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
166 reformatting.
167
1a265e78
AC
1682011-08-01 Ed Schonberg <schonberg@adacore.com>
169
170 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
171 access to protected subprograms in generic bodies.
172 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
173 protected type, indicate that the convention of the subprogram is
174 Convention_Protected, because it may be used in subsequent declarations
175 within the protected declaration.
176
1772011-08-01 Vincent Celier <celier@adacore.com>
178
179 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
180 and "final" procedures when the name of the library is "ada", to avoid
181 duplicate symbols "adainit" and "adafinal" in executables.
182
67e28ef8
ES
1832011-08-01 Ed Schonberg <schonberg@adacore.com>
184
185 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
186 quantified expression that appears within a postcondition and uses the
187 Ada2012 'Result attribute.
188
6da2ca7d
RO
1892011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
190
191 * init.c (__gnat_error_handler): Cast reason to int.
192 (__gnat_install_handler): Explain sa_sigaction use.
193
7d5997c6
EB
1942011-07-24 Eric Botcazou <ebotcazou@adacore.com>
195
196 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
197 subprogram has copy-in copy-out parameters, try to promote the mode of
198 the return type if it is passed in registers.
199
4b4cfdd5
EB
2002011-07-24 Eric Botcazou <ebotcazou@adacore.com>
201
202 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
203 left operand as addressable.
204
f3d34576
EB
2052011-07-24 Eric Botcazou <ebotcazou@adacore.com>
206
207 * gcc-interface/gigi.h (build_function_stub): Remove.
208 (build_return_expr): Likewise.
209 (convert_vms_descriptor): Declare.
210 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
211 (build_function_stub): Move to...
212 * gcc-interface/utils2.c (build_return_expr): Move to...
213 * gcc-interface/trans.c (build_function_stub): ...here.
214 (build_return_expr): ...here.
215 (Subprogram_Body_to_gnu): Add local variable for language_function.
216 Disconnect the parameter attributes cache, if any, once done with it.
217 Call end_subprog_body only after setting the end_locus.
218 Build the stub associated with the function, if any, at the very end.
219 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
220 variables and streamline control flow.
221
0a6ecc08
AC
2222011-07-23 Arnaud Charlet <charlet@adacore.com>
223
224 PR ada/49819
225 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
226 g-trasym-dwarf.adb.
227
5b6d595b
RO
2282011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
229
230 PR bootstrap/49794
231 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
232 Assign to act.sa_sigaction.
233 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
234 current->return_address to char * before arithmetic.
235
94017021
RO
2362011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
237
238 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
239 Correct argument types.
240 Extract code from reason.
241 (__gnat_install_handler): Assign to act.sa_sigaction.
242
52fd02bb
EB
2432011-07-21 Eric Botcazou <ebotcazou@adacore.com>
244
245 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
246 (GNAT1_OBJS): ...here.
247
f39a9ca2
EB
2482011-07-15 Eric Botcazou <ebotcazou@adacore.com>
249
250 PR ada/48711
251 * g-socthi-mingw.adb (Fill): Fix formatting.
252
9e36aa23
EB
253 * gcc-interface/gigi.h: Move around comment.
254
e3aca522
JDA
2552011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
256
257 PR ada/46350
258 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
259
696b1960
FW
2602011-07-14 Florian Weimer <fw@deneb.enyo.de>
261
262 PR ada/48711
263 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
264
f542c405
EB
2652011-07-13 Eric Botcazou <ebotcazou@adacore.com>
266
267 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
268 range comparison if Pmode is SImode.
269
9e9bd455
LG
2702011-07-12 Laurent GUERBY <laurent@guerby.net>
271 Eric Botcazou <ebotcazou@adacore.com>
272
273 * adadecode.c: Wrap up in extern "C" block.
274 * adadecode.h: Likewise.
275 * adaint.c: Likewise. Remove 'const' keyword.
276 * adaint.h: Likewise.
277 * argv.c: Likewise.
278 * atree.h: Likewise.
279 * cio.c: Likewise.
280 * cstreams.c: Likewise.
281 * env.c: Likewise.
282 * exit.c: Likewise.
283 * fe.h: Likewise.
284 * final.c: Likewise.
285 * init.c: Likewise.
286 * initialize.c: Likewise.
287 * link.c: Likewise.
288 * namet.h: Likewise.
289 * nlists.h: Likewise.
290 * raise.c: Likewise.
291 * raise.h: Likewise.
292 * repinfo.h: Likewise.
293 * seh_init.c: Likewise.
294 * targext.c: Likewise.
295 * tracebak.c: Likewise.
296 * uintp.h: Likewise.
297 * urealp.h: Likewise.
298 * xeinfo.adb: Wrap up generated C code in extern "C" block.
299 * xsinfo.adb: Likewise.
300 * xsnamest.adb: Likewise.
301 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
302 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
303 * gcc-interface/misc.c: Likewise.
304 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
305 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
306 ada/targext.o here...
307 (GNAT_ADA_OBJS): ...and not here.
308 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
309 (GNATBIND_OBJS): Reorder.
310
7644b3c7
RH
3112011-07-07 Richard Henderson <rth@redhat.com>
312
313 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
314 dwarf2out_frame_init.
315
8384ac41
EB
3162011-07-07 Eric Botcazou <ebotcazou@adacore.com>
317
318 * gcc-interface/misc.c (gnat_init): Tweak previous change.
319
fbdd5d87
RO
3202011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
321
322 PR target/39150
323 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
324
1a072294
RG
3252011-07-06 Richard Guenther <rguenther@suse.de>
326
8384ac41
EB
327 * gcc-interface/misc.c (gnat_init): Merge calls to
328 build_common_tree_nodes and build_common_tree_nodes_2.
1a072294
RG
329 Re-initialize boolean_false_node.
330
bc712852
EB
3312011-07-02 Eric Botcazou <ebotcazou@adacore.com>
332 Olivier Hainque <hainque@adacore.com>
333 Nicolas Setton <setton@adacore.com>
334
335 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
336 the type according to the ARTIFICIAL_P parameter.
337 (create_type_decl): Likewise.
338 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
339
2eb22389
EB
3402011-07-01 Eric Botcazou <ebotcazou@adacore.com>
341
342 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
343 (gnatbind): Likewise.
344
4bdaaf2f
RO
3452011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
346
347 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
348
c020c92b
EB
3492011-06-18 Eric Botcazou <ebotcazou@adacore.com>
350
351 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
352 local variable throughout. Remove useless call to Base_Type.
353 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
354 Take it also into account for the volatileness of the field. Set the
355 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
356
96769d32
EB
3572011-06-18 Eric Botcazou <ebotcazou@adacore.com>
358
359 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
360 on a dereference built for a by-ref object if it has an address clause.
361
7e4680c1
EB
3622011-06-18 Eric Botcazou <ebotcazou@adacore.com>
363
364 * einfo.ads (Address_Taken): Document use for the second argument of
365 Asm_Input and Asm_Output attributes.
366 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
367 argument is an entity name, then set Address_Taken on it.
368 <Attribute_Asm_Output>: Likewise.
369 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
370 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
371 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
372 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
373
3742011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
375
376 PR middle-end/46500
377 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
378
677f3fa8
JM
3792011-06-14 Joseph Myers <joseph@codesourcery.com>
380
381 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
382 (ada/utils.o): Update dependencies.
383 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
384 ../../../libcpp/libcpp.a.
385 * gcc-interface/utils.c: Include common/common-target.h.
386 (process_attributes): Use targetm_common.have_named_sections.
387
009db074
RG
3882011-06-07 Richard Guenther <rguenther@suse.de>
389
0bad0e23
EB
390 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
391 set_sizetype.
009db074 392
3bfc61cf
EB
3932011-06-06 Eric Botcazou <ebotcazou@adacore.com>
394
0bad0e23 395 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
3bfc61cf
EB
396 TREE_THIS_NOTRAP flag.
397
5c4a1c7b
EB
3982011-06-06 Eric Botcazou <ebotcazou@adacore.com>
399
400 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
401 Fix thinko.
402
e9f57686
EB
4032011-06-06 Eric Botcazou <ebotcazou@adacore.com>
404
405 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
406 constants whose full view has discriminants specially.
407
10e4d056
EB
4082011-06-06 Eric Botcazou <ebotcazou@adacore.com>
409
410 * gcc-interface/utils.c: Include diagnostic.h.
411 (gnat_write_global_declarations): Output debug information for all
412 global type declarations before finalizing the compilation unit.
413 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
414
0957c029
JJ
4152011-05-25 Jakub Jelinek <jakub@redhat.com>
416
417 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
418
52d0a7ac
KT
4192011-05-25 Kai Tietz <ktietz@redhat.com>
420
421 * adaint.c (__gnat_to_canonical_file_list_next): Use array
422 initialization instead of const/none-const pointer assignment.
423
1ed1641d
JM
4242011-05-24 Joseph Myers <joseph@codesourcery.com>
425
426 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
427 $(EXTRA_GNAT1_OBJS).
428 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
429 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
430 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
431 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
432 libcommon-target.a instead of prefix.o.
433
9fe72ebd
JM
4342011-05-21 Joseph Myers <joseph@codesourcery.com>
435
436 PR ada/49097
0bad0e23 437 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
9fe72ebd 438
2691e6d7
JM
4392011-05-20 Joseph Myers <joseph@codesourcery.com>
440
0bad0e23
EB
441 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
442 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
443 instead of version.o.
2691e6d7 444
bf6490b5
KT
4452011-05-18 Kai Tietz <ktietz@redhat.com>
446
447 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
448 boolean_false_node instead of integer_zero_node.
449 (convert_with_check): Likewise.
450 * gcc-interface/decl.c (choices_to_gnu): Likewise.
451
7bf9a5ac
EB
4522011-05-12 Eric Botcazou <ebotcazou@adacore.com>
453
454 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
455 type of the parameter is an unconstrained array, convert the actual to
456 the type of the formal in the In Out and Out cases as well.
457
e5b00edf
NF
4582011-05-11 Nathan Froyd <froydnj@codesourcery.com>
459
460 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
461 call build_function_type_array or build_varargs_function_type_array
462 instead.
463 (create_subprog_type): Don't call build_function_type; call
464 build_function_type_vec instead.
465
51545682
NF
4662011-05-11 Nathan Froyd <froydnj@codesourcery.com>
467
468 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
469 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
470 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
471
c99c0026
EB
4722011-05-07 Eric Botcazou <ebotcazou@adacore.com>
473
f620bd21
EB
474 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
475
c99c0026
EB
476 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
477 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
478
3d528853
NF
4792011-05-05 Nathan Froyd <froydnj@codesourcery.com>
480
c99c0026 481 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
3d528853 482
d7d058c5
NF
4832011-05-05 Nathan Froyd <froydnj@codesourcery.com>
484
485 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
486 instead of accessing TYPE_ARG_TYPES directly.
487 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
488
805e60a0
EB
4892011-05-05 Eric Botcazou <ebotcazou@adacore.com>
490
491 PR ada/48844
492 * gcc-interface/gigi.h (get_variant_part): Declare.
493 * gcc-interface/decl.c (get_variant_part): Make global.
494 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
495 types have the same constant size, are record types and T1 has a
496 variant part while T2 doesn't.
497
907a08d9
EB
4982011-05-05 Eric Botcazou <ebotcazou@adacore.com>
499
500 * gcc-interface/utils.c (begin_subprog_body): Do not call
501 get_pending_sizes.
502 (end_subprog_body): Likewise.
503
d35936ab
RG
5042011-05-04 Richard Guenther <rguenther@suse.de>
505
506 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
507 int_const_binop.
508 (pos_to_constructor): Likewise.
509
c1fd8753
NF
5102011-05-03 Nathan Froyd <froydnj@codesourcery.com>
511 Eric Botcazou <ebotcazou@adacore.com>
512
513 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
514 of build_function_type. Adjust calls to...
515 (build_raise_check): ...this. Do not take a void_tree parameter.
516 Call build_function_type_list instead of build_function_type.
517 Fix head comment and swap couple of conditional blocks.
518
4fb87d2b
EB
5192011-04-30 Eric Botcazou <ebotcazou@adacore.com>
520
521 * gnatvsn.ads (Library_Version): Bump to 4.7.
522 (Current_Year): Bump to 2011.
523
fa5e5a76
MM
5242011-04-29 Michael Matz <matz@suse.de>
525
526 * gcc-interface/misc.c (gnat_handle_option): Set
527 warn_maybe_uninitialized.
528
8d6a2f69
GP
5292011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
530
531 * gnat_ugn.texi (Complexity Metrics Control): Update link to
532 the Watson/McCabe paper.
533
770937fd
JM
5342011-04-23 Jim Meyering <meyering@redhat.com>
535
536 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
537
eb601ae1
EB
5382011-04-22 Eric Botcazou <ebotcazou@adacore.com>
539
540 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
541 onto the new type.
542
7d7fcb08
EB
5432011-04-22 Eric Botcazou <ebotcazou@adacore.com>
544
545 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
546 parameter.
547 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
548 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
549 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
550 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
551 <all>: Do not set flags on the reused DECL node coming from an alias.
552 Set DECL_IGNORED_P on the DECL node built for subprograms if they
553 don't need debug info here...
554 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
555 (gigi): Adjust calls to create_subprog_decl.
556 (build_raise_check): Likewise.
557 (establish_gnat_vms_condition_handler): Likewise.
558 (Compilation_Unit_to_gnu): Likewise.
559 (gnat_to_gnu): Likewise.
560
e1876cac
EB
5612011-04-21 Eric Botcazou <ebotcazou@adacore.com>
562
563 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
564 (NO_REORDER_ADAFLAGS): New variable.
565 (EXTRA_GNATTOOLS): Always define.
566 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
567 Clean up and adjust list of files compiled with special options.
568 * gcc-interface/Make-lang.in: Likewise.
569 (ada/decl.o): Cosmetical change.
570 (ada/misc.o): Remove dependency on $(PLUGIN_H).
571
04695783
JM
5722011-04-20 Jim Meyering <meyering@redhat.com>
573
574 * initialize.c (__gnat_initialize): Remove useless if-before-free.
575
23399579
EB
5762011-04-17 Eric Botcazou <ebotcazou@adacore.com>
577
578 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
579 $(CFLAGS) on the link line.
580
51c5169c
EB
5812011-04-17 Eric Botcazou <ebotcazou@adacore.com>
582
583 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
584 padded type built for the return type if it is unconstrained.
585
61e46a7d
NF
5862011-04-14 Nathan Froyd <froydnj@codesourcery.com>
587
588 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
589
81f653d6
NF
5902011-04-12 Nathan Froyd <froydnj@codesourcery.com>
591
b4867846
EB
592 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
593 before calling TREE_CHAIN.
81f653d6
NF
594 * gcc-interface/misc.c (gnat_init_ts): New function.
595 (LANG_HOOKS_INIT_TS): Define.
596
a358e188
MJ
5972011-04-12 Martin Jambor <mjambor@suse.cz>
598
b4867846
EB
599 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
600 instead of cgraph_node.
a358e188 601
29b1c5a4
EB
6022011-04-08 Eric Botcazou <ebotcazou@adacore.com>
603
604 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
605 alignment on fields of the RETURN type built for the Copy-In Copy-Out
606 mechanism.
607
88872b00
EB
6082011-04-08 Eric Botcazou <ebotcazou@adacore.com>
609
610 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
611 of aggregate types that contain a placeholder.
612
dcf0c47e
NF
6132011-04-08 Nathan Froyd <froydnj@codesourcery.com>
614
615 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
b4867846 616 TYPE_ARG_TYPES.
dcf0c47e
NF
617 (handle_type_generic_attribute): Likewise.
618
53e3000c
EB
6192011-04-04 Eric Botcazou <ebotcazou@adacore.com>
620
621 PR ada/47163
622 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
623
ab380bb4
KT
6242011-04-04 Kai Tietz <ktietz@redhat.com>
625
626 PR ada/47163
0bad0e23
EB
627 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
628 to flag value.
ab380bb4 629
8ffac116
EB
6302011-04-02 Eric Botcazou <ebotcazou@adacore.com>
631
632 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
633 type case, do not strip a padding type around the array type.
634
de9528f0
EB
6352011-04-02 Eric Botcazou <ebotcazou@adacore.com>
636
637 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
638 types.
639
d9d7a26c
EB
6402011-04-02 Eric Botcazou <ebotcazou@adacore.com>
641
642 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
643 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
de9528f0 644 code for -feliminate-unused-debug-types.
d9d7a26c
EB
645 (gnat_post_options): Likewise.
646
4cb12a90
EB
6472011-04-02 Eric Botcazou <ebotcazou@adacore.com>
648
649 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
650 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
651 distinct copy.
652
acccc61c
EB
6532011-04-02 Eric Botcazou <ebotcazou@adacore.com>
654
655 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
656 DECL_ARTIFICIAL flag on enumeration types.
657
583eb0c9
EB
6582011-04-02 Eric Botcazou <ebotcazou@adacore.com>
659
660 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
661 fat pointer types artificial unconditionally.
662 <E_Array_Subtype>: Attach the base array type as a parallel type if it
663 isn't artificial.
664
e3edbd56
EB
6652011-04-02 Eric Botcazou <ebotcazou@adacore.com>
666
667 * gcc-interface/gigi.h (get_dummy_type): Declare.
668 (build_dummy_unc_pointer_types): Likewise.
669 (finish_fat_pointer_type): Likewise.
670 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
671 fat pointer type has been built, complete it in place.
672 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
673 and thin pointers. Remove useless variable.
674 (finish_fat_pointer_type): Make global and move to...
675 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
676 (get_dummy_type): New function.
677 (build_dummy_unc_pointer_types): Likewise.
678 (gnat_pushdecl): Propage the name to the anonymous variants only.
679 (update_pointer_to): Only adjust the pointer types in the unconstrained
680 array case.
681
65444786
EB
6822011-04-02 Eric Botcazou <ebotcazou@adacore.com>
683
684 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
685 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
686 if this is a Taft amendment type and the full declaration is available.
687 * gcc-interface/trans.c (process_type): Likewise.
688 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
689 (process_freeze_entity): Likewise.
690 * gcc-interface/utils.c (dummy_global): New static variable.
691 (gnat_write_global_declarations): If there are types declared as used
692 at the global level, insert them in the global hash table.
693
1aeb40dd
EB
6942011-04-02 Eric Botcazou <ebotcazou@adacore.com>
695
696 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
697 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
698 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
699 copy.
700 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
701 flag of the type accordingly.
702 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
703
80ec8b4c
EB
7042011-04-02 Eric Botcazou <ebotcazou@adacore.com>
705
706 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
707 finalizing types when updating the pointers to the designated type.
708 <all>: Finalize the deferred types even if we didn't defer processing
709 of incomplete types in this invocation.
710
2a9d769a
OH
7112011-04-01 Olivier Hainque <hainque@adacore.com>
712 Nicolas Setton <setton@adacore.com>
713 Eric Botcazou <ebotcazou@adacore.com>
714
715 * gcc-interface/misc.c (gnat_descriptive_type): New function.
716 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
717
2438d7a6
KT
7182011-03-28 Kai Tietz <ktietz@redhat.com>
719
333d8aff 720 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
80ec8b4c
EB
721 Windows targets.
722 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
723 * system-mingw.ads (System): Change ZCX_By_Default default to True.
333d8aff 724
80ec8b4c 725 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
2438d7a6 726
8ad150f6
TG
7272011-03-28 Tristan Gingold <gingold@adacore.com>
728
729 PR ada/44431
80ec8b4c
EB
730 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
731 Use ada output of gnatbind.
8ad150f6
TG
732 (ada/b_gnatb.adb): Ditto.
733 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
734 (ada.mostlyclean, ada.stage1)
735 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
736 (ada.stagefeedback): Adjust.
80ec8b4c 737 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
8ad150f6
TG
738 Use ada output of gnatbind.
739 (b_gnatm.adb): Ditto.
740 (b_gnatl.o, b_gnatm.o): New rules.
741
51c7954d
EB
7422011-03-26 Eric Botcazou <ebotcazou@adacore.com>
743
744 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
745 for the padded type built to support a specified size or alignment.
746
6ddf9843
EB
7472011-03-26 Eric Botcazou <ebotcazou@adacore.com>
748
749 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
750 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
751 unconditionally to the end of the unit when the designated type is
752 limited_with'ed.
753 <all>: Rename local variable. Attempt to un-defer types only and do it
754 for limited_with'ed types as well.
755 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
756 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
757 consistently and remove redundant call to finalize_from_with_types.
758
5daed84a
EB
7592011-03-26 Eric Botcazou <ebotcazou@adacore.com>
760
761 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
762 subprograms without a previous spec declared in the same unit.
763 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
764 subprograms at the end of the unit instead of at the beginning.
765 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
766 isn't public for the special handling of non-inline functions nested
767 inside inline external functions.
768
0edf1bb2
JL
7692011-03-25 Jeff Law <law@redhat.com>
770
5daed84a 771 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
0edf1bb2 772
e3c4580e
EB
7732011-03-24 Eric Botcazou <ebotcazou@adacore.com>
774
775 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
776 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
777 to compute Set_Size_Depends_On_Discriminant.
778 (Layout_Type): Call it on array types in back-end layout mode.
779 * sem_util.adb (Requires_Transient_Scope): Return true for array
780 types only if the size depends on the value of discriminants.
781 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
782 type if the RHS is a call to a function that returns an unconstrained
783 type with default discriminant.
784
abbc8c7b
EB
7852011-03-24 Eric Botcazou <ebotcazou@adacore.com>
786
787 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
788 non-conversion to the nominal result type at the end.
789
ddb5a105
EB
7902011-03-23 Eric Botcazou <ebotcazou@adacore.com>
791
792 * gcc-interface/trans.c (create_temporary): New function taken from...
793 (create_init_temporary): ...here. Call it.
794 (call_to_gnu): Create the temporary for the return value early, if any.
795 Create it for a function with copy-in/copy-out parameters if there is
796 no target; in other cases of copy-in/copy-out, use another temporary.
797 Push the new binding level lazily. Add and rename local variables.
798
0d853156
EB
7992011-03-23 Eric Botcazou <ebotcazou@adacore.com>
800
801 * gcc-interface/decl.c (validate_size): Improve comments and tweak
802 error message.
803 (set_rm_size): Likewise.
804
4184ef1b
EB
8052011-03-23 Eric Botcazou <ebotcazou@adacore.com>
806
807 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
808 for the padded type built in order to support a specified alignment.
809 Fix incorrect formatting.
810
bf7eefab
EB
8112011-03-21 Eric Botcazou <ebotcazou@adacore.com>
812
813 PR bootstrap/48216
814 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
815
ef0feeb2
EB
8162011-03-21 Eric Botcazou <ebotcazou@adacore.com>
817
818 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
819 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
820 to the end of the list. Adjust recursive call. Rename local variable.
821 If REORDER is true, reorder components of the record type.
822 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
823 components_to_record and adjust the parameter list.
824
646f9414
EB
8252011-03-21 Eric Botcazou <ebotcazou@adacore.com>
826
827 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
828 disabled, use the variable for bounds of loop iteration scheme.
829
62d784f7
KT
8302011-03-21 Kai Tietz <ktietz@redhat.com>
831
832 PR target/12171
0bad0e23 833 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
62d784f7 834
f230d759
EB
8352011-03-17 Eric Botcazou <ebotcazou@adacore.com>
836
837 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
838 out whether the expression is read-only. Short-circuit placeholder
839 case and rename a couple of local variables.
840
bb1f7929
EB
8412011-03-17 Eric Botcazou <ebotcazou@adacore.com>
842
843 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
844 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
845 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
846 (convert): Deal with conversions from a smaller form type specially.
847
400a2d24
EB
8482011-02-14 Eric Botcazou <ebotcazou@adacore.com>
849
850 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
851 its argument, except for the special -I- switch.
852
c26bc3ad
GP
8532011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
854
0bad0e23
EB
855 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
856 "Ada Issues".
c26bc3ad 857
07b8e910
EB
8582011-02-08 Eric Botcazou <ebotcazou@adacore.com>
859
860 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
861
31a5a547
EB
8622011-02-03 Eric Botcazou <ebotcazou@adacore.com>
863
864 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
865 GNAT_FORMAL.
866 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
867 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
868 instead of GNAT_FORMAL. Protect the expression against multiple uses.
869 Do not generate the check directly, instead instantiate the template
870 check present in the descriptor.
871 (make_descriptor_field): Move around.
872 (build_vms_descriptor32): Build a template check in the POINTER field.
873 (build_vms_descriptor): Remove useless suffixes.
874 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
875
dcf25f59
EB
8762011-01-26 Eric Botcazou <ebotcazou@adacore.com>
877
878 PR bootstrap/47467
879 * targext.c: Include target files if IN_RTS is defined.
880
0418e131
RG
8812011-01-26 Richard Guenther <rguenther@suse.de>
882
883 PR bootstrap/47467
884 * targext.c: Include config.h.
885 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
886 dependency.
887
c6eecbd8
PO
8882011-01-04 Pascal Obry <obry@adacore.com>
889 Eric Botcazou <ebotcazou@adacore.com>
890
891 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
892
2d3c7e4f
EB
8932011-01-04 Eric Botcazou <ebotcazou@adacore.com>
894
895 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
896 end-of-case on the end label and its associated gotos, if any.
897
0394741f
EB
8982011-01-04 Eric Botcazou <ebotcazou@adacore.com>
899
900 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
901 expressions of the parameter cache within the statement group of
902 the CICO mechanism.
903
2a02d090
OH
9042011-01-04 Olivier Hainque <hainque@adacore.com>
905 Eric Botcazou <ebotcazou@adacore.com>
906
907 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
908 (set_end_locus_from_node): New function.
909 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
910 make and the function end_locus.
911 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
912 for the elaboration subprogram.
913 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
914 set the end_locus of the expression as well.
915
89f5e978
EB
9162011-01-04 Eric Botcazou <ebotcazou@adacore.com>
917
918 PR ada/47131
919 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
920 variables that are referenced in exception handlers volatile.
921
922
ad41bd84 923\f
797103eb 924Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
925
926Copying and distribution of this file, with or without modification,
927are permitted in any medium without royalty provided the copyright
928notice and this notice are preserved.