]>
Commit | Line | Data |
---|---|---|
677f3fa8 JM |
1 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
2 | ||
3 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o. | |
4 | (ada/utils.o): Update dependencies. | |
5 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add | |
6 | ../../../libcpp/libcpp.a. | |
7 | * gcc-interface/utils.c: Include common/common-target.h. | |
8 | (process_attributes): Use targetm_common.have_named_sections. | |
9 | ||
009db074 RG |
10 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
11 | ||
0bad0e23 EB |
12 | * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call |
13 | set_sizetype. | |
009db074 | 14 | |
3bfc61cf EB |
15 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
16 | ||
0bad0e23 | 17 | * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the |
3bfc61cf EB |
18 | TREE_THIS_NOTRAP flag. |
19 | ||
5c4a1c7b EB |
20 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
21 | ||
22 | * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>: | |
23 | Fix thinko. | |
24 | ||
e9f57686 EB |
25 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
26 | ||
27 | * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred | |
28 | constants whose full view has discriminants specially. | |
29 | ||
10e4d056 EB |
30 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
31 | ||
32 | * gcc-interface/utils.c: Include diagnostic.h. | |
33 | (gnat_write_global_declarations): Output debug information for all | |
34 | global type declarations before finalizing the compilation unit. | |
35 | * gcc-interface/Make-lang.in (ada/utils.o): Add dependency. | |
36 | ||
0957c029 JJ |
37 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
38 | ||
39 | * gcc-interface/utils.c (def_fn_type): Remove extra va_end. | |
40 | ||
52d0a7ac KT |
41 | 2011-05-25 Kai Tietz <ktietz@redhat.com> |
42 | ||
43 | * adaint.c (__gnat_to_canonical_file_list_next): Use array | |
44 | initialization instead of const/none-const pointer assignment. | |
45 | ||
1ed1641d JM |
46 | 2011-05-24 Joseph Myers <joseph@codesourcery.com> |
47 | ||
48 | * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include | |
49 | $(EXTRA_GNAT1_OBJS). | |
50 | (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS). | |
51 | (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove. | |
52 | (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a. | |
53 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use | |
54 | libcommon-target.a instead of prefix.o. | |
55 | ||
9fe72ebd JM |
56 | 2011-05-21 Joseph Myers <joseph@codesourcery.com> |
57 | ||
58 | PR ada/49097 | |
0bad0e23 | 59 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS). |
9fe72ebd | 60 | |
2691e6d7 JM |
61 | 2011-05-20 Joseph Myers <joseph@codesourcery.com> |
62 | ||
0bad0e23 EB |
63 | * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o. |
64 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a | |
65 | instead of version.o. | |
2691e6d7 | 66 | |
bf6490b5 KT |
67 | 2011-05-18 Kai Tietz <ktietz@redhat.com> |
68 | ||
69 | * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use | |
70 | boolean_false_node instead of integer_zero_node. | |
71 | (convert_with_check): Likewise. | |
72 | * gcc-interface/decl.c (choices_to_gnu): Likewise. | |
73 | ||
7bf9a5ac EB |
74 | 2011-05-12 Eric Botcazou <ebotcazou@adacore.com> |
75 | ||
76 | * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the | |
77 | type of the parameter is an unconstrained array, convert the actual to | |
78 | the type of the formal in the In Out and Out cases as well. | |
79 | ||
e5b00edf NF |
80 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> |
81 | ||
82 | * gcc-interface/utils.c (def_fn_type): Don't call build_function_type; | |
83 | call build_function_type_array or build_varargs_function_type_array | |
84 | instead. | |
85 | (create_subprog_type): Don't call build_function_type; call | |
86 | build_function_type_vec instead. | |
87 | ||
51545682 NF |
88 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> |
89 | ||
90 | * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL. | |
91 | (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL. | |
92 | (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL. | |
93 | ||
c99c0026 EB |
94 | 2011-05-07 Eric Botcazou <ebotcazou@adacore.com> |
95 | ||
f620bd21 EB |
96 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces. |
97 | ||
c99c0026 EB |
98 | * gcc-interface/gigi.h (global_bindings_p): Adjust prototype. |
99 | * gcc-interface/utils.c (global_bindings_p): Return bool and simplify. | |
100 | ||
3d528853 NF |
101 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
102 | ||
c99c0026 | 103 | * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label. |
3d528853 | 104 | |
d7d058c5 NF |
105 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
106 | ||
107 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators | |
108 | instead of accessing TYPE_ARG_TYPES directly. | |
109 | * gcc-interface/utils.c (handle_nonnull_attribute): Likewise. | |
110 | ||
805e60a0 EB |
111 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> |
112 | ||
113 | PR ada/48844 | |
114 | * gcc-interface/gigi.h (get_variant_part): Declare. | |
115 | * gcc-interface/decl.c (get_variant_part): Make global. | |
116 | * gcc-interface/utils2.c (find_common_type): Do not return T1 if the | |
117 | types have the same constant size, are record types and T1 has a | |
118 | variant part while T2 doesn't. | |
119 | ||
907a08d9 EB |
120 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> |
121 | ||
122 | * gcc-interface/utils.c (begin_subprog_body): Do not call | |
123 | get_pending_sizes. | |
124 | (end_subprog_body): Likewise. | |
125 | ||
d35936ab RG |
126 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
127 | ||
128 | * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to | |
129 | int_const_binop. | |
130 | (pos_to_constructor): Likewise. | |
131 | ||
c1fd8753 NF |
132 | 2011-05-03 Nathan Froyd <froydnj@codesourcery.com> |
133 | Eric Botcazou <ebotcazou@adacore.com> | |
134 | ||
135 | * gcc-interface/trans.c (gigi): Call build_function_type_list instead | |
136 | of build_function_type. Adjust calls to... | |
137 | (build_raise_check): ...this. Do not take a void_tree parameter. | |
138 | Call build_function_type_list instead of build_function_type. | |
139 | Fix head comment and swap couple of conditional blocks. | |
140 | ||
4fb87d2b EB |
141 | 2011-04-30 Eric Botcazou <ebotcazou@adacore.com> |
142 | ||
143 | * gnatvsn.ads (Library_Version): Bump to 4.7. | |
144 | (Current_Year): Bump to 2011. | |
145 | ||
fa5e5a76 MM |
146 | 2011-04-29 Michael Matz <matz@suse.de> |
147 | ||
148 | * gcc-interface/misc.c (gnat_handle_option): Set | |
149 | warn_maybe_uninitialized. | |
150 | ||
8d6a2f69 GP |
151 | 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com> |
152 | ||
153 | * gnat_ugn.texi (Complexity Metrics Control): Update link to | |
154 | the Watson/McCabe paper. | |
155 | ||
770937fd JM |
156 | 2011-04-23 Jim Meyering <meyering@redhat.com> |
157 | ||
158 | * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/ | |
159 | ||
eb601ae1 EB |
160 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> |
161 | ||
162 | * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE | |
163 | onto the new type. | |
164 | ||
7d7fcb08 EB |
165 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> |
166 | ||
167 | * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG | |
168 | parameter. | |
169 | * gcc-interface/utils.c (create_subprog_decl): Likewise. Set | |
170 | DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly. | |
171 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add | |
172 | ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl. | |
173 | <all>: Do not set flags on the reused DECL node coming from an alias. | |
174 | Set DECL_IGNORED_P on the DECL node built for subprograms if they | |
175 | don't need debug info here... | |
176 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here. | |
177 | (gigi): Adjust calls to create_subprog_decl. | |
178 | (build_raise_check): Likewise. | |
179 | (establish_gnat_vms_condition_handler): Likewise. | |
180 | (Compilation_Unit_to_gnu): Likewise. | |
181 | (gnat_to_gnu): Likewise. | |
182 | ||
e1876cac EB |
183 | 2011-04-21 Eric Botcazou <ebotcazou@adacore.com> |
184 | ||
185 | * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define. | |
186 | (NO_REORDER_ADAFLAGS): New variable. | |
187 | (EXTRA_GNATTOOLS): Always define. | |
188 | (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h. | |
189 | Clean up and adjust list of files compiled with special options. | |
190 | * gcc-interface/Make-lang.in: Likewise. | |
191 | (ada/decl.o): Cosmetical change. | |
192 | (ada/misc.o): Remove dependency on $(PLUGIN_H). | |
193 | ||
04695783 JM |
194 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
195 | ||
196 | * initialize.c (__gnat_initialize): Remove useless if-before-free. | |
197 | ||
23399579 EB |
198 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> |
199 | ||
200 | * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with | |
201 | $(CFLAGS) on the link line. | |
202 | ||
51c5169c EB |
203 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> |
204 | ||
205 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the | |
206 | padded type built for the return type if it is unconstrained. | |
207 | ||
61e46a7d NF |
208 | 2011-04-14 Nathan Froyd <froydnj@codesourcery.com> |
209 | ||
210 | * gcc-interface/utils.c (gnat_poplevel): Use block_chainon. | |
211 | ||
81f653d6 NF |
212 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
213 | ||
b4867846 EB |
214 | * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON |
215 | before calling TREE_CHAIN. | |
81f653d6 NF |
216 | * gcc-interface/misc.c (gnat_init_ts): New function. |
217 | (LANG_HOOKS_INIT_TS): Define. | |
218 | ||
a358e188 MJ |
219 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
220 | ||
b4867846 EB |
221 | * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node |
222 | instead of cgraph_node. | |
a358e188 | 223 | |
29b1c5a4 EB |
224 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> |
225 | ||
226 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum | |
227 | alignment on fields of the RETURN type built for the Copy-In Copy-Out | |
228 | mechanism. | |
229 | ||
88872b00 EB |
230 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> |
231 | ||
232 | * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers | |
233 | of aggregate types that contain a placeholder. | |
234 | ||
dcf0c47e NF |
235 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
236 | ||
237 | * gcc-interface/utils.c (handle_sentinel_attribute): Don't use | |
b4867846 | 238 | TYPE_ARG_TYPES. |
dcf0c47e NF |
239 | (handle_type_generic_attribute): Likewise. |
240 | ||
53e3000c EB |
241 | 2011-04-04 Eric Botcazou <ebotcazou@adacore.com> |
242 | ||
243 | PR ada/47163 | |
244 | * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change. | |
245 | ||
ab380bb4 KT |
246 | 2011-04-04 Kai Tietz <ktietz@redhat.com> |
247 | ||
248 | PR ada/47163 | |
0bad0e23 EB |
249 | * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets |
250 | to flag value. | |
ab380bb4 | 251 | |
8ffac116 EB |
252 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
253 | ||
254 | * gcc-interface/utils2.c (build_allocator): In the unconstrained array | |
255 | type case, do not strip a padding type around the array type. | |
256 | ||
de9528f0 EB |
257 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
258 | ||
259 | * gcc-interface/utils.c (update_pointer_to): Finalize named pointer | |
260 | types. | |
261 | ||
d9d7a26c EB |
262 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
263 | ||
264 | * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete. | |
265 | * gcc-interface/misc.c (gnat_handle_option): Remove special handling | |
de9528f0 | 266 | code for -feliminate-unused-debug-types. |
d9d7a26c EB |
267 | (gnat_post_options): Likewise. |
268 | ||
4cb12a90 EB |
269 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
270 | ||
271 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
272 | declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a | |
273 | distinct copy. | |
274 | ||
acccc61c EB |
275 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
276 | ||
277 | * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the | |
278 | DECL_ARTIFICIAL flag on enumeration types. | |
279 | ||
583eb0c9 EB |
280 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
281 | ||
282 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make | |
283 | fat pointer types artificial unconditionally. | |
284 | <E_Array_Subtype>: Attach the base array type as a parallel type if it | |
285 | isn't artificial. | |
286 | ||
e3edbd56 EB |
287 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
288 | ||
289 | * gcc-interface/gigi.h (get_dummy_type): Declare. | |
290 | (build_dummy_unc_pointer_types): Likewise. | |
291 | (finish_fat_pointer_type): Likewise. | |
292 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy | |
293 | fat pointer type has been built, complete it in place. | |
294 | <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat | |
295 | and thin pointers. Remove useless variable. | |
296 | (finish_fat_pointer_type): Make global and move to... | |
297 | * gcc-interface/utils.c (finish_fat_pointer_type): ...here. | |
298 | (get_dummy_type): New function. | |
299 | (build_dummy_unc_pointer_types): Likewise. | |
300 | (gnat_pushdecl): Propage the name to the anonymous variants only. | |
301 | (update_pointer_to): Only adjust the pointer types in the unconstrained | |
302 | array case. | |
303 | ||
65444786 EB |
304 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
305 | ||
306 | * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag. | |
307 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it | |
308 | if this is a Taft amendment type and the full declaration is available. | |
309 | * gcc-interface/trans.c (process_type): Likewise. | |
310 | If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P. | |
311 | (process_freeze_entity): Likewise. | |
312 | * gcc-interface/utils.c (dummy_global): New static variable. | |
313 | (gnat_write_global_declarations): If there are types declared as used | |
314 | at the global level, insert them in the global hash table. | |
315 | ||
1aeb40dd EB |
316 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
317 | ||
318 | * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param. | |
319 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
320 | declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct | |
321 | copy. | |
322 | (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL | |
323 | flag of the type accordingly. | |
324 | * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type. | |
325 | ||
80ec8b4c EB |
326 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
327 | ||
328 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
329 | finalizing types when updating the pointers to the designated type. | |
330 | <all>: Finalize the deferred types even if we didn't defer processing | |
331 | of incomplete types in this invocation. | |
332 | ||
2a9d769a OH |
333 | 2011-04-01 Olivier Hainque <hainque@adacore.com> |
334 | Nicolas Setton <setton@adacore.com> | |
335 | Eric Botcazou <ebotcazou@adacore.com> | |
336 | ||
337 | * gcc-interface/misc.c (gnat_descriptive_type): New function. | |
338 | (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type. | |
339 | ||
2438d7a6 KT |
340 | 2011-03-28 Kai Tietz <ktietz@redhat.com> |
341 | ||
333d8aff | 342 | * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native |
80ec8b4c EB |
343 | Windows targets. |
344 | (EH_MECHANISM): Use GCC exception mechanism for native Windows targets. | |
345 | * system-mingw.ads (System): Change ZCX_By_Default default to True. | |
333d8aff | 346 | |
80ec8b4c | 347 | * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype. |
2438d7a6 | 348 | |
8ad150f6 TG |
349 | 2011-03-28 Tristan Gingold <gingold@adacore.com> |
350 | ||
351 | PR ada/44431 | |
80ec8b4c EB |
352 | * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c. |
353 | Use ada output of gnatbind. | |
8ad150f6 TG |
354 | (ada/b_gnatb.adb): Ditto. |
355 | (ada/b_gnat1.o, ada/b_gnatb.o): New rules. | |
356 | (ada.mostlyclean, ada.stage1) | |
357 | (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile) | |
358 | (ada.stagefeedback): Adjust. | |
80ec8b4c | 359 | * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c. |
8ad150f6 TG |
360 | Use ada output of gnatbind. |
361 | (b_gnatm.adb): Ditto. | |
362 | (b_gnatl.o, b_gnatm.o): New rules. | |
363 | ||
51c7954d EB |
364 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
365 | ||
366 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
367 | for the padded type built to support a specified size or alignment. | |
368 | ||
6ddf9843 EB |
369 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
370 | ||
371 | * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment. | |
372 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
373 | unconditionally to the end of the unit when the designated type is | |
374 | limited_with'ed. | |
375 | <all>: Rename local variable. Attempt to un-defer types only and do it | |
376 | for limited_with'ed types as well. | |
377 | (finalize_from_with_types): Adjust comment. Rename variable and tidy. | |
378 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT | |
379 | consistently and remove redundant call to finalize_from_with_types. | |
380 | ||
5daed84a EB |
381 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
382 | ||
383 | * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to | |
384 | subprograms without a previous spec declared in the same unit. | |
385 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined | |
386 | subprograms at the end of the unit instead of at the beginning. | |
387 | * gcc-interface/utils.c (create_subprog_decl): Check that the entity | |
388 | isn't public for the special handling of non-inline functions nested | |
389 | inside inline external functions. | |
390 | ||
0edf1bb2 JL |
391 | 2011-03-25 Jeff Law <law@redhat.com> |
392 | ||
5daed84a | 393 | * gcc-interface/utils.c (def_fn_type): Add missing va_end. |
0edf1bb2 | 394 | |
e3c4580e EB |
395 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> |
396 | ||
397 | * einfo.ads (Size_Depends_On_Discriminant): Adjust description. | |
398 | * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure | |
399 | to compute Set_Size_Depends_On_Discriminant. | |
400 | (Layout_Type): Call it on array types in back-end layout mode. | |
401 | * sem_util.adb (Requires_Transient_Scope): Return true for array | |
402 | types only if the size depends on the value of discriminants. | |
403 | * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS | |
404 | type if the RHS is a call to a function that returns an unconstrained | |
405 | type with default discriminant. | |
406 | ||
abbc8c7b EB |
407 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> |
408 | ||
409 | * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of | |
410 | non-conversion to the nominal result type at the end. | |
411 | ||
ddb5a105 EB |
412 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
413 | ||
414 | * gcc-interface/trans.c (create_temporary): New function taken from... | |
415 | (create_init_temporary): ...here. Call it. | |
416 | (call_to_gnu): Create the temporary for the return value early, if any. | |
417 | Create it for a function with copy-in/copy-out parameters if there is | |
418 | no target; in other cases of copy-in/copy-out, use another temporary. | |
419 | Push the new binding level lazily. Add and rename local variables. | |
420 | ||
0d853156 EB |
421 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
422 | ||
423 | * gcc-interface/decl.c (validate_size): Improve comments and tweak | |
424 | error message. | |
425 | (set_rm_size): Likewise. | |
426 | ||
4184ef1b EB |
427 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
428 | ||
429 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
430 | for the padded type built in order to support a specified alignment. | |
431 | Fix incorrect formatting. | |
432 | ||
bf7eefab EB |
433 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
434 | ||
435 | PR bootstrap/48216 | |
436 | * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL. | |
437 | ||
ef0feeb2 EB |
438 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
439 | ||
440 | * gcc-interface/decl.c (components_to_record): Add REORDER parameter, | |
441 | rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter | |
442 | to the end of the list. Adjust recursive call. Rename local variable. | |
443 | If REORDER is true, reorder components of the record type. | |
444 | (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to | |
445 | components_to_record and adjust the parameter list. | |
446 | ||
646f9414 EB |
447 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
448 | ||
449 | * gcc-interface/decl.c (elaborate_expression_1): When optimization is | |
450 | disabled, use the variable for bounds of loop iteration scheme. | |
451 | ||
62d784f7 KT |
452 | 2011-03-21 Kai Tietz <ktietz@redhat.com> |
453 | ||
454 | PR target/12171 | |
0bad0e23 | 455 | * gcc-interface/utils.c (gnat_internal_attribute_table): Add column. |
62d784f7 | 456 | |
f230d759 EB |
457 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> |
458 | ||
459 | * gcc-interface/decl.c (elaborate_expression_1): Try harder to find | |
460 | out whether the expression is read-only. Short-circuit placeholder | |
461 | case and rename a couple of local variables. | |
462 | ||
bb1f7929 EB |
463 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> |
464 | ||
465 | * gcc-interface/gigi.h (smaller_form_type_p): Declare. | |
466 | * gcc-interface/trans.c (smaller_form_type_p): Make global and move... | |
467 | * gcc-interface/utils.c (smaller_form_type_p): ...to here. | |
468 | (convert): Deal with conversions from a smaller form type specially. | |
469 | ||
400a2d24 EB |
470 | 2011-02-14 Eric Botcazou <ebotcazou@adacore.com> |
471 | ||
472 | * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and | |
473 | its argument, except for the special -I- switch. | |
474 | ||
c26bc3ad GP |
475 | 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com> |
476 | ||
0bad0e23 EB |
477 | * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to |
478 | "Ada Issues". | |
c26bc3ad | 479 | |
07b8e910 EB |
480 | 2011-02-08 Eric Botcazou <ebotcazou@adacore.com> |
481 | ||
482 | * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs. | |
483 | ||
31a5a547 EB |
484 | 2011-02-03 Eric Botcazou <ebotcazou@adacore.com> |
485 | ||
486 | * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of | |
487 | GNAT_FORMAL. | |
488 | * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to... | |
489 | * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE | |
490 | instead of GNAT_FORMAL. Protect the expression against multiple uses. | |
491 | Do not generate the check directly, instead instantiate the template | |
492 | check present in the descriptor. | |
493 | (make_descriptor_field): Move around. | |
494 | (build_vms_descriptor32): Build a template check in the POINTER field. | |
495 | (build_vms_descriptor): Remove useless suffixes. | |
496 | * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call. | |
497 | ||
dcf25f59 EB |
498 | 2011-01-26 Eric Botcazou <ebotcazou@adacore.com> |
499 | ||
500 | PR bootstrap/47467 | |
501 | * targext.c: Include target files if IN_RTS is defined. | |
502 | ||
0418e131 RG |
503 | 2011-01-26 Richard Guenther <rguenther@suse.de> |
504 | ||
505 | PR bootstrap/47467 | |
506 | * targext.c: Include config.h. | |
507 | * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H) | |
508 | dependency. | |
509 | ||
c6eecbd8 PO |
510 | 2011-01-04 Pascal Obry <obry@adacore.com> |
511 | Eric Botcazou <ebotcazou@adacore.com> | |
512 | ||
513 | * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit. | |
514 | ||
2d3c7e4f EB |
515 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
516 | ||
517 | * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the | |
518 | end-of-case on the end label and its associated gotos, if any. | |
519 | ||
0394741f EB |
520 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
521 | ||
522 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the | |
523 | expressions of the parameter cache within the statement group of | |
524 | the CICO mechanism. | |
525 | ||
2a02d090 OH |
526 | 2011-01-04 Olivier Hainque <hainque@adacore.com> |
527 | Eric Botcazou <ebotcazou@adacore.com> | |
528 | ||
529 | * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default. | |
530 | (set_end_locus_from_node): New function. | |
531 | (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we | |
532 | make and the function end_locus. | |
533 | (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus | |
534 | for the elaboration subprogram. | |
535 | (set_gnu_expr_location_from_node) <default case>: Use it to attempt to | |
536 | set the end_locus of the expression as well. | |
537 | ||
89f5e978 EB |
538 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
539 | ||
540 | PR ada/47131 | |
541 | * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make | |
542 | variables that are referenced in exception handlers volatile. | |
543 | ||
544 | ||
ad41bd84 | 545 | \f |
797103eb | 546 | Copyright (C) 2011 Free Software Foundation, Inc. |
ad41bd84 JM |
547 | |
548 | Copying and distribution of this file, with or without modification, | |
549 | are permitted in any medium without royalty provided the copyright | |
550 | notice and this notice are preserved. |