]> gcc.gnu.org Git - gcc.git/blame - gcc/ada/ChangeLog
gigi.h (build_function_stub): Remove.
[gcc.git] / gcc / ada / ChangeLog
CommitLineData
f3d34576
EB
12011-07-24 Eric Botcazou <ebotcazou@adacore.com>
2
3 * gcc-interface/gigi.h (build_function_stub): Remove.
4 (build_return_expr): Likewise.
5 (convert_vms_descriptor): Declare.
6 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
7 (build_function_stub): Move to...
8 * gcc-interface/utils2.c (build_return_expr): Move to...
9 * gcc-interface/trans.c (build_function_stub): ...here.
10 (build_return_expr): ...here.
11 (Subprogram_Body_to_gnu): Add local variable for language_function.
12 Disconnect the parameter attributes cache, if any, once done with it.
13 Call end_subprog_body only after setting the end_locus.
14 Build the stub associated with the function, if any, at the very end.
15 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
16 variables and streamline control flow.
17
0a6ecc08
AC
182011-07-23 Arnaud Charlet <charlet@adacore.com>
19
20 PR ada/49819
21 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
22 g-trasym-dwarf.adb.
23
5b6d595b
RO
242011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25
26 PR bootstrap/49794
27 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
28 Assign to act.sa_sigaction.
29 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
30 current->return_address to char * before arithmetic.
31
94017021
RO
322011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33
34 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
35 Correct argument types.
36 Extract code from reason.
37 (__gnat_install_handler): Assign to act.sa_sigaction.
38
52fd02bb
EB
392011-07-21 Eric Botcazou <ebotcazou@adacore.com>
40
41 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
42 (GNAT1_OBJS): ...here.
43
f39a9ca2
EB
442011-07-15 Eric Botcazou <ebotcazou@adacore.com>
45
46 PR ada/48711
47 * g-socthi-mingw.adb (Fill): Fix formatting.
48
9e36aa23
EB
49 * gcc-interface/gigi.h: Move around comment.
50
e3aca522
JDA
512011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
52
53 PR ada/46350
54 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
55
696b1960
FW
562011-07-14 Florian Weimer <fw@deneb.enyo.de>
57
58 PR ada/48711
59 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
60
f542c405
EB
612011-07-13 Eric Botcazou <ebotcazou@adacore.com>
62
63 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
64 range comparison if Pmode is SImode.
65
9e9bd455
LG
662011-07-12 Laurent GUERBY <laurent@guerby.net>
67 Eric Botcazou <ebotcazou@adacore.com>
68
69 * adadecode.c: Wrap up in extern "C" block.
70 * adadecode.h: Likewise.
71 * adaint.c: Likewise. Remove 'const' keyword.
72 * adaint.h: Likewise.
73 * argv.c: Likewise.
74 * atree.h: Likewise.
75 * cio.c: Likewise.
76 * cstreams.c: Likewise.
77 * env.c: Likewise.
78 * exit.c: Likewise.
79 * fe.h: Likewise.
80 * final.c: Likewise.
81 * init.c: Likewise.
82 * initialize.c: Likewise.
83 * link.c: Likewise.
84 * namet.h: Likewise.
85 * nlists.h: Likewise.
86 * raise.c: Likewise.
87 * raise.h: Likewise.
88 * repinfo.h: Likewise.
89 * seh_init.c: Likewise.
90 * targext.c: Likewise.
91 * tracebak.c: Likewise.
92 * uintp.h: Likewise.
93 * urealp.h: Likewise.
94 * xeinfo.adb: Wrap up generated C code in extern "C" block.
95 * xsinfo.adb: Likewise.
96 * xsnamest.adb: Likewise.
97 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
98 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
99 * gcc-interface/misc.c: Likewise.
100 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
101 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
102 ada/targext.o here...
103 (GNAT_ADA_OBJS): ...and not here.
104 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
105 (GNATBIND_OBJS): Reorder.
106
7644b3c7
RH
1072011-07-07 Richard Henderson <rth@redhat.com>
108
109 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
110 dwarf2out_frame_init.
111
8384ac41
EB
1122011-07-07 Eric Botcazou <ebotcazou@adacore.com>
113
114 * gcc-interface/misc.c (gnat_init): Tweak previous change.
115
fbdd5d87
RO
1162011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
117
118 PR target/39150
119 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
120
1a072294
RG
1212011-07-06 Richard Guenther <rguenther@suse.de>
122
8384ac41
EB
123 * gcc-interface/misc.c (gnat_init): Merge calls to
124 build_common_tree_nodes and build_common_tree_nodes_2.
1a072294
RG
125 Re-initialize boolean_false_node.
126
bc712852
EB
1272011-07-02 Eric Botcazou <ebotcazou@adacore.com>
128 Olivier Hainque <hainque@adacore.com>
129 Nicolas Setton <setton@adacore.com>
130
131 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
132 the type according to the ARTIFICIAL_P parameter.
133 (create_type_decl): Likewise.
134 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
135
2eb22389
EB
1362011-07-01 Eric Botcazou <ebotcazou@adacore.com>
137
138 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
139 (gnatbind): Likewise.
140
4bdaaf2f
RO
1412011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
142
143 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
144
c020c92b
EB
1452011-06-18 Eric Botcazou <ebotcazou@adacore.com>
146
147 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
148 local variable throughout. Remove useless call to Base_Type.
149 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
150 Take it also into account for the volatileness of the field. Set the
151 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
152
96769d32
EB
1532011-06-18 Eric Botcazou <ebotcazou@adacore.com>
154
155 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
156 on a dereference built for a by-ref object if it has an address clause.
157
7e4680c1
EB
1582011-06-18 Eric Botcazou <ebotcazou@adacore.com>
159
160 * einfo.ads (Address_Taken): Document use for the second argument of
161 Asm_Input and Asm_Output attributes.
162 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
163 argument is an entity name, then set Address_Taken on it.
164 <Attribute_Asm_Output>: Likewise.
165 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
166 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
167 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
168 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
169
1702011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
171
172 PR middle-end/46500
173 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
174
677f3fa8
JM
1752011-06-14 Joseph Myers <joseph@codesourcery.com>
176
177 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
178 (ada/utils.o): Update dependencies.
179 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
180 ../../../libcpp/libcpp.a.
181 * gcc-interface/utils.c: Include common/common-target.h.
182 (process_attributes): Use targetm_common.have_named_sections.
183
009db074
RG
1842011-06-07 Richard Guenther <rguenther@suse.de>
185
0bad0e23
EB
186 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
187 set_sizetype.
009db074 188
3bfc61cf
EB
1892011-06-06 Eric Botcazou <ebotcazou@adacore.com>
190
0bad0e23 191 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
3bfc61cf
EB
192 TREE_THIS_NOTRAP flag.
193
5c4a1c7b
EB
1942011-06-06 Eric Botcazou <ebotcazou@adacore.com>
195
196 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
197 Fix thinko.
198
e9f57686
EB
1992011-06-06 Eric Botcazou <ebotcazou@adacore.com>
200
201 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
202 constants whose full view has discriminants specially.
203
10e4d056
EB
2042011-06-06 Eric Botcazou <ebotcazou@adacore.com>
205
206 * gcc-interface/utils.c: Include diagnostic.h.
207 (gnat_write_global_declarations): Output debug information for all
208 global type declarations before finalizing the compilation unit.
209 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
210
0957c029
JJ
2112011-05-25 Jakub Jelinek <jakub@redhat.com>
212
213 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
214
52d0a7ac
KT
2152011-05-25 Kai Tietz <ktietz@redhat.com>
216
217 * adaint.c (__gnat_to_canonical_file_list_next): Use array
218 initialization instead of const/none-const pointer assignment.
219
1ed1641d
JM
2202011-05-24 Joseph Myers <joseph@codesourcery.com>
221
222 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
223 $(EXTRA_GNAT1_OBJS).
224 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
225 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
226 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
227 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
228 libcommon-target.a instead of prefix.o.
229
9fe72ebd
JM
2302011-05-21 Joseph Myers <joseph@codesourcery.com>
231
232 PR ada/49097
0bad0e23 233 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
9fe72ebd 234
2691e6d7
JM
2352011-05-20 Joseph Myers <joseph@codesourcery.com>
236
0bad0e23
EB
237 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
238 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
239 instead of version.o.
2691e6d7 240
bf6490b5
KT
2412011-05-18 Kai Tietz <ktietz@redhat.com>
242
243 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
244 boolean_false_node instead of integer_zero_node.
245 (convert_with_check): Likewise.
246 * gcc-interface/decl.c (choices_to_gnu): Likewise.
247
7bf9a5ac
EB
2482011-05-12 Eric Botcazou <ebotcazou@adacore.com>
249
250 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
251 type of the parameter is an unconstrained array, convert the actual to
252 the type of the formal in the In Out and Out cases as well.
253
e5b00edf
NF
2542011-05-11 Nathan Froyd <froydnj@codesourcery.com>
255
256 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
257 call build_function_type_array or build_varargs_function_type_array
258 instead.
259 (create_subprog_type): Don't call build_function_type; call
260 build_function_type_vec instead.
261
51545682
NF
2622011-05-11 Nathan Froyd <froydnj@codesourcery.com>
263
264 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
265 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
266 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
267
c99c0026
EB
2682011-05-07 Eric Botcazou <ebotcazou@adacore.com>
269
f620bd21
EB
270 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
271
c99c0026
EB
272 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
273 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
274
3d528853
NF
2752011-05-05 Nathan Froyd <froydnj@codesourcery.com>
276
c99c0026 277 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
3d528853 278
d7d058c5
NF
2792011-05-05 Nathan Froyd <froydnj@codesourcery.com>
280
281 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
282 instead of accessing TYPE_ARG_TYPES directly.
283 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
284
805e60a0
EB
2852011-05-05 Eric Botcazou <ebotcazou@adacore.com>
286
287 PR ada/48844
288 * gcc-interface/gigi.h (get_variant_part): Declare.
289 * gcc-interface/decl.c (get_variant_part): Make global.
290 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
291 types have the same constant size, are record types and T1 has a
292 variant part while T2 doesn't.
293
907a08d9
EB
2942011-05-05 Eric Botcazou <ebotcazou@adacore.com>
295
296 * gcc-interface/utils.c (begin_subprog_body): Do not call
297 get_pending_sizes.
298 (end_subprog_body): Likewise.
299
d35936ab
RG
3002011-05-04 Richard Guenther <rguenther@suse.de>
301
302 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
303 int_const_binop.
304 (pos_to_constructor): Likewise.
305
c1fd8753
NF
3062011-05-03 Nathan Froyd <froydnj@codesourcery.com>
307 Eric Botcazou <ebotcazou@adacore.com>
308
309 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
310 of build_function_type. Adjust calls to...
311 (build_raise_check): ...this. Do not take a void_tree parameter.
312 Call build_function_type_list instead of build_function_type.
313 Fix head comment and swap couple of conditional blocks.
314
4fb87d2b
EB
3152011-04-30 Eric Botcazou <ebotcazou@adacore.com>
316
317 * gnatvsn.ads (Library_Version): Bump to 4.7.
318 (Current_Year): Bump to 2011.
319
fa5e5a76
MM
3202011-04-29 Michael Matz <matz@suse.de>
321
322 * gcc-interface/misc.c (gnat_handle_option): Set
323 warn_maybe_uninitialized.
324
8d6a2f69
GP
3252011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
326
327 * gnat_ugn.texi (Complexity Metrics Control): Update link to
328 the Watson/McCabe paper.
329
770937fd
JM
3302011-04-23 Jim Meyering <meyering@redhat.com>
331
332 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
333
eb601ae1
EB
3342011-04-22 Eric Botcazou <ebotcazou@adacore.com>
335
336 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
337 onto the new type.
338
7d7fcb08
EB
3392011-04-22 Eric Botcazou <ebotcazou@adacore.com>
340
341 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
342 parameter.
343 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
344 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
345 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
346 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
347 <all>: Do not set flags on the reused DECL node coming from an alias.
348 Set DECL_IGNORED_P on the DECL node built for subprograms if they
349 don't need debug info here...
350 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
351 (gigi): Adjust calls to create_subprog_decl.
352 (build_raise_check): Likewise.
353 (establish_gnat_vms_condition_handler): Likewise.
354 (Compilation_Unit_to_gnu): Likewise.
355 (gnat_to_gnu): Likewise.
356
e1876cac
EB
3572011-04-21 Eric Botcazou <ebotcazou@adacore.com>
358
359 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
360 (NO_REORDER_ADAFLAGS): New variable.
361 (EXTRA_GNATTOOLS): Always define.
362 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
363 Clean up and adjust list of files compiled with special options.
364 * gcc-interface/Make-lang.in: Likewise.
365 (ada/decl.o): Cosmetical change.
366 (ada/misc.o): Remove dependency on $(PLUGIN_H).
367
04695783
JM
3682011-04-20 Jim Meyering <meyering@redhat.com>
369
370 * initialize.c (__gnat_initialize): Remove useless if-before-free.
371
23399579
EB
3722011-04-17 Eric Botcazou <ebotcazou@adacore.com>
373
374 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
375 $(CFLAGS) on the link line.
376
51c5169c
EB
3772011-04-17 Eric Botcazou <ebotcazou@adacore.com>
378
379 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
380 padded type built for the return type if it is unconstrained.
381
61e46a7d
NF
3822011-04-14 Nathan Froyd <froydnj@codesourcery.com>
383
384 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
385
81f653d6
NF
3862011-04-12 Nathan Froyd <froydnj@codesourcery.com>
387
b4867846
EB
388 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
389 before calling TREE_CHAIN.
81f653d6
NF
390 * gcc-interface/misc.c (gnat_init_ts): New function.
391 (LANG_HOOKS_INIT_TS): Define.
392
a358e188
MJ
3932011-04-12 Martin Jambor <mjambor@suse.cz>
394
b4867846
EB
395 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
396 instead of cgraph_node.
a358e188 397
29b1c5a4
EB
3982011-04-08 Eric Botcazou <ebotcazou@adacore.com>
399
400 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
401 alignment on fields of the RETURN type built for the Copy-In Copy-Out
402 mechanism.
403
88872b00
EB
4042011-04-08 Eric Botcazou <ebotcazou@adacore.com>
405
406 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
407 of aggregate types that contain a placeholder.
408
dcf0c47e
NF
4092011-04-08 Nathan Froyd <froydnj@codesourcery.com>
410
411 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
b4867846 412 TYPE_ARG_TYPES.
dcf0c47e
NF
413 (handle_type_generic_attribute): Likewise.
414
53e3000c
EB
4152011-04-04 Eric Botcazou <ebotcazou@adacore.com>
416
417 PR ada/47163
418 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
419
ab380bb4
KT
4202011-04-04 Kai Tietz <ktietz@redhat.com>
421
422 PR ada/47163
0bad0e23
EB
423 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
424 to flag value.
ab380bb4 425
8ffac116
EB
4262011-04-02 Eric Botcazou <ebotcazou@adacore.com>
427
428 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
429 type case, do not strip a padding type around the array type.
430
de9528f0
EB
4312011-04-02 Eric Botcazou <ebotcazou@adacore.com>
432
433 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
434 types.
435
d9d7a26c
EB
4362011-04-02 Eric Botcazou <ebotcazou@adacore.com>
437
438 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
439 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
de9528f0 440 code for -feliminate-unused-debug-types.
d9d7a26c
EB
441 (gnat_post_options): Likewise.
442
4cb12a90
EB
4432011-04-02 Eric Botcazou <ebotcazou@adacore.com>
444
445 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
446 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
447 distinct copy.
448
acccc61c
EB
4492011-04-02 Eric Botcazou <ebotcazou@adacore.com>
450
451 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
452 DECL_ARTIFICIAL flag on enumeration types.
453
583eb0c9
EB
4542011-04-02 Eric Botcazou <ebotcazou@adacore.com>
455
456 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
457 fat pointer types artificial unconditionally.
458 <E_Array_Subtype>: Attach the base array type as a parallel type if it
459 isn't artificial.
460
e3edbd56
EB
4612011-04-02 Eric Botcazou <ebotcazou@adacore.com>
462
463 * gcc-interface/gigi.h (get_dummy_type): Declare.
464 (build_dummy_unc_pointer_types): Likewise.
465 (finish_fat_pointer_type): Likewise.
466 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
467 fat pointer type has been built, complete it in place.
468 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
469 and thin pointers. Remove useless variable.
470 (finish_fat_pointer_type): Make global and move to...
471 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
472 (get_dummy_type): New function.
473 (build_dummy_unc_pointer_types): Likewise.
474 (gnat_pushdecl): Propage the name to the anonymous variants only.
475 (update_pointer_to): Only adjust the pointer types in the unconstrained
476 array case.
477
65444786
EB
4782011-04-02 Eric Botcazou <ebotcazou@adacore.com>
479
480 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
481 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
482 if this is a Taft amendment type and the full declaration is available.
483 * gcc-interface/trans.c (process_type): Likewise.
484 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
485 (process_freeze_entity): Likewise.
486 * gcc-interface/utils.c (dummy_global): New static variable.
487 (gnat_write_global_declarations): If there are types declared as used
488 at the global level, insert them in the global hash table.
489
1aeb40dd
EB
4902011-04-02 Eric Botcazou <ebotcazou@adacore.com>
491
492 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
493 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
494 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
495 copy.
496 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
497 flag of the type accordingly.
498 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
499
80ec8b4c
EB
5002011-04-02 Eric Botcazou <ebotcazou@adacore.com>
501
502 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
503 finalizing types when updating the pointers to the designated type.
504 <all>: Finalize the deferred types even if we didn't defer processing
505 of incomplete types in this invocation.
506
2a9d769a
OH
5072011-04-01 Olivier Hainque <hainque@adacore.com>
508 Nicolas Setton <setton@adacore.com>
509 Eric Botcazou <ebotcazou@adacore.com>
510
511 * gcc-interface/misc.c (gnat_descriptive_type): New function.
512 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
513
2438d7a6
KT
5142011-03-28 Kai Tietz <ktietz@redhat.com>
515
333d8aff 516 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
80ec8b4c
EB
517 Windows targets.
518 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
519 * system-mingw.ads (System): Change ZCX_By_Default default to True.
333d8aff 520
80ec8b4c 521 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
2438d7a6 522
8ad150f6
TG
5232011-03-28 Tristan Gingold <gingold@adacore.com>
524
525 PR ada/44431
80ec8b4c
EB
526 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
527 Use ada output of gnatbind.
8ad150f6
TG
528 (ada/b_gnatb.adb): Ditto.
529 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
530 (ada.mostlyclean, ada.stage1)
531 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
532 (ada.stagefeedback): Adjust.
80ec8b4c 533 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
8ad150f6
TG
534 Use ada output of gnatbind.
535 (b_gnatm.adb): Ditto.
536 (b_gnatl.o, b_gnatm.o): New rules.
537
51c7954d
EB
5382011-03-26 Eric Botcazou <ebotcazou@adacore.com>
539
540 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
541 for the padded type built to support a specified size or alignment.
542
6ddf9843
EB
5432011-03-26 Eric Botcazou <ebotcazou@adacore.com>
544
545 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
546 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
547 unconditionally to the end of the unit when the designated type is
548 limited_with'ed.
549 <all>: Rename local variable. Attempt to un-defer types only and do it
550 for limited_with'ed types as well.
551 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
552 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
553 consistently and remove redundant call to finalize_from_with_types.
554
5daed84a
EB
5552011-03-26 Eric Botcazou <ebotcazou@adacore.com>
556
557 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
558 subprograms without a previous spec declared in the same unit.
559 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
560 subprograms at the end of the unit instead of at the beginning.
561 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
562 isn't public for the special handling of non-inline functions nested
563 inside inline external functions.
564
0edf1bb2
JL
5652011-03-25 Jeff Law <law@redhat.com>
566
5daed84a 567 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
0edf1bb2 568
e3c4580e
EB
5692011-03-24 Eric Botcazou <ebotcazou@adacore.com>
570
571 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
572 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
573 to compute Set_Size_Depends_On_Discriminant.
574 (Layout_Type): Call it on array types in back-end layout mode.
575 * sem_util.adb (Requires_Transient_Scope): Return true for array
576 types only if the size depends on the value of discriminants.
577 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
578 type if the RHS is a call to a function that returns an unconstrained
579 type with default discriminant.
580
abbc8c7b
EB
5812011-03-24 Eric Botcazou <ebotcazou@adacore.com>
582
583 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
584 non-conversion to the nominal result type at the end.
585
ddb5a105
EB
5862011-03-23 Eric Botcazou <ebotcazou@adacore.com>
587
588 * gcc-interface/trans.c (create_temporary): New function taken from...
589 (create_init_temporary): ...here. Call it.
590 (call_to_gnu): Create the temporary for the return value early, if any.
591 Create it for a function with copy-in/copy-out parameters if there is
592 no target; in other cases of copy-in/copy-out, use another temporary.
593 Push the new binding level lazily. Add and rename local variables.
594
0d853156
EB
5952011-03-23 Eric Botcazou <ebotcazou@adacore.com>
596
597 * gcc-interface/decl.c (validate_size): Improve comments and tweak
598 error message.
599 (set_rm_size): Likewise.
600
4184ef1b
EB
6012011-03-23 Eric Botcazou <ebotcazou@adacore.com>
602
603 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
604 for the padded type built in order to support a specified alignment.
605 Fix incorrect formatting.
606
bf7eefab
EB
6072011-03-21 Eric Botcazou <ebotcazou@adacore.com>
608
609 PR bootstrap/48216
610 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
611
ef0feeb2
EB
6122011-03-21 Eric Botcazou <ebotcazou@adacore.com>
613
614 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
615 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
616 to the end of the list. Adjust recursive call. Rename local variable.
617 If REORDER is true, reorder components of the record type.
618 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
619 components_to_record and adjust the parameter list.
620
646f9414
EB
6212011-03-21 Eric Botcazou <ebotcazou@adacore.com>
622
623 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
624 disabled, use the variable for bounds of loop iteration scheme.
625
62d784f7
KT
6262011-03-21 Kai Tietz <ktietz@redhat.com>
627
628 PR target/12171
0bad0e23 629 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
62d784f7 630
f230d759
EB
6312011-03-17 Eric Botcazou <ebotcazou@adacore.com>
632
633 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
634 out whether the expression is read-only. Short-circuit placeholder
635 case and rename a couple of local variables.
636
bb1f7929
EB
6372011-03-17 Eric Botcazou <ebotcazou@adacore.com>
638
639 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
640 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
641 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
642 (convert): Deal with conversions from a smaller form type specially.
643
400a2d24
EB
6442011-02-14 Eric Botcazou <ebotcazou@adacore.com>
645
646 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
647 its argument, except for the special -I- switch.
648
c26bc3ad
GP
6492011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
650
0bad0e23
EB
651 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
652 "Ada Issues".
c26bc3ad 653
07b8e910
EB
6542011-02-08 Eric Botcazou <ebotcazou@adacore.com>
655
656 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
657
31a5a547
EB
6582011-02-03 Eric Botcazou <ebotcazou@adacore.com>
659
660 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
661 GNAT_FORMAL.
662 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
663 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
664 instead of GNAT_FORMAL. Protect the expression against multiple uses.
665 Do not generate the check directly, instead instantiate the template
666 check present in the descriptor.
667 (make_descriptor_field): Move around.
668 (build_vms_descriptor32): Build a template check in the POINTER field.
669 (build_vms_descriptor): Remove useless suffixes.
670 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
671
dcf25f59
EB
6722011-01-26 Eric Botcazou <ebotcazou@adacore.com>
673
674 PR bootstrap/47467
675 * targext.c: Include target files if IN_RTS is defined.
676
0418e131
RG
6772011-01-26 Richard Guenther <rguenther@suse.de>
678
679 PR bootstrap/47467
680 * targext.c: Include config.h.
681 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
682 dependency.
683
c6eecbd8
PO
6842011-01-04 Pascal Obry <obry@adacore.com>
685 Eric Botcazou <ebotcazou@adacore.com>
686
687 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
688
2d3c7e4f
EB
6892011-01-04 Eric Botcazou <ebotcazou@adacore.com>
690
691 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
692 end-of-case on the end label and its associated gotos, if any.
693
0394741f
EB
6942011-01-04 Eric Botcazou <ebotcazou@adacore.com>
695
696 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
697 expressions of the parameter cache within the statement group of
698 the CICO mechanism.
699
2a02d090
OH
7002011-01-04 Olivier Hainque <hainque@adacore.com>
701 Eric Botcazou <ebotcazou@adacore.com>
702
703 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
704 (set_end_locus_from_node): New function.
705 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
706 make and the function end_locus.
707 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
708 for the elaboration subprogram.
709 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
710 set the end_locus of the expression as well.
711
89f5e978
EB
7122011-01-04 Eric Botcazou <ebotcazou@adacore.com>
713
714 PR ada/47131
715 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
716 variables that are referenced in exception handlers volatile.
717
718
ad41bd84 719\f
797103eb 720Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
721
722Copying and distribution of this file, with or without modification,
723are permitted in any medium without royalty provided the copyright
724notice and this notice are preserved.
This page took 0.91877 seconds and 5 git commands to generate.