]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ada/ChangeLog
Remove unused debug_str_hash_forced from dwarf2out.
[thirdparty/gcc.git] / gcc / ada / ChangeLog
CommitLineData
c1fd8753
NF
12011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2 Eric Botcazou <ebotcazou@adacore.com>
3
4 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
5 of build_function_type. Adjust calls to...
6 (build_raise_check): ...this. Do not take a void_tree parameter.
7 Call build_function_type_list instead of build_function_type.
8 Fix head comment and swap couple of conditional blocks.
9
4fb87d2b
EB
102011-04-30 Eric Botcazou <ebotcazou@adacore.com>
11
12 * gnatvsn.ads (Library_Version): Bump to 4.7.
13 (Current_Year): Bump to 2011.
14
fa5e5a76
MM
152011-04-29 Michael Matz <matz@suse.de>
16
17 * gcc-interface/misc.c (gnat_handle_option): Set
18 warn_maybe_uninitialized.
19
8d6a2f69
GP
202011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
21
22 * gnat_ugn.texi (Complexity Metrics Control): Update link to
23 the Watson/McCabe paper.
24
770937fd
JM
252011-04-23 Jim Meyering <meyering@redhat.com>
26
27 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
28
eb601ae1
EB
292011-04-22 Eric Botcazou <ebotcazou@adacore.com>
30
31 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
32 onto the new type.
33
7d7fcb08
EB
342011-04-22 Eric Botcazou <ebotcazou@adacore.com>
35
36 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
37 parameter.
38 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
39 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
40 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
41 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
42 <all>: Do not set flags on the reused DECL node coming from an alias.
43 Set DECL_IGNORED_P on the DECL node built for subprograms if they
44 don't need debug info here...
45 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
46 (gigi): Adjust calls to create_subprog_decl.
47 (build_raise_check): Likewise.
48 (establish_gnat_vms_condition_handler): Likewise.
49 (Compilation_Unit_to_gnu): Likewise.
50 (gnat_to_gnu): Likewise.
51
e1876cac
EB
522011-04-21 Eric Botcazou <ebotcazou@adacore.com>
53
54 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
55 (NO_REORDER_ADAFLAGS): New variable.
56 (EXTRA_GNATTOOLS): Always define.
57 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
58 Clean up and adjust list of files compiled with special options.
59 * gcc-interface/Make-lang.in: Likewise.
60 (ada/decl.o): Cosmetical change.
61 (ada/misc.o): Remove dependency on $(PLUGIN_H).
62
04695783
JM
632011-04-20 Jim Meyering <meyering@redhat.com>
64
65 * initialize.c (__gnat_initialize): Remove useless if-before-free.
66
23399579
EB
672011-04-17 Eric Botcazou <ebotcazou@adacore.com>
68
69 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
70 $(CFLAGS) on the link line.
71
51c5169c
EB
722011-04-17 Eric Botcazou <ebotcazou@adacore.com>
73
74 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
75 padded type built for the return type if it is unconstrained.
76
61e46a7d
NF
772011-04-14 Nathan Froyd <froydnj@codesourcery.com>
78
79 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
80
81f653d6
NF
812011-04-12 Nathan Froyd <froydnj@codesourcery.com>
82
b4867846
EB
83 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
84 before calling TREE_CHAIN.
81f653d6
NF
85 * gcc-interface/misc.c (gnat_init_ts): New function.
86 (LANG_HOOKS_INIT_TS): Define.
87
a358e188
MJ
882011-04-12 Martin Jambor <mjambor@suse.cz>
89
b4867846
EB
90 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
91 instead of cgraph_node.
a358e188 92
29b1c5a4
EB
932011-04-08 Eric Botcazou <ebotcazou@adacore.com>
94
95 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
96 alignment on fields of the RETURN type built for the Copy-In Copy-Out
97 mechanism.
98
88872b00
EB
992011-04-08 Eric Botcazou <ebotcazou@adacore.com>
100
101 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
102 of aggregate types that contain a placeholder.
103
dcf0c47e
NF
1042011-04-08 Nathan Froyd <froydnj@codesourcery.com>
105
106 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
b4867846 107 TYPE_ARG_TYPES.
dcf0c47e
NF
108 (handle_type_generic_attribute): Likewise.
109
53e3000c
EB
1102011-04-04 Eric Botcazou <ebotcazou@adacore.com>
111
112 PR ada/47163
113 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
114
ab380bb4
KT
1152011-04-04 Kai Tietz <ktietz@redhat.com>
116
117 PR ada/47163
118 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows
119 targets to flag value.
120
8ffac116
EB
1212011-04-02 Eric Botcazou <ebotcazou@adacore.com>
122
123 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
124 type case, do not strip a padding type around the array type.
125
de9528f0
EB
1262011-04-02 Eric Botcazou <ebotcazou@adacore.com>
127
128 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
129 types.
130
d9d7a26c
EB
1312011-04-02 Eric Botcazou <ebotcazou@adacore.com>
132
133 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
134 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
de9528f0 135 code for -feliminate-unused-debug-types.
d9d7a26c
EB
136 (gnat_post_options): Likewise.
137
4cb12a90
EB
1382011-04-02 Eric Botcazou <ebotcazou@adacore.com>
139
140 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
141 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
142 distinct copy.
143
acccc61c
EB
1442011-04-02 Eric Botcazou <ebotcazou@adacore.com>
145
146 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
147 DECL_ARTIFICIAL flag on enumeration types.
148
583eb0c9
EB
1492011-04-02 Eric Botcazou <ebotcazou@adacore.com>
150
151 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
152 fat pointer types artificial unconditionally.
153 <E_Array_Subtype>: Attach the base array type as a parallel type if it
154 isn't artificial.
155
e3edbd56
EB
1562011-04-02 Eric Botcazou <ebotcazou@adacore.com>
157
158 * gcc-interface/gigi.h (get_dummy_type): Declare.
159 (build_dummy_unc_pointer_types): Likewise.
160 (finish_fat_pointer_type): Likewise.
161 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
162 fat pointer type has been built, complete it in place.
163 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
164 and thin pointers. Remove useless variable.
165 (finish_fat_pointer_type): Make global and move to...
166 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
167 (get_dummy_type): New function.
168 (build_dummy_unc_pointer_types): Likewise.
169 (gnat_pushdecl): Propage the name to the anonymous variants only.
170 (update_pointer_to): Only adjust the pointer types in the unconstrained
171 array case.
172
65444786
EB
1732011-04-02 Eric Botcazou <ebotcazou@adacore.com>
174
175 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
176 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
177 if this is a Taft amendment type and the full declaration is available.
178 * gcc-interface/trans.c (process_type): Likewise.
179 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
180 (process_freeze_entity): Likewise.
181 * gcc-interface/utils.c (dummy_global): New static variable.
182 (gnat_write_global_declarations): If there are types declared as used
183 at the global level, insert them in the global hash table.
184
1aeb40dd
EB
1852011-04-02 Eric Botcazou <ebotcazou@adacore.com>
186
187 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
188 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
189 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
190 copy.
191 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
192 flag of the type accordingly.
193 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
194
80ec8b4c
EB
1952011-04-02 Eric Botcazou <ebotcazou@adacore.com>
196
197 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
198 finalizing types when updating the pointers to the designated type.
199 <all>: Finalize the deferred types even if we didn't defer processing
200 of incomplete types in this invocation.
201
2a9d769a
OH
2022011-04-01 Olivier Hainque <hainque@adacore.com>
203 Nicolas Setton <setton@adacore.com>
204 Eric Botcazou <ebotcazou@adacore.com>
205
206 * gcc-interface/misc.c (gnat_descriptive_type): New function.
207 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
208
2438d7a6
KT
2092011-03-28 Kai Tietz <ktietz@redhat.com>
210
333d8aff 211 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
80ec8b4c
EB
212 Windows targets.
213 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
214 * system-mingw.ads (System): Change ZCX_By_Default default to True.
333d8aff 215
80ec8b4c 216 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
2438d7a6 217
8ad150f6
TG
2182011-03-28 Tristan Gingold <gingold@adacore.com>
219
220 PR ada/44431
80ec8b4c
EB
221 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
222 Use ada output of gnatbind.
8ad150f6
TG
223 (ada/b_gnatb.adb): Ditto.
224 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
225 (ada.mostlyclean, ada.stage1)
226 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
227 (ada.stagefeedback): Adjust.
80ec8b4c 228 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
8ad150f6
TG
229 Use ada output of gnatbind.
230 (b_gnatm.adb): Ditto.
231 (b_gnatl.o, b_gnatm.o): New rules.
232
51c7954d
EB
2332011-03-26 Eric Botcazou <ebotcazou@adacore.com>
234
235 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
236 for the padded type built to support a specified size or alignment.
237
6ddf9843
EB
2382011-03-26 Eric Botcazou <ebotcazou@adacore.com>
239
240 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
241 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
242 unconditionally to the end of the unit when the designated type is
243 limited_with'ed.
244 <all>: Rename local variable. Attempt to un-defer types only and do it
245 for limited_with'ed types as well.
246 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
247 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
248 consistently and remove redundant call to finalize_from_with_types.
249
5daed84a
EB
2502011-03-26 Eric Botcazou <ebotcazou@adacore.com>
251
252 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
253 subprograms without a previous spec declared in the same unit.
254 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
255 subprograms at the end of the unit instead of at the beginning.
256 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
257 isn't public for the special handling of non-inline functions nested
258 inside inline external functions.
259
0edf1bb2
JL
2602011-03-25 Jeff Law <law@redhat.com>
261
5daed84a 262 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
0edf1bb2 263
e3c4580e
EB
2642011-03-24 Eric Botcazou <ebotcazou@adacore.com>
265
266 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
267 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
268 to compute Set_Size_Depends_On_Discriminant.
269 (Layout_Type): Call it on array types in back-end layout mode.
270 * sem_util.adb (Requires_Transient_Scope): Return true for array
271 types only if the size depends on the value of discriminants.
272 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
273 type if the RHS is a call to a function that returns an unconstrained
274 type with default discriminant.
275
abbc8c7b
EB
2762011-03-24 Eric Botcazou <ebotcazou@adacore.com>
277
278 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
279 non-conversion to the nominal result type at the end.
280
ddb5a105
EB
2812011-03-23 Eric Botcazou <ebotcazou@adacore.com>
282
283 * gcc-interface/trans.c (create_temporary): New function taken from...
284 (create_init_temporary): ...here. Call it.
285 (call_to_gnu): Create the temporary for the return value early, if any.
286 Create it for a function with copy-in/copy-out parameters if there is
287 no target; in other cases of copy-in/copy-out, use another temporary.
288 Push the new binding level lazily. Add and rename local variables.
289
0d853156
EB
2902011-03-23 Eric Botcazou <ebotcazou@adacore.com>
291
292 * gcc-interface/decl.c (validate_size): Improve comments and tweak
293 error message.
294 (set_rm_size): Likewise.
295
4184ef1b
EB
2962011-03-23 Eric Botcazou <ebotcazou@adacore.com>
297
298 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
299 for the padded type built in order to support a specified alignment.
300 Fix incorrect formatting.
301
bf7eefab
EB
3022011-03-21 Eric Botcazou <ebotcazou@adacore.com>
303
304 PR bootstrap/48216
305 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
306
ef0feeb2
EB
3072011-03-21 Eric Botcazou <ebotcazou@adacore.com>
308
309 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
310 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
311 to the end of the list. Adjust recursive call. Rename local variable.
312 If REORDER is true, reorder components of the record type.
313 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
314 components_to_record and adjust the parameter list.
315
646f9414
EB
3162011-03-21 Eric Botcazou <ebotcazou@adacore.com>
317
318 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
319 disabled, use the variable for bounds of loop iteration scheme.
320
62d784f7
KT
3212011-03-21 Kai Tietz <ktietz@redhat.com>
322
323 PR target/12171
646f9414 324 * gcc-interface/utils.c (gnat_internal_attribute_table): Add new column
62d784f7 325
f230d759
EB
3262011-03-17 Eric Botcazou <ebotcazou@adacore.com>
327
328 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
329 out whether the expression is read-only. Short-circuit placeholder
330 case and rename a couple of local variables.
331
bb1f7929
EB
3322011-03-17 Eric Botcazou <ebotcazou@adacore.com>
333
334 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
335 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
336 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
337 (convert): Deal with conversions from a smaller form type specially.
338
400a2d24
EB
3392011-02-14 Eric Botcazou <ebotcazou@adacore.com>
340
341 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
342 its argument, except for the special -I- switch.
343
c26bc3ad
GP
3442011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
345
346 * gnat_ugn.texi (Compiling Different Versions of Ada): Update
347 link to "Ada Issues".
348
07b8e910
EB
3492011-02-08 Eric Botcazou <ebotcazou@adacore.com>
350
351 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
352
31a5a547
EB
3532011-02-03 Eric Botcazou <ebotcazou@adacore.com>
354
355 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
356 GNAT_FORMAL.
357 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
358 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
359 instead of GNAT_FORMAL. Protect the expression against multiple uses.
360 Do not generate the check directly, instead instantiate the template
361 check present in the descriptor.
362 (make_descriptor_field): Move around.
363 (build_vms_descriptor32): Build a template check in the POINTER field.
364 (build_vms_descriptor): Remove useless suffixes.
365 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
366
dcf25f59
EB
3672011-01-26 Eric Botcazou <ebotcazou@adacore.com>
368
369 PR bootstrap/47467
370 * targext.c: Include target files if IN_RTS is defined.
371
0418e131
RG
3722011-01-26 Richard Guenther <rguenther@suse.de>
373
374 PR bootstrap/47467
375 * targext.c: Include config.h.
376 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
377 dependency.
378
c6eecbd8
PO
3792011-01-04 Pascal Obry <obry@adacore.com>
380 Eric Botcazou <ebotcazou@adacore.com>
381
382 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
383
2d3c7e4f
EB
3842011-01-04 Eric Botcazou <ebotcazou@adacore.com>
385
386 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
387 end-of-case on the end label and its associated gotos, if any.
388
0394741f
EB
3892011-01-04 Eric Botcazou <ebotcazou@adacore.com>
390
391 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
392 expressions of the parameter cache within the statement group of
393 the CICO mechanism.
394
2a02d090
OH
3952011-01-04 Olivier Hainque <hainque@adacore.com>
396 Eric Botcazou <ebotcazou@adacore.com>
397
398 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
399 (set_end_locus_from_node): New function.
400 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
401 make and the function end_locus.
402 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
403 for the elaboration subprogram.
404 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
405 set the end_locus of the expression as well.
406
89f5e978
EB
4072011-01-04 Eric Botcazou <ebotcazou@adacore.com>
408
409 PR ada/47131
410 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
411 variables that are referenced in exception handlers volatile.
412
413
ad41bd84 414\f
797103eb 415Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
416
417Copying and distribution of this file, with or without modification,
418are permitted in any medium without royalty provided the copyright
419notice and this notice are preserved.