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