1 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3 Convert gimple types from a union to C++ inheritance.
4 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
5 * coretypes.h (union gimple_statement_d): Remove declaration.
6 (gimple): Convert from being a "union gimple_statement_d *"
7 to a "struct gimple_statement_base *".
8 (const_gimple): Likewise (with "const").
9 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace
11 (ggc_alloc_cleared_gimple_statement_stat): ...this.
12 * gimple-pretty-print.c (debug): Change parameter from a
13 "gimple_statement_d &" to a "gimple_statement_base &".
14 (debug): Change parameter from a "gimple_statement_d *" to
15 a "gimple_statement_base *".
16 * gimple-pretty-print.h (debug): Update declarations as above.
17 * gimple.c (gimple_alloc_stat): Update for renaming of
18 ggc_alloc_cleared_gimple_statement_d_stat to
19 ggc_alloc_cleared_gimple_statement_stat.
20 * gimple.h: Include "is-a.h" for use by is_a_helper
21 specializations in followup autogenerated patch.
22 (struct gimple statement_base): Make this type usable as a base
23 class by adding "desc", "tag" and "variable_size" to GTY, thus
24 using opting-in to gengtype's support for simple inheritance.
25 (gimple_statement_with_ops_base): Convert to a subclass of
26 gimple_statement_base, dropping initial "gsbase" field. Note
27 that this type is abstract, with no GSS_ value, and thus no GTY
29 (gimple_statement_with_ops): Convert to a subclass of
30 gimple_statement_with_ops_base, dropping initial "opbase" field.
31 Add tag value to GTY marking. Update marking of op field to
32 reflect how num_ops field is accessed via inheritance.
33 (gimple_statement_with_memory_ops_base): Convert to a subclass of
34 gimple_statement_with_ops_base, dropping initial "opbase" field.
35 Add tag value to GTY marking.
36 (gimple_statement_with_memory_ops): Convert to a subclass of
37 public gimple_statement_with_memory_ops_base, dropping initial
38 "membase" field. Add tag value to GTY marking. Update marking
39 of op field to reflect how num_ops field is accessed via
41 (gimple_statement_call): Analogous changes that also update the
42 marking of the "u" union.
43 (gimple_statement_omp): Convert to a subclass of
44 gimple_statement_base, dropping initial "gsbase" field, adding
45 tag value to GTY marking.
46 (gimple_statement_bind): Likewise.
47 (gimple_statement_catch): Likewise.
48 (gimple_statement_eh_filter): Likewise.
49 (gimple_statement_eh_else): Likewise.
50 (gimple_statement_eh_mnt): Likewise.
51 (gimple_statement_phi): Likewise.
52 (gimple_statement_eh_ctrl): Likewise.
53 (gimple_statement_try): Likewise.
54 (gimple_statement_wce): Likewise.
55 (gimple_statement_asm): Convert to a subclass of
56 gimple_statement_with_memory_ops_base, dropping initial
57 "membase" field, adding tag value to GTY marking, and updating
59 (gimple_statement_omp_critical): Convert to a subclass of
60 gimple_statement_omp, dropping initial "omp" field, adding tag
62 (gimple_statement_omp_for): Likewise.
63 (gimple_statement_omp_parallel): Likewise.
64 (gimple_statement_omp_task): Convert to a subclass of
65 gimple_statement_omp_parallel, dropping initial "par" field,
66 adding tag value to GTY marking.
67 (gimple_statement_omp_sections): Convert to a subclass of
68 gimple_statement_omp, dropping initial "omp" field, adding
69 tag value to GTY marking.
70 (gimple_statement_omp_continue): Convert to a subclass of
71 gimple_statement_base, dropping initial "gsbase" field, adding
72 tag value to GTY marking.
73 (gimple_statement_omp_single): Convert to a subclass of
74 gimple_statement_omp, dropping initial "omp" field, adding
75 tag value to GTY marking.
76 (gimple_statement_omp_atomic_load): Convert to a subclass of
77 gimple_statement_base, dropping initial "gsbase" field, adding
78 tag value to GTY marking.
79 (gimple_statement_omp_atomic_store): Convert to a subclass of
80 gimple_statement_base, dropping initial "gsbase" field, adding
81 tag value to GTY marking.
82 (gimple_statement_transaction): Convert to a subclass of
83 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
84 field, adding tag value to GTY marking.
85 (union gimple_statement_d): Remove.
86 * system.h (CONST_CAST_GIMPLE): Update to use
87 "struct gimple_statement_base *" rather than
88 "union gimple_statement_d *".
89 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
90 gimple_statement_d to gimple_statement_base.
92 * gimple.h (gimple_use_ops): Port from union to usage of
94 (gimple_set_use_ops): Port from union to usage of as_a.
95 (gimple_set_vuse): Likewise.
96 (gimple_set_vdef): Likewise.
97 (gimple_call_internal_fn): Port from union to a static_cast,
98 given that the type has already been asserted.
99 (gimple_omp_body_ptr): Port from unchecked union usage to
101 (gimple_omp_set_body): Likewise.
103 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
104 gimple types to a true class hierarchy.
105 (update_call_edge_frequencies): Likewise.
106 (gsi_insert_seq_nodes_before): Likewise.
107 (gsi_insert_seq_nodes_after): Likewise.
108 (gsi_split_seq_after): Likewise.
109 (gsi_set_stmt): Likewise.
110 (gsi_split_seq_before): Likewise.
111 (gsi_remove): Likewise.
112 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
113 (gsi_next): Likewise.
114 (gsi_prev): Likewise.
115 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
116 * gimple-ssa.h (gimple_vuse_op): Likewise.
117 (gimple_vdef_op): Likewise.
118 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
119 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
120 * gimple.c (gimple_set_code): Likewise.
121 (gimple_alloc_stat): Likewise.
122 (gimple_set_subcode): Likewise.
123 (gimple_build_call_internal_1): Likewise.
124 (gimple_check_failed): Likewise.
125 (gimple_call_flags): Likewise.
126 (gimple_set_bb): Likewise.
127 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
128 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
129 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
130 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
131 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
132 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
133 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
134 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
135 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
136 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
137 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
138 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
139 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
140 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
141 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
142 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
143 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
144 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
145 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
146 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
147 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
148 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
149 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
150 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
151 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
152 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
154 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
156 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
158 (is_a_helper <const gimple_statement_omp_atomic_store>
159 (const_gimple)): Likewise.
160 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
162 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
164 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
166 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
168 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
170 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
172 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
174 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
175 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
177 (gimple_seq_last): Update for conversion of gimple types to a true
179 (gimple_seq_set_last): Likewise.
180 (gimple_code): Likewise.
181 (gimple_bb): Likewise.
182 (gimple_block): Likewise.
183 (gimple_set_block): Likewise.
184 (gimple_location): Likewise.
185 (gimple_location_ptr): Likewise.
186 (gimple_set_location): Likewise.
187 (gimple_no_warning_p): Likewise.
188 (gimple_set_no_warning): Likewise.
189 (gimple_set_visited): Likewise.
190 (gimple_visited_p): Likewise.
191 (gimple_set_plf): Likewise.
192 (gimple_plf): Likewise.
193 (gimple_set_uid): Likewise.
194 (gimple_uid): Likewise.
195 (gimple_init_singleton): Likewise.
196 (gimple_modified_p): Likewise.
197 (gimple_set_modified): Likewise.
198 (gimple_expr_code): Likewise.
199 (gimple_has_volatile_ops): Likewise.
200 (gimple_set_has_volatile_ops): Likewise.
201 (gimple_omp_subcode): Likewise.
202 (gimple_omp_set_subcode): Likewise.
203 (gimple_omp_return_set_nowait): Likewise.
204 (gimple_omp_section_set_last): Likewise.
205 (gimple_omp_parallel_set_combined_p): Likewise.
206 (gimple_omp_atomic_set_need_value): Likewise.
207 (gimple_omp_atomic_set_seq_cst): Likewise.
208 (gimple_num_ops): Likewise.
209 (gimple_set_num_ops): Likewise.
210 (gimple_assign_nontemporal_move_p): Likewise.
211 (gimple_assign_set_nontemporal_move): Likewise.
212 (gimple_assign_rhs_code): Likewise.
213 (gimple_assign_set_rhs_code): Likewise.
214 (gimple_call_internal_p): Likewise.
215 (gimple_call_with_bounds_p): Likewise.
216 (gimple_call_set_with_bounds): Likewise.
217 (gimple_call_set_tail): Likewise.
218 (gimple_call_tail_p): Likewise.
219 (gimple_call_set_return_slot_opt): Likewise.
220 (gimple_call_return_slot_opt_p): Likewise.
221 (gimple_call_set_from_thunk): Likewise.
222 (gimple_call_from_thunk_p): Likewise.
223 (gimple_call_set_va_arg_pack): Likewise.
224 (gimple_call_va_arg_pack_p): Likewise.
225 (gimple_call_set_nothrow): Likewise.
226 (gimple_call_set_alloca_for_var): Likewise.
227 (gimple_call_alloca_for_var_p): Likewise.
228 (gimple_call_copy_flags): Likewise.
229 (gimple_cond_code): Likewise.
230 (gimple_cond_set_code): Likewise.
231 (gimple_cond_make_false): Likewise.
232 (gimple_cond_make_true): Likewise.
233 (gimple_asm_volatile_p): Likewise.
234 (gimple_asm_set_volatile): Likewise.
235 (gimple_asm_set_input): Likewise.
236 (gimple_asm_input_p): Likewise.
237 (gimple_try_kind): Likewise.
238 (gimple_try_set_kind): Likewise.
239 (gimple_try_catch_is_cleanup): Likewise.
240 (gimple_try_set_catch_is_cleanup): Likewise.
241 (gimple_wce_cleanup_eh_only): Likewise.
242 (gimple_wce_set_cleanup_eh_only): Likewise.
243 (gimple_debug_bind_p): Likewise.
244 (gimple_debug_source_bind_p): Likewise.
245 (gimple_omp_for_set_kind): Likewise.
246 (gimple_omp_for_set_combined_p): Likewise.
247 (gimple_omp_for_set_combined_into_p): Likewise.
248 (gimple_omp_target_set_kind): Likewise.
249 (gimple_transaction_subcode): Likewise.
250 (gimple_transaction_set_subcode): Likewise.
251 (gimple_predict_predictor): Likewise.
252 (gimple_predict_set_predictor): Likewise.
253 (gimple_predict_outcome): Likewise.
254 (gimple_predict_set_outcome): Likewise.
255 (gimple_transaction_set_label): Likewise.
256 (gimple_transaction_set_body): Likewise.
257 (gimple_transaction_label_ptr): Likewise.
258 (gimple_transaction_label): Likewise.
259 (gimple_transaction_body_ptr): Likewise.
260 (gimple_omp_continue_set_control_use): Likewise.
261 (gimple_omp_continue_control_use_ptr): Likewise.
262 (gimple_omp_continue_control_use): Likewise.
263 (gimple_omp_continue_set_control_def): Likewise.
264 (gimple_omp_continue_control_def_ptr): Likewise.
265 (gimple_omp_continue_control_def): Likewise.
266 (gimple_omp_atomic_load_rhs_ptr): Likewise.
267 (gimple_omp_atomic_load_rhs): Likewise.
268 (gimple_omp_atomic_load_set_rhs): Likewise.
269 (gimple_omp_atomic_load_lhs_ptr): Likewise.
270 (gimple_omp_atomic_load_lhs): Likewise.
271 (gimple_omp_atomic_load_set_lhs): Likewise.
272 (gimple_omp_atomic_store_val_ptr): Likewise.
273 (gimple_omp_atomic_store_val): Likewise.
274 (gimple_omp_atomic_store_set_val): Likewise.
275 (gimple_omp_for_cond): Likewise.
276 (gimple_omp_for_set_cond): Likewise.
277 (gimple_omp_sections_set_control): Likewise.
278 (gimple_omp_sections_control_ptr): Likewise.
279 (gimple_omp_sections_control): Likewise.
280 (gimple_omp_sections_set_clauses): Likewise.
281 (gimple_omp_sections_clauses_ptr): Likewise.
282 (gimple_omp_sections_clauses): Likewise.
283 (gimple_omp_teams_set_clauses): Likewise.
284 (gimple_omp_teams_clauses_ptr): Likewise.
285 (gimple_omp_teams_clauses): Likewise.
286 (gimple_omp_target_set_data_arg): Likewise.
287 (gimple_omp_target_data_arg_ptr): Likewise.
288 (gimple_omp_target_data_arg): Likewise.
289 (gimple_omp_target_set_child_fn): Likewise.
290 (gimple_omp_target_child_fn_ptr): Likewise.
291 (gimple_omp_target_child_fn): Likewise.
292 (gimple_omp_target_set_clauses): Likewise.
293 (gimple_omp_target_clauses_ptr): Likewise.
294 (gimple_omp_target_clauses): Likewise.
295 (gimple_omp_single_set_clauses): Likewise.
296 (gimple_omp_single_clauses_ptr): Likewise.
297 (gimple_omp_single_clauses): Likewise.
298 (gimple_omp_task_set_arg_align): Likewise.
299 (gimple_omp_task_arg_align_ptr): Likewise.
300 (gimple_omp_task_arg_align): Likewise.
301 (gimple_omp_task_set_arg_size): Likewise.
302 (gimple_omp_task_arg_size_ptr): Likewise.
303 (gimple_omp_task_arg_size): Likewise.
304 (gimple_omp_task_set_copy_fn): Likewise.
305 (gimple_omp_task_copy_fn_ptr): Likewise.
306 (gimple_omp_task_copy_fn): Likewise.
307 (gimple_omp_task_set_data_arg): Likewise.
308 (gimple_omp_task_data_arg_ptr): Likewise.
309 (gimple_omp_task_data_arg): Likewise.
310 (gimple_omp_task_set_child_fn): Likewise.
311 (gimple_omp_task_child_fn_ptr): Likewise.
312 (gimple_omp_task_child_fn): Likewise.
313 (gimple_omp_task_set_clauses): Likewise.
314 (gimple_omp_task_clauses_ptr): Likewise.
315 (gimple_omp_task_clauses): Likewise.
316 (gimple_omp_parallel_set_data_arg): Likewise.
317 (gimple_omp_parallel_data_arg_ptr): Likewise.
318 (gimple_omp_parallel_data_arg): Likewise.
319 (gimple_omp_parallel_set_child_fn): Likewise.
320 (gimple_omp_parallel_child_fn_ptr): Likewise.
321 (gimple_omp_parallel_child_fn): Likewise.
322 (gimple_omp_parallel_set_clauses): Likewise.
323 (gimple_omp_parallel_clauses_ptr): Likewise.
324 (gimple_omp_parallel_clauses): Likewise.
325 (gimple_omp_for_set_pre_body): Likewise.
326 (gimple_omp_for_pre_body_ptr): Likewise.
327 (gimple_omp_for_set_incr): Likewise.
328 (gimple_omp_for_incr_ptr): Likewise.
329 (gimple_omp_for_incr): Likewise.
330 (gimple_omp_for_set_final): Likewise.
331 (gimple_omp_for_final_ptr): Likewise.
332 (gimple_omp_for_final): Likewise.
333 (gimple_omp_for_set_initial): Likewise.
334 (gimple_omp_for_initial_ptr): Likewise.
335 (gimple_omp_for_initial): Likewise.
336 (gimple_omp_for_set_index): Likewise.
337 (gimple_omp_for_index_ptr): Likewise.
338 (gimple_omp_for_index): Likewise.
339 (gimple_omp_for_collapse): Likewise.
340 (gimple_omp_for_set_clauses): Likewise.
341 (gimple_omp_for_clauses_ptr): Likewise.
342 (gimple_omp_for_clauses): Likewise.
343 (gimple_omp_critical_set_name): Likewise.
344 (gimple_omp_critical_name_ptr): Likewise.
345 (gimple_omp_critical_name): Likewise.
346 (gimple_eh_dispatch_set_region): Likewise.
347 (gimple_eh_dispatch_region): Likewise.
348 (gimple_resx_set_region): Likewise.
349 (gimple_resx_region): Likewise.
350 (gimple_phi_set_arg): Likewise.
351 (gimple_phi_arg): Likewise.
352 (gimple_phi_set_result): Likewise.
353 (gimple_phi_result_ptr): Likewise.
354 (gimple_phi_result): Likewise.
355 (gimple_phi_num_args): Likewise.
356 (gimple_phi_capacity): Likewise.
357 (gimple_wce_set_cleanup): Likewise.
358 (gimple_wce_cleanup_ptr): Likewise.
359 (gimple_try_set_cleanup): Likewise.
360 (gimple_try_set_eval): Likewise.
361 (gimple_try_cleanup_ptr): Likewise.
362 (gimple_try_eval_ptr): Likewise.
363 (gimple_eh_else_set_e_body): Likewise.
364 (gimple_eh_else_set_n_body): Likewise.
365 (gimple_eh_else_e_body_ptr): Likewise.
366 (gimple_eh_else_n_body_ptr): Likewise.
367 (gimple_eh_must_not_throw_set_fndecl): Likewise.
368 (gimple_eh_must_not_throw_fndecl): Likewise.
369 (gimple_eh_filter_set_failure): Likewise.
370 (gimple_eh_filter_set_types): Likewise.
371 (gimple_eh_filter_failure_ptr): Likewise.
372 (gimple_eh_filter_types_ptr): Likewise.
373 (gimple_eh_filter_types): Likewise.
374 (gimple_catch_set_handler): Likewise.
375 (gimple_catch_set_types): Likewise.
376 (gimple_catch_handler_ptr): Likewise.
377 (gimple_catch_types_ptr): Likewise.
378 (gimple_catch_types): Likewise.
379 (gimple_asm_string): Likewise.
380 (gimple_asm_set_label_op): Likewise.
381 (gimple_asm_label_op): Likewise.
382 (gimple_asm_set_clobber_op): Likewise.
383 (gimple_asm_clobber_op): Likewise.
384 (gimple_asm_set_output_op): Likewise.
385 (gimple_asm_output_op_ptr): Likewise.
386 (gimple_asm_output_op): Likewise.
387 (gimple_asm_set_input_op): Likewise.
388 (gimple_asm_input_op_ptr): Likewise.
389 (gimple_asm_input_op): Likewise.
390 (gimple_asm_nlabels): Likewise.
391 (gimple_asm_nclobbers): Likewise.
392 (gimple_asm_noutputs): Likewise.
393 (gimple_asm_ninputs): Likewise.
394 (gimple_bind_set_block): Likewise.
395 (gimple_bind_block): Likewise.
396 (gimple_bind_add_seq): Likewise.
397 (gimple_bind_add_stmt): Likewise.
398 (gimple_bind_set_body): Likewise.
399 (gimple_bind_body_ptr): Likewise.
400 (gimple_bind_append_vars): Likewise.
401 (gimple_bind_set_vars): Likewise.
402 (gimple_bind_vars): Likewise.
403 (gimple_call_clobber_set): Likewise.
404 (gimple_call_use_set): Likewise.
405 (gimple_call_set_internal_fn): Likewise.
406 (gimple_call_set_fntype): Likewise.
407 (gimple_call_fntype): Likewise.
408 (gimple_omp_return_lhs_ptr): Likewise.
409 (gimple_omp_return_lhs): Likewise.
410 (gimple_omp_return_set_lhs): Likewise.
411 (gimple_omp_taskreg_set_data_arg): Likewise.
412 (gimple_omp_taskreg_data_arg_ptr): Likewise.
413 (gimple_omp_taskreg_data_arg): Likewise.
414 (gimple_omp_taskreg_set_child_fn): Likewise.
415 (gimple_omp_taskreg_child_fn_ptr): Likewise.
416 (gimple_omp_taskreg_child_fn): Likewise.
417 (gimple_omp_taskreg_set_clauses): Likewise.
418 (gimple_omp_taskreg_clauses_ptr): Likewise.
419 (gimple_omp_taskreg_clauses): Likewise.
420 (gimple_vuse): Likewise.
421 (gimple_vdef): Likewise.
422 (gimple_vuse_ptr): Likewise.
423 (gimple_vdef_ptr): Likewise.
424 * tree-inline.c (copy_debug_stmt): Likewise.
425 * tree-phinodes.c (make_phi_node): Likewise.
427 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
428 (is_a_helper <gimple_statement_with_ops>::test): New.
429 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
430 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
432 * gimple-streamer-in.c (input_gimple_stmt): Port from union
433 access to use of as_a.
434 * gimple.c (gimple_build_asm_1): Likewise.
435 (gimple_build_try): Likewise. Also, return a specific subclass
436 rather than just gimple.
437 (gimple_build_resx): Port from union access to use of as_a.
438 (gimple_build_eh_dispatch): Likewise.
439 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
440 now that gengtype no longer provides a typed allocator function.
441 (gimple_copy): Likewise.
442 * gimple.h (gimple_build_try): Return a specific subclass rather
444 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
445 with subclass access by making use of new return type of
447 * tree-phinodes.c: (allocate_phi_node): Return a
448 "gimple_statement_phi *" rather than just a gimple.
449 (resize_phi_node): Likewise.
450 (make_phi_node): Replace union access with subclass access by
451 making use of new return type of allocate_phi_node.
452 (reserve_phi_args_for_new_edge): Replace union access with as_a.
453 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
455 (remove_phi_args): Update for change to remove_phi_arg_num.
457 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
458 code field to reflect inheritance, rather than embedding of
459 the base gimple type.
461 2013-11-19 Richard Biener <rguenther@suse.de>
463 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
464 and destructor and make fel_next a member function.
465 (fel_next): Transform into ...
466 (loop_iterator::next): ... this.
467 (fel_init): Transform into ...
468 (loop_iterator::loop_iterator): ... this.
469 (loop_iterator::~loop_iterator): New.
470 (FOR_EACH_LOOP): Remove loop-iterator argument.
471 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
472 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
473 graphite-clast-to-gimple.c, graphite-scop-detection.c,
474 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
475 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
476 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
477 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
478 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
479 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
480 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
481 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
482 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
483 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
484 FOR_EACH_LOOP_BREAK with break.
486 2013-11-19 Richard Biener <rguenther@suse.de>
488 PR tree-optimization/59164
489 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
491 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust
492 check whether we can create an epilogue loop to reflect the
493 cases where we create one.
495 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
497 * graphite-sese-to-poly.c: Include expr.h.
499 2013-11-19 Richard Biener <rguenther@suse.de>
502 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
503 loads into stmts that may clobber it.
505 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
507 * cgraphunit.c (symtab_terminator): New variable.
508 (queued_nodes): Renamed from first. Use symtab_terminator as
510 (analyze_functions): Adjust accordingly.
511 (cgraph_process_new_functions): Return void.
512 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
514 2013-11-19 Marek Polacek <polacek@redhat.com>
516 * opts.c (common_handle_option): Add -fsanitize=null option.
517 Turn off -fdelete-null-pointer-checks option when doing the
518 NULL pointer checking.
519 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
520 * tree-pass.h (make_pass_ubsan): Declare.
521 (make_pass_sanopt): Declare.
522 * timevar.def (TV_TREE_UBSAN): New timevar.
523 * passes.def: Add pass_sanopt and pass_ubsan.
524 * ubsan.h (ubsan_null_ckind): New enum.
525 (ubsan_mismatch_data): New struct.
526 (ubsan_expand_null_ifn): Declare.
527 (ubsan_create_data): Adjust declaration.
528 (ubsan_type_descriptor): Likewise.
529 * asan.c: Include "ubsan.h".
530 (pass_data_sanopt): New pass.
531 (execute_sanopt): New function.
532 (gate_sanopt): Likewise.
533 (make_pass_sanopt): Likewise.
534 (class pass_sanopt): New class.
535 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
536 gimple-iterator.h and cfgloop.h.
537 (PROB_VERY_UNLIKELY): Define.
538 (tree_type_map_hash): New function.
539 (ubsan_type_descriptor): Add new parameter.
540 Improve type name generation.
541 (ubsan_create_data): Add new parameter. Add pointer data into
543 (ubsan_expand_null_ifn): New function.
544 (instrument_member_call): Likewise.
545 (instrument_mem_ref): Likewise.
546 (instrument_null): Likewise.
547 (ubsan_pass): Likewise.
548 (gate_ubsan): Likewise.
549 (make_pass_ubsan): Likewise.
550 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
551 (class pass_ubsan): New class.
552 (pass_data_ubsan): New pass.
553 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
554 * internal-fn.c (expand_UBSAN_NULL): New function.
555 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
556 even when !flag_toplevel_reorder.
557 * internal-fn.def (UBSAN_NULL): New.
559 2013-11-19 Jan Hubicka <jh@suse.cz>
561 * cgraph.c (cgraph_create_indirect_edge): Use get_polymorphic_call_info.
562 * cgraph.h (cgraph_indirect_call_info): Add outer_type, maybe_in_construction
563 and maybe_derived_type.
564 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
565 (ipa_dummy_polymorphic_call_context): New global var.
566 (possible_polymorphic_call_targets): Add context paramter.
567 (dump_possible_polymorphic_call_targets): Likewise; update
569 (possible_polymorphic_call_target_p): Likewise.
570 (get_polymorphic_call_info): New function.
571 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
572 (add_type_duplicate): Remove forgotten debug output.
573 (method_class_type): Add sanity check.
574 (maybe_record_node): Add FINALP parameter.
575 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
576 by info by get_binfo_at_offset.
577 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET parameters;
578 pass them to record-binfo.
579 (polymorphic_call_target_d): Add context and FINAL.
580 (polymorphic_call_target_hasher::hash): Hash context.
581 (polymorphic_call_target_hasher::equal): Compare context.
582 (free_polymorphic_call_targets_hash):
583 (get_class_context): New function.
584 (contains_type_p): New function.
585 (get_polymorphic_call_info): New function.
586 (walk_bases): New function.
587 (possible_polymorphic_call_targets): Add context parameter; honnor it.
588 (dump_possible_polymorphic_call_targets): Dump context.
589 (possible_polymorphic_call_target_p): Add context.
590 (update_type_inheritance_graph): Update comment.s
591 (ipa_set_jf_known_type): Assert that compoentn type is known.
592 (ipa_note_param_call): Do not tamper with offsets.
593 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
595 (update_indirect_edges_after_inlining): Likewise.
596 (ipa_write_indirect_edge_info): Stream new fields.
597 (ipa_read_indirect_edge_info): Stream in new fields.
599 2013-11-19 Jan Hubicka <jh@suse.cz>
601 * tree-pretty-print.c (dump_generic_node): Print class type of
604 2013-11-19 Joey Ye <joey.ye@arm.com>
606 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
607 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
609 * config/arm/arm.c (arm_option_override): By default disable
610 -marm-pic-data-is-text-relative.
611 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
612 (arm_assemble_integer): Likewise.
613 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
614 New macro to initialize -marm-pic-data-is-text-relative.
616 2013-11-19 Bin Cheng <bin.cheng@arm.com>
618 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
619 (address_cost_data): New field.
620 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
621 Use ainc_costs for auto-increment rtx patterns.
624 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
626 * config/aarch64/aarch64.md: Remove v8type from all insns.
628 2013-11-19 Richard Biener <rguenther@suse.de>
630 PR tree-optimization/57517
631 * tree-predcom.c (combinable_refs_p): Verify the combination
632 is always executed when the refs are.
634 2013-11-19 Jeff Law <law@redhat.com>
636 * tree-ssa-threadupdate.c: Include ssa-iterators.h
637 (copy_phi_arg_into_existing_phi): New function.
638 (any_remaining_duplicated_blocks): Likewise.
639 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
640 blocks on a jump threading path.
642 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
643 thread through a joiner which has the latch edge.
645 2013-11-19 Jan Hubicka <jh@suse.cz>
647 * md.texi (setmem): Document new parameter.
648 * optabs.c (maybe_gen_insn): Support 9 operands.
649 * builtins.c (determine_block_size): Add probable_max_size;
651 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
653 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
654 emit_block_move, clear_storage_hints, set_storage_via_setmem):
656 * expr.h (emit_block_move_hints, clear_storage_hints,
657 set_storage_via_setmem): Update prototype.
658 * i386.md (setmem, movmem patterns): Add 9th operand.
659 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
660 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
661 argument; pass it to decide_alg.
663 2013-11-19 David Malcolm <dmalcolm@redhat.com>
665 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
666 (n_basic_blocks_for_fn): ...this.
668 (n_basic_blocks): Eliminate macro as work towards making uses of
671 * cfgloop.c (init_loops_structure): Update for renaming of
672 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
673 * graph.c (draw_cfg_nodes_no_loops): Likewise.
674 * ipa-utils.c (ipa_merge_profiles): Likewise.
675 * lto-streamer-in.c (make_new_block): Likewise.
676 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
677 (dump_function_to_file): Likewise.
679 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
680 macro with "n_basic_blocks_for_fn (cfun)".
681 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
682 (duplicate_computed_gotos): Likewise.
683 (reorder_basic_blocks): Likewise.
684 * bt-load.c (augment_live_range): Likewise.
685 * cfg.c (expunge_block): Likewise.
686 (compact_blocks): Likewise.
687 * cfganal.c (single_pred_before_succ_order): Likewise.
688 (compute_idf): Likewise.
689 (flow_dfs_compute_reverse_init): Likewise.
690 (pre_and_rev_post_order_compute): Likewise.
691 (pre_and_rev_post_order_compute_fn): Likewise.
692 (inverted_post_order_compute): Likewise.
693 (post_order_compute): Likewise.
694 (print_edge_list): Likewise.
695 (find_unreachable_blocks): Likewise.
696 (mark_dfs_back_edges): Likewise.
697 * cfgcleanup.c (try_optimize_cfg): Likewise.
698 (try_forward_edges): Likewise.
699 * cfghooks.c (dump_flow_info): Likewise.
700 * cfgloop.c (verify_loop_structure): Likewise.
701 (get_loop_body): Likewise.
702 (flow_loops_find): Likewise.
703 * cfgloopmanip.c (add_loop): Likewise.
704 (remove_path): Likewise.
705 (find_path): Likewise.
706 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
707 (rtl_verify_bb_layout): Likewise.
708 (entry_of_function): Likewise.
709 (rtl_create_basic_block): Likewise.
710 * coverage.c (coverage_compute_cfg_checksum): Likewise.
711 * cprop.c (one_cprop_pass): Likewise.
712 (is_too_expensive): Likewise.
713 * df-core.c (df_compute_cfg_image): Likewise.
714 (df_compact_blocks): Likewise.
715 (df_worklist_dataflow_doublequeue): Likewise.
716 * dominance.c (calculate_dominance_info): Likewise.
717 (calc_dfs_tree): Likewise.
718 (calc_dfs_tree_nonrec): Likewise.
719 (init_dom_info): Likewise.
720 * domwalk.c (cmp_bb_postorder): Likewise.
721 * function.c (thread_prologue_and_epilogue_insns): Likewise.
722 (generate_setjmp_warnings): Likewise.
723 * fwprop.c (build_single_def_use_links): Likewise.
724 * gcse.c (is_too_expensive): Likewise.
725 (one_code_hoisting_pass): Likewise.
726 (one_pre_gcse_pass): Likewise.
727 * graphite.c (graphite_initialize): Likewise.
728 * haifa-sched.c (haifa_sched_init): Likewise.
729 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
730 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
731 * ira-build.c (ira_build): Likewise.
732 * lcm.c (compute_nearerout): Likewise.
733 (compute_available): Likewise.
734 (compute_laterin): Likewise.
735 (compute_antinout_edge): Likewise.
736 * lra-lives.c (lra_create_live_ranges): Likewise.
737 * lra.c (has_nonexceptional_receiver): Likewise.
738 * mcf.c (create_fixup_graph): Likewise.
739 * profile.c (branch_prob): Likewise.
740 * reg-stack.c (convert_regs_2): Likewise.
741 * regrename.c (regrename_analyze): Likewise.
742 * reload1.c (has_nonexceptional_receiver): Likewise.
743 * reorg.c (dbr_schedule): Likewise.
744 * sched-deps.c (sched_deps_init): Likewise.
745 * sched-ebb.c (schedule_ebbs): Likewise.
746 * sched-rgn.c (extend_regions): Likewise.
747 (schedule_insns): Likewise.
748 (sched_rgn_init): Likewise.
749 (extend_rgns): Likewise.
750 (haifa_find_rgns): Likewise.
751 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
752 (sel_recompute_toporder): Likewise.
753 * sel-sched.c (run_selective_scheduling): Likewise.
754 * store-motion.c (one_store_motion_pass): Likewise.
755 (remove_reachable_equiv_notes): Likewise.
756 * tracer.c (tracer): Likewise.
757 (tail_duplicate): Likewise.
758 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
759 (dump_cfg_stats): Likewise.
760 (gimple_dump_cfg): Likewise.
761 (create_bb): Likewise.
762 (build_gimple_cfg): Likewise.
763 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
764 * tree-inline.c (optimize_inline_calls): Likewise.
765 (fold_marked_statements): Likewise.
766 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
767 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
768 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
769 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
770 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
771 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
772 * tree-ssa-pre.c (do_pre): Likewise.
773 (init_pre): Likewise.
774 (compute_avail): Likewise.
775 * tree-ssa-reassoc.c (init_reassoc): Likewise.
776 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
777 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
778 (init_worklist): Likewise.
779 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
780 * var-tracking.c (variable_tracking_main_1): Likewise.
781 (vt_find_locations): Likewise.
782 (vt_stack_adjustments): Likewise.
783 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
784 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
786 2013-11-18 Jan Hubicka <jh@suse.cz>
788 * profile.c (compute_branch_probabilities): Do not sanity check run_max.
790 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
792 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
794 * fold-const.c (fold_single_bit_test_into_sign_test)
795 (fold_binary_loc): Change GET_MODE_BITSIZE to
798 2013-11-18 Teresa Johnson <tejohnson@google.com>
800 * gcc/cfgrtl.c (cfg_layout_initialize): Assert if we
801 try to go into cfglayout after bb reordering.
802 * gcc/passes.def: Move compgotos before bb reordering
803 since it goes into cfglayout.
805 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
807 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
808 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
810 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
811 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
812 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
813 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
814 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
815 Remove all_lto_gen_passes.
816 * passes.c (pass_manager::dump_passes): Remove its use.
817 (pass_manager::register_pass): Likewise.
818 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
819 (pass_manager::pass_manager): Don't initialize or use it.
820 (write_lto): New static function.
821 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
822 instead of using all_lto_gen_passes.
823 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
824 pass_ipa_lto_finish_out): Delete.
825 * tree-pass.h (make_pass_ipa_lto_gimple_out,
826 make_pass_ipa_lto_finish_out): Don't declare.
828 2013-11-18 Jeff Law <law@redhat.com>
830 * tree-ssa-threadupdate.c (redirection_data): Record two
831 duplicated blocks instead of just one.
832 (local_info): Explain why we don't create a template for the
833 second duplicated block in a thread path.
834 (create_block_for_threading): Accept argument indicating array
835 index into redirection_data to store its result.
836 (lookup_redirection_data): Initialize both duplicate blocks.
837 (ssa_create_duplicates): If a jump threading path needs multiple
838 blocks duplicated, then duplicate them.
839 (ssa_fix_duplicate_block_edges): Corresponding changes.
840 (ssa_fixup_template_block, thread_single_edge): Likewise.
842 2013-11-18 Marek Polacek <polacek@redhat.com>
844 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
846 2013-11-18 Andrew Pinski <apinski@cavium.com>
847 Steve Ellcey <sellcey@mips.com>
850 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
851 type restriction from equality_operator on conditonal move.
852 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
853 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
855 2013-11-18 Jeff Law <law@redhat.com>
857 * tree-ssa-threadupdate.c: Fix file block comment.
858 Fix minor indention issue.
860 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
862 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
863 ix86_address_subreg_operand. Move subreg checks to
864 ix86_validate_address_register. Move address override check to
865 ix86_legitimate_address_p.
866 (ix86_validate_address_register): New function.
867 (ix86_legitimate_address_p): Call ix86_validate_address_register
868 to validate base and index registers. Add address override check
869 from ix86_decompose_address.
870 (ix86_decompose_address): Remove.
872 2013-11-18 Richard Biener <rguenther@suse.de>
874 PR tree-optimization/59125
875 PR tree-optimization/54570
876 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
877 is not complete do not treat component-references with offset zero
878 but different fields as equal.
879 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
880 (compute_object_sizes): Apply TLC. Propagate the constant
881 results into all uses and fold their stmts.
882 * passes.def (pass_all_optimizations): Move pass_object_sizes
883 after the first pass_forwprop and before pass_fre.
885 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
887 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
888 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
889 (tree_ctz): Remove cast to unsigned type.
890 * builtins.c (fold_builtin_memory_op): Likewise.
891 * dwarf2out.c (descr_info_loc): Likewise.
892 * godump.c (go_output_typedef): Likewise.
893 * omp-low.c (expand_omp_simd): Likewise.
894 * stor-layout.c (excess_unit_span): Likewise.
895 * tree-object-size.c (addr_object_size): Likewise.
896 * tree-sra.c (analyze_all_variable_accesses): Likewise.
897 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
898 (simplify_rotate): Likewise.
899 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
900 (handle_pointer_plus): Likewise.
901 * tree-switch-conversion.c (check_range): Likewise.
902 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
903 * tsan.c (instrument_builtin_call): Likewise.
904 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
905 * trans-mem.c (tm_log_add): Likewise.
906 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
907 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
908 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
909 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
911 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
913 * tree.h (host_integerp, tree_low_cst): Delete.
914 * tree.c (host_integerp, tree_low_cst): Delete.
916 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
918 * expr.h: Update comments to refer to tree_to_[su]hwi rather
920 * fold-const.c (fold_binary_loc): Likewise.
921 * expr.c (store_constructor): Use tree_to_uhwi rather than
923 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
924 * stmt.c (emit_case_dispatch_table): Likewise.
925 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
927 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
929 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
930 config/aarch64/aarch64.c, config/alpha/predicates.md,
931 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
932 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
933 config/mep/mep-pragma.c, config/mips/mips.c,
934 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
935 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
936 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
937 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
938 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
939 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
940 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
941 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
942 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
943 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
945 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
947 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
948 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
949 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
950 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
951 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
952 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
953 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
954 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
955 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
956 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
957 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
959 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
961 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
962 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
964 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
966 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
969 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
971 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
972 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
973 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
974 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
975 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
976 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
977 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
978 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
979 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
980 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
981 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
982 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
983 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
984 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
985 tree_fits_uhwi_p throughout.
987 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
989 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
990 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
991 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
992 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
993 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
994 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
995 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
996 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
997 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
998 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
999 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
1000 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
1001 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
1004 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1006 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
1007 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
1009 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
1011 * gcc/config/ia64/ia64.c (ia64_split_tmode_move): Mark load with
1012 `dead' flag if it kills address, not its post-increment.
1014 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
1016 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
1017 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
1018 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
1019 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
1020 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
1021 (gimple_call_with_bounds_p): New.
1022 (gimple_call_set_with_bounds): New.
1023 (gimple_call_num_nobnd_args): Remove.
1024 (gimple_call_nobnd_arg): Remove.
1025 * tree.h (CALL_WITH_BOUNDS_P): New.
1026 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
1028 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
1030 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
1031 (symtab_node_name): Rename to symtab_node::name.
1032 (cgraph_node_asm_name): Remove.
1033 (varpool_node_asm_name): Remove.
1034 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
1035 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
1036 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
1037 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
1038 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
1040 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1042 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
1043 * config/arm/arm.c (arm_cortex_a53_tune): New.
1044 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
1046 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1048 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
1049 (case ${target}): Add bdver4.
1050 * config/i386/bdver3.md: Add bdver4.
1051 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
1052 -march=native recognize bdver4 processors.
1053 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1054 bdver4 def_and_undef
1055 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
1056 (m_BDVER4): New definition.
1057 (m_AMD_MULTIPLE): Includes m_BDVER4.
1058 (processor_target_table): Add bdver4 entry.
1059 (static const char *const cpu_names): Add bdver4 entry.
1060 (software_prefetching_beneficial_p): Add bdver3.
1061 (ix86_option_override_internal): Add bdver4 instruction sets.
1062 (ix86_issue_rate): Add bdver4.
1063 (ix86_adjust_cost): Add bdver4.
1064 (ia32_multipass_dfa_lookahead): Add bdver4.
1065 (enum processor_model): Add M_AMDFAM15H_BDVER4.
1066 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
1067 (has_dispatch): Add bdver4.
1068 * config/i386/i386.h (TARGET_BDVER4): New definition.
1069 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
1070 (enum processor_type): Add PROCESSOR_BDVER4.
1071 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
1072 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
1073 * gcc/doc/extend.texi: Add details about bdver4.
1074 * gcc/doc/invoke.texi: Add details about bdver4. Add
1075 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
1077 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1079 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
1080 sdmode_stack_slot also in little-endian mode.
1082 2013-11-17 Jan Hubicka <jh@suse.cz>
1084 * doc/md.texi (setmem, movstr): Update documentation.
1085 * builtins.c (determine_block_size): New function.
1086 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
1087 (expand_builtin_memset_args): Use it and pass it to
1088 set_storage_via_setmem.
1089 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
1090 parameters; update call to expander.
1091 (emit_block_move_hints): Add min_size/max_size parameters.
1092 (clear_storage_hints): Likewise.
1093 (set_storage_via_setmem): Likewise.
1094 (clear_storage): Update.
1095 * expr.h (emit_block_move_hints, clear_storage_hints,
1096 set_storage_via_setmem): Update prototypes.
1097 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
1098 (ix86_expand_movmem, ix86_expand_setmem): Remove.
1099 (ix86_expand_movmem, ix86_expand_setmem): Remove.
1100 * i386.md (movmem, setmem): Pass parameters.
1102 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
1105 * config/i386/i386.c (ix86_address_subreg_operand): Do not
1106 reject non-integer subregs.
1107 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
1108 Move check for invalid x32 constant addresses ...
1109 (ix86_legitimate_address_p): ... here.
1111 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1113 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
1114 parameter and use it in REG_FRAME_RELATED_EXPR note.
1115 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
1117 (rs6000_emit_prologue): Likewise, but for little endian VSX
1118 stores, pass the source register of the store instead.
1120 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
1122 * gimple.h: Reorder prototypes to match .c declaration order, and
1123 remove protyotypes for functions not in gimple.c.
1124 (LABEL): Move to tree-into-ssa.c.
1125 * gimple.c: Remove unused prototypes.
1126 (get_base_address): Move to tree.c.
1127 * tree.c (get_base_address): Relocate from gimple.c.
1128 * builtins.h (validate_gimple_arglist): Add prototype.
1129 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
1130 * cfgexpand.h: New File.
1131 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
1132 * tree.h (build_addr): Move to tree-nested.h.
1133 * tree-nested.h: New File.
1134 (build_addr, lower_nested_functions, insert_field_into_struct): Add
1136 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
1137 * ipa-inline-analysis.c: Include cfgexpand.h.
1138 * cgraphunit.c: Include tree-nested.h.
1139 * omp-low.c: Likewise.
1140 * tree-parloops.c: Likewise.
1141 * gimple-low.h: Likewise.
1142 * tree-profile.h: Likewise.
1143 * expr.c: Include cfgexpand.h.
1144 * tree-affine.c: Likewise.
1145 * tree-ssa.c: Likewise.
1146 * tree-ssa-loop-im.c: Include trans-mem.h.
1147 * tree-ssa-tail-merge.c: Likewise.
1148 * value-prof.c: Include builtins.h and tree-nested.h.
1149 * tree-into-ssa.c (LABEL): Define here.
1151 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
1153 * config/arc/arc.c (arc_predicate_delay_insns): New function.
1154 (pass_data_arc_predicate_delay_insns): New pass_data instance.
1155 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
1156 (make_pass_arc_predicate_delay_insns): New function.
1157 (arc_init): Register pass_arc_predicate_delay_insns if
1158 flag_delayed_branch is active.
1160 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
1162 * config/arc/constraints.md (Rcq): Simplify register number test.
1164 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
1166 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
1168 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
1170 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
1173 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
1175 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
1176 * gimple-pretty-print.c (dump_omp_for): Add case for
1177 GF_OMP_FOR_KIND_CILKSIMD.
1178 * gimple.h (enum gf_mask): Restructure entries to add
1179 GF_OMP_FOR_KIND_CILKSIMD.
1180 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
1181 (gimplify_omp_for): Handle CILK_SIMD.
1182 (gimplify_expr): Add ccase for CILK_SIMD.
1183 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
1184 (build_outer_var_ref): Same.
1185 (check_omp_nesting_restrictions): Same.
1186 (lower_rec_input_clauses): Same.
1187 (lower_lastprivate_clauses): Same.
1188 (expand_omp_for): Same.
1189 (execute_expand_omp): Check flag_enable_cilkplus.
1190 (execute_lower_omp): Same.
1191 (diagnose_sb_0): Handle CILK_SIMD.
1192 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
1193 (setjmp_or_longjmp_p): New.
1194 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
1195 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
1196 * tree.def: Add tree code for CILK_SIMD.
1198 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1200 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
1202 (altivec_vperm_<mode>): Revert earlier little endian change.
1203 (*altivec_vperm_<mode>_internal): Remove.
1204 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
1205 (*altivec_vperm_<mode>_uns_internal): Remove.
1206 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
1208 2013-11-15 Jeff Law <law@redhat.com>
1210 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
1211 has_abnormal_or_outgoing_edge. Check for EH edges as well.
1212 * gimple-ssa-isolate-paths.c
1213 (find_implicit_erroneous_behaviour): Corresponding changes.
1214 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
1215 (find_explicit_erroneous_behaviour): Likewise.
1217 2013-11-15 Jeff Law <law@redhat.com>
1219 * ifcvt.c (find_cond_trap): Properly handle case where
1222 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
1224 * configure: Regenerate.
1226 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
1228 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
1229 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
1230 where it is incorrect or missing.
1232 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1234 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
1236 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
1237 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
1239 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
1240 pair with a TREE_CODE test and TREE_INT_CST_LOW.
1241 * tree-vect-generic.c (expand_vector_divmod): Likewise.
1243 2013-11-15 Richard Biener <rguenther@suse.de>
1245 PR tree-optimization/50262
1246 * tree-ssa-alias.h (struct pt_solution): Split
1247 vars_contains_global into vars_contains_nonlocal,
1248 vars_contains_escaped and vars_contains_escaped_heap.
1249 * tree-ssa-structalias.c (label_visit): Expand comment.
1250 (handle_lhs_call): Adjust comment.
1251 (set_uids_in_ptset): Set the new flags appropriately.
1252 (pt_solution_set): Adjust.
1253 (pt_solution_set_var): Likewise.
1254 (pt_solution_ior_into): Likewise.
1255 (pt_solution_includes_global): Likewise.
1256 (pt_solutions_intersect_1): Optimize escaped handling.
1257 (compute_points_to_sets): Remove heap variable globalization.
1258 (ipa_escaped_pt): Adjust initializer.
1259 (pass_data_ipa_pta): Do not run TODO_update_ssa.
1260 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
1261 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
1263 2013-11-15 Richard Biener <rguenther@suse.de>
1265 * tree-loop-distribution.c (tree_loop_distribution): Make sure
1266 to distribute all stores.
1268 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1270 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
1272 2013-11-15 Joseph Myers <joseph@codesourcery.com>
1274 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
1275 * configure.ac: Determine target_header_dir earlier.
1276 (--with-glibc-version): New configure option.
1277 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
1278 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
1279 * configure: Regenerate.
1280 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
1281 native toolchains for default.
1282 (--with-glibc-version): Document.
1284 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
1286 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
1288 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
1290 * lto-streamer-in.c (input function): Call cgraph_create_node if
1291 cgraph_get_node failed.
1293 2013-11-14 Olivier Hainque <hainque@adacore.com>
1295 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
1296 defer allocation of DECL_IGNORED_P variables at toplevel unless really
1297 small. Factorize size threshold computation from the existing one.
1298 (expand_used_vars): Refine comment.
1300 2013-11-14 Cong Hou <congh@google.com>
1302 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
1303 address field as it can be obtained from dr. Rename the struct.
1304 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
1305 steps of data references during sort.
1306 (vect_prune_runtime_alias_test_list): Adjust with the change to
1307 struct dr_with_seg_len.
1308 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1309 Adjust with the change to struct dr_with_seg_len.
1311 2013-11-14 Jeff Law <law@redhat.com>
1314 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
1315 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
1316 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
1317 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
1318 edges, then ignore it. If the statement exhibiting erroneous
1319 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
1320 then we can not optimize.
1321 (find_explicit_erroneous_behaviour): Likewise.
1323 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
1325 * gimplify-me.h: New file. Add prototypes.
1326 * gimplify.h: Don't include gimple.h.
1327 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
1328 Relocate from gimple.h.
1329 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
1330 is_gimple_sizepos): Move to gimplify.h.
1331 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
1332 (enum gsi_iterator_update): Move to gimple-iterator.h.
1333 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
1334 * gimplify-me.c: New File.
1335 (force_gimple_operand_1, force_gimple_operand,
1336 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
1337 gimple_regimplify_operands): Relocate from gimplify.c.
1338 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
1339 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
1340 gimple_regimplify_operands): Move to gimplify-me.c.
1341 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
1343 * Makefile.in (OBJS): Add gimplify-me.o
1344 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
1346 * cfgloopmanip.c: Likewise.
1347 * cgraphunit.c: Likewise.
1348 * cilk-common.c: Likewise.
1349 * fold-const.c: Likewise.
1350 * function.c: Likewise.
1351 * gimple-expr.c: Likewise.
1352 * gimple-fold.c: Likewise.
1353 * gimple-ssa-strength-reduction.c: Likewise.
1354 * gimple.c: Likewise.
1355 * graphite-clast-to-gimple.c: Likewise.
1356 * graphite-sese-to-poly.c: Likewise.
1357 * ipa-prop.c: Likewise.
1358 * ipa-split.c: Likewise.
1360 * langhooks.c: Likewise.
1361 * omp-low.c: Likewise.
1363 * stor-layout.c: Likewise.
1364 * targhooks.c: Likewise.
1365 * trans-mem.c: Likewise.
1366 * tree-affine.c: Likewise.
1367 * tree-cfg.c: Likewise.
1368 * tree-cfgcleanup.c: Likewise.
1369 * tree-complex.c: Likewise.
1370 * tree-if-conv.c: Likewise.
1371 * tree-inline.c: Likewise.
1372 * tree-loop-distribution.c: Likewise.
1373 * tree-nested.c: Likewise.
1374 * tree-parloops.c: Likewise.
1375 * tree-predcom.c: Likewise.
1376 * tree-profile.c: Likewise.
1377 * tree-scalar-evolution.c: Likewise.
1378 * tree-sra.c: Likewise.
1379 * tree-ssa-address.c: Likewise.
1380 * tree-ssa-ccp.c: Likewise.
1381 * tree-ssa-dce.c: Likewise.
1382 * tree-ssa-forwprop.c: Likewise.
1383 * tree-ssa-ifcombine.c: Likewise.
1384 * tree-ssa-loop-im.c: Likewise.
1385 * tree-ssa-loop-ivopts.c: Likewise.
1386 * tree-ssa-loop-manip.c: Likewise.
1387 * tree-ssa-loop-niter.c: Likewise.
1388 * tree-ssa-loop-prefetch.c: Likewise.
1389 * tree-ssa-loop-unswitch.c: Likewise.
1390 * tree-ssa-math-opts.c: Likewise.
1391 * tree-ssa-phiopt.c: Likewise.
1392 * tree-ssa-phiprop.c: Likewise.
1393 * tree-ssa-pre.c: Likewise.
1394 * tree-ssa-propagate.c: Likewise.
1395 * tree-ssa-reassoc.c: Likewise.
1396 * tree-ssa-sccvn.c: Likewise.
1397 * tree-ssa-strlen.c: Likewise.
1398 * tree-ssa.c: Likewise.
1399 * tree-switch-conversion.c: Likewise.
1400 * tree-tailcall.c: Likewise.
1401 * tree-vect-data-refs.c: Likewise.
1402 * tree-vect-generic.c: Likewise.
1403 * tree-vect-loop-manip.c: Likewise.
1404 * tree-vect-loop.c: Likewise.
1405 * tree-vect-patterns.c: Likewise.
1406 * tree-vect-stmts.c: Likewise.
1409 * value-prof.c: Likewise.
1410 * config/aarch64/aarch64.c: Likewise.
1411 * config/alpha/alpha.c: Likewise.
1412 * config/darwin.c: Likewise.
1413 * config/i386/i386.c: Likewise.
1414 * config/ia64/ia64.c: Likewise.
1415 * config/mep/mep.c: Likewise.
1416 * config/mips/mips.c: Likewise.
1417 * config/rs6000/rs6000.c: Likewise.
1418 * config/s390/s390.c: Likewise.
1419 * config/sh/sh.c: Likewise.
1420 * config/sparc/sparc.c: Likewise.
1421 * config/spu/spu.c: Likewise.
1422 * config/stormy16/stormy16.c: Likewise.
1423 * config/tilegx/tilegx.c: Likewise.
1424 * config/tilepro/tilepro.c: Likewise.
1425 * config/xtensa/xtensa.c: Likewise.
1427 2013-11-14 Diego Novillo <dnovillo@google.com>
1429 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
1431 2013-11-14 Diego Novillo <dnovillo@google.com>
1433 * tree.h: Include fold-const.h.
1434 (aggregate_value_p): Moved to function.h.
1435 (alloca_call_p): Moved to calls.h.
1436 (allocate_struct_function): Moved to function.h.
1437 (apply_tm_attr): Moved to attribs.h.
1438 (array_at_struct_end_p): Moved to expr.h.
1439 (array_ref_element_size): Moved to tree-dfa.h.
1440 (array_ref_low_bound): Moved to tree-dfa.h.
1441 (array_ref_up_bound): Moved to tree.h.
1442 (assemble_alias): Moved to cgraph.h.
1443 (bit_from_pos): Moved to stor-layout.h.
1444 (build_addr): Moved to tree-nested.h.
1445 (build_duplicate_type): Moved to tree-inline.h.
1446 (build_fold_addr_expr): Moved to fold-const.h.
1447 (build_fold_addr_expr_with_type): Moved to fold-const.h.
1448 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
1449 (build_fold_indirect_ref): Moved to fold-const.h.
1450 (build_fold_indirect_ref_loc): Moved to fold-const.h.
1451 (build_personality_function): Moved to tree.h.
1452 (build_range_check): Moved to fold-const.h.
1453 (build_simple_mem_ref): Moved to fold-const.h.
1454 (build_simple_mem_ref_loc): Moved to fold-const.h.
1455 (build_tm_abort_call): Moved to trans-mem.h.
1456 (byte_from_pos): Moved to stor-layout.h.
1457 (call_expr_flags): Moved to calls.h.
1458 (can_move_by_pieces): Moved to expr.h.
1459 (categorize_ctor_elements): Moved to expr.h.
1460 (change_decl_assembler_name): Moved to gcc-symtab.h.
1461 (combine_comparisons): Moved to fold-const.h.
1462 (complete_ctor_at_level_p): Moved to tree.h.
1463 (component_ref_field_offset): Moved to tree-dfa.h.
1464 (compute_builtin_object_size): Moved to tree-object-size.h.
1465 (compute_record_mode): Moved to stor-layout.h.
1466 (constant_boolean_node): Moved to fold-const.h.
1467 (constructor_static_from_elts_p): Moved to varasm.h.
1468 (cxx11_attribute_p): Moved to attribs.h.
1469 (debug_body): Moved to print-tree.h.
1470 (debug_find_tree): Moved to tree-inline.h.
1471 (debug_fold_checksum): Moved to fold-const.h.
1472 (debug_head): Moved to print-tree.h.
1473 (debug_head): Moved to print-tree.h.
1474 (debug_raw): Moved to print-tree.h.
1475 (debug_tree): Moved to print-tree.h.
1476 (debug_vec_tree): Moved to print-tree.h.
1477 (debug_verbose): Moved to print-tree.h.
1478 (debug_verbose): Moved to print-tree.h.
1479 (decl_attributes): Moved to attribs.h.
1480 (decl_binds_to_current_def_p): Moved to varasm.h.
1481 (decl_default_tls_model): Moved to varasm.h.
1482 (decl_replaceable_p): Moved to varasm.h.
1483 (div_if_zero_remainder): Moved to fold-const.h.
1484 (double_int mem_ref_offset): Moved to fold-const.h.
1485 (dump_addr): Moved to print-tree.h.
1486 (element_precision): Moved to machmode.h.
1487 (expand_dummy_function_end): Moved to function.h.
1488 (expand_function_end): Moved to function.h.
1489 (expand_function_start): Moved to function.h.
1490 (expand_label): Moved to stmt.h.
1491 (expr_first): Moved to tree-iterator.h.
1492 (expr_last): Moved to tree-iterator.h.
1493 (finalize_size_functions): Moved to stor-layout.h.
1494 (finish_builtin_struct): Moved to stor-layout.h.
1495 (finish_record_layout): Moved to stor-layout.h.
1496 (fixup_signed_type): Moved to stor-layout.h.
1497 (fixup_unsigned_type): Moved to stor-layout.h.
1498 (flags_from_decl_or_type): Moved to calls.h.
1499 (fold): Moved to fold-const.h.
1500 (fold_abs_const): Moved to fold-const.h.
1501 (fold_binary): Moved to fold-const.h.
1502 (fold_binary_loc): Moved to fold-const.h.
1503 (fold_binary_to_constant): Moved to fold-const.h.
1504 (fold_build1): Moved to fold-const.h.
1505 (fold_build1_initializer_loc): Moved to fold-const.h.
1506 (fold_build1_loc): Moved to fold-const.h.
1507 (fold_build1_stat_loc): Moved to fold-const.h.
1508 (fold_build2): Moved to fold-const.h.
1509 (fold_build2_initializer_loc): Moved to fold-const.h.
1510 (fold_build2_loc): Moved to fold-const.h.
1511 (fold_build2_stat_loc): Moved to fold-const.h.
1512 (fold_build3): Moved to fold-const.h.
1513 (fold_build3_loc): Moved to fold-const.h.
1514 (fold_build3_stat_loc): Moved to fold-const.h.
1515 (fold_build_call_array): Moved to fold-const.h.
1516 (fold_build_call_array_initializer): Moved to fold-const.h.
1517 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
1518 (fold_build_call_array_loc): Moved to fold-const.h.
1519 (fold_build_cleanup_point_expr): Moved to fold-const.h.
1520 (fold_convert): Moved to fold-const.h.
1521 (fold_convert_loc): Moved to fold-const.h.
1522 (fold_convertible_p): Moved to fold-const.h.
1523 (fold_defer_overflow_warnings): Moved to fold-const.h.
1524 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
1525 (fold_fma): Moved to fold-const.h.
1526 (fold_ignored_result): Moved to fold-const.h.
1527 (fold_indirect_ref): Moved to fold-const.h.
1528 (fold_indirect_ref_1): Moved to fold-const.h.
1529 (fold_indirect_ref_loc): Moved to fold-const.h.
1530 (fold_read_from_constant_string): Moved to fold-const.h.
1531 (fold_real_zero_addition_p): Moved to fold-const.h.
1532 (fold_single_bit_test): Moved to fold-const.h.
1533 (fold_strip_sign_ops): Moved to fold-const.h.
1534 (fold_ternary): Moved to fold-const.h.
1535 (fold_ternary_loc): Moved to fold-const.h.
1536 (fold_unary): Moved to tree-data-ref.h.
1537 (fold_unary_ignore_overflow): Moved to fold-const.h.
1538 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
1539 (fold_unary_loc): Moved to fold-const.h.
1540 (fold_unary_to_constant): Moved to fold-const.h.
1541 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
1542 (fold_undefer_overflow_warnings): Moved to fold-const.h.
1543 (folding_initializer): Moved to fold-const.h.
1544 (free_temp_slots): Moved to function.h.
1545 (generate_setjmp_warnings): Moved to function.h.
1546 (get_attribute_name): Moved to attribs.h.
1547 (get_identifier): Moved to stringpool.h.
1548 (get_identifier_with_length): Moved to stringpool.h.
1549 (get_inner_reference): Moved to tree.h.
1550 (gimple_alloca_call_p): Moved to calls.h.
1551 (gimplify_parameters): Moved to function.h.
1552 (highest_pow2_factor): Moved to expr.h.
1553 (indent_to): Moved to print-tree.h.
1554 (init_attributes): Moved to attribs.h.
1555 (init_dummy_function_start): Moved to function.h.
1556 (init_function_start): Moved to function.h.
1557 (init_inline_once): Moved to tree-inline.h.
1558 (init_object_sizes): Moved to tree-object-size.h.
1559 (init_temp_slots): Moved to function.h.
1560 (init_tree_optimization_optabs): Moved to optabs.h.
1561 (initialize_sizetypes): Moved to stor-layout.h.
1562 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
1563 (initializer_constant_valid_p): Moved to varasm.h.
1564 (int_const_binop): Moved to fold-const.h.
1565 (internal_reference_types): Moved to stor-layout.h.
1566 (invert_tree_comparison): Moved to fold-const.h.
1567 (invert_truthvalue): Moved to fold-const.h.
1568 (invert_truthvalue_loc): Moved to fold-const.h.
1569 (is_tm_ending_fndecl): Moved to trans-mem.h.
1570 (is_tm_may_cancel_outer): Moved to trans-mem.h.
1571 (is_tm_pure): Moved to trans-mem.h.
1572 (is_tm_safe): Moved to trans-mem.h.
1573 (layout_decl): Moved to stor-layout.h.
1574 (layout_type): Moved to stor-layout.h.
1575 (lookup_attribute_spec): Moved to attribs.h.
1576 (make_accum_type): Moved to stor-layout.h.
1577 (make_decl_one_only): Moved to varasm.h.
1578 (make_decl_rtl): Moved to tree.h.
1579 (make_decl_rtl_for_debug): Moved to varasm.h.
1580 (make_fract_type): Moved to stor-layout.h.
1581 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
1582 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
1583 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
1584 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
1585 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
1586 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
1587 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
1588 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
1589 (make_range): Moved to fold-const.h.
1590 (make_range_step): Moved to fold-const.h.
1591 (make_sat_signed_accum_type): Moved to stor-layout.h.
1592 (make_sat_signed_fract_type): Moved to stor-layout.h.
1593 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
1594 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
1595 (make_signed_accum_type): Moved to stor-layout.h.
1596 (make_signed_fract_type): Moved to stor-layout.h.
1597 (make_signed_type): Moved to stor-layout.h.
1598 (make_unsigned_accum_type): Moved to stor-layout.h.
1599 (make_unsigned_fract_type): Moved to stor-layout.h.
1600 (make_unsigned_type): Moved to stor-layout.h.
1601 (mark_decl_referenced): Moved to varasm.h.
1602 (mark_referenced): Moved to varasm.h.
1603 (may_negate_without_overflow_p): Moved to fold-const.h.
1604 (maybe_get_identifier): Moved to stringpool.h.
1605 (merge_ranges): Moved to fold-const.h.
1606 (merge_weak): Moved to varasm.h.
1607 (mode_for_size_tree): Moved to stor-layout.h.
1608 (multiple_of_p): Moved to fold-const.h.
1609 (must_pass_in_stack_var_size): Moved to calls.h.
1610 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
1611 (native_encode_expr): Moved to fold-const.h.
1612 (native_interpret_expr): Moved to fold-const.h.
1613 (non_lvalue): Moved to fold-const.h.
1614 (non_lvalue_loc): Moved to fold-const.h.
1615 (normalize_offset): Moved to stor-layout.h.
1616 (normalize_rli): Moved to stor-layout.h.
1617 (notice_global_symbol): Moved to varasm.h.
1618 (omit_one_operand): Moved to fold-const.h.
1619 (omit_one_operand_loc): Moved to fold-const.h.
1620 (omit_two_operands): Moved to fold-const.h.
1621 (omit_two_operands_loc): Moved to fold-const.h.
1622 (operand_equal_p): Moved to tree-data-ref.h.
1623 (parse_input_constraint): Moved to stmt.h.
1624 (parse_output_constraint): Moved to stmt.h.
1625 (place_field): Moved to stor-layout.h.
1626 (pop_function_context): Moved to function.h.
1627 (pop_temp_slots): Moved to function.h.
1628 (pos_from_bit): Moved to stor-layout.h.
1629 (preserve_temp_slots): Moved to function.h.
1630 (print_node): Moved to print-tree.h.
1631 (print_node_brief): Moved to print-tree.h.
1632 (print_rtl): Moved to rtl.h.
1633 (process_pending_assemble_externals): Moved to varasm.h.
1634 (ptr_difference_const): Moved to fold-const.h.
1635 (push_function_context): Moved to function.h.
1636 (push_struct_function): Moved to function.h.
1637 (push_temp_slots): Moved to function.h.
1638 (record_tm_replacement): Moved to trans-mem.h.
1639 (relayout_decl): Moved to stor-layout.h.
1640 (resolve_asm_operand_names): Moved to stmt.h.
1641 (resolve_unique_section): Moved to varasm.h.
1642 (rli_size_so_far): Moved to stor-layout.h.
1643 (rli_size_unit_so_far): Moved to stor-layout.h.
1644 (round_down): Moved to fold-const.h.
1645 (round_down_loc): Moved to fold-const.h.
1646 (round_up): Moved to fold-const.h.
1647 (round_up_loc): Moved to fold-const.h.
1648 (set_decl_incoming_rtl): Moved to emit-rtl.h.
1649 (set_decl_rtl): Moved to tree.h.
1650 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
1651 (set_user_assembler_name): Moved to varasm.h.
1652 (setjmp_call_p): Moved to calls.h.
1653 (size_binop): Moved to fold-const.h.
1654 (size_binop_loc): Moved to fold-const.h.
1655 (size_diffop): Moved to fold-const.h.
1656 (size_diffop_loc): Moved to fold-const.h.
1657 (size_int_kind): Moved to fold-const.h.
1658 (stack_protect_epilogue): Moved to function.h.
1659 (start_record_layout): Moved to stor-layout.h.
1660 (supports_one_only): Moved to varasm.h.
1661 (swap_tree_comparison): Moved to fold-const.h.
1662 (tm_malloc_replacement): Moved to trans-mem.h.
1663 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
1664 (tree build_invariant_address): Moved to fold-const.h.
1665 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
1666 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
1667 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
1668 (tree_expr_nonnegative_p): Moved to fold-const.h.
1669 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
1670 (tree_output_constant_def): Moved to varasm.h.
1671 (tree_overlaps_hard_reg_set): Moved to stmt.h.
1672 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
1673 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
1674 (tree_swap_operands_p): Moved to fold-const.h.
1675 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
1676 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
1677 (update_alignment_for_field): Moved to stor-layout.h.
1678 (use_register_for_decl): Moved to function.h.
1679 (variable_size): Moved to rtl.h.
1680 (vector_type_mode): Moved to stor-layout.h.
1681 * cgraph.h: Corresponding changes.
1682 * emit-rtl.h: Corresponding changes.
1683 * expr.h: Corresponding changes.
1684 * function.h: Corresponding changes.
1685 * optabs.h: Corresponding changes.
1686 * trans-mem.h: Corresponding changes.
1687 Protect against multiple inclusion.
1688 * tree-inline.h: Corresponding changes.
1689 * tree-iterator.h: Corresponding changes.
1690 * tree-dfa.h: Include expr.h.
1691 * tree-ssanames.h: Include stringpool.h.
1692 * attribs.h: New file.
1693 * calls.h: New file.
1694 * fold-const.h: New file.
1695 * gcc-symtab.h: New file.
1696 * print-rtl.h: New file.
1697 * print-tree.h: New file.
1699 * stor-layout.h: New file.
1700 * strinpool.h: New file.
1701 * tree-nested.h: New file
1702 * tree-object-size.h: New file.
1703 * varasm.h: New file.
1705 2013-11-14 Diego Novillo <dnovillo@google.com>
1707 * alias.c: Include varasm.h.
1709 * asan.c: Include calls.h.
1710 Include stor-layout.h.
1712 * attribs.c: Include stringpool.h.
1714 Include stor-layout.h.
1715 * builtins.c: Include stringpool.h.
1716 Include stor-layout.h.
1719 Include tree-object-size.h.
1720 * calls.c: Include stor-layout.h.
1722 Include stringpool.h.
1724 * cfgexpand.c: Include stringpool.h.
1726 Include stor-layout.h.
1728 Include print-tree.h.
1729 * cgraph.c: Include varasm.h.
1731 Include print-tree.h.
1732 * cgraphclones.c: Include stringpool.h.
1735 Move inclusion of rtl.h earlier in the file.
1736 * cgraphunit.c: Include varasm.h.
1737 Include stor-layout.h.
1738 Include stringpool.h.
1739 * cilk-common.c: Include stringpool.h.
1740 Include stor-layout.h.
1741 * combine.c: Include stor-layout.h.
1742 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
1743 Include stringpool.h.
1745 * config/aarch64/aarch64.c: Include stringpool.h.
1746 Include stor-layout.h.
1749 * config/alpha/alpha.c: Include stor-layout.h.
1752 * config/arc/arc.c: Include varasm.h.
1753 Include stor-layout.h.
1754 Include stringpool.h.
1756 * config/arm/arm.c: Include stringpool.h.
1757 Include stor-layout.h.
1760 * config/avr/avr-c.c: Include stor-layout.h.
1761 * config/avr/avr-log.c: Include print-tree.h.
1762 * config/avr/avr.c: Include print-tree.h.
1764 Include stor-layout.h.
1765 Include stringpool.h.
1766 * config/bfin/bfin.c: Include varasm.h.
1768 * config/c6x/c6x.c: Include stor-layout.h.
1771 Include stringpool.h.
1772 * config/cr16/cr16.c: Include stor-layout.h.
1774 * config/cris/cris.c: Include varasm.h.
1775 Include stor-layout.h.
1778 * config/darwin.c: Include stringpool.h.
1780 Include stor-layout.h.
1781 * config/epiphany/epiphany.c: Include stor-layout.h.
1784 Include stringpool.h.
1785 * config/fr30/fr30.c: Include stor-layout.h.
1787 * config/frv/frv.c: Include varasm.h.
1788 Include stor-layout.h.
1789 Include stringpool.h.
1790 * config/h8300/h8300.c: Include stor-layout.h.
1793 Include stringpool.h.
1794 * config/i386/i386.c: Include stringpool.h.
1797 Include stor-layout.h.
1799 * config/i386/winnt-cxx.c: Include stringpool.h.
1801 * config/i386/winnt.c: Include stringpool.h.
1803 * config/ia64/ia64-c.c: Include stringpool.h.
1804 * config/ia64/ia64.c: Include stringpool.h.
1805 Include stor-layout.h.
1808 * config/iq2000/iq2000.c: Include stor-layout.h.
1811 * config/lm32/lm32.c: Include calls.h.
1812 * config/m32c/m32c.c: Include stor-layout.h.
1815 * config/m32r/m32r.c: Include stor-layout.h.
1817 Include stringpool.h.
1819 * config/m68k/m68k.c: Include calls.h.
1820 Include stor-layout.h.
1822 * config/mcore/mcore.c: Include stor-layout.h.
1824 Include stringpool.h.
1826 * config/mep/mep.c: Include varasm.h.
1828 Include stringpool.h.
1829 Include stor-layout.h.
1830 * config/microblaze/microblaze.c: Include varasm.h.
1831 Include stor-layout.h.
1833 * config/mips/mips.c: Include varasm.h.
1834 Include stringpool.h.
1835 Include stor-layout.h.
1837 * config/mmix/mmix.c: Include varasm.h.
1838 Include stor-layout.h.
1840 * config/mn10300/mn10300.c: Include stor-layout.h.
1843 * config/moxie/moxie.c: Include stor-layout.h.
1846 * config/msp430/msp430.c: Include stor-layout.h.
1848 * config/nds32/nds32.c: Include stor-layout.h.
1851 * config/pa/pa.c: Include stor-layout.h.
1852 Include stringpool.h.
1855 * config/pdp11/pdp11.c: Include stor-layout.h.
1858 * config/picochip/picochip.c: Include calls.h.
1859 Include stor-layout.h.
1860 Include stringpool.h.
1862 * config/rl78/rl78.c: Include varasm.h.
1863 Include stor-layout.h.
1865 * config/rs6000/rs6000-c.c: Include stor-layout.h.
1866 Include stringpool.h.
1867 * config/rs6000/rs6000.c: Include stringpool.h.
1868 Include stor-layout.h.
1870 Include print-tree.h.
1872 * config/rx/rx.c: Include varasm.h.
1873 Include stor-layout.h.
1875 * config/s390/s390.c: Include print-tree.h.
1876 Include stringpool.h.
1877 Include stor-layout.h.
1880 * config/score/score.c: Include stringpool.h.
1883 Include stor-layout.h.
1884 * config/sh/sh-c.c: Include stringpool.h.
1885 Include attribs.h.h.
1886 * config/sh/sh.c: Include stringpool.h.
1887 Include stor-layout.h.
1890 * config/sol2-c.c: Include stringpool.h.
1892 * config/sol2-cxx.c: Include stringpool.h.
1893 * config/sol2.c: Include stringpool.h.
1895 * config/sparc/sparc.c: Include stringpool.h.
1896 Include stor-layout.h.
1899 * config/spu/spu-c.c: Include stringpool.h.
1900 * config/spu/spu.c: Include stringpool.h.
1901 Include stor-layout.h.
1904 * config/stormy16/stormy16.c: Include stringpool.h.
1905 Include stor-layout.h.
1908 * config/tilegx/tilegx.c: Include stringpool.h.
1909 Include stor-layout.h.
1912 * config/tilepro/tilepro.c: Include stringpool.h.
1913 Include stor-layout.h.
1916 * config/v850/v850-c.c: Include stringpool.h.
1918 * config/v850/v850.c: Include stringpool.h.
1919 Include stor-layout.h.
1922 * config/vax/vax.c: Include calls.h.
1924 * config/vms/vms.c: Include stringpool.h.
1925 * config/vxworks.c: Include stringpool.h.
1926 * config/xtensa/xtensa.c: Include stringpool.h.
1927 Include stor-layout.h.
1930 * convert.c: Include stor-layout.h.
1931 * coverage.c: Include stringpool.h.
1932 Include stor-layout.h.
1933 * dbxout.c: Include varasm.h.
1934 Include stor-layout.h.
1935 * dojump.c: Include stor-layout.h.
1936 * dse.c: Include stor-layout.h.
1937 * dwarf2asm.c: Include stringpool.h.
1939 * dwarf2cfi.c: Include stor-layout.h.
1940 * dwarf2out.c: Include rtl.h.
1941 Include stringpool.h.
1942 Include stor-layout.h.
1946 Move inclusion of rtl.h earlier in the file.
1947 * emit-rtl.c: Include varasm.h.
1948 * except.c: Include stringpool.h.
1949 Include stor-layout.h.
1950 * explow.c: Include stor-layout.h.
1951 * expmed.c: Include stor-layout.h.
1952 * expr.c: Include stringpool.h.
1953 Include stor-layout.h.
1956 * final.c: Include varasm.h.
1957 * fold-const.c: Include stor-layout.h.
1959 Include tree-iterator.h.
1960 * function.c: Include stor-layout.h.
1962 Include stringpool.h.
1963 * genattrtab.c (write_header): Emit includes for varasm.h,
1964 stor-layout.h and calls.h.
1965 * genautomata.c (main): Likewise.
1966 * genemit.c: Likewise.
1967 * genopinit.c: Likewise.
1968 * genoutput.c (output_prologue): Likewise.
1969 * genpeep.c: Likewise.
1970 * genpreds.c (write_insn_preds_c): Likewise.
1971 * gengtype.c (open_base_files): Add stringpool.h.
1972 * gimple-expr.c: Include stringpool.h.
1973 Include stor-layout.h.
1974 * gimple-fold.c: Include stringpool.h.
1977 Include stor-layout.h.
1978 * gimple-low.c: Include tree-nested.h.
1980 * gimple-pretty-print.c: Include stringpool.h.
1981 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
1983 * gimple-walk.c: Include stmt.h.
1984 * gimple.c: Include calls.h.
1986 Include stor-layout.h.
1987 * gimplify.c: Include stringpool.h.
1990 Include stor-layout.h.
1992 Include print-tree.h.
1994 * gimplify-me.c: Include stmt.h
1995 Include stor-layout.h
1996 * internal-fn.c: Include stor-layout.h.
1997 * ipa-devirt.c: Include print-tree.h.
1999 * ipa-inline-analysis.c: Include stor-layout.h.
2000 Include stringpool.h.
2001 Include print-tree.h.
2002 * ipa-inline.c: Include trans-mem.h.
2004 * ipa-prop.c: Include expr.h.
2005 Include stor-layout.h.
2006 Include print-tree.h.
2007 * ipa-pure-const.c: Include print-tree.h.
2009 * ipa-reference.c: Include calls.h.
2010 * ipa-split.c: Include stringpool.h.
2013 * ipa.c: Include calls.h.
2014 Include stringpool.h.
2015 * langhooks.c: Include stringpool.h.
2017 * lto-cgraph.c: Include stringpool.h.
2018 * lto-streamer-in.c: Include stringpool.h.
2019 * lto-streamer-out.c: Include stor-layout.h.
2020 Include stringpool.h.
2021 * omp-low.c: Include stringpool.h.
2022 Include stor-layout.h.
2024 * optabs.c: Include stor-layout.h.
2025 Include stringpool.h.
2027 * passes.c: Include varasm.h.
2028 * predict.c: Include calls.h.
2029 * print-rtl.c: Include print-tree.h.
2030 * print-tree.c: Include varasm.h.
2031 Include print-rtl.h.
2032 Include stor-layout.h.
2033 * realmpfr.c: Include stor-layout.h.
2034 * reg-stack.c: Include varasm.h.
2035 * sdbout.c: Include varasm.h.
2036 Include stor-layout.h.
2037 * simplify-rtx.c: Include varasm.h.
2038 * stmt.c: Include varasm.h.
2039 Include stor-layout.h.
2040 * stor-layout.c: Include stor-layout.h.
2041 Include stringpool.h.
2043 Include print-tree.h.
2044 * symtab.c: Include rtl.h.
2045 Include print-tree.h.
2049 * targhooks.c: Include stor-layout.h.
2051 * toplev.c: Include varasm.h.
2052 Include tree-inline.h.
2053 * trans-mem.c: Include calls.h.
2057 * tree-affine.c: Include expr.h.
2058 * tree-browser.c: Include print-tree.h.
2059 * tree-call-cdce.c: Include stor-layout.h.
2060 * tree-cfg.c: Include trans-mem.h.
2061 Include stor-layout.h.
2062 Include print-tree.h.
2063 * tree-complex.c: Include stor-layout.h.
2064 * tree-data-ref.c: Include expr.h.
2065 * tree-dfa.c: Include stor-layout.h.
2066 * tree-eh.c: Include expr.h.
2068 * tree-emutls.c: Include stor-layout.h.
2070 * tree-if-conv.c: Include stor-layout.h.
2071 * tree-inline.c: Include stor-layout.h.
2073 * tree-loop-distribution.c: Include stor-layout.h.
2074 * tree-nested.c: Include stringpool.h.
2075 Include stor-layout.h.
2076 * tree-object-size.c: Include tree-object-size.h.
2077 * tree-outof-ssa.c: Include stor-layout.h.
2078 * tree-parloops.c: Include stor-layout.h.
2079 Include tree-nested.h.
2080 * tree-pretty-print.c: Include stor-layout.h.
2082 * tree-profile.c: Include varasm.h.
2083 Include tree-nested.h.
2084 * tree-scalar-evolution.c: Include expr.h.
2085 * tree-sra.c: Include stor-layout.h.
2086 * tree-ssa-address.c: Include stor-layout.h.
2087 * tree-ssa-ccp.c: Include stor-layout.h.
2088 * tree-ssa-dce.c: Include calls.h.
2089 * tree-ssa-dom.c: Include stor-layout.h.
2090 * tree-ssa-forwprop.c: Include stor-layout.h.
2091 * tree-ssa-ifcombine.c: Include stor-layout.h.
2092 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
2093 * tree-ssa-loop-niter.c: Include calls.h.
2095 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
2096 * tree-ssa-math-opts.c: Include stor-layout.h.
2097 * tree-ssa-operands.c: Include stmt.h.
2098 Include print-tree.h.
2099 * tree-ssa-phiopt.c: Include stor-layout.h.
2100 * tree-ssa-reassoc.c: Include stor-layout.h.
2101 * tree-ssa-sccvn.c: Include stor-layout.h.
2102 * tree-ssa-sink.c: Include stor-layout.h.
2103 * tree-ssa-strlen.c: Include stor-layout.h.
2104 * tree-ssa-structalias.c: Include stor-layout.h.
2106 * tree-ssa-tail-merge.c: Include stor-layout.h.
2107 Include trans-mem.h.
2108 * tree-ssa-uncprop.c: Include stor-layout.h.
2109 * tree-ssa.c: Include stor-layout.h.
2110 * tree-ssanames.c: Include stor-layout.h.
2111 * tree-streamer-in.c: Include stringpool.h.
2112 * tree-streamer-out.c: Include stor-layout.h.
2113 * tree-switch-conversion.c: Include varasm.h.
2114 Include stor-layout.h.
2115 * tree-tailcall.c: Include stor-layout.h.
2116 * tree-vect-data-refs.c: Include stor-layout.h.
2117 * tree-vect-generic.c: Include stor-layout.h.
2118 * tree-vect-loop.c: Include stor-layout.h.
2119 * tree-vect-patterns.c: Include stor-layout.h.
2120 * tree-vect-slp.c: Include stor-layout.h.
2121 * tree-vect-stmts.c: Include stor-layout.h.
2122 * tree-vectorizer.c: Include stor-layout.h.
2123 * tree-vrp.c: Include stor-layout.h.
2125 * tree.c: Include stor-layout.h.
2129 * tsan.c: Include expr.h.
2130 * ubsan.c: Include stor-layout.h.
2131 Include stringpool.h.
2132 * value-prof.c: Include tree-nested.h.
2134 * var-tracking.c: Include varasm.h.
2135 Include stor-layout.h.
2136 * varasm.c: Include stor-layout.h.
2137 Include stringpool.h.
2138 Include gcc-symtab.h.
2140 * varpool.c: Include varasm.h.
2141 * vmsdbgout.c: Include varasm.h.
2142 * xcoffout.c: Include varasm.h.
2144 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
2146 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
2149 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2151 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
2153 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2154 Alan Modra <amodra@gmail.com>
2156 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
2157 (RS6000_SAVE_TOC): Remove.
2158 (RS6000_TOC_SAVE_SLOT): New macro.
2159 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
2160 (rs6000_parm_start): Use it.
2161 (rs6000_function_arg_advance_1): Likewise.
2162 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
2163 (rs6000_emit_epilogue): Likewise.
2164 (rs6000_call_aix): Likewise.
2165 (rs6000_output_function_prologue): Do not save/restore r11
2166 around calling _mcount for ABI_ELFv2.
2168 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2169 Alan Modra <amodra@gmail.com>
2171 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
2173 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
2174 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
2175 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
2176 (rs6000_function_parms_need_stack): Likewise.
2177 (rs6000_reg_parm_stack_space): Likewise.
2178 (rs6000_function_arg): Do not replace BLKmode by Pmode when
2179 returning a register argument.
2181 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2182 Michael Gschwind <mkg@us.ibm.com>
2184 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
2185 (ALTIVEC_ARG_MAX_RETURN): Likewise.
2186 (FUNCTION_VALUE_REGNO_P): Use them.
2187 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
2188 (rs6000_return_in_msb): New function.
2189 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
2190 Handle aggregates of up to 16 bytes for ELFv2.
2191 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
2193 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2194 Michael Gschwind <mkg@us.ibm.com>
2196 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
2197 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
2198 (rs6000_discover_homogeneous_aggregate): Likewise.
2199 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
2200 (rs6000_function_arg_advance_1): Likewise.
2201 (rs6000_function_arg): Likewise.
2202 (rs6000_arg_partial_bytes): Likewise.
2203 (rs6000_psave_function_arg): Handle BLKmode arguments.
2205 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2206 Michael Gschwind <mkg@us.ibm.com>
2208 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
2209 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
2210 (rs6000_discover_homogeneous_aggregate): Likewise.
2211 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
2212 (rs6000_function_arg_advance_1): Likewise.
2213 (rs6000_function_arg): Likewise.
2214 (rs6000_arg_partial_bytes): Likewise.
2215 (rs6000_psave_function_arg): Handle BLKmode arguments.
2217 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2219 * config/rs6000/rs6000.c (machine_function): New member
2221 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
2222 (rs6000_output_mi_thunk): Set r2_setup_needed.
2223 (rs6000_output_function_prologue): Output global entry point
2224 prologue and local entry point marker if needed for ABI_ELFv2.
2225 Output -mprofile-kernel code here.
2226 (output_function_profiler): Do not output -mprofile-kernel
2227 code here; moved to rs6000_output_function_prologue.
2228 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
2230 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
2231 (rs6000_output_function_entry): Likewise.
2232 (rs6000_assemble_integer): Likewise.
2233 (rs6000_elf_encode_section_info): Likewise.
2234 (rs6000_elf_declare_function_name): Do not create dot symbols
2235 or .opd section for ABI_ELFv2.
2237 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
2238 (rs6000_trampoline_init): Likewise.
2239 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
2241 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
2242 for function descriptors in ABI_ELFv2.
2244 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
2245 on ABI_AIX only, not ABI_ELFv2.
2246 ("*call_value_indirect_aix<mode>"): Likewise.
2247 ("*call_indirect_elfv2<mode>"): New pattern.
2248 ("*call_value_indirect_elfv2<mode>"): Likewise.
2250 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
2251 check for function descriptors in ABI_ELFv2.
2252 ("current_file_function_operand"): Likewise.
2254 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
2256 (FUNC_NAME): Define ELFv2 variant.
2257 (JUMP_TARGET): Likewise.
2258 (FUNC_START): Likewise.
2259 (HIDDEN_FUNC): Likewise.
2260 (FUNC_END): Likeiwse.
2262 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2264 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
2265 and --with-abi=elfv2.
2266 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
2267 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
2268 (mabi=elfv2): Likewise.
2269 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
2270 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
2272 (ELFv2_ABI_CHECK): New macro.
2273 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
2274 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
2275 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
2276 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
2277 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
2279 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
2280 (debug_stack_info): Likewise.
2281 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
2282 (rs6000_legitimize_tls_address): Likewise.
2283 (rs6000_conditional_register_usage): Likewise.
2284 (rs6000_emit_move): Likewise.
2285 (init_cumulative_args): Likewise.
2286 (rs6000_function_arg_advance_1): Likewise.
2287 (rs6000_function_arg): Likewise.
2288 (rs6000_arg_partial_bytes): Likewise.
2289 (rs6000_output_function_entry): Likewise.
2290 (rs6000_assemble_integer): Likewise.
2291 (rs6000_savres_strategy): Likewise.
2292 (rs6000_stack_info): Likewise.
2293 (rs6000_function_ok_for_sibcall): Likewise.
2294 (rs6000_emit_load_toc_table): Likewise.
2295 (rs6000_savres_routine_name): Likewise.
2296 (ptr_regno_for_savres): Likewise.
2297 (rs6000_emit_prologue): Likewise.
2298 (rs6000_emit_epilogue): Likewise.
2299 (rs6000_output_function_epilogue): Likewise.
2300 (output_profile_hook): Likewise.
2301 (output_function_profiler): Likewise.
2302 (rs6000_trampoline_size): Likewise.
2303 (rs6000_trampoline_init): Likewise.
2304 (rs6000_elf_output_toc_section_asm_op): Likewise.
2305 (rs6000_elf_encode_section_info): Likewise.
2306 (rs6000_elf_reloc_rw_mask): Likewise.
2307 (rs6000_elf_declare_function_name): Likewise.
2308 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
2309 except that rs6000_compat_align_parm is always assumed false.
2310 (rs6000_gimplify_va_arg): Likewise.
2311 (rs6000_call_aix): Update comment.
2312 (rs6000_sibcall_aix): Likewise.
2313 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
2314 Treat ABI_ELFv2 the same as ABI_AIX.
2315 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
2316 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
2317 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
2318 ("load_toc_aix_si"): Likewise.
2319 ("load_toc_aix_di"): Likewise.
2321 ("call_value"): Likewise.
2322 ("*call_local_aix<mode>"): Likewise.
2323 ("*call_value_local_aix<mode>"): Likewise.
2324 ("*call_nonlocal_aix<mode>"): Likewise.
2325 ("*call_value_nonlocal_aix<mode>"): Likewise.
2326 ("*call_indirect_aix<mode>"): Likewise.
2327 ("*call_value_indirect_aix<mode>"): Likewise.
2328 ("sibcall"): Likewise.
2329 ("sibcall_value"): Likewise.
2330 ("*sibcall_aix<mode>"): Likewise.
2331 ("*sibcall_value_aix<mode>"): Likewise.
2332 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
2333 ("current_file_function_operand"): Likewise.
2335 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2337 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
2338 by making use of the fact that for vector / floating point arguments
2339 passed both in VRs/FPRs and in the fixed parameter area, the partial
2340 bytes mechanism is in fact not used.
2342 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2344 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
2345 (rs6000_finish_function_arg): Likewise.
2346 (rs6000_function_arg): Use rs6000_psave_function_arg and
2347 rs6000_finish_function_arg to handle both vector and floating
2348 point arguments that are also passed in GPRs / the stack.
2350 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2352 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
2353 (USE_ALTIVEC_FOR_ARG_P): Likewise.
2354 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
2355 (rs6000_function_arg_advance_1):Likewise.
2356 (rs6000_darwin64_record_arg_recurse): Likewise.
2357 (rs6000_function_arg): Likewise.
2358 (rs6000_arg_partial_bytes): Likewise.
2360 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2362 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
2363 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
2364 (rs6000_savres_strategy): Likewise.
2365 (rs6000_return_addr): Likewise.
2366 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
2367 testing for ABI_V4 (since ABI_DARWIN is impossible here).
2368 (rs6000_emit_prologue): Likewise.
2369 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
2370 (rs6000_elf_declare_function_name): Remove duplicated test.
2371 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
2372 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
2373 ("load_toc_v4_PIC_1_normal"): Likewise.
2374 ("load_toc_v4_PIC_1_476"): Likewise.
2375 ("load_toc_v4_PIC_1b"): Likewise.
2376 ("load_toc_v4_PIC_1b_normal"): Likewise.
2377 ("load_toc_v4_PIC_1b_476"): Likewise.
2378 ("load_toc_v4_PIC_2"): Likewise.
2379 ("load_toc_v4_PIC_3b"): Likewise.
2380 ("load_toc_v4_PIC_3c"): Likewise.
2381 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
2382 (RS6000_SAVE_AREA): Likewise.
2383 (FP_ARG_MAX_REG): Likewise.
2384 (RETURN_ADDRESS_OFFSET): Likewise.
2385 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
2387 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
2388 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
2390 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2392 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
2393 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
2394 Create call insn directly instead of via various gen_... routines.
2395 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
2396 (rs6000_sibcall_aix): New function.
2397 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
2398 (TOC_SAVE_OFFSET_64BIT): Likewise.
2399 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
2400 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
2401 (AIX_FUNC_DESC_SC_32BIT): Likewise.
2402 (AIX_FUNC_DESC_SC_64BIT): Likewise.
2403 ("call" expander): Call rs6000_call_aix.
2404 ("call_value" expander): Likewise.
2405 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
2406 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
2407 ("*call_indirect_aix<mode>"): ... by this insn pattern.
2408 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
2409 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
2410 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
2411 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
2412 ("*call_nonlocal_aix<mode>"): ... this pattern.
2413 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
2414 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
2415 ("*call_local_aix<mode>"): New insn pattern.
2416 ("*call_value_local_aix<mode>"): Likewise.
2417 ("sibcall" expander): Call rs6000_sibcall_aix.
2418 ("sibcall_value" expander): Likewise. Move earlier in file.
2419 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
2420 ("*sibcall_aix<mode>"): ... this pattern.
2421 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
2422 ("*sibcall_value_aix<mode>"): ... this pattern.
2423 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
2424 (rs6000_call_aix): Add prototype.
2425 (rs6000_sibcall_aix): Likewise.
2427 2013-11-14 Jakub Jelinek <jakub@redhat.com>
2430 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
2431 isn't confused by the artificial decl.
2433 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2435 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
2436 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
2437 Instead, add USEs of all modified call-saved CR fields to the
2438 insn storing the result to the stack slot, and provide an
2439 appropriate REG_FRAME_RELATED_EXPR for that insn.
2440 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
2441 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
2443 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2444 Alan Modra <amodra@gmail.com>
2446 * function.c (assign_parms): Use all.reg_parm_stack_space instead
2447 of re-evaluating REG_PARM_STACK_SPACE target macro.
2448 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
2449 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
2450 (assign_parm_find_entry_rtl): Update call.
2451 * calls.c (initialize_argument_information): Update call.
2452 (emit_library_call_value_1): Likewise.
2453 * expr.h (locate_and_pad_parm): Update prototype.
2455 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2457 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
2460 2013-11-14 DJ Delorie <dj@redhat.com>
2462 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
2465 2013-11-14 Jeff Law <law@redhat.com>
2467 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
2468 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
2470 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
2472 * doc/invoke.texi: Update documentation for AArch64's -mcpu
2475 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
2477 * config/aarch64/aarch64-cores.def (example-1): Remove.
2478 (example-2): Likewise.
2479 * config/aarch64/aarch64-tune.md: Regenerate.
2480 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
2481 (generic_sched): Remove "large", "small".
2482 * config/aarch64/large.md: Delete.
2483 * config/aarch64/small.md: Delete.
2485 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
2487 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
2488 * config/aarch64/aarch64-tune.md: Regenerate.
2489 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
2490 (generic_sched): "no" if we are tuning for cortexa15.
2491 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
2494 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
2496 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
2497 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
2498 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
2499 (all_cores): Use cortexa53 when tuning for "generic".
2500 (aarch64_override_options): Fix comment.
2501 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
2502 * config/aarch64/aarch64-generic.md: Delete.
2504 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
2506 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
2508 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2510 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
2511 (generic_rtx_cost_table): Remove.
2512 (aarch64_rtx_costs): Use fields from cpu_cost_table.
2513 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
2515 (cpu_rtx_cost_table): Remove.
2517 2013-11-14 Julian Brown <julian@codesourcery.com>
2518 Joey Ye <joey.ye@arm.com>
2520 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
2521 (arm_v7m_tune): New.
2522 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
2523 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
2524 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
2525 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
2527 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
2530 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
2533 2013-11-14 Jakub Jelinek <jakub@redhat.com>
2534 Uros Bizjak <ubizjak@gmail.com>
2537 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
2538 operands[2] satisfies_constraint_Z that might have bit 31 set.
2540 2013-11-13 Jeff Law <law@redhat.com>
2542 PR tree-optimization/59102
2543 * gimple-ssa-isolate-paths.c
2544 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
2545 gimple assignment before looking at gimple_assign_lhs.
2547 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
2549 * ira.c: Add comment about threads at the top of file.
2551 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
2553 * ira-color.c (coalesce_allocnos): Don't allocate and free
2556 2013-11-14 Tom de Vries <tom@codesourcery.com>
2558 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
2559 equality for GIMPLE_ASSIGN.
2561 2013-11-14 Tom de Vries <tom@codesourcery.com>
2563 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
2565 (gimple_equal_p): ... here.
2567 2013-11-14 Tom de Vries <tom@codesourcery.com>
2569 * trans-mem.c (is_tm_ending): New function.
2570 * gimple.h (is_tm_ending): Declare.
2571 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
2573 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
2575 2013-11-14 Tom de Vries <tom@codesourcery.com>
2577 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
2579 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
2581 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
2582 (struct walk_stmt_info): Relocate here from gimple.h.
2583 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
2584 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
2585 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
2586 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
2587 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
2588 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
2589 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
2590 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
2591 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
2592 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
2593 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
2594 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
2595 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
2596 (struct walk_stmt_info): Move to gimple-walk.h.
2597 (gimple_seq_set_location): Move to gimple.c
2598 * gimple-walk.c: New File.
2599 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
2600 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
2601 walk_stmt_load_store_ops): Relocate here from gimple.c.
2602 * gimple-iterator.c: Include gimple-iterator.h.
2603 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
2604 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
2605 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
2607 (gimple_seq_set_location): Relocate from gimple.h.
2608 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
2609 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
2610 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
2611 * Makefile.in (OBJS): Add gimple-walk.o
2612 * asan.c: Update Include list as required for gimple-iterator.h and
2614 * cfgexpand.c: Likewise.
2615 * cfgloop.c: Likewise.
2616 * cfgloopmanip.c: Likewise.
2617 * cgraph.c: Likewise.
2618 * cgraphbuild.c: Likewise.
2619 * cgraphunit.c: Likewise.
2620 * gimple-fold.c: Likewise.
2621 * gimple-low.c: Likewise.
2622 * gimple-pretty-print.c: Likewise.
2623 * gimple-ssa-isolate-paths.c: Likewise.
2624 * gimple-ssa-strength-reduction.c: Likewise.
2625 * gimple-streamer-in.c: Likewise.
2626 * gimple-streamer-out.c: Likewise.
2627 * gimplify.c: Likewise.
2628 * graphite-blocking.c: Likewise.
2629 * graphite-clast-to-gimple.c: Likewise.
2630 * graphite-dependences.c: Likewise.
2631 * graphite-interchange.c: Likewise.
2632 * graphite-optimize-isl.c: Likewise.
2633 * graphite-poly.c: Likewise.
2634 * graphite-scop-detection.c: Likewise.
2635 * graphite-sese-to-poly.c: Likewise.
2636 * graphite.c: Likewise.
2637 * ipa-inline-analysis.c: Likewise.
2638 * ipa-profile.c: Likewise.
2639 * ipa-prop.c: Likewise.
2640 * ipa-pure-const.c: Likewise.
2641 * ipa-split.c: Likewise.
2642 * lto-streamer-in.c: Likewise.
2643 * lto-streamer-out.c: Likewise.
2644 * omp-low.c: Likewise.
2645 * predict.c: Likewise.
2646 * profile.c: Likewise.
2648 * tracer.c: Likewise.
2649 * trans-mem.c: Likewise.
2650 * tree-call-cdce.c: Likewise.
2651 * tree-cfg.c: Likewise.
2652 * tree-cfgcleanup.c: Likewise.
2653 * tree-complex.c: Likewise.
2654 * tree-data-ref.c: Likewise.
2655 * tree-dfa.c: Likewise.
2656 * tree-eh.c: Likewise.
2657 * tree-emutls.c: Likewise.
2658 * tree-if-conv.c: Likewise.
2659 * tree-inline.c: Likewise.
2660 * tree-into-ssa.c: Likewise.
2661 * tree-loop-distribution.c: Likewise.
2662 * tree-nested.c: Likewise.
2663 * tree-nrv.c: Likewise.
2664 * tree-object-size.c: Likewise.
2665 * tree-outof-ssa.c: Likewise.
2666 * tree-parloops.c: Likewise.
2667 * tree-predcom.c: Likewise.
2668 * tree-profile.c: Likewise.
2669 * tree-scalar-evolution.c: Likewise.
2670 * tree-sra.c: Likewise.
2671 * tree-ssa-ccp.c: Likewise.
2672 * tree-ssa-coalesce.c: Likewise.
2673 * tree-ssa-copy.c: Likewise.
2674 * tree-ssa-copyrename.c: Likewise.
2675 * tree-ssa-dce.c: Likewise.
2676 * tree-ssa-dom.c: Likewise.
2677 * tree-ssa-dse.c: Likewise.
2678 * tree-ssa-forwprop.c: Likewise.
2679 * tree-ssa-ifcombine.c: Likewise.
2680 * tree-ssa-live.c: Likewise.
2681 * tree-ssa-loop-ch.c: Likewise.
2682 * tree-ssa-loop-im.c: Likewise.
2683 * tree-ssa-loop-ivcanon.c: Likewise.
2684 * tree-ssa-loop-ivopts.c: Likewise.
2685 * tree-ssa-loop-manip.c: Likewise.
2686 * tree-ssa-loop-niter.c: Likewise.
2687 * tree-ssa-loop-prefetch.c: Likewise.
2688 * tree-ssa-loop.c: Likewise.
2689 * tree-ssa-math-opts.c: Likewise.
2690 * tree-ssa-phiopt.c: Likewise.
2691 * tree-ssa-phiprop.c: Likewise.
2692 * tree-ssa-pre.c: Likewise.
2693 * tree-ssa-propagate.c: Likewise.
2694 * tree-ssa-reassoc.c: Likewise.
2695 * tree-ssa-sink.c: Likewise.
2696 * tree-ssa-strlen.c: Likewise.
2697 * tree-ssa-structalias.c: Likewise.
2698 * tree-ssa-tail-merge.c: Likewise.
2699 * tree-ssa-ter.c: Likewise.
2700 * tree-ssa-threadedge.c: Likewise.
2701 * tree-ssa-threadupdate.c: Likewise.
2702 * tree-ssa-uncprop.c: Likewise.
2703 * tree-ssa-uninit.c: Likewise.
2704 * tree-ssa.c: Likewise.
2705 * tree-stdarg.c: Likewise.
2706 * tree-switch-conversion.c: Likewise.
2707 * tree-tailcall.c: Likewise.
2708 * tree-vect-data-refs.c: Likewise.
2709 * tree-vect-generic.c: Likewise.
2710 * tree-vect-loop-manip.c: Likewise.
2711 * tree-vect-loop.c: Likewise.
2712 * tree-vect-patterns.c: Likewise.
2713 * tree-vect-slp.c: Likewise.
2714 * tree-vect-stmts.c: Likewise.
2715 * tree-vectorizer.c: Likewise.
2716 * tree-vrp.c: Likewise.
2719 * value-prof.c: Likewise.
2720 * vtable-verify.c: Likewise.
2722 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
2724 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
2727 2013-11-13 Jeff Law <law@redhat.com>
2729 * PR middle-end/59119
2730 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
2731 function, extracted from gimple_ssa_isolate_erroneous_paths.
2732 (find_explicit_erroneous_behaviour): Similarly.
2733 (insert_trap_and_remove_trailing_statements): Remove statements
2736 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
2738 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
2739 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
2740 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
2741 looking at INSN_CODE.
2742 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
2743 active_insn_p object, respect basic block boundaries.
2744 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
2745 follows immediately after the jump table data label.
2746 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
2747 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
2748 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
2750 2013-11-13 Teresa Johnson <tejohnson@google.com>
2753 * predict.c (drop_profile): Error is currently too strict.
2754 (handle_missing_profiles): Pass call_count to drop_profile.
2756 2013-11-13 Teresa Johnson <tejohnson@google.com>
2759 * ipa-inline.c (edge_badness): Fix overflow.
2761 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
2763 PR rtl-optimization/59036
2764 * ira-color.c (struct allocno_color_data): Add new members
2765 first_thread_allocno, next_thread_allocno, thread_freq.
2766 (sorted_copies): New static var.
2767 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
2768 (allocno_thread_conflict_p, merge_threads)
2769 (form_threads_from_copies, form_threads_from_bucket)
2770 (form_threads_from_colorable_allocno, init_allocno_threads): New
2772 (bucket_allocno_compare_func): Add comparison by thread frequency
2774 (add_allocno_to_ordered_bucket): Rename to
2775 add_allocno_to_ordered_colorable_bucket. Remove parameter.
2776 (push_only_colorable): Call form_threads_from_bucket.
2777 (color_pass): Call init_allocno_threads. Use
2778 consideration_allocno_bitmap instead of coloring_allocno_bitmap
2779 for nuillify allocno color data.
2780 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
2781 (coalesce_allocnos): Use static sorted copies.
2783 2013-11-13 Jakub Jelinek <jakub@redhat.com>
2785 * passes.c (execute_todo): Don't call do_per_function if
2787 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
2788 execute_function_dump if dump_file is NULL.
2790 2013-11-13 Martin Jambor <mjambor@suse.cz>
2792 * cgraph.c (cgraph_get_create_node): Do what
2793 cgraph_get_create_real_symbol_node used to do.
2794 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
2795 call cgraph_get_create_node.
2796 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
2797 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
2798 cgraph_get_create_node. Assert we get a node.
2800 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
2802 * config/aarch64/aarch64-simd.md (vec_extract): New.
2804 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
2806 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
2809 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
2811 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
2812 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
2813 or if optimization is enabled.
2814 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
2815 require that all the names based on a PARM_DECL or a RESULT_DECL that
2816 isn't ignored for debug info be coalesced.
2818 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2820 * config/c6x/c6x.c: Include "gimple-expr.h".
2822 2013-11-13 Richard Biener <rguenther@suse.de>
2824 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
2825 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
2826 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
2827 dealing with type mismatches inside component reference chains.
2829 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
2831 PR tree-optimization/59077
2832 * ipa-pure-const.c (better_state): Update *state.
2834 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
2836 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
2837 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
2838 Update offset calculations.
2840 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
2843 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
2844 for fields. Do not add the attribute if the size is negative.
2846 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2848 * config/arm/arm.c: Include aarch-cost-tables.h.
2849 (generic_extra_costs): Move from here...
2850 * config/arm/aarch-cost-tables.h: ... To here. New file.
2852 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
2853 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2854 Sergey Lega <sergey.s.lega@intel.com>
2855 Anna Tikhonova <anna.tikhonova@intel.com>
2856 Ilya Tocar <ilya.tocar@intel.com>
2857 Andrey Turetskiy <andrey.turetskiy@intel.com>
2858 Ilya Verbin <ilya.verbin@intel.com>
2859 Kirill Yukhin <kirill.yukhin@intel.com>
2860 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2862 * config/i386/i386.c (ix86_print_operand): Support z-masking.
2863 * config/i386/predicate.md (const_0_to_4_operand): New.
2864 (const_0_to_5_operand): Ditto.
2865 * config/i386/sse.md (UNSPEC_COMPRESS): New.
2866 (UNSPEC_COMPRESS_STORE): Ditto.
2867 (UNSPEC_EXPAND): Ditto.
2868 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
2869 (define_mode_attr ssescalarsize): Ditto.
2870 (avx512f_load<mode>_mask): Ditto.
2871 (avx512f_store<mode>_mask): Ditto.
2872 (avx512f_storedqu<mode>_mask): Ditto.
2873 (avx512f_vmcmp<mode>3_mask): Ditto.
2874 (avx512f_fmadd_<mode>_mask): Ditto.
2875 (avx512f_fmadd_<mode>_mask3): Ditto.
2876 (avx512f_fmsub_<mode>_mask): Ditto.
2877 (avx512f_fmsub_<mode>_mask3): Ditto.
2878 (avx512f_fnmadd_<mode>_mask): Ditto.
2879 (avx512f_fnmadd_<mode>_mask3): Ditto.
2880 (avx512f_fnmsub_<mode>_mask): Ditto.
2881 (avx512f_fnmsub_<mode>_mask3): Ditto.
2882 (avx512f_fmaddsub_<mode>_mask): Ditto.
2883 (avx512f_fmaddsub_<mode>_mask3): Ditto.
2884 (avx512f_fmsubadd_<mode>_mask): Ditto.
2885 (avx512f_fmsubadd_<mode>_mask3): Ditto.
2886 (vec_unpacku_float_lo_v16si): Ditto.
2887 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
2888 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
2889 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
2890 (vec_extract_lo_<mode>_maskm): Ditto.
2891 (vec_extract_hi_<mode>_maskm): Ditto.
2892 (avx512f_vternlog<mode>_mask): Ditto.
2893 (avx512f_shufps512_mask): Ditto.
2894 (avx512f_fixupimm<mode>_mask): Ditto.
2895 (avx512f_shufpd512_mask): Ditto.
2896 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
2897 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
2898 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
2899 (ashr<mode>3<mask_name>): Ditto.
2900 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
2901 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
2902 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
2903 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
2904 (avx512f_pshufdv3_mask): Ditto.
2905 (avx512f_perm<mode>_mask): Ditto.
2906 (avx512f_vpermi2var<mode>3_mask): Ditto.
2907 (avx512f_vpermt2var<mode>3_mask): Ditto.
2908 (avx512f_compress<mode>_mask): Ditto.
2909 (avx512f_compressstore<mode>_mask): Ditto.
2910 (avx512f_expand<mode>_mask): Ditto.
2911 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
2913 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
2914 (<plusminus_insn><mode>3<mask_name>): Ditto.
2915 (*<plusminus_insn><mode>3<mask_name>): Ditto.
2916 (mul<mode>3<mask_name>): Ditto.
2917 (*mul<mode>3<mask_name>): Ditto.
2918 (<sse>_div<mode>3<mask_name>): Ditto.
2919 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
2920 (<sse>_sqrt<mode>2<mask_name>): Ditto.
2921 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
2922 (<code><mode>3<mask_name>/smaxmin): Ditto.
2923 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
2924 (*<code><mode>3<mask_name>/smaxmin): Ditto.
2925 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
2926 (ufloatv16siv16sf2<mask_name>): Ditto.
2927 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
2928 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
2929 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
2930 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
2931 (ufloatv8siv8df<mask_name>): Ditto.
2932 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
2933 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
2934 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
2935 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
2936 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
2937 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
2938 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
2939 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
2940 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
2941 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
2942 (vec_extract_lo_<mode><mask_name>): Ditto.
2943 (vec_extract_hi_<mode><mask_name>): Ditto.
2944 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
2945 (avx512f_movddup512<mask_name>): Ditto.
2946 (avx512f_unpcklpd512<mask_name>): Ditto.
2947 (*avx512f_unpcklpd512<mask_name>): Ditto.
2948 (*avx512f_vmscalef<mode>): Ditto.
2949 (avx512f_scalef<mode><mask_name>): Ditto.
2950 (avx512f_getexp<mode><mask_name>): Ditto.
2951 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
2952 (avx512f_rndscale<mode><mask_name>): Ditto.
2953 (avx512f_shufps512_1<mask_name>): Ditto.
2954 (avx512f_shufpd512_1<mask_name>): Ditto.
2955 (<plusminus_insn><mode>3<mask_name>): Ditto.
2956 (*<plusminus_insn><mode>3<mask_name>): Ditto.
2957 (vec_widen_umult_even_v16si<mask_name>): Ditto.
2958 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
2959 (vec_widen_smult_even_v16si<mask_name>): Ditto.
2960 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
2961 (mul<mode>3<mask_name>): Ditto.
2962 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
2963 (<shift_insn><mode>3<mask_name>): Ditto.
2964 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
2965 (avx512f_<rotate><mode><mask_name>): Ditto.
2966 (<code><mode>3<mask_name>/maxmin): Ditto.
2967 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
2968 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
2969 (*andnot<mode>3<mask_name>): Ditto.
2970 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
2971 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
2972 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
2973 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
2974 (vec_set_lo_<mode><mask_name>): Ditto.
2975 (vec_set_hi_<mode><mask_name>): Ditto.
2976 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
2977 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
2978 (avx512f_pshufd_1<mask_name>): Ditto.
2979 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
2980 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
2981 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
2982 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
2983 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
2984 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
2985 (avx512er_exp2<mode><mask_name>): Ditto.
2986 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
2987 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
2988 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
2989 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
2990 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
2991 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
2992 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
2993 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
2994 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
2995 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
2996 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
2997 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
2998 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
2999 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
3000 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
3001 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
3002 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
3003 (avx512f_getmant<mode><mask_name>): Ditto.
3004 (clz<mode>2<mask_name>): Ditto.
3005 (<mask_codefor>conflict<mode><mask_name>): Ditto.
3006 (*srcp14<mode>): Remove visibility.
3007 (*rsqrt14<mode>): Ditto.
3008 (*fma_fmsub_<mode>): Ditto.
3009 (*fma_fnmadd_<mode>): Ditto.
3010 (*avx512f_rndscale<mode>): Ditto.
3011 * config/i386/subst.md: New file.
3013 2013-11-13 Joseph Myers <joseph@codesourcery.com>
3015 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
3016 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
3017 (atomic_load_explicit, atomic_exchange_explicit)
3018 (atomic_compare_exchange_strong_explicit)
3019 (atomic_compare_exchange_weak_explicit): Use __auto_type to
3020 declare variable initialized with PTR argument.
3022 2013-11-12 Jeff Law <law@redhat.com>
3024 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
3025 backedge_seen_p. Set, use and pass it to children appropriately.
3026 (thread_through_normal_block): Similarly.
3027 (thread_across_edge): Similarly.
3029 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
3030 memory references as volatile.
3031 (insert_trap_and_remove_trailing_statements): Fix comment.
3033 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
3036 * ira-costs.c (record_operand_costs): Check operands number for
3039 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
3042 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
3043 constraints that would allow DImode into the traditional Altivec
3044 registers, but cause undesirable code generation when loading 0 as
3046 (movdi_internal64): Likewise.
3047 (cmp<mode>_fpr): Do not use %x for CR register output.
3048 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
3049 -mallow-upper-sf debug switches are used.
3051 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
3053 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
3054 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
3055 Relocate prototypes from gimple.h.
3056 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
3057 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
3059 * gimple.h: Move some prototypes to gimplify.h.
3060 (gimple_predicate, enum fallback, enum gimplify_status): Move to
3062 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
3063 Relocate from gimpify.c.
3064 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
3065 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
3066 is_gimple_reg_rhs) Relocate from gimplify.c.
3067 * gimplify.c (mark_addressable): Move to gimple-expr.c.
3068 (gimple_seq_add_stmt_without_update): Move to gimple.c.
3069 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
3070 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
3071 is_gimple_reg_rhs): Move to gimple-expr.c.
3072 (should_carry_location_p): Move to gimple.c.
3073 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
3075 (annotate_one_with_location, annotate_all_with_location_after,
3076 annotate_all_with_location): Move to gimple.c.
3077 (compare_case_labels, sort_case_labels,
3078 preprocess_case_label_vec_for_gimple): Move to gimple.c.
3079 (rhs_predicate_for): Make static.
3080 (gimplify_assign): Relocate from gimple.c.
3081 * gimple.c (gimplify_assign): Move to gimplify.c.
3082 (gimple_seq_add_stmt_without_update, should_carry_location_p,
3083 annotate_one_with_location, annotate_all_with_location_after,
3084 annotate_all_with_location, compare_case_labels, sort_case_labels,
3085 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
3086 * tree.h (unshare_expr, unshare_expr_without_location,
3087 mark_addressable): Move prototypes to gimplify.h.
3088 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
3090 * asan.c: Include gimplify.h rather than gimple.h.
3091 * cfgloopmanip.c: Likewise.
3092 * cgraphunit.c: Likewise.
3093 * cilk-common.c: Likewise.
3094 * dwarf2out.c: Dont include gimple.h.
3095 * fold-const.c: Include gimplify.h rather than gimple.h.
3096 * function.c: Likewise.
3097 * gimple-fold.c: Likewise.
3098 * gimple-ssa-strength-reduction.c: Likewise.
3099 * graphite-clast-to-gimple.c: Likewise.
3100 * graphite-sese-to-poly.c: Likewise.
3101 * ipa-prop.c: Likewise.
3102 * ipa-split.c: Likewise.
3104 * langhooks.c: Dont include gimple.h.
3105 * loop-init.c: Include gimplify.h rather than gimple.h.
3106 * omp-low.c: Likewise.
3108 * stor-layout.c: Likewise.
3109 * targhooks.c: Likewise.
3110 * trans-mem.c: Likewise.
3111 * tree-affine.c: Likewise.
3112 * tree-cfg.c: Likewise.
3113 * tree-cfgcleanup.c: Likewise.
3114 * tree-complex.c: Likewise.
3115 * tree-if-conv.c: Likewise.
3116 * tree-inline.c: Likewise.
3117 * tree-iterator.c: Likewise.
3118 * tree-loop-distribution.c: Likewise.
3119 * tree-nested.c: Likewise.
3120 * tree-parloops.c: Likewise.
3121 * tree-predcom.c: Likewise.
3122 * tree-profile.c: Likewise.
3123 * tree-scalar-evolution.c: Likewise.
3124 * tree-sra.c: Likewise.
3125 * tree-ssa-address.c: Likewise.
3126 * tree-ssa-ccp.c: Likewise.
3127 * tree-ssa-dce.c: Likewise.
3128 * tree-ssa-forwprop.c: Likewise.
3129 * tree-ssa-ifcombine.c: Likewise.
3130 * tree-ssa-loop-im.c: Likewise.
3131 * tree-ssa-loop-ivopts.c: Likewise.
3132 * tree-ssa-loop-manip.c: Likewise.
3133 * tree-ssa-loop-niter.c: Likewise.
3134 * tree-ssa-loop-prefetch.c: Likewise.
3135 * tree-ssa-loop-unswitch.c: Likewise.
3136 * tree-ssa-math-opts.c: Likewise.
3137 * tree-ssa-phiopt.c: Likewise.
3138 * tree-ssa-phiprop.c: Likewise.
3139 * tree-ssa-pre.c: Likewise.
3140 * tree-ssa-propagate.c: Likewise.
3141 * tree-ssa-reassoc.c: Likewise.
3142 * tree-ssa-sccvn.c: Likewise.
3143 * tree-ssa-strlen.c: Likewise.
3144 * tree-ssa.c: Likewise.
3145 * tree-switch-conversio: Likewise.n.c
3146 * tree-tailcall.c: Likewise.
3147 * tree-vect-data-refs.c: Likewise.
3148 * tree-vect-generic.c: Likewise.
3149 * tree-vect-loop-manip.c: Likewise.
3150 * tree-vect-loop.c: Likewise.
3151 * tree-vect-patterns.c: Likewise.
3152 * tree-vect-stmts.c: Likewise.
3154 * value-prof.c: Likewise.
3155 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
3156 * config/alpha/alpha.c: Likewise.
3157 * config/darwin.c: Likewise.
3158 * config/i386/i386.c: Likewise.
3159 * config/ia64/ia64.c: Likewise.
3160 * config/mep/mep.c: Likewise.
3161 * config/mips/mips.c: Likewise.
3162 * config/rs6000/rs6000.c: Likewise.
3163 * config/s390/s390.c: Likewise.
3164 * config/sh/sh.c: Likewise.
3165 * config/sparc/sparc.c: Likewise.
3166 * config/spu/spu.c: Likewise.
3167 * config/stormy16/stormy16.c: Likewise.
3168 * config/tilegx/tilegx.c: Likewise.
3169 * config/tilepro/tilepro.c: Likewise.
3170 * config/xtensa/xtensa.c: Likewise.
3172 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
3174 * tree.c (grow_tree_vec_stat): New function ...
3175 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
3176 and macro front-end.
3178 2013-11-12 Marek Polacek <polacek@redhat.com>
3180 * final.c (update_alignments): Initialize label to NULL_RTX.
3182 2013-11-12 Jeff Law <law@redhat.com>
3184 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
3185 (insert_trap_and_remove_trailing_statements): New argument OP which
3186 is the NULL pointer. Emit the trap after the load/store through
3187 the NULL pointer. Simplify the RHS of a store through a NULL pointer
3188 when trivial to do so.
3189 (isolate_path): Corresponding changes.
3190 (gimple_ssa_isolate_erroneous_path): Likewise.
3192 2013-11-12 Teresa Johnson <tejohnson@google.com>
3193 Jan Hubicka <jh@suse.cz>
3195 * predict.c (drop_profile): New function.
3196 (handle_missing_profiles): Ditto.
3197 (counts_to_freqs): Don't overwrite estimated frequencies
3198 when function has no profile counts.
3199 * predict.h (handle_missing_profiles): Declare.
3200 * tree-inline.c (freqs_to_counts): New function.
3201 (copy_cfg_body): Invoke freqs_to_counts as needed.
3202 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
3204 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
3207 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
3209 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
3211 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
3214 * config/i386/i386.c (ix86_option_override_internal): Check
3215 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
3216 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
3217 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
3218 MASK_AVX256_SPLIT_UNALIGNED_STORE.
3220 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
3221 Clear m_COREI7_AVX and update comments.
3222 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
3224 2013-11-12 Martin Jambor <mjambor@suse.cz>
3226 PR rtl-optimization/10474
3227 * ira.c (interesting_dest_for_shprep): New function.
3228 (split_live_ranges_for_shrink_wrap): Likewise.
3229 (find_moveable_pseudos): Move calculation of dominance info,
3230 df_analysios and the final anlyses to...
3231 (ira): ...here, call split_live_ranges_for_shrink_wrap.
3233 2013-11-12 Bin Cheng <bin.cheng@arm.com>
3235 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
3236 Handle type conversion.
3238 2013-11-11 Martin Liska <marxin.liska@gmail.com>
3239 Jan Hubicka <jh@suse.cz>
3241 * cgraph.c (dump_cgraph_node): Profile dump added.
3242 * cgraph.h (struct cgraph_node): New time profile variable added.
3243 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
3244 * gcov-io.h (gcov_type): New profiler type introduced.
3245 * ipa-profile.c (lto_output_node): Streaming for time profile added.
3246 (input_node): Time profiler is read from LTO stream.
3247 * predict.c (maybe_hot_count_p): Hot prediction changed.
3248 * profile.c (instrument_values): New case for time profiler added.
3249 (compute_value_histograms): Read of time profile.
3250 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
3251 * tree-profile.c (init_ic_make_global_vars): Time profiler
3253 (gimple_init_edge_profiler): TP function instrumentation.
3254 (gimple_gen_time_profiler): New.
3255 * value-prof.c (gimple_add_histogram_value): Support for time profiler
3257 (dump_histogram_value): TP type added to dumps.
3258 (visit_hist): More sensitive check that takes TP into account.
3259 (gimple_find_values_to_profile): TP instrumentation.
3260 * value-prof.h (hist_type): New histogram type added.
3261 (struct histogram_value_t): Pointer to struct function added.
3262 * libgcc/Makefile.in: New GCOV merge function for TP added.
3263 * libgcov.c: function_counter variable introduced.
3264 (_gcov_merge_time_profile): New.
3265 (_gcov_time_profiler): New.
3267 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
3268 Jeff Law <law@redhat.com>
3270 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
3271 ao_ref_init_from_ptr_and_size for builtins.
3273 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
3274 H.J. Lu <hongjiu.lu@intel.com>
3277 * config/i386/x86-tune.def
3278 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
3279 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
3280 * config/i386/i386.h
3281 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
3282 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
3283 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
3284 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
3285 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
3286 misaligned_prologue_used. Check that
3287 desired_aling <= epilogue_size_needed.
3289 2013-11-11 Cong Hou <congh@google.com>
3291 PR tree-optimization/59050
3292 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
3294 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
3297 * expmed.c (emit_store_flag): Fail for const-const comparison.
3299 2013-11-11 Tristan Gingold <gingold@adacore.com>
3300 Eric Botcazou <ebotcazou@adacore.com>
3302 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
3303 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
3304 * tree.def (CONSTRUCTOR): Likewise.
3305 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
3306 * gimplify.c (gimplify_init_constructor): Do not clear the object when
3307 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
3309 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
3311 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
3314 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3316 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
3319 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
3321 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
3323 2013-11-08 Jeff Law <law@redhat.com>
3325 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
3326 threading paths first, then perform PHI node checks if applicable.
3328 2013-11-10 Karlson2k <k2k@narod.ru>
3329 Kai Tietz <ktietz@redhat.com>
3332 * configure.ac: Adding for exported symbols check
3333 and for rdynamic-check executable-extension.
3334 * configure: Regenerated.
3336 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
3338 * mode-switching.c (optimize_mode_switching): Mark block as
3339 nontransparent, if last_mode at block exit is different from no_mode.
3341 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3343 * function.c (NAME__MAIN): Move to...
3344 * cfgexpand.c (NAME__MAIN): ...here.
3346 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
3348 * target.def (can_use_doloop_p): New hook.
3349 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
3350 * doc/tm.texi: Regenerate.
3351 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
3352 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
3353 * hooks.c (hook_bool_dint_dint_uint_true): New function.
3354 * targhooks.h (can_use_doloop_if_innermost): Declare.
3355 * targhooks.c (can_use_doloop_if_innermost): New function.
3356 * target.h: Include double-int.h.
3357 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
3358 Remove iteration count, maximum iteration count, loop depth and
3359 enter-at-top inputs from doloop_begin and doloop_end.
3360 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
3362 * config/arc/arc.c (arc_can_use_doloop_p): New function.
3363 (TARGET_CAN_USE_DOLOOP_P): Define.
3364 * config/arm/thumb2.md (doloop_end): Update for new interface.
3365 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
3366 * config/bfin/bfin.md (doloop_end): Update for new interface.
3367 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
3368 (TARGET_CAN_USE_DOLOOP_P): Define.
3369 * config/c6x/c6x.md (doloop_end): Update for new interface.
3370 * config/ia64/ia64.md (doloop_end): Update for new interface.
3371 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
3372 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
3374 * config/mep/mep.c (mep_emit_doloop): Likewise.
3375 (TARGET_CAN_USE_DOLOOP_P): Define.
3376 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
3377 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
3378 * config/s390/s390.md (doloop_end): Update for new interface.
3379 * config/sh/sh.md (doloop_end): Likewise.
3380 * config/spu/spu.md (doloop_end): Likewise.
3381 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
3382 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
3383 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
3384 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
3385 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
3386 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
3388 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
3390 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
3393 * doc/extend.texi: Move Cilk Plus Builtins node before Other
3396 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
3397 Joseph Myers <joseph@codesourcery.com>
3399 * ginclude/stdatomic.h: New file.
3400 * Makefile.in (USER_H): Add stdatomic.h.
3402 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3404 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
3407 2013-11-08 Jeff Law <law@redhat.com>
3409 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
3410 * tree-ssa-threadupdate.c (delete_thread_path): New function.
3411 (ssa_redirect_edges, thread_block_1): Use it.
3412 (thread_through_loop_header, mark_threaded_blocks): Likewise.
3413 (thread_through_all_blocks, register_jump_thread): Likewise.
3414 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
3416 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
3418 * config/arm/aarch-common.c
3419 (search_term): New typedef.
3420 (shift_rtx_costs): New array.
3421 (arm_rtx_shift_left_p): New.
3422 (arm_find_sub_rtx_with_search_term): Likewise.
3423 (arm_find_sub_rtx_with_code): Likewise.
3424 (arm_early_load_addr_dep): Add sanity checking.
3425 (arm_no_early_alu_shift_dep): Likewise.
3426 (arm_no_early_alu_shift_value_dep): Likewise.
3427 (arm_no_early_mul_dep): Likewise.
3428 (arm_no_early_store_addr_dep): Likewise.
3430 2013-11-08 Richard Biener <rguenther@suse.de>
3432 PR tree-optimization/59047
3433 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
3435 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
3437 * common.opt (fcheck-pointer-bounds): Move to ...
3438 * c-family/c.opt: ... here.
3439 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
3440 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
3441 * langhooks.h (lang_hooks): Remove chkp_supported field.
3442 * toplev.c (process_options): Remove chkp_supported check.
3444 2013-11-08 Richard Biener <rguenther@suse.de>
3446 PR tree-optimization/59038
3447 PR tree-optimization/58955
3448 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
3449 previous change. Handle known dependences correctly.
3451 2013-11-08 Tom de Vries <tom@codesourcery.com>
3453 * config/rs6000/t-xilinx: Remove duplicate contents.
3455 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
3456 Joseph Myers <joseph@codesourcery.com>
3458 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
3459 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
3460 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
3461 (struct tree_base): Add atomic_flag field.
3462 * tree.h (TYPE_ATOMIC): New accessor macro.
3463 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
3464 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
3465 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
3466 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
3467 * tree.c (set_type_quals): Set TYPE_ATOMIC.
3468 (find_atomic_core_type): New function.
3469 (build_qualified_type): Adjust alignment for qualified types.
3470 (build_atomic_base): New function
3471 (build_common_tree_nodes): Build atomicQI_type_node,
3472 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
3474 * print-tree.c (print_node): Print atomic qualifier.
3475 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
3476 * target.def (atomic_assign_expand_fenv): New hook.
3477 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
3478 * doc/tm.texi: Regenerate.
3479 * targhooks.c (default_atomic_assign_expand_fenv): New function.
3480 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
3481 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
3482 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
3484 * config/i386/i386.c (enum ix86_builtins): Add
3485 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
3486 IX86_BUILTIN_FNCLEX.
3487 (bdesc_special_args): Add __builtin_ia32_fnstenv,
3488 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
3489 (ix86_expand_builtin): Handle the new built-in functions.
3490 (ix86_atomic_assign_expand_fenv): New function.
3491 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
3492 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
3493 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
3494 (fnstenv, fldenv, fnstsw, fnclex): New insns.
3496 2013-11-07 Steve Ellcey <sellcey@mips.com>
3498 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
3499 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
3500 (MULTILIB_DIRNAMES): Add fp64 directory.
3501 (MULTILIB_EXCEPTIONS): Add new exclusions.
3503 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
3505 * gimplify.c (gimple_regimplify_operands): Do not set
3507 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
3508 (rewrite_close_phi_out_of_ssa): Same.
3509 (rewrite_phi_out_of_ssa): Same.
3510 (rewrite_degenerate_phi): Same.
3511 (handle_scalar_deps_crossing_scop_limits): Same.
3512 * tree-if-conv.c (predicate_scalar_phi): Same.
3513 * tree-parloops.c (create_loads_for_reductions): Same.
3514 (create_final_loads_for_reduction): Same.
3515 (create_loads_and_stores_for_name): Same.
3516 (transform_to_exit_first_loop): Same.
3517 (create_parallel_loop): Same.
3518 * tree-ssa-loop-im.c
3519 (move_computations_dom_walker::before_dom_children): Same.
3520 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
3521 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
3522 * tree-ssa-propagate.c (substitute_and_fold): Same.
3523 * tree-vect-loop.c (vect_finalize_reduction): Same.
3524 * tree-vect-stmts.c (vectorizable_call): Same.
3526 2013-11-07 Mike Stump <mikestump@comcast.net>
3528 * config/pdp11/pdp11.c: Include dbxout.h.
3529 * config/picochip/picochip.c: Likewise.
3531 2013-11-07 Cong Hou <congh@google.com>
3533 PR tree-optimization/56764
3534 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3535 Combine alias checks if it is possible to amortize the runtime
3536 overhead. Return the number of alias checks after merging.
3537 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
3538 Use the function vect_create_cond_for_alias_checks () to check
3539 the number of alias checks.
3541 2013-11-07 Jeff Law <law@redhat.com>
3543 * varpool.c (ctor_for_folding): Fix typo in comment.
3545 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
3547 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
3548 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
3550 2013-11-07 Jeff Law <law@redhat.com>
3552 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
3554 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
3555 No longer check if we have __builtin_trap, assume it's available.
3557 2013-11-07 Diego Novillo <dnovillo@google.com>
3559 * attribs.c (lookup_scoped_attribute_spec): Make static.
3560 (get_attribute_namespace): Likewise.
3561 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
3562 (validate_arglist): Move earlier in the file. Make static.
3563 (expand_stack_restore): Move from stmt.c
3564 (expand_stack_save): Move from stmt.c
3565 (rewrite_call_expr_array): Move earlier in the file.
3566 (rewrite_call_expr_valist): Likewise.
3567 * cfgexpand.c: Include hard-reg-set.h before tree.h
3570 (expand_asm_loc): Move from stmt.c.
3571 (n_occurrences): Move from stmt.c.
3572 (check_operand_nalternatives): Move from stmt.c.
3573 (tree_conflicts_with_clobbers_p): Move from stmt.c.
3574 (expand_asm_operands): Move from stmt.c
3575 (expand_asm_stmt): Move from stmt.c
3576 (expand_computed_goto): Move from stmt.c
3577 (expand_goto): Move from stmt.c
3578 (expand_null_return_1): Move from stmt.c
3579 (expand_null_return): Move from stmt.c
3580 (expand_value_return): Move from stmt.c
3581 (expand_return): Move from stmt.c
3582 (expand_main_function): Move from function.c
3583 (stack_protect_prologue): Move from function.c
3584 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
3585 (build_function_decl_skip_args): Move from tree.c.
3586 * explow.c (tree_expr_size): Move from tree.c.
3587 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
3588 (fields_length): Move from tree.c.
3589 * fold-const.c (size_low_cst): Move from tree.c.
3590 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
3591 (tree_expr_nonzero_p): Make static. Move earlier in the file.
3592 (fold_build3_initializer_loc): Remove.
3593 (tree_invalid_nonnegative_warnv_p): Make static.
3594 * function.c (expand_main_function): Move to cfgexpand.c.
3595 (stack_protect_prologue): Move to cfgexpand.c.
3596 (set_insn_locations): Move earlier in the file.
3597 * gimple-fold.c: Include langhooks.h.
3598 (truth_type_for): Move from tree.c.
3599 * print-tree.c (print_vec_tree): Remove.
3600 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
3601 (expand_goto): Move to cfgexpand.c.
3602 (n_occurrences): Move to cfgexpand.c.
3603 (expand_asm_loc): Move to cfgexpand.c
3604 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
3605 (expand_asm_operands): Move to cfgexpand.c.
3606 (expand_asm_stmt): Move to cfgexpand.c.
3607 (check_operand_nalternatives): Move to cfgexpand.c
3608 (expand_null_return): Move to cfgexpand.c.
3609 (expand_value_return): Move to cfgexpand.c.
3610 (expand_null_return_1): Move to cfgexpand.c.
3611 (expand_return): Move to cfgexpand.c.
3612 (expand_stack_save): Move to builtins.c.
3613 (expand_stack_restore): Move to builtins.c
3614 * symtab.c: Include output.h.
3615 (decl_assembler_name_hash): Move from tree.c.
3616 (decl_assembler_name_equal): Move from tree.c.
3617 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
3618 * tree-eh.c (in_array_bounds_p): Move from tree.c.
3619 (range_in_array_bounds_p): Move from tree.c.
3620 * tree-object-size.c (fini_object_sizes): Make static.
3621 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
3622 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
3623 * tree.c (decl_assembler_name_equal): Move to symtab.c.
3624 (tree_expr_size): Move to explow.c.
3625 (decl_assembler_name_hash): Move to symtab.c.
3626 (real_twop): Remove.
3627 (tree_expr_size): Move to explow.c.
3628 (stabilize_reference_1): Move earlier in the file. Make static.
3629 (omp_remove_redundant_declare_simd_attrs): Remove.
3630 (simple_cst_list_equal): Move earlier in the file. Make static.
3631 (size_low_cst): Move to fold-const.c.
3632 (build_type_no_quals): Remove.
3633 (build_function_type_skip_args): Move to cgraphclones.c.
3634 (build_function_decl_skip_args): Move to cgraphclones.c.
3635 (in_array_bounds_p): Move to tree-eh.c.
3636 (range_in_array_bounds_p): Move to tree-eh.c.
3637 (truth_type_for): Move to gimple-fold.c.
3638 (list_equal_p): Remove.
3639 * tree.h (decl_assembler_name_equal): Remove.
3640 (decl_assembler_name_hash): Remove.
3641 (truth_type_for): Remove.
3642 (build_type_no_quals): Remove.
3643 (build_function_decl_skip_args): Remove.
3644 (in_array_bounds_p): Remove.
3645 (range_in_array_bounds_p): Remove.
3646 (size_low_cst): Remove.
3647 (omp_remove_redundant_declare_simd_attrs): Remove.
3648 (tree_expr_size): Remove.
3649 (fields_length): Remove.
3650 (stabilize_reference_1): Remove.
3651 (expand_goto): Remove.
3652 (expand_stack_save): Remove.
3653 (expand_stack_restore): Remove.
3654 (expand_return): Remove.
3655 (fold_build3_initializer_loc): Remove.
3656 (tree_expr_nonzero_p): Remove.
3657 (tree_invalid_nonnegative_warnv_p): Remove.
3658 (tree_expr_nonzero_warnv_p): Remove.
3659 (fold_builtin_snprintf_chk): Remove.
3660 (validate_arglist): Remove.
3661 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
3662 (simple_cst_list_equal): Remove.
3663 (real_twop): Remove.
3664 (expand_main_function): Remove.
3665 (stack_protect_prologue): Remove.
3666 (print_vec_tree): Remove.
3667 (lookup_scoped_attribute_spec): Remove.
3668 (get_attribute_namespace): Remove.
3669 (expand_computed_goto): Remove.
3670 (expand_asm_stmt): Remove.
3671 (list_equal_p): Remove.
3672 (ssa_name_nonnegative_p): Remove.
3673 (fini_object_sizes): Remove.
3674 (addr_expr_of_non_mem_decl_p): Remove.
3675 (is_tm_safe_or_pure): Move to trans-mem.c.
3676 (more_const_call_expr_args_p): Remove.
3677 (save_vtable_map_decl): Remove.
3679 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
3681 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
3682 linker plugins, too.
3684 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
3685 link to libgomp and its dependencies.
3686 * config/ia64/hpux.h (LIB_SPEC): Likewise.
3687 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
3688 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
3689 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
3691 2013-11-07 Jakub Jelinek <jakub@redhat.com>
3693 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
3694 (determine_value_range): Add loop argument. Use get_range_info to
3696 (bound_difference): Adjust caller.
3698 2013-11-07 Richard Biener <rguenther@suse.de>
3699 Jakub Jelinek <jakub@redhat.com>
3701 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
3702 latches from header PHI arguments from the latch edge.
3704 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
3707 * varasm.c (output_constant): Handle NULLPTR_TYPE.
3709 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
3711 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
3712 misaligned_prologue_used when it has been set.
3714 2013-11-07 Yury Gribov <y.gribov@samsung.com>
3715 Jakub Jelinek <jakub@redhat.com>
3718 * asan.c (get_mem_refs_of_builtin_call): Allow
3719 integer literals as addresses in instrumented builtins.
3721 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3723 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
3724 Explain why plus_constant is not used.
3726 2013-11-07 Richard Biener <rguenther@suse.de>
3728 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
3729 (canonicalize_value): ... this. Also handle stripping of
3731 (get_value, set_lattice_value, get_value_for_expr): Adjust.
3732 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
3733 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
3735 2013-11-07 Richard Biener <rguenther@suse.de>
3737 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
3739 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
3742 * config/i386/i386.md (push peepholer/splitter): Use Pmode
3743 with stack_pointer_rtx.
3745 2013-11-07 Bin Cheng <bin.cheng@arm.com>
3747 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
3748 using operand_equal_p.
3750 2013-11-07 Bin Cheng <bin.cheng@arm.com>
3752 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
3753 * tree-affine.c (get_inner_reference_aff): Return base.
3754 * tree-affine.h (get_inner_reference_aff): Change prototype.
3756 2013-11-06 Tobias Burnus <burnus@net-b.de>
3758 * doc/invoke.texi (Wdate-time): Fix typo.
3760 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
3762 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
3763 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
3764 fp_arith_reg_operand instead of arith_reg_operand.
3766 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
3768 * config/sh/sh.md (adddi3): Remove empty constraints.
3769 Remove can_create_pseudo_p and arith_reg_operand check.
3770 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
3771 Split before reload.
3773 2013-11-06 Jeff Law <law@redhat.com>
3774 Tom Tromey <tromey@redhat.com>
3776 * gdbinit.in: Disable strict type checking.
3778 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
3780 * tree-pass.h (make_pass_live_range_shrinkage): New external.
3781 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
3782 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
3783 (rest_of_handle_live_range_shrinkage): Ditto
3784 (class pass_live_range_shrinkage): Ditto.
3785 (pass_data_live_range_shrinkage): Ditto.
3786 (make_pass_live_range_shrinkage): Ditto.
3787 * sched-int.h (initialize_live_range_shrinkage): New prototype.
3788 (finish_live_range_shrinkage): Ditto.
3789 * sched-deps.c (create_insn_reg_set): Make void return value.
3790 * passes.def: Add pass_live_range_shrinkage.
3791 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
3792 * haifa-sched.c (live_range_shrinkage_p): New.
3793 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
3795 (rank_for_schedule): Add code for pressure relief through live
3797 (schedule_insn): Print more debug info.
3798 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
3799 through live range shrinkage.
3800 * doc/invoke.texi (-flive-range-shrinkage): New.
3801 * common.opt (flive-range-shrinkage): New.
3803 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
3806 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
3807 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
3808 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
3809 RTXes that return in AVX256 register.
3811 2013-11-06 Richard Biener <rguenther@suse.de>
3813 PR tree-optimization/58653
3814 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
3815 (prepare_initializers_chain): Adjust.
3817 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
3819 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
3820 (gimple_in_transaction): Use bb_in_transaction.
3821 * basic-block.h (bb_in_transaction): Relocate here and rename.
3822 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
3824 2013-11-06 Richard Biener <rguenther@suse.de>
3826 * tree.c (drop_tree_overflow): New function.
3827 * tree.h (drop_tree_overflow): Declare.
3828 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
3829 * tree-vrp.c (range_int_cst_singleton_p): Use
3830 is_overflow_infinity instead of testing TREE_OVERFLOW.
3831 (extract_range_from_assert): Likewise.
3832 (zero_nonzero_bits_from_vr): Likewise.
3833 (extract_range_basic): Likewise.
3834 (register_new_assert_for): Use drop_tree_overflow.
3835 (vrp_visit_phi_node): Likewise.
3837 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
3839 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
3840 checking for leaf functions without dynamic stack allocation.
3841 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
3842 (ia64_expand_prologue): Likewise.
3843 * config/mips/mips.c (mips_expand_prologue): Likewise.
3844 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3845 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
3846 (sparc_flat_expand_prologue): Likewise.
3848 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
3850 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
3851 (__ST3_LANE_FUNC): Likewise.
3852 (__ST4_LANE_FUNC): Likewise.
3854 2013-11-06 Nick Clifton <nickc@redhat.com>
3856 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
3857 name returned by msp430_mcu_name.
3858 (LIB_SPEC): If a -T option has not been specified then set a
3859 default, mcu-specific, linker script.
3860 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
3861 * config/msp430/msp430.c (msp430x_names): Likewise.
3862 Alpha sort the names for ease of comparison.
3863 (msp430_mcu_name): New function: Returns a string suitable for
3864 use as a C preprocessor symbol based upon the name of the MCU
3866 (msp430_option_override): Accept msp430x and msp430xv2 as generic
3868 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
3870 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
3871 unless it is the last part of a spec substring.
3872 * doc/invoke.texi (Spec Files): Document space insertion
3875 2013-11-06 Christian Bruel <christian.bruel@st.com>
3877 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
3878 Factorize probabilities, Use adjust_address instead of
3879 adjust_automodify_address when possible. Enable for optimize.
3880 (sh_expand_strlen): New function.
3881 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
3882 * config/sh/sh.md (strlensi): New pattern.
3883 (UNSPEC_BUILTIN_STRLEN): Define.
3885 2013-11-06 Jakub Jelinek <jakub@redhat.com>
3888 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
3889 (expand_assignment): If *bitpos is negative, set *offset
3890 and adjust *bitpos, so that it is not negative.
3892 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3894 * config/i386/bdver3.md : Added two additional decoder units
3895 to support issue rate of 4 and remodeled vector unit.
3896 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
3897 architectures is set to 4.
3898 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
3899 lookahead is set to 4 for BD architectures.
3901 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3903 * config/rs6000/rs6000.c (rs6000_option_override_internal):
3904 Remove restriction against use of VSX instructions when generating
3905 code for little endian mode.
3907 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3909 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
3910 for both big and little endian.
3911 (mulv8hi3): Swap input operands for merge high and merge low
3912 instructions for little endian.
3914 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3916 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
3917 define_insn to define_expand that uses even patterns for big
3918 endian and odd patterns for little endian.
3919 (vec_widen_smult_even_v16qi): Likewise.
3920 (vec_widen_umult_even_v8hi): Likewise.
3921 (vec_widen_smult_even_v8hi): Likewise.
3922 (vec_widen_umult_odd_v16qi): Likewise.
3923 (vec_widen_smult_odd_v16qi): Likewise.
3924 (vec_widen_umult_odd_v8hi): Likewise.
3925 (vec_widen_smult_odd_v8hi): Likewise.
3926 (altivec_vmuleub): New define_insn.
3927 (altivec_vmuloub): Likewise.
3928 (altivec_vmulesb): Likewise.
3929 (altivec_vmulosb): Likewise.
3930 (altivec_vmuleuh): Likewise.
3931 (altivec_vmulouh): Likewise.
3932 (altivec_vmulesh): Likewise.
3933 (altivec_vmulosh): Likewise.
3935 2013-11-05 Mike Stump <mikestump@comcast.net>
3937 * Makefile.in (mostlyclean): Remove c-family objects.
3939 2013-11-05 Ian Lance Taylor <iant@google.com>
3941 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
3942 If possible, add .cfi directives to record change to bx.
3943 * config/i386/i386.c (ix86_emit_cfi): New function.
3944 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
3946 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
3948 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
3949 immediately after a label for a tablejump pattern.
3951 * config/arm/arm.c (is_jump_table): Remove.
3952 (create_fix_barrier): Use tablejump_p instead.
3953 (arm_reorg): Likewise.
3954 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
3955 (thumb2_output_casesi): Likewise.
3956 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
3957 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
3958 casesi_shift_media, casesi_load_media): Likewise.
3959 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
3960 * config/microblaze/microblaze.md: Likewise.
3962 2013-11-05 Tobias Burnus <burnus@net-b.de>
3964 * doc/invoke.texi (-Wdate-time): Document.
3966 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
3968 * double-int.c (lshift_double, rshift_double): Remove
3969 SHIFT_COUNT_TRUNCATED handling.
3971 2013-11-05 Jeff Law <law@redhat.com>
3973 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
3974 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
3975 * gimple-ssa-isolate-paths.c: New file.
3976 * gimple.c (check_loadstore): New function.
3977 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
3978 Verify OP is in the argument list and the argument corresponding
3979 to OP is a pointer type. Use operand_equal_p rather than
3980 pointer equality when testing if OP is on the nonnull list.
3981 Use check_loadstore rather than count_ptr_derefs. Handle
3982 GIMPLE_RETURN statements.
3983 * tree-vrp.c (infer_nonnull_range): Remove.
3984 * gimple.h (infer_nonnull_range): Declare.
3985 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
3986 * passes.def: Add pass_isolate_erroneous_paths.
3987 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
3988 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
3989 * tree-ssa.c (struct count_ptr_d): Remove.
3990 (count_ptr_derefs, count_uses_and_derefs): Remove.
3991 * tree-ssa.h (count_uses_and_derefs): Remove.
3993 2013-11-05 Jakub Jelinek <jakub@redhat.com>
3995 PR rtl-optimization/58997
3996 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
3997 get_iv_value to be in iv->mode rather than iv->extend_mode.
3998 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
3999 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
4000 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
4003 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
4005 * gimple.h: Move some prototypes to gimple-expr.h and add to include
4007 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
4008 Move to gimple-expr.h.
4009 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
4010 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
4011 is_gimple_id, virtual_operand_p, is_gimple_addressable,
4012 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
4014 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
4015 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
4016 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
4017 is_gimple_address, is_gimple_invariant_address,
4018 is_gimple_ip_invariant_address, is_gimple_min_invariant,
4019 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
4020 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
4021 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
4022 gimple_decl_printable_name, useless_type_conversion_p,
4023 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
4025 * gimple-expr.c: New File.
4026 (useless_type_conversion_p, gimple_set_body, gimple_body,
4027 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
4028 gimple_can_coalesce_p, extract_ops_from_tree_1,
4029 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
4030 is_gimple_address, is_gimple_invariant_address,
4031 is_gimple_ip_invariant_address, is_gimple_min_invariant,
4032 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
4033 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
4034 is_gimple_mem_ref_addr): Relocate here.
4035 * Makefile.in (OBJS): Add gimple-expr.o.
4037 2013-11-05 David Malcolm <dmalcolm@redhat.com>
4039 * gengtype-parse.c (struct_field_seq): Support empty structs.
4041 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
4043 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
4045 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
4047 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
4049 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
4051 (LONG_DOUBLE_TYPE_SIZE): New define.
4052 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
4054 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
4057 * doc/extend.texi [visibility ("visibility_type")]: Add example
4058 about visibility attribute on namespace declaration.
4060 2013-11-05 Richard Biener <rguenther@suse.de>
4063 * passes.def (all_passes): Start with pass_fixup_cfg again.
4065 2013-11-05 Richard Biener <rguenther@suse.de>
4067 PR tree-optimization/58955
4068 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
4071 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4073 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
4075 (vec_pack_ufix_trunc_v2df): Likewise.
4077 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
4080 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
4081 pattern, instead of word_mode.
4083 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
4085 (set_storage_via_setmem): Likewise.
4087 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
4089 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
4090 gimple.h and the rest of the condition in eliminate_build.
4091 (eliminate_build): Call new routine.
4092 * gimple.h (phi_ssa_name_p): Delete.
4094 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
4096 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
4097 case of no prefix and reserving zero slots, because when that's the
4098 case we'll never get here.
4099 * vec.h (va_heap::reserve): Don't try and handle
4100 vec_prefix::calculate_allocation returning zero because that should
4103 2013-11-05 Richard Biener <rguenther@suse.de>
4106 * tree-dfa.c (get_ref_base_and_extent): Merge common code
4107 in MEM_REF and TARGET_MEM_REF handling. Make sure to
4108 process trailing array detection before diving into the
4109 view-converted object (and possibly apply some extra offset).
4111 2013-11-05 Joseph Myers <joseph@codesourcery.com>
4113 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
4115 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
4117 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
4119 PR tree-optimization/58958
4120 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
4121 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
4123 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
4125 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
4126 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
4128 2013-11-05 Jakub Jelinek <jakub@redhat.com>
4130 PR tree-optimization/58984
4131 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
4132 set *SIZE_P if non-NULL on success.
4133 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
4135 (ipcp_transform_function): Likewise. Punt if size of access
4136 is different from TYPE_SIZE on v->value's type.
4138 2013-11-05 Tobias Burnus <burnus@net-b.de>
4140 * doc/invoke.texi (-fopenmp-simd): Document new option.
4141 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
4142 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
4143 * tree.c (attribute_value_equal): Ditto.
4145 2013-11-04 Wei Mi <wmi@google.com>
4147 * sched-rgn.c (add_branch_dependences): Keep insns in
4148 a SCHED_GROUP at the end of BB to remain their location.
4150 2013-11-04 Wei Mi <wmi@google.com>
4152 * config/i386/i386.c (memory_address_length): Extract a part
4153 of code to rip_relative_addr_p.
4154 (rip_relative_addr_p): New Function.
4155 (ix86_macro_fusion_p): Ditto.
4156 (ix86_macro_fusion_pair_p): Ditto.
4157 * config/i386/i386.h: Add new tune features about macro-fusion.
4158 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
4159 * doc/tm.texi: Generated.
4160 * doc/tm.texi.in: Ditto.
4161 * haifa-sched.c (try_group_insn): New Function.
4162 (group_insns_for_macro_fusion): Ditto.
4163 (sched_init): Call group_insns_for_macro_fusion.
4164 * target.def: Add two hooks: macro_fusion_p and
4165 macro_fusion_pair_p.
4167 2013-11-04 Kostya Serebryany <kcc@google.com>
4169 Update to match the changed asan API.
4170 * asan.c (asan_function_start): New function.
4171 (asan_emit_stack_protection): Update the string stored in the
4172 stack red zone to match new API. Store the PC of the current
4173 function in the red zone.
4174 (asan_global_struct): Update the __asan_global definition to match
4176 (asan_add_global): Ditto.
4177 * asan.h (asan_function_start): New prototype.
4178 * final.c (final_start_function): Call asan_function_start.
4179 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
4182 2013-11-04 Wei Mi <wmi@google.com>
4184 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
4185 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
4186 * config/i386/i386.c (ix86_option_override_internal): Ditto.
4187 (ix86_issue_rate): Ditto.
4188 (ix86_adjust_cost): Ditto.
4189 (ia32_multipass_dfa_lookahead): Ditto.
4190 (ix86_sched_init_global): Ditto.
4191 (get_builtin_code_for_version): Ditto.
4192 * config/i386/i386.h (enum target_cpu_default): Ditto.
4193 (enum processor_type): Ditto.
4194 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
4196 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
4198 PR rtl-optimization/58967
4199 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
4200 !lra_in_progress for mode sizes bigger word.
4202 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4204 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
4205 arguments to merge instruction for little endian.
4206 (vec_widen_umult_lo_v16qi): Likewise.
4207 (vec_widen_smult_hi_v16qi): Likewise.
4208 (vec_widen_smult_lo_v16qi): Likewise.
4209 (vec_widen_umult_hi_v8hi): Likewise.
4210 (vec_widen_umult_lo_v8hi): Likewise.
4211 (vec_widen_smult_hi_v8hi): Likewise.
4212 (vec_widen_smult_lo_v8hi): Likewise.
4214 2013-11-04 Ian Lance Taylor <iant@google.com>
4216 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
4217 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
4218 builtins that take pointers.
4219 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
4220 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
4221 (run_gcc): Pass -fnon-call-exceptions.
4223 2013-11-04 Jakub Jelinek <jakub@redhat.com>
4225 * optabs.c (expand_vec_perm): Revert one incorrect line from
4228 PR tree-optimization/58978
4229 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
4230 use_stmt by single_imm_use directly. Only call single_imm_use
4233 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
4235 PR rtl-optimization/58968
4236 * lra-spills.c (return_regno_p): New function.
4237 (lra_final_code_change): Use it.
4239 2013-11-04 Joseph Myers <joseph@codesourcery.com>
4241 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
4242 * target.def (float_exceptions_rounding_supported_p): New hook.
4243 * targhooks.c (default_float_exceptions_rounding_supported_p): New
4245 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
4246 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
4248 * doc/tm.texi: Regenerate.
4249 * config.gcc (powerpc*-*-linux*): Set extra_objs.
4250 * config/rs6000/rs6000-linux.c: New file.
4251 * config/rs6000/rs6000-protos.h
4252 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
4253 * config/rs6000/linux.h
4254 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
4255 * config/rs6000/linux64.h
4256 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
4257 * config/rs6000/t-linux (rs6000-linux.o): New rule.
4258 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
4260 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4262 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
4263 Replace the define_insn_and_split with a define_insn and two
4264 define_splits, with the split after reload re-permuting the source
4265 register to its original value.
4266 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
4267 (*vsx_le_perm_store_v8hi): Likewise.
4268 (*vsx_le_perm_store_v16qi): Likewise.
4270 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4272 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
4275 2013-11-04 Jakub Jelinek <jakub@redhat.com>
4277 PR tree-optimization/58946
4278 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
4279 bbs with bbinfo[idx].op != NULL before all blocks with
4280 bbinfo[idx].op == NULL.
4282 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
4284 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
4285 (avr_dump_double_int_hex): Likewise.
4286 (avr_log_vadump): Remove %D and %X handling.
4287 * config/avr/avr.c (avr_double_int_push_digit): Delete.
4288 (avr_map_op_t): Change map from double_int to unsigned int.
4289 (avr_map_op): Update accordingly.
4290 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
4291 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
4292 unsigned ints rather than double_ints.
4294 2013-11-03 Marek Polacek <polacek@redhat.com>
4296 Implement -fsanitize=vla-bound.
4297 * opts.c (common_handle_option): Handle vla-bound.
4298 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
4299 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
4300 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
4302 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
4304 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
4307 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
4309 * config/i386/constraints.md (Ts, Tv): New address constrains.
4310 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
4311 constraint for address_no_seg_operand.
4312 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
4313 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
4314 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
4315 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
4316 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
4317 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
4318 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
4319 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
4320 constraint for vsib_address_operand.
4322 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
4324 * gcse.c (pre_delete): Remove references to regmove from comments.
4325 * recog.c: (validate_replace_rtx_1): Likewise.
4326 * config/rl78/rl78.c: Likewise.
4327 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
4328 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
4329 * common/config/mmix/mmix-common.c: Likewise.
4331 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
4333 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
4334 * gimplify.c (gimplify_compound_lval): Likewise.
4335 * graphite-clast-to-gimple.c (gloog): Likewise.
4336 * graphite-dependences.c (loop_is_parallel_p): Likewise.
4337 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
4338 (limit_scop); Likewise.
4339 (build_scops): Likewise.
4340 (dot_scop): Likewise.
4341 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
4342 (build_scop_drs): Likewise.
4343 (insert_stmts): Likewise.
4344 (insert_out_of_ssa_copy): Likewise.
4345 (remove_phi): Likewise.
4346 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
4347 * hw-doloop.c (discover_loop): Likewise.
4348 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
4349 * tree-dfa.c (dump_enumerated_decls): Likewise.
4350 * tree-if-conv.c (if_convertable_loop_p): Likewise.
4351 * tree-inline.c (tree_function_versioning): Likewise.
4352 * tree-loop-distribution.c (build_rdg): Likewise.
4353 (rdg_flag_vertex_and_dependent): Likewise.
4354 (distribute_loop): Likewise.
4355 * tree-parloops.c (loop_parallel_p): Likewise.
4356 (eliminate_local_variables): Likewise.
4357 (separate_decls_in_region): Likewise.
4358 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
4359 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4360 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
4361 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
4362 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
4363 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
4364 (vectorizable_condition): Likewise.
4366 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
4368 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
4369 * configure: Regenerate.
4370 * config/i386/i386.md (*movdi_internal): Change
4371 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
4372 (*movdf_internal): Ditto.
4373 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
4374 * config/i386/sse.md (vec_concatv2di): Output interunit movq
4375 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
4377 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
4379 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
4382 2013-10-31 David Malcolm <dmalcolm@redhat.com>
4384 Automated part of renaming of symtab_node_base to symtab_node.
4386 Patch autogenerated by rename_symtab.py from
4387 https://github.com/davidmalcolm/gcc-refactoring-scripts
4388 revision 58bb219cc090b2f4516a9297d868c245495ee622
4389 with ChangeLog entry fixed up by hand.
4391 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
4393 (cgraph_node_for_asm): Likewise.
4394 * cgraph.h (symtab_node_base): Likewise.
4395 (cgraph_node): Likewise.
4396 (varpool_node): Likewise.
4397 (is_a_helper <cgraph_node>::test): Likewise.
4398 (is_a_helper <varpool_node>::test): Likewise.
4399 (symtab_nodes): Likewise.
4400 (symtab_register_node): Likewise.
4401 (symtab_unregister_node): Likewise.
4402 (symtab_remove_node): Likewise.
4403 (symtab_get_node): Likewise.
4404 (symtab_node_for_asm): Likewise.
4405 (symtab_node_asm_name): Likewise.
4406 (symtab_node_name): Likewise.
4407 (symtab_insert_node_to_hashtable): Likewise.
4408 (symtab_add_to_same_comdat_group): Likewise.
4409 (symtab_dissolve_same_comdat_group_list): Likewise.
4410 (dump_symtab_node): Likewise.
4411 (debug_symtab_node): Likewise.
4412 (dump_symtab_base): Likewise.
4413 (verify_symtab_node): Likewise.
4414 (verify_symtab_base): Likewise.
4415 (symtab_used_from_object_file_p): Likewise.
4416 (symtab_alias_ultimate_target): Likewise.
4417 (symtab_resolve_alias): Likewise.
4418 (fixup_same_cpp_alias_visibility): Likewise.
4419 (symtab_for_node_and_aliases): Likewise.
4420 (symtab_nonoverwritable_alias): Likewise.
4421 (availability symtab_node_availability): Likewise.
4422 (symtab_semantically_equivalent_p): Likewise.
4423 (fixup_same_cpp_alias_visibility): Likewise.
4424 (symtab_prevail_in_asm_name_hash): Likewise.
4426 (varpool): Likewise.
4427 (varpool_first_variable): Likewise.
4428 (varpool_next_variable): Likewise.
4429 (varpool_first_static_initializer): Likewise.
4430 (varpool_next_static_initializer): Likewise.
4431 (varpool_first_defined_variable): Likewise.
4432 (varpool_next_defined_variable): Likewise.
4433 (cgraph_first_defined_function): Likewise.
4434 (cgraph_next_defined_function): Likewise.
4435 (cgraph_first_function): Likewise.
4436 (cgraph_next_function): Likewise.
4437 (cgraph_first_function_with_gimple_body): Likewise.
4438 (cgraph_next_function_with_gimple_body): Likewise.
4439 (symtab_alias_target): Likewise.
4440 (symtab_real_symbol_p): Likewise.
4441 (symtab_can_be_discarded): Likewise.
4442 * cgraphbuild.c (mark_address): Likewise.
4443 (mark_load): Likewise.
4444 (mark_store): Likewise.
4445 * cgraphunit.c (decide_is_symbol_needed): Likewise.
4447 (enqueue_node): Likewise.
4448 (referred_to_p): Likewise.
4449 (cgraph_process_same_body_aliases): Likewise.
4450 (analyze_functions): Likewise.
4451 (handle_alias_pairs): Likewise.
4452 (output_weakrefs): Likewise.
4453 (compile): Likewise.
4454 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
4455 * ipa-inline-analysis.c (inline_write_summary): Likewise.
4456 * ipa-prop.c (remove_described_reference): Likewise.
4457 (try_decrement_rdesc_refcount): Likewise.
4458 (ipa_edge_duplication_hook): Likewise.
4459 * ipa-ref.c (ipa_record_reference): Likewise.
4460 (ipa_maybe_record_reference): Likewise.
4461 (ipa_clone_ref): Likewise.
4462 (ipa_clone_references): Likewise.
4463 (ipa_clone_referring): Likewise.
4464 (ipa_find_reference): Likewise.
4465 (ipa_remove_stmt_references): Likewise.
4466 (ipa_clear_stmts_in_references): Likewise.
4467 * ipa-ref.h (symtab_node_base): Likewise.
4468 (ipa_ref): Likewise.
4469 (ipa_record_reference): Likewise.
4470 (ipa_maybe_record_reference): Likewise.
4471 (ipa_clone_references): Likewise.
4472 (ipa_clone_referring): Likewise.
4473 (ipa_clone_ref): Likewise.
4474 (ipa_find_reference): Likewise.
4475 (ipa_remove_stmt_references): Likewise.
4476 (ipa_clear_stmts_in_references): Likewise.
4477 * ipa-reference.c (ipa_reference_write_optimization_summary):
4479 * ipa.c (enqueue_node): Likewise.
4480 (process_references): Likewise.
4481 (walk_polymorphic_call_targets): Likewise.
4482 (symtab_remove_unreachable_nodes): Likewise.
4483 (address_taken_from_non_vtable_p): Likewise.
4484 (comdat_can_be_unshared_p_1): Likewise.
4485 (comdat_can_be_unshared_p): Likewise.
4486 (can_replace_by_local_alias): Likewise.
4487 (function_and_variable_visibility): Likewise.
4488 * is-a.h: Likewise (within example in comment).
4489 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
4490 (lto_symtab_encoder_encode): Likewise.
4491 (lto_symtab_encoder_delete_node): Likewise.
4492 (lto_symtab_encoder_in_partition_p): Likewise.
4493 (lto_set_symtab_encoder_in_partition): Likewise.
4494 (output_refs): Likewise.
4495 (compute_ltrans_boundary): Likewise.
4496 (output_symtab): Likewise.
4497 (input_node): Likewise.
4498 (input_ref): Likewise.
4499 (input_edge): Likewise.
4500 (input_cgraph_1): Likewise.
4501 (input_refs): Likewise.
4502 (output_cgraph_opt_summary): Likewise.
4503 (input_node_opt_summary): Likewise.
4504 (input_cgraph_opt_section): Likewise.
4505 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
4507 * lto-streamer-out.c (lto_output): Likewise.
4508 (output_symbol_p): Likewise.
4509 (produce_symtab): Likewise.
4510 * lto-streamer.h (lto_encoder_entry): Likewise.
4511 (lto_free_function_in_decl_state_for_node): Likewise.
4512 (lto_symtab_encoder_encode): Likewise.
4513 (lto_symtab_encoder_delete_node): Likewise.
4514 (lto_symtab_encoder_in_partition_p): Likewise.
4515 (lto_set_symtab_encoder_in_partition): Likewise.
4516 (lto_symtab_encoder_lookup): Likewise.
4517 (lsei_node): Likewise.
4518 (lto_symtab_encoder_deref): Likewise.
4519 * symtab.c (symtab_hash): Likewise.
4520 (assembler_name_hash): Likewise.
4521 (symtab_nodes): Likewise.
4522 (hash_node): Likewise.
4523 (eq_node): Likewise.
4524 (hash_node_by_assembler_name): Likewise.
4525 (eq_assembler_name): Likewise.
4526 (insert_to_assembler_name_hash): Likewise.
4527 (unlink_from_assembler_name_hash): Likewise.
4528 (symtab_prevail_in_asm_name_hash): Likewise.
4529 (symtab_register_node): Likewise.
4530 (symtab_insert_node_to_hashtable): Likewise.
4531 (symtab_unregister_node): Likewise.
4532 (symtab_get_node): Likewise.
4533 (symtab_remove_node): Likewise.
4534 (symtab_initialize_asm_name_hash): Likewise.
4535 (symtab_node_for_asm): Likewise.
4536 (symtab_add_to_same_comdat_group): Likewise.
4537 (symtab_dissolve_same_comdat_group_list): Likewise.
4538 (symtab_node_asm_name): Likewise.
4539 (symtab_node_name): Likewise.
4540 (dump_symtab_base): Likewise.
4541 (dump_symtab_node): Likewise.
4542 (dump_symtab): Likewise.
4543 (debug_symtab_node): Likewise.
4544 (verify_symtab_base): Likewise.
4545 (verify_symtab_node): Likewise.
4546 (verify_symtab): Likewise.
4547 (symtab_used_from_object_file_p): Likewise.
4548 (symtab_node_availability): Likewise.
4549 (symtab_alias_ultimate_target): Likewise.
4550 (fixup_same_cpp_alias_visibility): Likewise.
4551 (symtab_resolve_alias): Likewise.
4552 (symtab_for_node_and_aliases): Likewise.
4553 (symtab_for_node_and_aliases): Likewise.
4554 (symtab_nonoverwritable_alias_1): Likewise.
4555 (symtab_nonoverwritable_alias): Likewise.
4556 (symtab_semantically_equivalent_p): Likewise.
4557 * value-prof.c (init_node_map): Likewise.
4558 * varasm.c (find_decl): Likewise.
4559 * varpool.c (varpool_node_for_asm): Likewise.
4560 (varpool_remove_unreferenced_decls): Likewise.
4562 2013-10-31 David Malcolm <dmalcolm@redhat.com>
4564 Manual part of renaming of symtab_node_base to symtab_node.
4566 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
4567 clashes with the preferred name for the base class.
4568 (const_symtab_node): Remove redundant typedef.
4570 2013-10-31 Jakub Jelinek <jakub@redhat.com>
4572 * optabs.c (expand_vec_perm): Avoid vector mode punning
4573 SUBREGs in SET_DEST.
4574 * expmed.c (store_bit_field_1): Likewise.
4575 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
4576 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
4577 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
4578 * config/i386/i386.c (ix86_expand_vector_move_misalign,
4579 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
4580 ix86_expand_sse_unpack, ix86_expand_args_builtin,
4581 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
4582 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
4583 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
4584 expand_vec_perm_vpshufb2_vpermq,
4585 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
4586 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
4587 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
4588 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
4591 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
4593 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
4594 Use gcc_unreachable for unhandled modes. Do not check results of
4595 expand_simple_binop. If not expanded to target, move the result.
4597 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
4598 Shiva Chen <shiva0217@gmail.com>
4600 * config.gcc (nds32*-*-*): Add nds32 target.
4601 * config/nds32/nds32.c: New file.
4602 * config/nds32/nds32.h: New file.
4603 * config/nds32/nds32.md: New file.
4604 * config/nds32/constants.md: New file.
4605 * config/nds32/constraints.md: New file.
4606 * config/nds32/iterators.md: New file.
4607 * config/nds32/nds32-doubleword.md: New file.
4608 * config/nds32/nds32-intrinsic.md: New file.
4609 * config/nds32/nds32_intrinsic.h: New file.
4610 * config/nds32/nds32-modes.def: New file.
4611 * config/nds32/nds32-multiple.md: New file.
4612 * config/nds32/nds32.opt: New file.
4613 * config/nds32/nds32-opts.h: New file.
4614 * config/nds32/nds32-protos.h: New file.
4615 * config/nds32/nds32-peephole2.md: New file.
4616 * config/nds32/pipelines.md: New file.
4617 * config/nds32/predicates.md: New file.
4618 * config/nds32/t-mlibs: New file.
4619 * common/config/nds32: New directory and files.
4621 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
4622 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
4623 * doc/install.texi (Cross-Compiler-Specific Options): Document
4624 --with-nds32-lib for nds32 target.
4625 * doc/extend.texi (Function Attributes, Target Builtins): Document
4626 nds32 specific attributes.
4628 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
4630 * lra-constraints (process_alt_operands): Use the result
4631 elimination register for operand when matching constraints.
4633 2013-10-31 Jakub Jelinek <jakub@redhat.com>
4635 * tree-vrp.c (maybe_set_nonzero_bits): New function.
4636 (remove_range_assertions): Call it.
4638 * tree.c (tree_ctz): New function.
4639 * tree.h (tree_ctz): New prototype.
4640 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
4641 first argument from tree to const_tree.
4642 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
4643 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
4644 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
4646 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
4647 * tree-vect-loop.c (vect_analyze_loop_operations,
4648 vect_transform_loop): Don't force scalar loop for bound just because
4649 number of iterations is unknown, only do it if it is not known to be
4650 a multiple of vectorization_factor.
4651 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
4653 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
4654 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
4655 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
4656 (set_nonzero_bits, get_nonzero_bits): New prototypes.
4657 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
4658 a default def isn't partially constant.
4659 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
4660 is known to be partially zero.
4661 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
4662 to see if a default def isn't partially constant.
4663 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
4664 creation of a range, if VR_RANGE, try to improve nonzero_bits from
4666 (set_nonzero_bits, get_nonzero_bits): New functions.
4668 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
4669 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
4670 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
4671 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
4672 uses but in the condition and ASSERT_EXPR and the other successor of
4673 the predecessor bb is __builtin_unreachable (), set_range_info of the
4674 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
4676 2013-10-31 Martin Jambor <mjambor@suse.cz>
4678 PR rtl-optimization/58934
4680 2013-10-30 Martin Jambor <mjambor@suse.cz>
4681 PR rtl-optimization/10474
4682 * ira.c (find_moveable_pseudos): Do not calculate dominance info
4684 (interesting_dest_for_shprep): New function.
4685 (split_live_ranges_for_shrink_wrap): Likewise.
4686 (ira): Calculate dominance info and df analysis. Call
4687 split_live_ranges_for_shrink_wrap.
4689 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4690 Yury Gribov <y.gribov@samsung.com>
4693 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
4694 shadow pointer to avoid clobbering the main one.
4696 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4698 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
4700 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
4703 * ira-color.c (update_costs_from_copies): Add new parameter. Use
4704 it for calling update_costs_from_allocno.
4705 (assign_hard_reg): Call restore_costs_from_copies only for
4706 !retry_p. Pass new argument to update_costs_from_copies.
4707 (color_pass): Pass new argument to update_costs_from_copies.
4708 (ira_mark_allocation_change): Ditto.
4710 2013-10-30 Sharad Singhai <singhai@google.com>
4713 * opts.c (common_handle_option): Remove deprecated option
4714 -ftree-vectorizer-verbose.
4715 * doc/invoke.texi (Debugging Options): Ditto.
4716 * opts-global.c (handle_common_deferred_options): Ditto.
4717 (dump_remap_tree_vectorizer_verbose): Delete.
4718 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
4720 2013-10-30 DJ Delorie <dj@redhat.com>
4722 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
4723 that take no arguments.
4725 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
4728 * reload1.c (update_eliminables_and_spill): New function, broken
4730 (reload): Use it. Check for frame size change after frame size
4731 alignment, and call update_eliminables_and_spill first if continue-ing.
4733 2013-10-30 Cong Hou <congh@google.com>
4736 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
4737 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
4738 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
4740 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
4742 PR rtl-optimization/58369
4743 * reload1.c (compute_reload_subreg_offset): New function.
4744 (choose_reload_regs): Use it to pass endian-correct
4745 offset to subreg_regno_offset.
4747 2013-10-30 Tobias Burnus <burnus@net-b.de>
4750 * tree-cfg.c (replace_loop_annotate): Replace warning by
4753 2013-10-30 Jason Merrill <jason@redhat.com>
4755 * configure.ac (loose_warn): Add -Wno-format if
4756 --disable-build-format-warnings.
4758 2013-10-30 David Malcolm <dmalcolm@redhat.com>
4760 * cgraphunit.c (analyze_functions): Split symtab_node declarations
4761 onto multiple lines to make things easier for rename_symtab.py.
4763 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
4764 (symtab_semantically_equivalent_p): Likewise.
4766 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
4769 * lra.c (check_rtl): Remove address check before LRA work.
4771 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
4773 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
4774 POINTER_PLUS_EXPR in the defining statement.
4776 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
4778 * regmove.c: Remove.
4779 * tree-pass.h (make_pass_regmove): Remove.
4780 * timevar.def (TV_REGMOVE): Remove.
4781 * passes.def (pass_regmove): Remove.
4782 * opts.c (default_options_table): Remove entry for regmove.
4783 * doc/passes.texi: Remove regmove pass description.
4784 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
4786 (-fdump-rtl-regmove): Ditto.
4787 * common.opt (foptimize-register-move, fregmove): Ignore.
4788 * Makefile.in (OBJS): Remove regmove.o.
4789 * regmove.c: Remove.
4790 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
4792 (struct ira_allocno) New member allocno_prefs.
4793 (ALLOCNO_PREFS): New macro.
4794 (ira_prefs, ira_prefs_num): New external vars.
4795 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
4796 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
4797 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
4799 (ira_add_allocno_copy_to_list): Remove prototype.
4800 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
4801 (ira_pref_iterator): New type.
4802 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
4803 (FOR_EACH_PREF): New macro.
4804 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
4805 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
4807 (ira_setup_alts): New function.
4808 (decrease_live_ranges_number): New function.
4809 (ira): Call the above function.
4810 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
4811 (ira_create_allocno): Initialize allocno prefs.
4812 (pref_pool, pref_vec): New static vars.
4813 (initiate_prefs, find_allocno_pref, ira_create_pref): New
4815 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
4816 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
4817 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
4818 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
4819 (ira_add_allocno_copy_to_list): Make static. Rename to
4820 add_allocno_copy_to_list.
4821 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
4822 swap_allocno_copy_ends_if_necessary.
4823 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
4824 ira_remove_allocno_prefs.
4825 (ira_flattening): Ditto.
4826 (ira_build): Call initiate_prefs, print_prefs.
4827 (ira_destroy): Call finish_prefs.
4828 * ira-color.c (struct update_cost_record): New.
4829 (struct allocno_color_data): Add new member update_cost_records.
4830 (update_cost_record_pool): New static var.
4831 (init_update_cost_records, get_update_cost_record): New functions.
4832 (free_update_cost_record_list, finish_update_cost_records): Ditto.
4833 (struct update_cost_queue_elem): Add member from.
4834 (initiate_cost_update): Call init_update_cost_records.
4835 (finish_cost_update): Call finish_update_cost_records.
4836 (queue_update_cost, get_next_update_cost): Add new param from.
4837 (Update_allocno_cost, update_costs_from_allocno): New functions.
4838 (update_costs_from_prefs): Ditto.
4839 (update_copy_costs): Rename to update_costs_from_copies.
4840 (restore_costs_from_copies): New function.
4841 (update_conflict_hard_regno_costs): Don't go back.
4842 (assign_hard_reg): Call restore_costs_from_copies. Add printing
4844 (pop_allocnos): Add priniting more debug info.
4845 (color_allocnos): Remove prefs for conflicting hard regs.
4846 Call update_costs_from_prefs.
4847 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
4848 (get_dup_num): Rename, modify, and move to ira.c
4849 (process_regs_for_copy): Add prefs.
4850 (add_insn_allocno_copies): Put src as first arg of
4851 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
4852 * ira-costs.c (record_reg_classes): Modify and move code into
4853 record_operands_costs.
4854 (find_costs_and_classes): Create prefs for the hard reg of small
4856 (process_bb_node_for_hard_reg_moves): Add prefs.
4858 2013-10-30 Richard Biener <rguenther@suse.de>
4861 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
4862 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
4864 (pre_and_rev_post_order_compute): ... which now wraps it.
4865 * graph.c (draw_cfg_nodes_no_loops): Use
4866 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
4869 2013-10-30 Christian Bruel <christian.bruel@st.com>
4871 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
4872 (sh_expand_cmpstr): Handle known align and schedule improvements.
4873 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
4874 * config/sh/sh.md (cmpstrnsi): New pattern.
4876 2013-10-30 Martin Jambor <mjambor@suse.cz>
4878 PR rtl-optimization/10474
4879 * ira.c (find_moveable_pseudos): Do not calculate dominance info
4881 (interesting_dest_for_shprep): New function.
4882 (split_live_ranges_for_shrink_wrap): Likewise.
4883 (ira): Calculate dominance info and df analysis. Call
4884 split_live_ranges_for_shrink_wrap.
4886 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4889 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
4891 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
4893 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
4894 * tree.h (POINTER_BOUNDS_P): New.
4895 (BOUNDED_TYPE_P): New.
4897 (pointer_bounds_type_node): New.
4898 * tree.c (build_common_tree_nodes): Initialize
4899 pointer_bounds_type_node.
4900 * gimple.h (gimple_call_get_nobnd_arg_index): New.
4901 (gimple_call_num_nobnd_args): New.
4902 (gimple_call_nobnd_arg): New.
4903 (gimple_return_retbnd): New.
4904 (gimple_return_set_retbnd): New
4905 * gimple.c (gimple_build_return): Increase number of ops
4906 for return statement.
4907 (gimple_call_get_nobnd_arg_index): New.
4908 * gimple-pretty-print.c (dump_gimple_return): Print second op.
4910 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
4912 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
4913 with "chkp ctor" and "bnd_legacy" attributes.
4914 * gimplify.c (gimplify_init_constructor): Avoid infinite
4915 loop during gimplification of bounds initializer.
4917 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
4919 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
4920 (handle_bnd_legacy): New.
4921 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
4922 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
4925 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
4927 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
4928 (BT_FN_PTR_CONST_PTR): New.
4929 (BT_FN_CONST_PTR_CONST_PTR): New.
4930 (BT_FN_PTR_CONST_PTR_SIZE): New.
4931 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
4932 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
4933 (BT_FN_VOID_CONST_PTR_SIZE): New.
4934 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
4935 * chkp-builtins.def: New.
4936 * builtins.def: include chkp-builtins.def.
4937 (DEF_CHKP_BUILTIN): New.
4938 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
4939 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
4940 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
4941 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
4942 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
4943 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
4944 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
4945 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
4946 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
4947 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
4948 * common.opt (fcheck-pointer-bounds): New.
4949 * toplev.c (process_options): Check Pointer Bounds Checker is
4951 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
4953 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
4955 * target.def (builtin_chkp_function): New.
4956 (chkp_bound_type): New.
4957 (chkp_bound_mode): New.
4958 (fn_abi_va_list_bounds_size): New.
4959 (load_bounds_for_arg): New.
4960 (store_bounds_for_arg): New.
4961 * targhooks.h (default_load_bounds_for_arg): New.
4962 (default_store_bounds_for_arg): New.
4963 (default_fn_abi_va_list_bounds_size): New.
4964 (default_chkp_bound_type): New.
4965 (default_chkp_bound_mode): New.
4966 (default_builtin_chkp_function): New.
4967 * targhooks.c (default_load_bounds_for_arg): New.
4968 (default_store_bounds_for_arg): New.
4969 (default_fn_abi_va_list_bounds_size): New.
4970 (default_chkp_bound_type): New.
4971 (default_chkp_bound_mode); New.
4972 (default_builtin_chkp_function): New.
4973 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
4974 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
4975 (TARGET_STORE_BOUNDS_FOR_ARG): New.
4976 (TARGET_BUILTIN_CHKP_FUNCTION): New.
4977 (TARGET_CHKP_BOUND_TYPE): New.
4978 (TARGET_CHKP_BOUND_MODE): New.
4979 * doc/tm.texi: Regenerated.
4980 * langhooks.h (lang_hooks): Add chkp_supported field.
4981 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
4982 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
4984 2013-10-29 Andrew Pinski <apinski@cavium.com>
4986 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
4987 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
4988 fails, combining the branches anyways.
4989 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
4990 increases the number of combinings.
4991 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
4993 2013-10-29 Mike Stump <mikestump@comcast.net>
4995 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
4996 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
4997 (make_vector_mode): Increase namebuf to 16.
4998 (emit_insn_modes_h): When processing BImode, don't
4999 also match partial int modes.
5000 (emit_class_narrowest_mode): Likewise.
5002 * config/bfin/bfin-modes.def: Add precision to PDI.
5003 * config/m32c/m32c-modes.def: Add precision to PSI.
5004 * config/msp430/msp430-modes.def: Add precision to PSI.
5005 * config/rs6000/rs6000-modes.def: Add precision to PTI.
5006 * config/sh/sh-modes.def: Add precision to PSI and PDI.
5008 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
5011 * config/sh/sh.md (*addc): Rename existing variations to ...
5012 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
5013 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
5014 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
5015 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
5017 2013-10-29 Teresa Johnson <tejohnson@google.com>
5020 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
5021 insanities when updating probabilities.
5023 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5025 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
5026 prettyprinter for cgraph_node to reflect the conversion of the
5027 symtable types to a C++ class hierarchy: it now *is* a
5028 symtab_node_base, rather than having one (named "symbol").
5030 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
5032 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
5033 __cilkrts_pop_frame. If matched, then return true for built-in
5035 (expand_builtin): Added BUILT_IN_CILK_DETACH and
5036 BUILT_IN_CILK_POP_FRAME case.
5037 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
5038 (lhs_cilk_detect_spawn): Likewise.
5039 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
5040 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
5041 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
5042 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
5043 (LANG_HOOKS_CILKPLUS): Likewise.
5044 * tree.h (CILK_SPAWN_FN): Likewise.
5045 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
5046 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
5047 (OBJS): Added cilk-common.o.
5048 (BUILTINS_DEF): Added cilk-builtins.def.
5049 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
5050 (lhd_cilk_detect_spawn): Likewise.
5051 * langhooks.h (lang_hooks_for_cilkplus): New struct.
5052 (struct lang_hooks): Added new field called "cilkplus."
5053 * cilk-common.c: New file.
5055 * cilk-builtins.def: Likewise.
5056 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
5057 "__cilk" macro and set it to 200.
5058 * function.h (struct function::cilk_frame_decl): New field.
5059 (struct function::is_cilk_function): Likewise.
5060 (struct function::calls_cilk_spawn): Likewise.
5061 * gimplify.c (gimplify_call_expr): Added a check if the function call
5062 being gimplified is a spawn detach point. If so, then add pop_frame
5063 and detach function calls.
5064 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
5065 for gimplifying _Cilk_spawn and _Cilk_sync statements.
5066 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
5067 function. If so, added a _Cilk_sync and gimplified it.
5068 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
5069 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
5070 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
5072 (can_inline_edge_p): Prevent inling of spawnee function.
5073 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
5074 for functions that use Cilk keywords.
5075 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
5076 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
5077 CILK_SYNC_STMT cases.
5078 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
5080 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
5081 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
5082 * passes.texi (Cilk Keywords): New section that describes the compiler
5083 code changes for handling Cilk Keywords.
5085 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5087 Patch autogenerated by refactor_symtab.py from
5088 https://github.com/davidmalcolm/gcc-refactoring-scripts
5089 revision 58bb219cc090b2f4516a9297d868c245495ee622
5091 * asan.c (asan_finish_file): Update for conversion of symtab types to
5092 a true class hierarchy.
5093 * cfgexpand.c (estimated_stack_frame_size): Likewise.
5094 * cgraph.c (cgraph_get_body): Likewise.
5095 (cgraph_get_create_real_symbol_node): Likewise.
5096 (verify_cgraph_node): Likewise.
5097 (verify_edge_corresponds_to_fndecl): Likewise.
5098 (verify_edge_count_and_frequency): Likewise.
5099 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
5100 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
5101 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
5102 (cgraph_node_cannot_return): Likewise.
5103 (cgraph_set_pure_flag_1): Likewise.
5104 (cgraph_set_const_flag_1): Likewise.
5105 (cgraph_set_nothrow_flag_1): Likewise.
5106 (cgraph_make_node_local_1): Likewise.
5107 (cgraph_for_node_and_aliases): Likewise.
5108 (cgraph_for_node_thunks_and_aliases): Likewise.
5109 (cgraph_node_can_be_local_p): Likewise.
5110 (cgraph_node_cannot_be_local_p_1): Likewise.
5111 (cgraph_function_body_availability): Likewise.
5112 (dump_cgraph_node): Likewise.
5113 (cgraph_rtl_info): Likewise.
5114 (cgraph_mark_address_taken_node): Likewise.
5115 (cgraph_remove_node): Likewise.
5116 (cgraph_release_function_body): Likewise.
5117 (cgraph_update_edges_for_call_stmt_node): Likewise.
5118 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
5119 (cgraph_make_edge_direct): Likewise.
5120 (cgraph_resolve_speculation): Likewise.
5121 (cgraph_speculative_call_info): Likewise.
5122 (cgraph_turn_edge_to_speculative): Likewise.
5123 (cgraph_create_edge_1): Likewise.
5124 (cgraph_set_call_stmt): Likewise.
5125 (cgraph_node_for_asm): Likewise.
5126 (cgraph_add_thunk): Likewise.
5127 (cgraph_same_body_alias): Likewise.
5128 (cgraph_create_function_alias): Likewise.
5129 (cgraph_create_node): Likewise.
5130 (cgraph_create_empty_node): Likewise.
5131 (record_function_versions): Likewise.
5132 (used_from_object_file_p): Likewise.
5133 * cgraph.h (symtab_can_be_discarded): Likewise.
5134 (symtab_real_symbol_p): Likewise.
5135 (cgraph_mark_force_output_node): Likewise.
5136 (cgraph_edge_recursive_p): Likewise.
5137 (symtab_alias_target): Likewise.
5138 (varpool_all_refs_explicit_p): Likewise.
5139 (varpool_can_remove_if_no_refs): Likewise.
5140 (cgraph_only_called_directly_or_aliased_p): Likewise.
5141 (cgraph_next_function_with_gimple_body): Likewise.
5142 (cgraph_first_function_with_gimple_body): Likewise.
5143 (cgraph_function_with_gimple_body_p): Likewise.
5144 (cgraph_next_function): Likewise.
5145 (cgraph_first_function): Likewise.
5146 (cgraph_next_defined_function): Likewise.
5147 (cgraph_first_defined_function): Likewise.
5148 (varpool_next_defined_variable): Likewise.
5149 (varpool_first_defined_variable): Likewise.
5150 (varpool_next_static_initializer): Likewise.
5151 (varpool_first_static_initializer): Likewise.
5152 (varpool_next_variable): Likewise.
5153 (varpool_first_variable): Likewise.
5154 (varpool_node_name): Likewise.
5155 (varpool): Likewise.
5157 (is_a_helper <varpool_node>::test): Likewise.
5158 (is_a_helper <cgraph_node>::test): Likewise.
5159 (varpool_variable_node): Likewise.
5160 (cgraph_function_or_thunk_node): Likewise.
5161 (varpool_alias_target): Likewise.
5162 (cgraph_alias_target): Likewise.
5163 (cgraph_node_name): Likewise.
5164 (varpool_node_asm_name): Likewise.
5165 (cgraph_node_asm_name): Likewise.
5166 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
5167 (cgraph_rebuild_references): Likewise.
5168 (rebuild_cgraph_edges): Likewise.
5169 (record_eh_tables): Likewise.
5170 (build_cgraph_edges): Likewise.
5171 (mark_store): Likewise.
5172 (mark_load): Likewise.
5173 (mark_address): Likewise.
5174 (record_type_list): Likewise.
5175 (record_reference): Likewise.
5176 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
5177 (cgraph_materialize_clone): Likewise.
5178 (cgraph_function_versioning): Likewise.
5179 (cgraph_copy_node_for_versioning): Likewise.
5180 (update_call_expr): Likewise.
5181 (cgraph_find_replacement_node): Likewise.
5182 (cgraph_create_virtual_clone): Likewise.
5183 (cgraph_clone_node): Likewise.
5184 * cgraphunit.c (compile): Likewise.
5185 (output_weakrefs): Likewise.
5186 (output_in_order): Likewise.
5187 (expand_function): Likewise.
5188 (assemble_thunks_and_aliases): Likewise.
5189 (expand_thunk): Likewise.
5190 (mark_functions_to_output): Likewise.
5191 (handle_alias_pairs): Likewise.
5192 (analyze_functions): Likewise.
5193 (walk_polymorphic_call_targets): Likewise.
5194 (varpool_finalize_decl): Likewise.
5195 (process_function_and_variable_attributes): Likewise.
5196 (cgraph_process_same_body_aliases): Likewise.
5197 (analyze_function): Likewise.
5198 (cgraph_add_new_function): Likewise.
5199 (cgraph_finalize_function): Likewise.
5200 (referred_to_p): Likewise.
5201 (cgraph_reset_node): Likewise.
5202 (cgraph_process_new_functions): Likewise.
5203 (enqueue_node): Likewise.
5204 (decide_is_symbol_needed): Likewise.
5205 * coverage.c (coverage_compute_profile_id): Likewise.
5206 * dbxout.c (dbxout_expand_expr): Likewise.
5207 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
5208 (reference_to_unused): Likewise.
5209 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
5210 * gimplify.c (unvisit_body): Likewise.
5211 (unshare_body): Likewise.
5212 * ipa-cp.c (ipcp_generate_summary): Likewise.
5213 (ipcp_decision_stage): Likewise.
5214 (identify_dead_nodes): Likewise.
5215 (decide_whether_version_node): Likewise.
5216 (decide_about_value): Likewise.
5217 (perhaps_add_new_callers): Likewise.
5218 (create_specialized_node): Likewise.
5219 (update_profiling_info): Likewise.
5220 (ipcp_propagate_stage): Likewise.
5221 (estimate_local_effects): Likewise.
5222 (good_cloning_opportunity_p): Likewise.
5223 (devirtualization_time_bonus): Likewise.
5224 (propagate_constants_accross_call): Likewise.
5225 (initialize_node_lattices): Likewise.
5226 (ipcp_cloning_candidate_p): Likewise.
5227 (determine_versionability): Likewise.
5228 (print_all_lattices): Likewise.
5229 (print_lattice): Likewise.
5230 (ipcp_discover_new_direct_edges): Likewise.
5231 * ipa-devirt.c (ipa_devirt): Likewise.
5232 (likely_target_p): Likewise.
5233 (update_type_inheritance_graph): Likewise.
5234 (possible_polymorphic_call_target_p): Likewise.
5235 (dump_possible_polymorphic_call_targets): Likewise.
5236 (devirt_variable_node_removal_hook): Likewise.
5237 (record_binfo): Likewise.
5238 (maybe_record_node): Likewise.
5239 (build_type_inheritance_graph): Likewise.
5240 * ipa-inline-analysis.c (inline_write_summary): Likewise.
5241 (inline_generate_summary): Likewise.
5242 (inline_analyze_function): Likewise.
5243 (do_estimate_growth): Likewise.
5244 (simple_edge_hints): Likewise.
5245 (estimate_node_size_and_time): Likewise.
5246 (estimate_edge_devirt_benefit): Likewise.
5247 (compute_inline_parameters): Likewise.
5248 (estimate_function_body_sizes): Likewise.
5249 (compute_bb_predicates): Likewise.
5250 (initialize_inline_failed): Likewise.
5251 (dump_inline_summary): Likewise.
5252 (dump_inline_edge_summary): Likewise.
5253 * ipa-inline-transform.c (inline_transform): Likewise.
5254 (preserve_function_body_p): Likewise.
5255 (save_inline_function_body): Likewise.
5256 (inline_call): Likewise.
5257 (clone_inlined_nodes): Likewise.
5258 (can_remove_node_now_p): Likewise.
5259 (can_remove_node_now_p_1): Likewise.
5260 * ipa-inline.c (early_inliner): Likewise.
5261 (early_inline_small_functions): Likewise.
5262 (inline_always_inline_functions): Likewise.
5263 (ipa_inline): Likewise.
5264 (flatten_function): Likewise.
5265 (inline_small_functions): Likewise.
5266 (speculation_useful_p): Likewise.
5267 (recursive_inlining): Likewise.
5268 (update_caller_keys): Likewise.
5269 (reset_edge_caches): Likewise.
5270 (update_edge_key): Likewise.
5271 (edge_badness): Likewise.
5272 (relative_time_benefit): Likewise.
5273 (want_inline_self_recursive_call_p): Likewise.
5274 (want_inline_small_function_p): Likewise.
5275 (want_early_inline_function_p): Likewise.
5276 (num_calls): Likewise.
5277 (can_early_inline_edge_p): Likewise.
5278 (can_inline_edge_p): Likewise.
5279 (report_inline_failed_reason): Likewise.
5280 * ipa-profile.c (ipa_profile): Likewise.
5281 (ipa_propagate_frequency): Likewise.
5282 (ipa_propagate_frequency_1): Likewise.
5283 (ipa_profile_generate_summary): Likewise.
5284 * ipa-prop.c (ipcp_transform_function): Likewise.
5285 (read_replacements_section): Likewise.
5286 (ipa_prop_read_section): Likewise.
5287 (ipa_modify_call_arguments): Likewise.
5288 (ipa_print_node_params): Likewise.
5289 (propagate_controlled_uses): Likewise.
5290 (update_indirect_edges_after_inlining): Likewise.
5291 (remove_described_reference): Likewise.
5292 (ipa_make_edge_direct_to_target): Likewise.
5293 (ipa_analyze_node): Likewise.
5294 (ipa_analyze_params_uses): Likewise.
5295 (ipa_compute_jump_functions): Likewise.
5296 (ipa_get_callee_param_type): Likewise.
5297 (ipa_print_node_jump_functions): Likewise.
5298 (ipa_initialize_node_params): Likewise.
5299 (ipa_populate_param_decls): Likewise.
5300 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
5301 (write_agg_replacement_chain): Likewise.
5302 (ipa_write_node_info): Likewise.
5303 (ipa_edge_duplication_hook): Likewise.
5304 (try_decrement_rdesc_refcount): Likewise.
5305 * ipa-pure-const.c (propagate_nothrow): Likewise.
5306 (propagate_pure_const): Likewise.
5307 (pure_const_read_summary): Likewise.
5308 (pure_const_write_summary): Likewise.
5309 (analyze_function): Likewise.
5310 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
5311 (ipa_ref_referring_ref_list): Likewise.
5312 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
5313 (ipa_remove_stmt_references): Likewise.
5314 (ipa_find_reference): Likewise.
5315 (ipa_dump_referring): Likewise.
5316 (ipa_dump_references): Likewise.
5317 (ipa_record_reference): Likewise.
5318 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
5319 (ipa_reference_write_optimization_summary): Likewise.
5320 (write_node_summary_p): Likewise.
5321 (propagate): Likewise.
5322 (read_write_all_from_decl): Likewise.
5323 (generate_summary): Likewise.
5324 (analyze_function): Likewise.
5325 (propagate_bits): Likewise.
5326 (ipa_reference_get_not_written_global): Likewise.
5327 (ipa_reference_get_not_read_global): Likewise.
5328 * ipa-split.c (execute_split_functions): Likewise.
5329 (split_function): Likewise.
5330 * ipa-utils.c (ipa_merge_profiles): Likewise.
5331 (dump_cgraph_node_set): Likewise.
5332 (ipa_reverse_postorder): Likewise.
5333 (ipa_edge_within_scc): Likewise.
5334 (ipa_get_nodes_in_cycle): Likewise.
5335 (ipa_free_postorder_info): Likewise.
5336 (ipa_reduced_postorder): Likewise.
5337 (searchc): Likewise.
5338 (recursive_call_p): Likewise.
5339 * ipa.c (ipa_cdtor_merge): Likewise.
5340 (record_cdtor_fn): Likewise.
5341 (function_and_variable_visibility): Likewise.
5342 (varpool_externally_visible_p): Likewise.
5343 (cgraph_externally_visible_p): Likewise.
5344 (comdat_can_be_unshared_p): Likewise.
5345 (comdat_can_be_unshared_p_1): Likewise.
5346 (address_taken_from_non_vtable_p): Likewise.
5347 (ipa_discover_readonly_nonaddressable_vars): Likewise.
5348 (symtab_remove_unreachable_nodes): Likewise.
5349 (walk_polymorphic_call_targets): Likewise.
5350 (process_references): Likewise.
5351 (enqueue_node): Likewise.
5352 (has_addr_references_p): Likewise.
5353 (cgraph_non_local_node_p_1): Likewise.
5354 * is-a.h (varpool_analyze_node): Likewise.
5355 * lto-cgraph.c (input_symtab): Likewise.
5356 (merge_profile_summaries): Likewise.
5357 (input_cgraph_1): Likewise.
5358 (input_edge): Likewise.
5359 (input_varpool_node): Likewise.
5360 (input_node): Likewise.
5361 (input_overwrite_node): Likewise.
5362 (compute_ltrans_boundary): Likewise.
5363 (output_refs): Likewise.
5364 (lto_output_varpool_node): Likewise.
5365 (lto_output_node): Likewise.
5366 (reachable_from_other_partition_p): Likewise.
5367 (referenced_from_other_partition_p): Likewise.
5368 (lto_output_edge): Likewise.
5369 (output_node_opt_summary): Likewise.
5370 (add_node_to): Likewise.
5371 (reachable_from_this_partition_p): Likewise.
5372 (lto_set_symtab_encoder_in_partition): Likewise.
5373 (lto_symtab_encoder_in_partition_p): Likewise.
5374 (lto_set_symtab_encoder_encode_initializer): Likewise.
5375 (lto_symtab_encoder_encode_initializer_p): Likewise.
5376 (lto_set_symtab_encoder_encode_body): Likewise.
5377 (lto_symtab_encoder_encode_body_p): Likewise.
5378 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
5380 * lto-streamer-in.c (lto_read_body): Likewise.
5381 (fixup_call_stmt_edges): Likewise.
5382 (fixup_call_stmt_edges_1): Likewise.
5383 * lto-streamer-out.c (produce_symtab): Likewise.
5384 (output_symbol_p): Likewise.
5385 (write_symbol): Likewise.
5386 (lto_output): Likewise.
5387 (copy_function): Likewise.
5388 (output_function): Likewise.
5389 * passes.c (function_called_by_processed_nodes_p): Likewise.
5390 (ipa_write_optimization_summaries): Likewise.
5391 (ipa_write_summaries): Likewise.
5392 (do_per_function_toporder): Likewise.
5393 (do_per_function): Likewise.
5394 (dump_passes): Likewise.
5395 * symtab.c (symtab_semantically_equivalent_p): Likewise.
5396 (symtab_nonoverwritable_alias): Likewise.
5397 (symtab_nonoverwritable_alias_1): Likewise.
5398 (symtab_for_node_and_aliases): Likewise.
5399 (symtab_resolve_alias): Likewise.
5400 (fixup_same_cpp_alias_visibility): Likewise.
5401 (symtab_alias_ultimate_target): Likewise.
5402 (symtab_used_from_object_file_p): Likewise.
5403 (verify_symtab_base): Likewise.
5404 (dump_symtab_base): Likewise.
5405 (symtab_node_name): Likewise.
5406 (symtab_node_asm_name): Likewise.
5407 (symtab_dissolve_same_comdat_group_list): Likewise.
5408 (symtab_add_to_same_comdat_group): Likewise.
5409 (symtab_unregister_node): Likewise.
5410 (symtab_insert_node_to_hashtable): Likewise.
5411 (symtab_register_node): Likewise.
5412 (unlink_from_assembler_name_hash): Likewise.
5413 (insert_to_assembler_name_hash): Likewise.
5414 (eq_assembler_name): Likewise.
5415 (hash_node_by_assembler_name): Likewise.
5416 (eq_node): Likewise.
5417 (hash_node): Likewise.
5418 * toplev.c (wrapup_global_declaration_2): Likewise.
5419 * trans-mem.c (ipa_tm_execute): Likewise.
5420 (ipa_tm_transform_clone): Likewise.
5421 (ipa_tm_transform_transaction): Likewise.
5422 (ipa_tm_transform_calls_redirect): Likewise.
5423 (ipa_tm_insert_gettmclone_call): Likewise.
5424 (ipa_tm_insert_irr_call): Likewise.
5425 (ipa_tm_create_version): Likewise.
5426 (ipa_tm_create_version_alias): Likewise.
5427 (ipa_tm_mark_forced_by_abi_node): Likewise.
5428 (ipa_tm_mark_force_output_node): Likewise.
5429 (ipa_tm_diagnose_tm_safe): Likewise.
5430 (ipa_tm_mayenterirr_function): Likewise.
5431 (ipa_tm_scan_irr_function): Likewise.
5432 (ipa_tm_note_irrevocable): Likewise.
5433 (ipa_tm_scan_calls_clone): Likewise.
5434 (get_cg_data): Likewise.
5435 * tree-eh.c (tree_could_trap_p): Likewise.
5436 * tree-emutls.c (ipa_lower_emutls): Likewise.
5437 (create_emultls_var): Likewise.
5438 (lower_emutls_function_body): Likewise.
5439 (gen_emutls_addr): Likewise.
5440 (emutls_decl): Likewise.
5441 (new_emutls_decl): Likewise.
5442 * tree-inline.c (tree_function_versioning): Likewise.
5443 (optimize_inline_calls): Likewise.
5444 (expand_call_inline): Likewise.
5445 (estimate_num_insns): Likewise.
5446 (copy_bb): Likewise.
5447 (delete_unreachable_blocks_update_callgraph): Likewise.
5448 * tree-nested.c (gimplify_all_functions): Likewise.
5449 (create_nesting_tree): Likewise.
5450 (check_for_nested_with_variably_modified): Likewise.
5451 * tree-pretty-print.c (dump_function_header): Likewise.
5452 * tree-profile.c (tree_profiling): Likewise.
5453 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
5454 (modify_function): Likewise.
5455 (convert_callers): Likewise.
5456 (convert_callers_for_node): Likewise.
5457 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
5458 (associate_varinfo_to_alias): Likewise.
5459 (create_variable_info_for): Likewise.
5460 (get_constraint_for_ssa_var): Likewise.
5461 * tree-vectorizer.c (increase_alignment): Likewise.
5462 * tree.c (find_decls_types_in_var): Likewise.
5463 (find_decls_types_in_node): Likewise.
5464 (free_lang_data_in_decl): Likewise.
5465 * value-prof.c (gimple_ic_transform): Likewise.
5466 (gimple_ic): Likewise.
5467 (check_ic_target): Likewise.
5468 (init_node_map): Likewise.
5469 * varasm.c (decl_binds_to_current_def_p): Likewise.
5470 (default_binds_local_p_1): Likewise.
5471 (dump_tm_clone_pairs): Likewise.
5472 (assemble_alias): Likewise.
5473 (find_decl): Likewise.
5474 (mark_decl_referenced): Likewise.
5475 * varpool.c (varpool_for_node_and_aliases): Likewise.
5476 (varpool_extra_name_alias): Likewise.
5477 (varpool_create_variable_alias): Likewise.
5478 (add_new_static_var): Likewise.
5479 (varpool_finalize_named_section_flags): Likewise.
5480 (varpool_remove_unreferenced_decls): Likewise.
5481 (enqueue_node): Likewise.
5482 (varpool_assemble_decl): Likewise.
5483 (assemble_aliases): Likewise.
5484 (varpool_analyze_node): Likewise.
5485 (cgraph_variable_initializer_availability): Likewise.
5486 (varpool_add_new_variable): Likewise.
5487 (ctor_for_folding): Likewise.
5488 (dump_varpool_node): Likewise.
5489 (varpool_remove_initializer): Likewise.
5490 (varpool_remove_node): Likewise.
5491 (varpool_node_for_decl): Likewise.
5492 (varpool_create_empty_node): Likewise.
5493 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
5494 (ix86_get_function_versions_dispatcher): Likewise.
5496 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5498 * cgraph.h (symtab_node_base): Convert to a class;
5499 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
5500 chain_next/prev from symtab_node_def.
5501 (cgraph_node): Inherit from symtab_node; add GTY option
5502 tag ("SYMTAB_FUNCTION").
5503 (varpool_node): Inherit from symtab_node; add GTY option
5504 tag ("SYMTAB_VARIABLE").
5505 (symtab_node_def): Remove.
5506 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
5507 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
5508 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
5509 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
5511 * ipa-ref.h (symtab_node_def): Drop.
5512 (symtab_node): Change underlying type from symtab_node_def to
5514 (const_symtab_node): Likwise.
5516 * is-a.h: Update examples in comment.
5518 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
5519 (assembler_name_hash): Likewise.
5521 2013-10-29 Martin Liska <marxin.liska@gmail.com>
5523 * doc/tree-ssa.texi (gimple_phi_result): Document.
5524 (gimple_phi_num_args, gimple_phi_arg): Likewise.
5525 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
5526 (PHI_RESULT, PHI_NUM_ARGS): Remove.
5527 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
5529 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
5531 * expr.h: Revert change and include tree-core.h.
5532 * rtl.h: Revert change and don't include tree-core.h.
5534 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
5536 * config/darwin.c: Include gimple.h.
5537 * config/i386/winnt.c: Likewise.
5539 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
5541 PR tree-optimization/19831
5542 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
5544 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
5546 * tree-outof-ssa.h: Remove include files.
5547 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
5549 * tree-ssa-coalesce.c: Likewise.
5550 * cfgexpand.c: Likewise.
5551 * tree-ssa-ter.c: Likewise.
5552 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
5553 * lto-streamer.h: Likewise.
5554 * cgraphbuild.c: Add gimple.h to include list.
5555 * data-streamer-in.c: Likewise.
5556 * ipa-cp.c: Likewise.
5557 * tree-streamer.c: Likewise.
5558 * lto-compress.c: Likewise.
5559 * ipa-reference.c: Likewise.
5560 * data-streamer-out.c: Likewise.
5561 * lto-cgraph.c: Likewise.
5562 * cgraphclones.c: Likewise.
5563 * ipa-utils.c: Likewise.
5564 * data-streamer.c: Likewise.
5565 * ipa-split.c: Likewise.
5566 * lto-section-in.c: Likewise.
5567 * tree-streamer-out.c: Likewise.
5568 * ipa-prop.c: Likewise.
5569 * tree-streamer-in.c: Likewise.
5570 * symtab.c: Likewise.
5571 * opts-global.c: Likewise.
5572 * lto-opts.c: Likewise.
5573 * lto-section-out.c: Likewise.
5574 * lto-streamer.c: Likewise.
5575 * rtl.h: Add tree-core.h to include list.
5576 * expr.h: Remove tree-core.h from include list.
5577 * gimple.h: Likewise.
5578 * ipa-utils.h: Likewise.
5579 * streamer-hooks.h: Likewise.
5580 * streamer-hooks.c: Include input.h.
5582 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5584 * config/arm/arm.c (cortexa7_extra_costs): New table.
5585 (arm_cortex_a7_tune): New.
5586 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
5588 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
5590 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
5592 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5594 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
5595 to use autogenerated markers for a class-hierarchy, every class
5596 must have a GTY marker.
5597 * gengtype.h (struct type): Add linked list of subclasses to
5598 the "s" member of the union.
5599 (add_subclass): New decl.
5600 * gengtype-state.c (read_state_struct_type): Set up subclass
5602 * gengtype.c (get_ultimate_base_class): New.
5603 (add_subclass): New.
5604 (new_structure): Set up subclass linked list.
5605 (set_gc_used_type): Propagate usage information to subclasses.
5606 (output_mangled_typename): Use get_ultimate_base_class.
5607 (walk_subclasses): Use the subclass linked list, avoiding an
5608 O(N^2) when writing out all types.
5609 (walk_type): Issue an error if the base class is missing a tag,
5610 rather than generating bogus C code. Add a gcc_unreachable
5611 default case, in case people omit tags from concrete subclasses,
5612 or get the values wrong.
5613 (write_func_for_structure): Issue an error for subclasses for
5614 which the base doesn't have a "desc", since otherwise the
5615 autogenerated routines for the base would silently fail to visit
5616 any subclass fields.
5617 (write_root): Use get_ultimate_base_class, tweaking constness of
5618 tp to match that function's signature.
5620 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5622 * doc/gty.texi (GTY Options): Add note about inheritance to
5623 description of desc and tag.
5624 (Inheritance and GTY): New.
5626 2013-10-29 David Malcolm <dmalcolm@redhat.com>
5628 * gengtype-parse.c (opts_have): Drop "static" so that
5629 we can use this from gengtype.c.
5630 * gengtype.c (set_gc_used_type): Mark any base class as used;
5631 update field traversal to visit inherited fields.
5632 (output_mangled_typename): Convert references to classes within
5633 an inheritance hierarchy to reference the ultimate base class,
5634 since only it will have gt_ functions.
5635 (get_string_option): New.
5636 (walk_subclasses): New.
5637 (walk_type): Treat GTY structs that have a "desc" as being the
5638 root of an inheritance hierarchy. Generate a switch on it
5639 within the marking function which walks all subclasses, adding
5640 cases for them via walk_subclasses. For subclasses, visit all
5641 fields of the type (including inherited ones).
5642 (write_func_for_structure): Don't write fns for subclasses, only
5643 for the ultimate base class within an inheritance hierarchy.
5644 Subclasses-marking will be handled by the base class marking functions.
5645 (write_types): Likewise.
5646 (write_local_func_for_structure): Likewise.
5647 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
5648 a "tag" option (and are thus concrete subclasses).
5649 (write_root): Use the marker function for the ultimate base class.
5650 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
5651 (opts_have): Add declaration.
5653 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
5655 * lra-spills.c (lra_final_code_change): Remove useless move insns
5656 originated from moves of pseudos.
5658 2013-10-28 Jeff Law <law@redhat.com>
5660 * lower-subreg.c (resolve_simple_move): Fix comment typo.
5662 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
5664 * df-scan.c (df_collection_rec): Adjust.
5665 (copy_defs): New constant.
5666 (copy_uses): Likewise.
5667 (copy_eq_uses): Likewise.
5668 (copy_mw): Likewise.
5669 (copy_all): Likewise.
5670 (df_insn_rescan): Adjust.
5671 (df_notes_rescan): Likewise.
5672 (df_swap_refs): Likewise.
5673 (df_sort_and_compress_refs): Likewise.
5674 (df_sort_and_compress_mws): Likewise.
5675 (df_install_refs): Likewise.
5676 (df_install_mws): Likewise.
5677 (df_refs_add_to_chains): Add flags parameter controlling which vectors
5679 (df_bb_refs_record): Adjust.
5680 (df_record_entry_block_defs): Likewise.
5681 (df_record_exit_block_defs): Likewise.
5682 (df_refs_verify): Likewise.
5683 (df_mws_verify): Likewise.
5684 (df_insn_refs_verify): Likewise.
5685 (df_bb_verify): Likewise.
5686 * ipa-pure-const.c (finish_state): Remove.
5687 (propagate): Adjust.
5688 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
5689 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
5690 var-tracking.c: Adjust.
5691 * vec.c (stack_vecs): Remove.
5692 (register_stack_vec): Likewise.
5693 (stack_vec_register_index): Likewise.
5694 (unregister_stack_vec): Likewise.
5695 * vec.h (struct va_stack): Remove.
5696 (struct vec<T, A, vl_ptr>): Specialize as
5697 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
5698 allocation strategy compatable with the vl_ptr layout.
5699 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
5700 specialization anyway.
5701 (class stack_vec): New class.
5702 (vec_stack_alloc): Remove.
5703 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
5705 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5706 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5707 Sergey Lega <sergey.s.lega@intel.com>
5708 Anna Tikhonova <anna.tikhonova@intel.com>
5709 Ilya Tocar <ilya.tocar@intel.com>
5710 Andrey Turetskiy <andrey.turetskiy@intel.com>
5711 Ilya Verbin <ilya.verbin@intel.com>
5712 Kirill Yukhin <kirill.yukhin@intel.com>
5713 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5715 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
5716 (*prefetch_avx512pf_<mode>): New.
5717 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
5718 (avx512f_maskcmp<mode>3): Ditto.
5719 (vashrv16si3): Ditto.
5721 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5722 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5723 Sergey Lega <sergey.s.lega@intel.com>
5724 Anna Tikhonova <anna.tikhonova@intel.com>
5725 Ilya Tocar <ilya.tocar@intel.com>
5726 Andrey Turetskiy <andrey.turetskiy@intel.com>
5727 Ilya Verbin <ilya.verbin@intel.com>
5728 Kirill Yukhin <kirill.yukhin@intel.com>
5729 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5731 * config/i386/i386.md (any_truncate): New.
5732 (trunsuffix): Ditto.
5733 * config/i386/predicates.md (const_8_to_9_operand): New.
5734 (const_10_to_11_operand): Ditto.
5735 (const_12_to_13_operand): Ditto.
5736 (const_14_to_15_operand): Ditto.
5737 (const_16_to_19_operand): Ditto.
5738 (const_20_to_23_operand): Ditto.
5739 (const_24_to_27_operand): Ditto.
5740 (const_28_to_31_operand): Ditto.
5741 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
5742 (cvtusi2<ssescalarmodesuffix>32): New.
5743 (cvtusi2<ssescalarmodesuffix>64): Ditto.
5744 (ufloatv16siv16sf2): Ditto.
5745 (avx512f_fix_notruncv16sfv16si): Ditto.
5746 (avx512f_ufix_notruncv16sfv16si): Ditto.
5747 (avx512f_vcvtss2usi): Ditto.
5748 (avx512f_vcvtss2usiq): Ditto.
5749 (avx512f_vcvttss2usi): Ditto.
5750 (avx512f_vcvttss2usiq): Ditto.
5751 (avx512f_vcvtsd2usi): Ditto.
5752 (avx512f_vcvtsd2usiq): Ditto.
5753 (avx512f_vcvttsd2usi): Ditto.
5754 (avx512f_vcvttsd2usiq): Ditto.
5755 (ufloatv8siv8df): Ditto.
5756 (avx512f_cvtdq2pd512_2): Ditto.
5757 (avx512f_cvtpd2dq512): Ditto.
5758 (avx512f_ufix_notruncv8dfv8si): Ditto.
5759 (avx512f_cvtpd2ps512): Ditto.
5760 (vec_unpacks_lo_v16sf): Ditto.
5761 (vec_unpacks_hi_v16sf): Ditto.
5762 (vec_unpacks_float_hi_v16si): Ditto.
5763 (vec_unpacks_float_lo_v16si): Ditto.
5764 (avx512f_unpckhps512): Ditto.
5765 (avx512f_unpcklps512): Ditto.
5766 (avx512f_movshdup512): Ditto.
5767 (avx512f_movsldup512): Ditto.
5768 (vec_extract_lo_v32hi): Ditto.
5769 (vec_extract_hi_v32hi): Ditto.
5770 (vec_extract_lo_v64qi): Ditto.
5771 (vec_extract_hi_v64qi): Ditto.
5772 (avx512f_unpckhpd512): Ditto.
5773 (avx512f_movddup512): Ditto.
5774 (avx512f_unpcklpd512): Ditto.
5775 (*avx512f_unpcklpd512): Ditto.
5776 (avx512f_shufps512_1): Ditto.
5777 (avx512f_shufpd512_1): Ditto.
5778 (avx512f_interleave_highv8di): Ditto.
5779 (avx512f_interleave_lowv8di): Ditto.
5780 (PMOV_DST_MODE): Ditto.
5781 (pmov_src_mode): Ditto.
5782 (pmov_src_lower): Ditto.
5784 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
5785 (*avx512f_<code>v8div16qi2): Ditto.
5786 (*avx512f_<code>v8div16qi2_store): Ditto.
5787 (vec_widen_umult_even_v16si): Ditto.
5788 (*vec_widen_umult_even_v16si): Ditto.
5789 (vec_widen_smult_even_v16si): Ditto.
5790 (*vec_widen_smult_even_v16si): Ditto.
5791 (avx512f_interleave_highv16si): Ditto.
5792 (avx512f_interleave_lowv16si): Ditto.
5793 (avx512f_<code>v16qiv16si2): Ditto.
5794 (avx512f_<code>v16hiv16si2): Ditto.
5795 (avx512f_<code>v8qiv8di2): Ditto.
5796 (avx512f_<code>v8hiv8di2): Ditto.
5797 (avx512f_<code>v8siv8di2): Ditto.
5798 (avx512cd_maskb_vec_dupv8di): Ditto.
5799 (avx512cd_maskw_vec_dupv16si): Ditto.
5800 (avx512f_vcvtph2ps512): Ditto.
5801 (avx512f_vcvtps2ph512): Ditto.
5802 (VEC_EXTRACT_MODE): Extened with wider modes.
5803 (VEC_PERM_AVX2): Ditto.
5804 (VEC_PERM_CONST): Ditto.
5806 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
5808 * config/arc/arc.c (arc_ccfsm_post_advance):
5809 Add comment about TYPE_RETURN.
5811 2013-10-28 Bin Cheng <bin.cheng@arm.com>
5813 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
5814 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
5815 (strip_offset): Convert offset to unsigned number.
5817 2013-10-27 Tom de Vries <tom@codesourcery.com>
5819 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
5820 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
5822 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
5824 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
5825 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
5826 (TARGET_BIG_ENDIAN): New macro.
5827 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
5828 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
5829 * config/sh/sh.c: Likewise.
5830 * config/sh/sh.h: Likewise.
5832 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
5834 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
5835 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
5837 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
5839 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
5841 (cmpstr_t, cmpstrsi): Fix formatting.
5843 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
5846 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
5847 addressing, do not use general_operand for memory operands.
5849 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
5852 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
5853 * lra-spills.c (lra_final_code_change): Remove useless move insns.
5855 2013-10-26 Jeff Law <law@redhat.com>
5857 * predict.c (PRED_MUDFLAP): Remove.
5858 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
5860 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
5861 (OBJS): Remove tree-nomudflap.o
5862 (GTFILES): Remove tree-mudflap.c
5863 * builtins.c (expand_builtin_alloc): Remove mudflap support.
5864 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
5865 (mfwrap_spec, mflib_spec): Likewise.
5866 (cpp_unique_options, cc1_options, static_specs): Likewise.
5867 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
5868 * passes.def: Likewise.
5869 * toplev.c (compile_file, process_options): Likewise.
5870 * tree-inline.c (copy_tree_r): Likewise.
5871 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
5872 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
5873 (build_constant_desc, output_constant_def_contents): Likewise.
5874 (categorize_decl_for_section): Likewise.
5875 * tree-mudflap.c: Removed.
5876 * tree-mudflap.h: Removed.
5877 * tree-nomudflap.c: Removed.
5878 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
5879 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
5880 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
5881 * config/sol2.h (MFLIB_SPEC): Likewise.
5882 * doc/install.texi: Remove mudflap references.
5883 * doc/passes.texi: Similarly.
5884 * doc/sourcebuild.texi: Similarly.
5885 * doc/invoke.texi: Remove mudlfap related options.
5887 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
5889 PR rtl-optimization/58759
5890 * lra-constraints.c (lra_constraints): Remove wrong condition to
5891 remove insn setting up an equivalent pseudo.
5893 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
5895 * config/rs6000/rs6000-protos.h
5896 (rs6000_secondary_memory_needed_mode): New prototype.
5897 * config/rs6000/rs6000.c: Include ira.h.
5898 (TARGET_LRA_P): Redefine.
5899 (rs6000_legitimate_offset_address_p): Call
5900 legitimate_constant_pool_address_p in strict mode for LRA.
5901 (rs6000_legitimate_address_p): Ditto.
5902 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
5903 (rs6000_emit_move): Add LRA version of code to generate load/store
5905 (rs6000_secondary_memory_needed_mode): New.
5906 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
5907 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
5908 constants, memory, and FP registers.
5909 (rs6000_lra_p): New.
5910 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
5911 * config/rs6000/rs6000.opt (mlra): New option.
5912 * lra-spills.c (lra_final_code_change): Remove useless move insns.
5914 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
5916 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
5917 has_single_use () and not do the conversion if has_single_use ()
5918 returns false for the multiplication result.
5920 2013-10-25 David Malcolm <dmalcolm@redhat.com>
5922 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
5923 to "NODE", since this works on a "tree", not an
5925 (CONSTANT_CLASS_P): Likewise.
5928 (INDIRECT_REF_P): Likewise.
5929 (REFERENCE_CLASS_P): Likewise.
5930 (COMPARISON_CLASS_P): Likewise.
5931 (UNARY_CLASS_P): Likewise.
5932 (BINARY_CLASS_P): Likewise.
5933 (STATEMENT_CLASS_P): Likewise.
5934 (VL_EXP_CLASS_P): Likewise.
5935 (EXPRESSION_CLASS_P): Likewise.
5936 (IS_TYPE_OR_DECL_P): Likewise.
5938 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
5940 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
5941 ADDR_EXPR in the defining statement.
5943 2013-10-25 Richard Biener <rguenther@suse.de>
5945 PR tree-optimization/58626
5946 * tree-loop-distribution.c (enum rdg_dep_type): Remove
5947 anti_dd, output_dd and input_dd.
5948 (struct rdg_edge): Remove level and relation members.
5949 (RDGE_LEVEL, RDGE_RELATION): Remove.
5950 (dot_rdg_1): Adjust.
5951 (create_rdg_edge_for_ddr): Remove.
5952 (create_rdg_edges_for_scalar): Adjust.
5953 (create_edge_for_control_dependence): Likewise.
5954 (create_rdg_edges): Split into ...
5955 (create_rdg_flow_edges): ... this
5956 (create_rdg_cd_edges): ... and this.
5958 (build_rdg): Likewise, do not compute data dependences or
5960 (pg_add_dependence_edges): New function.
5962 (distribute_loop): First apply all non-dependence based
5963 partition mergings. Then compute dependences between partitions
5964 and merge and order partitions according to them.
5966 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
5968 PR rtl-optimization/58831
5969 * alias.c (init_alias_analysis): At the beginning of each iteration,
5970 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
5972 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
5974 * recog.c (search_ofs): New static variable moved from...
5975 (peep2_find_free_register): ...here.
5976 (peephole2_optimize): Initialize it.
5978 2013-10-25 Tobias Burnus <burnus@net-b.de>
5980 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
5982 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
5984 * config/i386/i386.h (TARGET_MPX): New define.
5985 (TARGET_MPX_P): Ditto.
5987 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
5989 * config/i386/constraints.md (B): New.
5992 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
5993 * config/i386/i386-modes.def (BND32): New.
5995 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
5996 * config/i386/i386.c (isa_opts): Add mmpx.
5997 (regclass_map): Add bound registers.
5998 (dbx_register_map): Likewise.
5999 (dbx64_register_map): Likewise.
6000 (svr4_dbx_register_map): Likewise.
6002 (ix86_option_override_internal): Support MPX ISA.
6003 (ix86_conditional_register_usage): Support bound registers.
6004 (print_reg): Likewise.
6005 (ix86_code_end): Add MPX bnd prefix.
6006 (output_set_got): Likewise.
6007 (ix86_output_call_insn): Likewise.
6008 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
6009 (ix86_print_operand_punct_valid_p): Likewise.
6010 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
6012 (ix86_class_likely_spilled_p): Add bound regs support.
6013 (ix86_hard_regno_mode_ok): Likewise.
6014 (x86_order_regs_for_local_alloc): Likewise.
6015 (ix86_bnd_prefixed_insn_p): New.
6016 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
6017 (FIXED_REGISTERS): Add bound registers.
6018 (CALL_USED_REGISTERS): Likewise.
6019 (REG_ALLOC_ORDER): Likewise.
6020 (HARD_REGNO_NREGS): Likewise.
6022 (VALID_BND_REG_MODE): New.
6023 (FIRST_BND_REG): New.
6024 (LAST_BND_REG): New.
6025 (reg_class): Add BND_REGS.
6026 (REG_CLASS_NAMES): Likewise.
6027 (REG_CLASS_CONTENTS): Likewise.
6029 (ANY_BND_REG_P): New.
6031 (HI_REGISTER_NAMES): Add bound registers.
6032 * config/i386/i386.md (UNSPEC_BNDMK): New.
6033 (UNSPEC_BNDMK_ADDR): New.
6034 (UNSPEC_BNDSTX): New.
6035 (UNSPEC_BNDLDX): New.
6036 (UNSPEC_BNDLDX_ADDR): New.
6037 (UNSPEC_BNDCL): New.
6038 (UNSPEC_BNDCU): New.
6039 (UNSPEC_BNDCN): New.
6040 (UNSPEC_MPX_FENCE): New.
6043 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
6044 (length_immediate): Likewise.
6045 (prefix_0f): Likewise.
6047 (prefix_rep): Check for bnd prefix.
6048 (length_nobnd): New.
6049 (length): Use length_nobnd if specified.
6054 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
6057 (simple_return_internal): Likewise.
6058 (simple_return_pop_internal): Likewise.
6059 (*indirect_jump): Add MPX bnd prefix.
6060 (*tablejump_1): Likewise.
6061 (simple_return_internal_long): Likewise.
6062 (simple_return_indirect_internal): Likewise.
6066 (*mov<mode>_internal_mpx): New.
6067 (<mode>_<bndcheck>): New.
6068 (*<mode>_<bndcheck>): New.
6073 * config/i386/predicates.md (lea_address_operand): Rename to...
6074 (address_no_seg_operand): ... this.
6075 (address_mpx_no_base_operand): New.
6076 (address_mpx_no_index_operand): New.
6077 (bnd_mem_operator): New.
6078 * config/i386/i386.opt (mmpx): New.
6079 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
6080 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
6082 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
6084 * mode-classes.def (MODE_POINTER_BOUNDS): New.
6085 * tree.def (POINTER_BOUNDS_TYPE): New.
6086 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
6087 (POINTER_BOUNDS_MODE): New.
6088 (make_pointer_bounds_mode): New.
6089 * machmode.h (POINTER_BOUNDS_MODE_P): New.
6090 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
6091 (layout_type): Support POINTER_BOUNDS_TYPE.
6092 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
6093 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
6094 (type_contains_placeholder_1): Likewise.
6095 * tree.h (POINTER_BOUNDS_TYPE_P): New.
6096 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
6097 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
6099 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
6101 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
6102 mode of address computation when calling memory_address_addr_space.
6104 2013-08-24 Richard Henderson <rth@twiddle.net>
6107 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
6108 instead of create_convert_operand_to.
6109 (maybe_emit_sync_lock_test_and_set): Likewise.
6110 (expand_atomic_compare_and_swap): Likewise.
6111 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
6113 2013-08-24 Sriraman Tallam <tmsriram@google.com>
6115 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
6116 Change param_is to use the struct and not the pointer to the struct.
6118 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
6120 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
6121 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
6122 Move to targhooks.c.
6123 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
6124 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
6125 Relocate from gimplify.c.
6126 * targhooks.h: Add 2 prototypes.
6127 * tree.h: Delete 2 prototypes.
6129 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
6131 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
6132 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
6134 2013-10-24 Cong Hou <congh@google.com>
6136 * convert.c (convert_to_real): Guard those unsafe math function
6137 convertions with flag_unsafe_math_optimizations. Handle sqrt()
6140 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
6143 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
6145 (cgraph_create_edge): Use the new argument.
6146 (cgraph_create_indirect_edge): Likewise.
6148 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
6150 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
6152 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
6153 changes statep->state.
6155 2013-10-24 Tobias Burnus <burnus@net-b.de>
6158 * tree-cfg.c (replace_loop_annotate): New function.
6159 (execute_build_cfg): Call it.
6160 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
6161 * internal-fn.c (expand_ANNOTATE): New function.
6162 * internal-fn.def (ANNOTATE): Define as new internal function.
6163 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
6164 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
6165 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
6166 * doc/extend.texi (Pragmas): Document #pragma ivdep.
6167 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
6169 2013-10-17 Ian Bolton <ian.bolton@arm.com>
6170 Marcus Shawcroft <marcus.shawcroft@arm.com>
6172 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
6173 Special case reload SP+C into none GENERAL_REGS.
6175 2013-10-24 Michael Matz <matz@suse.de>
6177 * gengtype.c (is_file_equal): Check that files will be same length.
6179 2013-10-25 Christian Bruel <christian.bruel@st.com>
6181 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
6182 * config/sh/t-sh (sh-mem.o): New rule.
6183 * config/sh/sh-mem.cc (expand_block_move): Moved here.
6184 (sh_expand_cmpstr): New function.
6185 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
6186 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
6187 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
6188 (rotlhi3_8): Rename.
6190 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6192 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
6193 * Makefile.in (CXXDEPMODE): Assign and change users.
6194 (CCDEPMODE): Delete.
6195 * configure: Regenerate.
6197 2013-10-23 David Malcolm <dmalcolm@redhat.com>
6199 * gengtype-parse.c (require_without_advance): New.
6200 (type): For GTY-marked types that are not GTY((user)), parse any
6201 base classes, requiring them to be single-inheritance, and not
6202 be templates. For non-GTY-marked types and GTY((user)),
6203 continue to skip over any C++ inheritance specification.
6204 * gengtype-state.c (state_writer::write_state_struct_type):
6205 Write base class of type (if any).
6206 (read_state_struct_type): Read base class of type (if any).
6207 * gengtype.c (new_structure): Add a "base_class" parameter.
6208 (create_optional_field_): Update for new parameter to new_structure.
6209 (adjust_field_rtx_def): Likewise.
6210 (adjust_field_tree_exp): Likewise.
6211 * gengtype.h (struct type): Add "base_class" field to the s
6213 (new_structure): Add "base" parameter.
6215 2013-10-23 Sriraman Tallam <tmsriram@google.com>
6218 * config/i386/i386.c (ix86_option_override_internal):
6219 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
6220 (ix86_valid_target_attribute_tree):
6221 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
6222 Change TARGET_SSE to TARGET_SSE_P (opts->...)
6224 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
6226 * tree-ssa-loop.h: Remove include files.
6227 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
6228 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
6229 * graphite-clast-to-gimple.c: Likewise.
6230 * graphite-scop-detection.c: Likewise.
6231 * graphite-sese-to-poly.c: Likewise.
6232 * ipa-inline-analysis.c: Likewise.
6233 * ipa-pure-const.c: Likewise.
6234 * loop-init.c: Likewise.
6235 * passes.c: Likewise.
6236 * predict.c: Likewise.
6237 * tree-cfg.c: Likewise.
6238 * tree-cfgcleanup.c: Likewise.
6239 * tree-chrec.c: Likewise.
6240 * tree-data-ref.c: Likewise.
6241 * tree-loop-distribution.c: Likewise.
6242 * tree-parloops.c: Likewise.
6243 * tree-predcom.c: Likewise.
6244 * tree-scalar-evolution.c: Likewise.
6245 * tree-ssa-address.c: Likewise.
6246 * tree-ssa.c: Likewise.
6247 * tree-ssa-dce.c: Likewise.
6248 * tree-ssa-loop.c: Likewise.
6249 * tree-ssa-loop-im.c: Likewise.
6250 * tree-ssa-loop-ivcanon.c: Likewise.
6251 * tree-ssa-loop-ivopts.c: Likewise.
6252 * tree-ssa-loop-manip.c: Likewise.
6253 * tree-ssa-loop-niter.c: Likewise.
6254 * tree-ssa-loop-prefetch.c: Likewise.
6255 * tree-ssa-loop-unswitch.c: Likewise.
6256 * tree-ssa-reassoc.c: Likewise.
6257 * tree-vect-data-refs.c: Likewise.
6258 * tree-vect-loop.c: Likewise.
6259 * tree-vect-loop-manip.c: Likewise.
6260 * tree-vectorizer.c: Likewise.
6261 * tree-vect-stmts.c: Likewise.
6262 * tree-vrp.c: Likewise.
6264 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6266 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
6268 2013-10-23 Jakub Jelinek <jakub@redhat.com>
6270 PR tree-optimization/58775
6271 PR tree-optimization/58791
6272 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
6273 (insert_stmt_after): Rewritten, don't move the stmt, but really
6275 (get_stmt_uid_with_default): Remove.
6276 (build_and_add_sum): Use insert_stmt_after and
6277 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
6278 (update_range_test): Set uid on stmts added by
6279 force_gimple_operand_gsi. Don't immediately modify statements
6280 in inter-bb optimization, just update oe->op values.
6281 (optimize_range_tests): Return bool whether any changed have been made.
6282 (update_ops): New function.
6283 (struct inter_bb_range_test_entry): New type.
6284 (maybe_optimize_range_tests): Perform statement changes here.
6285 (not_dominated_by, appears_later_in_bb, get_def_stmt,
6286 ensure_ops_are_available): Remove.
6287 (find_insert_point): Rewritten.
6288 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
6289 return LHS of the (new resp. old) stmt. Don't call
6290 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
6291 instead of last, move new stmt at the right place.
6292 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
6293 (negate_value): Likewise. Set uids.
6294 (break_up_subtract_bb): Initialize uids.
6295 (reassociate_bb): Adjust rewrite_expr_tree caller.
6296 (do_reassoc): Don't call renumber_gimple_stmt_uids.
6298 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
6301 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
6302 TARGET_32BIT final condition.
6303 (mulsi3_internal2 and splitter): Same.
6305 2013-10-23 Jeff Law <law@redhat.com>
6307 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
6308 through joiner blocks with abnormal outgoing edges.
6310 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
6311 Add parameter JOINERS, to allow/disallow threading through joiner
6313 (thread_block): New. Call thread_block_1.
6314 (mark_threaded_blocks): Remove code to filter out certain cases
6315 of threading through joiner blocks.
6316 (thread_through_all_blocks): Document how we can have a dangling
6317 edge AUX field and clear it.
6319 2013-10-23 Ian Lance Taylor <iant@google.com>
6321 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
6322 (C++ Dialect Options): Likewise.
6323 (Optimize Options): Likewise.
6325 2013-10-23 Tom de Vries <tom@codesourcery.com>
6327 PR tree-optimization/58805
6328 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
6330 2013-10-23 Jakub Jelinek <jakub@redhat.com>
6332 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
6333 sequence based on get_range_info returned range.
6335 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
6337 * tree-ssa.h: Remove all #include's
6338 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
6339 * alias.c: Move required includes from tree-ssa.h.
6341 * builtins.c: Likewise.
6342 * calls.c: Likewise.
6343 * cfgexpand.c: Likewise.
6344 * cfghooks.c: Likewise.
6345 * cfgloop.c: Likewise.
6346 * cfgloopmanip.c: Likewise.
6347 * cgraph.c: Likewise.
6348 * cgraphbuild.c: Likewise.
6349 * cgraphclones.c: Likewise.
6350 * cgraphunit.c: Likewise.
6352 * except.c: Likewise.
6354 * final.c: Likewise.
6355 * fold-const.c: Likewise.
6356 * ggc-page.c: Likewise.
6357 * gimple-builder.c: Likewise.
6358 * gimple-fold.c: Likewise.
6359 * gimple-iterator.c: Likewise.
6360 * gimple-low.c: Likewise.
6361 * gimple-pretty-print.c: Likewise.
6362 * gimple-ssa-strength-reduction.c: Likewise.
6363 * gimple-streamer-in.c: Likewise.
6364 * gimple-streamer-out.c: Likewise.
6365 * gimplify.c: Likewise.
6366 * graphite-blocking.c: Likewise.
6367 * graphite-clast-to-gimple.c: Likewise.
6368 * graphite-dependences.c: Likewise.
6369 * graphite-interchange.c: Likewise.
6370 * graphite-optimize-isl.c: Likewise.
6371 * graphite-poly.c: Likewise.
6372 * graphite-scop-detection.c: Likewise.
6373 * graphite-sese-to-poly.c: Likewise.
6374 * graphite.c: Likewise.
6375 * ipa-cp.c: Likewise.
6376 * ipa-inline-analysis.c: Likewise.
6377 * ipa-inline-transform.c: Likewise.
6378 * ipa-inline.c: Likewise.
6379 * ipa-prop.c: Likewise.
6380 * ipa-pure-const.c: Likewise.
6381 * ipa-reference.c: Likewise.
6382 * ipa-split.c: Likewise.
6383 * ipa-utils.c: Likewise.
6384 * loop-init.c: Likewise.
6385 * lto-cgraph.c: Likewise.
6386 * lto-section-in.c: Likewise.
6387 * lto-section-out.c: Likewise.
6388 * lto-streamer-in.c: Likewise.
6389 * lto-streamer-out.c: Likewise.
6390 * lto-streamer.c: Likewise.
6391 * omp-low.c: Likewise.
6392 * passes.c: Likewise.
6393 * predict.c: Likewise.
6394 * print-tree.c: Likewise.
6395 * profile.c: Likewise.
6397 * targhooks.c: Likewise.
6398 * tracer.c: Likewise.
6399 * trans-mem.c: Likewise.
6400 * tree-call-cdce.c: Likewise.
6401 * tree-cfg.c: Likewise.
6402 * tree-cfgcleanup.c: Likewise.
6403 * tree-chrec.c: Likewise.
6404 * tree-complex.c: Likewise.
6405 * tree-data-ref.c: Likewise.
6406 * tree-dfa.c: Likewise.
6407 * tree-eh.c: Likewise.
6408 * tree-emutls.c: Likewise.
6409 * tree-if-conv.c: Likewise.
6410 * tree-inline.c: Likewise.
6411 * tree-into-ssa.c: Likewise.
6412 * tree-loop-distribution.c: Likewise.
6413 * tree-mudflap.c: Likewise.
6414 * tree-nested.c: Likewise.
6415 * tree-nrv.c: Likewise.
6416 * tree-object-size.c: Likewise.
6417 * tree-outof-ssa.c: Likewise.
6418 * tree-parloops.c: Likewise.
6419 * tree-phinodes.c: Likewise.
6420 * tree-predcom.c: Likewise.
6421 * tree-pretty-print.c: Likewise.
6422 * tree-profile.c: Likewise.
6423 * tree-scalar-evolution.c: Likewise.
6424 * tree-sra.c: Likewise.
6425 * tree-ssa-address.c: Likewise.
6426 * tree-ssa-alias.c: Likewise.
6427 * tree-ssa-ccp.c: Likewise.
6428 * tree-ssa-coalesce.c: Likewise.
6429 * tree-ssa-copy.c: Likewise.
6430 * tree-ssa-copyrename.c: Likewise.
6431 * tree-ssa-dce.c: Likewise.
6432 * tree-ssa-dom.c: Likewise.
6433 * tree-ssa-dse.c: Likewise.
6434 * tree-ssa-forwprop.c: Likewise.
6435 * tree-ssa-ifcombine.c: Likewise.
6436 * tree-ssa-live.c: Likewise.
6437 * tree-ssa-loop-ch.c: Likewise.
6438 * tree-ssa-loop-im.c: Likewise.
6439 * tree-ssa-loop-ivcanon.c: Likewise.
6440 * tree-ssa-loop-ivopts.c: Likewise.
6441 * tree-ssa-loop-manip.c: Likewise.
6442 * tree-ssa-loop-niter.c: Likewise.
6443 * tree-ssa-loop-prefetch.c: Likewise.
6444 * tree-ssa-loop-unswitch.c: Likewise.
6445 * tree-ssa-loop.c: Likewise.
6446 * tree-ssa-math-opts.c: Likewise.
6447 * tree-ssa-operands.c: Likewise.
6448 * tree-ssa-phiopt.c: Likewise.
6449 * tree-ssa-phiprop.c: Likewise.
6450 * tree-ssa-pre.c: Likewise.
6451 * tree-ssa-propagate.c: Likewise.
6452 * tree-ssa-reassoc.c: Likewise.
6453 * tree-ssa-sccvn.c: Likewise.
6454 * tree-ssa-sink.c: Likewise.
6455 * tree-ssa-strlen.c: Likewise.
6456 * tree-ssa-structalias.c: Likewise.
6457 * tree-ssa-tail-merge.c: Likewise.
6458 * tree-ssa-ter.c: Likewise.
6459 * tree-ssa-threadedge.c: Likewise.
6460 * tree-ssa-threadupdate.c: Likewise.
6461 * tree-ssa-uncprop.c: Likewise.
6462 * tree-ssa-uninit.c: Likewise.
6463 * tree-ssa.c: Likewise.
6464 * tree-ssanames.c: Likewise.
6465 * tree-stdarg.c: Likewise.
6466 * tree-streamer-in.c: Likewise.
6467 * tree-switch-conversion.c: Likewise.
6468 * tree-tailcall.c: Likewise.
6469 * tree-vect-data-refs.c: Likewise.
6470 * tree-vect-generic.c: Likewise.
6471 * tree-vect-loop-manip.c: Likewise.
6472 * tree-vect-loop.c: Likewise.
6473 * tree-vect-patterns.c: Likewise.
6474 * tree-vect-slp.c: Likewise.
6475 * tree-vect-stmts.c: Likewise.
6476 * tree-vectorizer.c: Likewise.
6477 * tree-vrp.c: Likewise.
6480 * value-prof.c: Likewise.
6481 * var-tracking.c: Likewise.
6482 * varpool.c: Likewise.
6483 * vtable-verify.c: Likewise.
6485 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6487 * config/tilegx/tilegx.c: Include "tree.h".
6489 2013-10-23 Jakub Jelinek <jakub@redhat.com>
6491 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
6492 the info, not after it.
6493 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
6494 dump_ssaname_info call.
6495 (pp_gimple_stmt_1): Adjust caller.
6496 (dump_phi_nodes): Likewise. Don't print "# " here.
6498 2013-10-22 Jan Hubicka <jh@suse.cz>
6500 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
6502 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
6503 * i386.c (expand_small_movmem_or_setmem): New function.
6504 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
6506 (alg_usable_p): Add support for value ranges; cleanup.
6507 (ix86_expand_set_or_movmem): Add support for misaligned moves.
6509 2013-10-22 Sterling Augustine <saugustine@google.com>
6511 * doc/invoke.texi: Document -ggnu-pubnames.
6512 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
6514 * dwarf2out.c: Include gdb/gdb-index.h.
6515 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
6516 debug_generate_pub_sections.
6517 (is_java, output_pubtables, output_pubname): New functions.
6518 (include_pubname_in_output): Handle debug_generate_pub_sections at
6520 (size_of_pubnames): Use new local space_for_flags based on
6521 debug_generate_pub_sections.
6522 (output_pubnames): Unify pubnames and pubtypes output logic.
6523 Genericize comments. Call output_pubname.
6524 (dwarf2out_finish): Move logic to output_pubnames and call it.
6526 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
6529 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
6530 Remove CCCmode handling.
6531 <case LTU>: Return 'c' suffix for CCCmode.
6532 <case GEU>: Return 'nc' suffix for CCCmode.
6533 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
6534 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
6535 (*sub<mode>3_cc_overflow): Ditto.
6536 (*subsi3_zext_cc_overflow): Ditto.
6538 2013-10-22 Steve Ellcey <sellcey@mips.com>
6540 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
6541 (AND (NOT OP1) (NOT OP2)).
6543 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
6545 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
6546 meaning of merge-high and merge-low masks for little endian; avoid
6547 use of vector-pack masks for little endian for mismatched modes.
6549 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6551 * config/tilepro/tilepro.c: Include "tree.h".
6553 2013-10-22 Andreas Schwab <schwab@suse.de>
6555 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
6558 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
6560 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
6561 [Ed Smith-Rowland]): New entries.
6562 ([Stephen M. Webb]): Update.
6564 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
6566 * tree-ssa-ter.h: Remove duplicate copy of file contents.
6568 2013-10-21 Marek Polacek <polacek@redhat.com>
6571 * fold-const.c (fold_range_test): Return 0 if the type is not
6574 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
6576 * system.h: Move hwint.h include further down.
6577 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
6578 gcc_checking_asserts.
6579 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
6581 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
6583 Fix volatile issues in optimize_bit_field_compare.
6584 * fold-const.c (optimize_bit_field_compare): Bail out if
6585 lvolatilep or rvolatilep.
6587 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
6589 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
6590 and get_inner_reference returning different pmode for non-volatile
6591 bit-field members dependent on flag_strict_volatile_bitfields.
6592 * stor-layout.c (layout_decl): Remove special handling of
6593 flag_strict_volatile_bitfields.
6594 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
6595 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
6597 2013-10-21 Paulo Matos <pmatos@broadcom.com>
6599 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
6602 2013-10-21 Jeff Law <law@redhat.com>
6604 * tree-ssa-threadedge.c (thread_through_normal_block): New
6605 argument VISITED. Remove VISISTED as a local variable. When we
6606 have a threadable jump, verify the destination of the jump has not
6608 (thread_across_edge): Allocate VISITED bitmap once at function
6609 scope and use it throughout. Make sure to set appropriate bits in
6610 VISITED for E (start of jump thread path).
6611 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
6612 through a joiner if any edge on the path has a recorded jump thread.
6614 2013-10-21 Ian Lance Taylor <iant@google.com>
6616 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
6617 don't imply that attributes can solve all problems.
6618 (Directory Options): Fix typo.
6620 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6622 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
6623 extend and extend_add.
6625 2013-10-21 Richard Biener <rguenther@suse.de>
6627 PR tree-optimization/58794
6628 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
6629 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
6631 2013-10-21 Richard Biener <rguenther@suse.de>
6634 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
6635 to (T) X for sign-changing conversions (or no conversion).
6637 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
6639 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
6641 2013-10-20 Jan Hubicka <jh@suse.cz>
6643 * config/i386/i386-tune.def: Add comment; organize into categories
6645 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
6647 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
6648 argument. Update function comment.
6649 (expand_set_or_movmem_via_rep): New function combining
6650 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
6651 (expand_movmem_via_rep_mov): Remove.
6652 expand_setmem_via_rep_stos): Remove.
6653 (expand_movmem_epilogue): Update calls correspondingly.
6654 (expand_setmem_epilogue_via_loop): Likewise.
6656 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
6657 (expand_set_or_movmem_prologue): New function combining
6658 expand_movmem_prologue and expand_setmem_prologue.
6659 (expand_movmem_prologue): Remove.
6660 (expand_setmem_prologue): Remove.
6661 (expand_set_or_movmem_constant_prologue): New function combining
6662 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
6663 (expand_constant_movmem_prologue): Remove.
6664 (expand_constant_setmem_prologue): Remove.
6665 (promote_duplicated_reg): Allow vector-const0 value.
6666 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
6667 and ix86_expand_setmem.
6668 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
6669 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
6671 2013-10-21 Diego Novillo <dnovillo@google.com>
6673 * asan.c: Include tree.h
6674 * bb-reorder.c: Likewise.
6675 * cfgcleanup.c: Likewise.
6676 * cfgloopmanip.c: Likewise.
6677 * data-streamer-in.c: Likewise.
6678 * data-streamer-out.c: Likewise.
6679 * data-streamer.c: Likewise.
6680 * dwarf2cfi.c: Likewise.
6681 * graphite-blocking.c: Likewise.
6682 * graphite-clast-to-gimple.c: Likewise.
6683 * graphite-dependences.c: Likewise.
6684 * graphite-interchange.c: Likewise.
6685 * graphite-optimize-isl.c: Likewise.
6686 * graphite-poly.c: Likewise.
6687 * graphite-scop-detection.c: Likewise.
6688 * graphite-sese-to-poly.c: Likewise.
6689 * graphite.c: Likewise.
6690 * ipa-devirt.c: Likewise.
6691 * ipa-profile.c: Likewise.
6694 * loop-init.c: Likewise.
6695 * loop-unroll.c: Likewise.
6696 * lower-subreg.c: Likewise.
6697 * lto/lto-object.c: Likewise.
6698 * recog.c: Likewise.
6699 * reginfo.c: Likewise.
6700 * tree-loop-distribution.c: Likewise.
6701 * tree-parloops.c: Likewise.
6702 * tree-ssa-strlen.c: Likewise.
6703 * tree-streamer.c: Likewise.
6704 * value-prof.c: Likewise.
6705 * target-globals.c: Likewise.
6706 * expr.h: Include tree-core.h instead of tree.h.
6707 * gimple.h: Likewise.
6708 * ipa-prop.h: Likewise.
6709 * ipa-utils.h: Likewise.
6710 * lto-streamer.h: Likewise.
6711 * streamer-hooks.h: Likewise.
6712 * ipa-reference.h: Include cgraph.h instead of tree.h.
6713 * cgraph.h: Include basic-block.h instead of tree.h.
6714 * tree-streamer.h: Do not include tree.h.
6715 * genattrtab.c (write_header): Generate inclusion of tree.h.
6716 * genautomata.c (main): Likewise.
6717 * genemit.c: Likewise.
6718 * genopinit.c: Likewise.
6719 * genoutput.c (output_prologue): Likewise.
6720 * genpeep.c: Likewise.
6722 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6724 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
6726 (vec_unpacku_hi_v8hi): Likewise.
6727 (vec_unpacku_lo_v16qi): Likewise.
6728 (vec_unpacku_lo_v8hi): Likewise.
6730 2013-10-20 Jan Hubicka <jh@suse.cz>
6732 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
6733 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
6734 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
6736 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
6738 * config/mips/mips.h (ISA_HAS_WSBH): Define.
6739 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
6741 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
6743 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
6746 * system.h: Undef m_slot.
6748 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6750 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
6751 all elements for both endian flavors.
6753 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
6756 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
6757 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
6758 and SI_REG for 64bit SYSV ABI targets.
6760 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
6762 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
6763 to multi_reg_return. Clarify that we are skipping USEs of multiple
6764 return registers. Use bool type where appropriate.
6766 2013-10-18 Jan Hubicka <jh@suse.cz>
6768 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
6770 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
6771 (X86_TUNE_PUSH_MEMORY): Likewise.
6772 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
6773 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
6774 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
6776 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
6777 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
6779 (ix86_option_override_internal): Update to use tune features instead
6782 2013-10-18 Cong Hou <congh@google.com>
6784 PR tree-optimization/58508
6785 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
6786 statement that contains data refs with zero-step.
6788 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
6790 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
6791 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
6792 * gimple-low.c (gimple_check_call_arg,
6793 gimple_check_call_matching_types): Move to cgraph.c.
6794 * gimple-low.h: Remove prototype.
6795 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
6796 Relocate from gimple-low.c.
6797 * cgraph.h: Add prototype. Don't include basic-block.h.
6798 * gimplify.c: Add gimple-low to include list.
6799 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
6800 * tree-eh.c: Add gimple-low to include list.
6801 * tree-nested.c: Likewise.
6802 * cfgexpand.c: Add tree-ssa-address.h to include list.
6804 * gimple-fold.c: Likewise.
6805 * gimple-ssa-strength-reduction.c: Likewise.
6806 * trans-mem.c: Likewise.
6807 * tree-mudflap.c: Likewise.
6808 * tree-ssa-loop-ivopts.c: Likewise.
6809 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
6810 (degenerate_phi_result): Move to tree-phinodes.c.
6811 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
6812 * tree-ssa-threadedge.c: Likewise.
6813 * tree-vrp.c: Likewise.
6814 * tree-phinodes.c (degenerate_phi_result): Relocate here.
6815 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
6816 * tree-phinodes.h (degenerate_phi_result): Add prototype.
6817 * tree-ssa-copy.c: Include tree-ssa-dom.h.
6818 * tree-ssa-forwprop.c: Likewise.
6819 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
6820 pass_data_cleanup_cfg_post_optimizing,
6821 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
6822 * tree-optimize.c: Delete File.
6823 * graphite.c: Include tree-cfgcleanup.h.
6824 * passes.c: Likewise.
6825 * tree-cfg.c: Likewise.
6826 * tree-profile.c: Likewise.
6827 * tree-ssa-dse.c: Likewise.
6828 * tree-ssa-loop-ivcanon.c: Likewise.
6829 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
6830 * tree-outof-ssa.c: Include sbitmap.h.
6831 * tree-ssa-live.c: Likewise.
6832 * tree-ssa-propagate.c: Likewise.
6833 * tree-ssa-structalias.c: Likewise.
6834 * tree-stdarg.c: Likewise.
6835 * Makefile.in (OBJS): Delete tree-optimize.o.
6836 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
6837 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
6838 * varasm.c: Include basic-block.h.
6839 * cfgloop.h: Include function.h instead of basic-block.h
6840 (bb_loop_depth): Move to cfgloop.c.
6841 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
6843 2013-10-18 Teresa Johnson <tejohnson@google.com>
6845 * predict.c (probably_never_executed): Compare frequency-based
6846 count to number of training runs.
6847 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
6849 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6851 * config/arm/arm.c (cortexa9_extra_costs): New table.
6852 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
6854 2013-10-18 Jeff Law <law@redhat.com>
6856 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
6858 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
6859 (register_jump_thread): Add "registered_jump_thread" debug
6861 * dbgcnt.def (registered_jump_thread): New debug counter.
6863 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
6865 * config/rs6000/rs6000.c: Include cgraph.h.
6867 2013-10-18 Teresa Johnson <tejohnson@google.com>
6869 * tree-ssa-tail-merge.c (replace_block_by): Update edge
6870 weights during merging.
6872 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
6874 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
6875 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
6876 * tree-ssa-operands.h: Remove prototype.
6877 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
6878 * gimple.c (virtual_operand_p): Relocate from gimple.c.
6879 * gimple.h: Add prototype.
6880 * gimple-ssa.h: Include tree-ssa-operands.h.
6881 * tree-dump.c: Add tree-cfg.h to include list.
6882 * tree-ssa-alias.c: Add ipa-reference.h to include list.
6883 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
6884 * config/i386/i386.c: Don't include tree-flow.h.
6885 * config/rs6000/rs6000.c: Likewise.
6887 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6889 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
6891 2013-10-18 Richard Biener <rguenther@suse.de>
6893 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
6894 or TYPE_UNSIGNED of integral types.
6895 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
6896 NULL_TREE for zero-precision integral types.
6898 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
6900 * config/aarch64/arm_neon.h
6901 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
6903 2013-10-17 Sriraman Tallam <tmsriram@google.com>
6906 * opth-gen.awk: Define target_flags_explicit.
6908 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
6910 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
6911 fields to the reg_addr array that describes the valid addressing
6912 mode for any register, general purpose registers, floating point
6913 registers, and Altivec registers.
6914 (FIRST_RELOAD_REG_CLASS): Likewise.
6915 (LAST_RELOAD_REG_CLASS): Likewise.
6916 (struct reload_reg_map_type): Likewise.
6917 (reload_reg_map_type): Likewise.
6918 (RELOAD_REG_VALID): Likewise.
6919 (RELOAD_REG_MULTIPLE): Likewise.
6920 (RELOAD_REG_INDEXED): Likewise.
6921 (RELOAD_REG_OFFSET): Likewise.
6922 (RELOAD_REG_PRE_INCDEC): Likewise.
6923 (RELOAD_REG_PRE_MODIFY): Likewise.
6924 (reg_addr): Likewise.
6925 (mode_supports_pre_incdec_p): New helper functions to say whether
6926 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
6927 (mode_supports_pre_modify_p): Likewise.
6928 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
6929 print the valid address mode bits for each mode.
6930 (rs6000_debug_print_mode): Likewise.
6931 (rs6000_debug_reg_global): Likewise.
6932 (rs6000_setup_reg_addr_masks): New function to set up the address
6933 mask bits for each type.
6934 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
6935 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
6936 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
6937 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
6938 PRE_MODIFY are supported.
6939 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
6940 registers, instead of {src,dest}_av_p.
6941 (rs6000_print_options_internal): Tweak the debug output slightly.
6943 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
6945 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
6948 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
6950 * tree-flow.h (struct omp_region): Move to omp-low.c.
6951 Remove omp_ prototypes and variables.
6952 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
6953 (copy_var_decl): Relocate prototype from tree-flow.h.
6954 * gimple.c (copy_var_decl): Relocate from omp-low.c.
6955 * tree.h: Move prototype to omp-low.h.
6956 * omp-low.h: New File. Relocate prototypes here.
6957 * omp-low.c (struct omp_region): Make local here.
6958 (root_omp_region): Make static.
6959 (copy_var_decl) Move to gimple.c.
6960 (new_omp_region): Make static.
6961 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
6962 * tree-cfg.c: Include omp-low.h.
6963 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
6964 * gimplify.c: Include omp-low.h.
6965 * tree-parloops.c: Likewise.
6967 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
6969 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
6970 operands are in memory, prefer to force non-matched operand 1 to
6973 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
6976 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
6977 restrict TImode addresses to single indirect registers if both
6978 -mquad-memory and -mvsx-timode are used.
6979 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
6980 we should emit load/store quad. Remove using %y for quad memory
6983 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
6984 constraints to allow load/store quad on machines where TImode is
6985 not allowed in VSX registers. Use 'n' instead of 'F' constraint
6986 for TImode to load integer constants.
6988 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6990 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
6992 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
6994 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
6995 handling of STACK_REG.
6997 2013-10-17 Richard Biener <rguenther@suse.de>
6999 PR tree-optimization/58143
7000 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
7002 (rewrite_to_defined_overflow): Likewise.
7003 (move_computations_dom_walker::before_dom): Rewrite stmts
7004 with undefined signed overflow that are not always executed
7005 into unsigned arithmetic.
7007 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
7010 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
7011 explicit isa flag to be an options variable, instead of using
7012 global_options_set. Remove define from rs6000.h.
7013 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
7015 * config/rs6000/rs6000.c (rs6000_option_override_internal):
7016 Initialize rs6000_isa_flags_explicit.
7017 (rs6000_function_specific_save): Add gcc_options* parameter, so
7018 that the powerpc builds after the 2013-10-15 changes.
7019 (rs6000_function_specific_restore): Likewise.
7021 2013-10-16 DJ Delorie <dj@redhat.com>
7023 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
7024 op is a REG before checking REGNO.
7025 (rl78_alloc_physical_registers): Verify pattern is a SET before
7028 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7030 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
7032 (vec_unpacks_lo_v4sf): Likewise.
7033 (vec_unpacks_float_hi_v4si): Likewise.
7034 (vec_unpacks_float_lo_v4si): Likewise.
7035 (vec_unpacku_float_hi_v4si): Likewise.
7036 (vec_unpacku_float_lo_v4si): Likewise.
7038 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7040 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
7041 (vsx_concat_v2sf): Likewise.
7043 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
7045 * config/aarch64/aarch64.md
7046 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
7048 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
7050 PR tree-optimization/58697
7051 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
7052 estimated_loop_iterations_int.
7053 (max_stmt_executions_int): Call get_max_loop_iterations_int.
7054 (get_max_loop_iterations_int): New. HWINT version of
7055 get_max_loop_iterations.
7056 * cfgloop.h: Add prototypes.
7057 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
7058 * loop-unroll.c (decide_peel_once_rolling): Call
7059 get_estimated_loop_iterations_int.
7060 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
7061 * tree-ssa-loop-niter.h: Tweak prototypes.
7063 2013-10-16 David Malcolm <dmalcolm@redhat.com>
7065 * gengtype-parse.c (struct_field_seq): Ignore access-control
7066 keywords ("public:" etc).
7068 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
7070 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
7071 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
7073 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
7075 * config/arm/arm.opt (mlra): New option.
7076 * config/arm/arm.c (arm_lra_p): New function.
7077 (TARGET_LRA_P): Define.
7079 2013-10-16 Paulo Matos <pmatos@broadcom.com>
7081 * tree-core.h (tree_code_name): Remove.
7082 * tree.h (get_tree_code_name): New prototype.
7083 * tree.c (tree_code_name): Make static.
7084 (get_tree_code_name): New function.
7085 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
7086 tree_class_check_failed, tree_range_check_failed,
7087 tree_not_class_check_failed, omp_clause_check_failed,
7088 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
7089 wrapper get_tree_code_name instead of calling tree_code_name directly.
7090 * tree-vrp.c (dump_asserts_for): Likewise.
7091 * tree-dump.c (dequeue_and_dump): Likewise.
7092 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
7093 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
7094 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
7095 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
7096 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
7097 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
7098 dump_gimple_omp_for): Likewise.
7099 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
7100 * tree-ssa-pre.c (print_pre_expr): Likewise.
7101 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
7102 * print-tree.c (print_node_brief, print_node): Likewise.
7103 * gimple.c (gimple_check_failed): Likewise.
7104 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
7105 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
7106 * config/mep/mep.c (mep_validate_vliw): Likewise.
7107 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
7108 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
7110 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7112 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
7115 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
7117 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
7118 (MULTILIB_MATCHES): Add multilib for -march=v8.
7120 2013-10-15 Sriraman Tallam <tmsriram@google.com>
7123 * optc-save-gen.awk: Add extra parameter to the save and restore
7125 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
7126 * tree.c (build_optimization_node): New parameter. Add extra parameter
7127 to call to cl_optimization_save.
7128 (build_target_option_node): New parameter. Add extra parameter
7129 to call to cl_target_option_save.
7130 * tree.h (build_optimization_node): New parameter.
7131 (build_target_option_node): New parameter.
7132 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
7133 build_optimization_node and build_target_option_node.
7134 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
7135 (handle_pragma_push_options): Ditto.
7136 * toplev.c (process_options): Ditto.
7137 * opts.c (init_options_struct): Check for opts_set non-null.
7138 * target.def (target_option.save): New parameter.
7139 (target_option.restore): New parameter.
7140 * tm.texi: Generate.
7141 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
7142 (ix86_pragma_target_parse): Ditto.
7143 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
7145 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
7146 to build_optimization_node and build_target_option_node.
7147 (rs6000_valid_attribute_p): Ditto.
7148 (rs6000_pragma_target_parse): Ditto.
7149 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
7151 * config/i386/i386.h:
7152 TARGET_64BIT_P: New Macro
7153 TARGET_MMX_P: New Macro.
7154 TARGET_3DNOW_P: New Macro.
7155 TARGET_3DNOW_A_P: New Macro.
7156 TARGET_SSE_P: New Macro.
7157 TARGET_SSE2_P: New Macro.
7158 TARGET_SSE3_P: New Macro.
7159 TARGET_SSSE3_P: New Macro.
7160 TARGET_SSE4_1_P: New Macro.
7161 TARGET_SSE4_2_P: New Macro.
7162 TARGET_AVX_P: New Macro.
7163 TARGET_AVX2_P: New Macro.
7164 TARGET_AVX512F_P: New Macro.
7165 TARGET_AVX512PF_P: New Macro.
7166 TARGET_AVX512ER_P: New Macro.
7167 TARGET_AVX512CD_P: New Macro.
7168 TARGET_FMA_P: New Macro.
7169 TARGET_SSE4A_P: New Macro.
7170 TARGET_FMA4_P: New Macro.
7171 TARGET_XOP_P: New Macro.
7172 TARGET_LWP_P: New Macro.
7173 TARGET_ABM_P: New Macro.
7174 TARGET_BMI_P: New Macro.
7175 TARGET_BMI2_P: New Macro.
7176 TARGET_LZCNT_P: New Macro.
7177 TARGET_TBM_P: New Macro.
7178 TARGET_POPCNT_P: New Macro.
7179 TARGET_SAHF_P: New Macro.
7180 TARGET_MOVBE_P: New Macro.
7181 TARGET_CRC32_P: New Macro.
7182 TARGET_AES_P: New Macro.
7183 TARGET_PCLMUL_P: New Macro.
7184 TARGET_CMPXCHG16B_P: New Macro.
7185 TARGET_FSGSBASE_P: New Macro.
7186 TARGET_RDRND_P: New Macro.
7187 TARGET_F16C_P: New Macro.
7188 TARGET_RTM_P: New Macro.
7189 TARGET_HLE_P: New Macro.
7190 TARGET_RDSEED_P: New Macro.
7191 TARGET_PRFCHW_P: New Macro.
7192 TARGET_ADX_P: New Macro.
7193 TARGET_FXSR_P: New Macro.
7194 TARGET_XSAVE_P: New Macro.
7195 TARGET_XSAVEOPT_P: New Macro.
7196 TARGET_LP64_P: New Macro.
7197 TARGET_X32_P: New Macro.
7198 TARGET_FPMATH_DEFAULT_P: New Macro.
7199 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
7200 * config/i386/i386.c (ix86_option_override_internal): New parameters.
7202 Change ix86_tune_string to access opts->x_ix86_tune_string.
7203 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
7204 Change ix86_arch_string to access opts->x_ix86_arch_string.
7205 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
7206 Change ix86_pmode to access opts->x_ix86_pmode.
7207 Change ix86_abi to access opts->x_ix86_abi.
7208 Change ix86_cmodel to access opts->x_ix86_cmodel.
7209 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
7210 Change ix86_isa_flags_explicit to access
7211 opts->x_ix86_isa_flags_explicit.
7212 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
7213 Change ix86_regparm to access opts->x_ix86_regparm.
7214 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
7215 Change ix86_preferred_stack_boundary_arg to access
7216 opts->x_ix86_preferred_stack_boundary_arg.
7217 Change ix86_force_align_arg_pointer to access
7218 opts->x_ix86_force_align_arg_pointer.
7219 Change ix86_incoming_stack_boundar_arg to access
7220 opts->x_ix86_incoming_stack_boundar_arg.
7221 Change ix86_fpmath to access opts->x_ix86_fpmath.
7222 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
7223 Change ix86_recip_name to access opts->x_ix86_recip_name.
7224 Change ix86_stack_protector_guard to access
7225 opts->x_ix86_stack_protector_guard.
7226 Change ix86_tune_memcpy_strategy to access
7227 opts->x_ix86_tune_memcpy_strategy.
7228 Change ix86_tune_memset_strategy to access
7229 opts->x_ix86_tune_memset_strategy.
7230 Change global_options to access opts.
7231 Change global_options_set to access opts_set.
7232 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
7233 Change TARGET_MMX to TARGET_MMX_P (opts->...).
7234 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
7235 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
7236 Change TARGET_SSE to TARGET_SSE_P (opts->...).
7237 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
7238 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
7239 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
7240 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
7241 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
7242 Change TARGET_AVX to TARGET_AVX_P (opts->...).
7243 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
7244 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
7245 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
7246 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
7247 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
7248 Change TARGET_FMA to TARGET_FMA_P (opts->...).
7249 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
7250 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
7251 Change TARGET_XOP to TARGET_XOP_P (opts->...).
7252 Change TARGET_LWP to TARGET_LWP_P (opts->...).
7253 Change TARGET_ABM to TARGET_ABM_P (opts->...).
7254 Change TARGET_BMI to TARGET_BMI_P (opts->...).
7255 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
7256 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
7257 Change TARGET_TBM to TARGET_TBM_P (opts->...).
7258 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
7259 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
7260 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
7261 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
7262 Change TARGET_AES to TARGET_AES_P (opts->...).
7263 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
7264 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
7265 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
7266 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
7267 Change TARGET_F16C to TARGET_F16C_P (opts->...).
7268 Change TARGET_RTM to TARGET_RTM_P (opts->...).
7269 Change TARGET_HLE to TARGET_HLE_P (opts->...).
7270 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
7271 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
7272 Change TARGET_ADX to TARGET_ADX_P (opts->...).
7273 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
7274 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
7275 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
7276 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
7277 Change TARGET_X32 to TARGET_X32_P (opts->...).
7278 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
7279 Change TARGET_FLOAT_RETURNS_IN_80387 to
7280 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
7281 (ix86_function_specific_save): New parameter. Use opts-> fields
7282 to replace global fields.
7283 (ix86_function_specific_restore): Ditto.
7284 (ix86_valid_target_attribute_inner_p): New parameters.
7286 Fix call to ix86_handle_option and set_option.
7287 (ix86_valid_target_attribute_tree): New parameters.
7288 Change global_options to access opts.
7289 Change global_options_set to access opts_set.
7290 Fix call to ix86_valid_target_attribute_inner_p.
7291 Change ix86_tune_string to access opts->x_ix86_tune_string.
7292 Change ix86_arch_string to access opts->x_ix86_arch_string.
7293 Change ix86_fpmath to access opts->x_ix86_fpmath
7294 Fix call to ix86_option_override_internal.
7295 Fix call to ix86_add_new_builtins.
7296 Fix calls to build_optimization_node and build_target_option_node.
7297 (ix86_valid_target_attribute_p): Remove access to global_options.
7298 Use new gcc_options structure func_options.
7299 Fix call to ix86_valid_target_attribute_tree.
7300 Fix call to build_optimization_node.
7301 (get_builtin_code_for_version): Fix call to
7302 ix86_valid_target_attribute_tree.
7304 2013-10-15 David Malcolm <dmalcolm@redhat.com>
7306 * Makefile.in (PICFLAG): New.
7307 (enable_host_shared): New.
7308 (INTERNAL_CFLAGS): Use PICFLAG.
7309 (LIBIBERTY): Use pic build of libiberty.a if configured with
7310 --enable-host-shared.
7311 * configure.ac: Add --enable-host-shared, setting up new
7313 * configure: Regenerate.
7314 * doc/install.texi (--enable-shared): Add note contrasting it with ...
7315 (--enable-host-shared): New option.
7317 2013-10-15 Richard Biener <rguenther@suse.de>
7319 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
7320 for built-in functions.
7322 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
7324 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
7325 (optimize_range_tests_1): New function,
7326 extracted from optimize_range_tests.
7327 (optimize_range_tests_xor): Similarly.
7328 (optimize_range_tests_diff): New function.
7329 (optimize_range_tests): Use optimize_range_tests_1.
7331 2013-10-15 Cong Hou <congh@google.com>
7333 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
7334 requirement of the reduction pattern so that one operand of the
7335 reduction operation can come from outside of the loop.
7337 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7339 * config/arm/neon-schedgen.ml: Remove.
7340 * config/arm/cortex-a9-neon.md: Remove comment regarding
7343 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7345 * config/arm/types: Remove old neon types.
7347 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7349 * config/arm/cortex-a7.md
7350 (cortex_a7_neon_type): New.
7351 (cortex_a7_neon_mul): Update for new types.
7352 (cortex_a7_neon_mla): Likewise.
7353 (cortex_a7_neon): Likewise.
7355 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7357 * config/arm/cortex-a15-neon.md
7358 (cortex_a15_neon_type): New,
7360 (cortex_a15_neon_int_1): Remove.
7361 (cortex_a15_neon_int_2): Likewise.
7362 (cortex_a15_neon_int_3): Likewise.
7363 (cortex_a15_neon_int_4): Likewise.
7364 (cortex_a15_neon_int_5): Likewise.
7365 (cortex_a15_neon_vqneg_vqabs): Likewise.
7366 (cortex_a15_neon_vmov): Likewise.
7367 (cortex_a15_neon_vaba): Likewise.
7368 (cortex_a15_neon_vaba_qqq): Likewise.
7369 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7370 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
7371 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
7373 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7374 (cortex_a15_neon_mla_qqq_8_16): Likewise.
7375 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
7376 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
7377 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
7378 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
7379 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
7380 (cortex_a15_neon_shift_1): Likewise.
7381 (cortex_a15_neon_shift_2): Likewise.
7382 (cortex_a15_neon_shift_3): Likewise.
7383 (cortex_a15_neon_vshl_ddd): Likewise.
7384 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
7385 (cortex_a15_neon_vsra_vrsra): Likewise.
7386 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
7387 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
7388 (cortex_a15_neon_bp_3cycle): Likewise.
7389 (cortex_a15_neon_ldm_2): Likewise.
7390 (cortex_a15_neon_stm_2): Likewise.
7391 (cortex_a15_neon_mcr): Likewise.
7392 (cortex_a15_neon_mrc): Likewise.
7393 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
7394 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
7395 (cortex_a15_neon_fp_vmul_ddd): Likewise.
7396 (cortex_a15_neon_fp_vmul_qqd): Likewise.
7397 (cortex_a15_neon_fp_vmla_ddd): Likewise.
7398 (cortex_a15_neon_fp_vmla_qqq): Likewise.
7399 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
7400 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
7401 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
7402 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
7403 (cortex_a15_neon_bp_simple): Likewise.
7404 (cortex_a15_neon_bp_2cycle): Likewise.
7405 (cortex_a15_neon_bp_3cycle): Likewise.
7406 (cortex_a15_neon_vld1_1_2_regs): Likewise.
7407 (cortex_a15_neon_vld1_3_4_regs): Likewise.
7408 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
7409 (cortex_a15_neon_vld2_4_regs): Likewise.
7410 (cortex_a15_neon_vld3_vld4): Likewise.
7411 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
7412 (cortex_a15_neon_vst1_3_4_regs): Likewise.
7413 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
7414 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
7415 (cortex_a15_neon_vst3_vst4): Rename to...
7416 (cortex_a15_neon_vst4): This, update for new attributes.
7417 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
7418 (cortex_a15_neon_vld3_vld4_lane): Likewise.
7419 (cortex_a15_neon_vst1_vst2_lane): Likewise.
7420 (cortex_a15_neon_vst3_vst4_lane): Likewise.
7421 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
7422 (cortex_a15_neon_ldm_2): Likewise.
7423 (cortex_a15_neon_stm_2): Likewise.
7424 (cortex_a15_neon_mcr): Likewise.
7425 (cortex_a15_neon_mcr_2_mcrr): Likewise.
7426 (cortex_a15_neon_mrc): Likewise.
7427 (cortex_a15_neon_mrrc): Likewise.
7429 (cortex_a15_neon_abd): New.
7430 (cortex_a15_neon_abd_q): Likewise.
7431 (cortex_a15_neon_aba): Likewise.
7432 (cortex_a15_neon_aba_q): Likewise.
7433 (cortex_a15_neon_acc): Likewise.
7434 (cortex_a15_neon_acc_q): Likewise.
7435 (cortex_a15_neon_arith_basic): Likewise.
7436 (cortex_a15_neon_arith_complex): Likewise.
7437 (cortex_a15_neon_multiply): Likewise.
7438 (cortex_a15_neon_multiply_q): Likewise.
7439 (cortex_a15_neon_mla): Likewise.
7440 (cortex_a15_neon_mla_q): Likewise.
7441 (cortex_a15_neon_sat_mla_long): Likewise.
7442 (cortex_a15_neon_shift_acc): Likewise.
7443 (cortex_a15_neon_shift_imm_basic): Likewise.
7444 (cortex_a15_neon_shift_imm_complex): Likewise.
7445 (cortex_a15_neon_shift_reg_basic): Likewise.
7446 (cortex_a15_neon_shift_reg_basic_q): Likewise.
7447 (cortex_a15_neon_shift_reg_complex): Likewise.
7448 (cortex_a15_neon_shift_reg_complex_q): Likewise.
7449 (cortex_a15_neon_fp_negabs): Likewise
7450 (cortex_a15_neon_fp_arith): Likewise
7451 (cortex_a15_neon_fp_arith_q): Likewise
7452 (cortex_a15_neon_fp_cvt_int): Likewise
7453 (cortex_a15_neon_fp_cvt_int_q): Likewise
7454 (cortex_a15_neon_fp_cvt_16): Likewise
7455 (cortex_a15_neon_fp_mul): Likewise
7456 (cortex_a15_neon_fp_mul_q): Likewise
7457 (cortex_a15_neon_fp_mla): Likewise
7458 (cortex_a15_neon_fp_mla_q): Likewise
7459 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
7460 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
7461 (cortex_a15_neon_bitops): Likewise.
7462 (cortex_a15_neon_bitops_q): Likewise.
7463 (cortex_a15_neon_from_gp): Likewise.
7464 (cortex_a15_neon_from_gp_q): Likewise.
7465 (cortex_a15_neon_tbl3_tbl4): Likewise.
7466 (cortex_a15_neon_zip_q): Likewise.
7467 (cortex_a15_neon_to_gp): Likewise.
7468 (cortex_a15_neon_load_a): Likewise.
7469 (cortex_a15_neon_load_b): Likewise.
7470 (cortex_a15_neon_load_c): Likewise.
7471 (cortex_a15_neon_load_d): Likewise.
7472 (cortex_a15_neon_load_e): Likewise.
7473 (cortex_a15_neon_load_f): Likewise.
7474 (cortex_a15_neon_store_a): Likewise.
7475 (cortex_a15_neon_store_b): Likewise.
7476 (cortex_a15_neon_store_c): Likewise.
7477 (cortex_a15_neon_store_d): Likewise.
7478 (cortex_a15_neon_store_e): Likewise.
7479 (cortex_a15_neon_store_f): Likewise.
7480 (cortex_a15_neon_store_g): Likewise.
7481 (cortex_a15_neon_store_h): Likewise.
7482 (cortex_a15_vfp_to_from_gp): Likewise.
7484 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7486 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
7488 (cortex_a9_neon_vshl_ddd): Remove.
7489 (cortex_a9_neon_vst3_vst4): Likewise.
7490 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
7492 (cortex_a9_neon_bit_ops_q): New.
7494 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
7495 (cortex_a9_neon_int_2): Likewise.
7496 (cortex_a9_neon_int_3): Likewise.
7497 (cortex_a9_neon_int_4): Likewise.
7498 (cortex_a9_neon_int_5): Likewise.
7499 (cortex_a9_neon_vqneg_vqabs): Likewise.
7500 (cortex_a9_neon_vmov): Likewise.
7501 (cortex_a9_neon_vaba): Likewise.
7502 (cortex_a9_neon_vaba_qqq): Likewise.
7503 (cortex_a9_neon_shift_1): Likewise.
7504 (cortex_a9_neon_shift_2): Likewise.
7505 (cortex_a9_neon_shift_3): Likewise.
7506 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
7507 (cortex_a9_neon_vsra_vrsra): Likewise.
7508 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7509 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
7510 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
7512 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7513 (cortex_a9_neon_mla_qqq_8_16): Likewise.
7514 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
7516 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
7517 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
7518 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
7519 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
7520 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
7521 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
7522 (cortex_a9_neon_fp_vsum): Likewise.
7523 (cortex_a9_neon_fp_vmul_ddd): Likewise.
7524 (cortex_a9_neon_fp_vmul_qqd): Likewise.
7525 (cortex_a9_neon_fp_vmla_ddd): Likewise.
7526 (cortex_a9_neon_fp_vmla_qqq): Likewise.
7527 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
7528 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
7529 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
7530 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
7531 (cortex_a9_neon_bp_simple): Likewise.
7532 (cortex_a9_neon_bp_2cycle): Likewise.
7533 (cortex_a9_neon_bp_3cycle): Likewise.
7534 (cortex_a9_neon_ldr): Likewise.
7535 (cortex_a9_neon_str): Likewise.
7536 (cortex_a9_neon_vld1_1_2_regs): Likewise.
7537 (cortex_a9_neon_vld1_3_4_regs): Likewise.
7538 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
7539 (cortex_a9_neon_vld2_4_regs): Likewise.
7540 (cortex_a9_neon_vld3_vld4): Likewise.
7541 (cortex_a9_neon_vld1_vld2_lane): Likewise.
7542 (cortex_a9_neon_vld3_vld4_lane): Likewise.
7543 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
7544 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
7545 (cortex_a9_neon_vst1_3_4_regs): Likewise.
7546 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
7547 (cortex_a9_neon_vst1_vst2_lane): Likewise.
7548 (cortex_a9_neon_vst3_vst4_lane): Likewise.
7549 (cortex_a9_neon_mcr): Likewise.
7550 (cortex_a9_neon_mcr_2_mcrr): Likewise.
7551 (cortex_a9_neon_mrc): Likewise.
7552 (cortex_a9_neon_mrrc): Likewise.
7554 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7556 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
7558 (cortex_a8_neon_vshl_ddd): Remove.
7559 (cortex_a8_neon_vst3_vst4): Likewise.
7560 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
7562 (cortex_a8_neon_bit_ops_q): New.
7564 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
7565 (cortex_a8_neon_int_2): Likewise..
7566 (cortex_a8_neon_int_3): Likewise.
7567 (cortex_a8_neon_int_5): Likewise.
7568 (cortex_a8_neon_vqneg_vqabs): Likewise.
7569 (cortex_a8_neon_int_4): Likewise.
7570 (cortex_a8_neon_vaba): Likewise.
7571 (cortex_a8_neon_vaba_qqq): Likewise.
7572 (cortex_a8_neon_shift_1): Likewise.
7573 (cortex_a8_neon_shift_2): Likewise.
7574 (cortex_a8_neon_shift_3): Likewise.
7575 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
7576 (cortex_a8_neon_vsra_vrsra): Likewise.
7577 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7578 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
7579 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
7581 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7582 (cortex_a8_neon_mla_qqq_8_16): Likewise.
7583 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
7585 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
7586 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
7587 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
7588 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
7589 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
7590 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
7591 (cortex_a8_neon_fp_vsum): Likewise.
7592 (cortex_a8_neon_fp_vmul_ddd): Likewise.
7593 (cortex_a8_neon_fp_vmul_qqd): Likewise.
7594 (cortex_a8_neon_fp_vmla_ddd): Likewise.
7595 (cortex_a8_neon_fp_vmla_qqq): Likewise.
7596 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
7597 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
7598 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
7599 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
7600 (cortex_a8_neon_bp_simple): Likewise.
7601 (cortex_a8_neon_bp_2cycle): Likewise.
7602 (cortex_a8_neon_bp_3cycle): Likewise.
7603 (cortex_a8_neon_ldr): Likewise.
7604 (cortex_a8_neon_str): Likewise.
7605 (cortex_a8_neon_vld1_1_2_regs): Likewise.
7606 (cortex_a8_neon_vld1_3_4_regs): Likewise.
7607 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
7608 (cortex_a8_neon_vld2_4_regs): Likewise.
7609 (cortex_a8_neon_vld3_vld4): Likewise.
7610 (cortex_a8_neon_vld1_vld2_lane): Likewise.
7611 (cortex_a8_neon_vld3_vld4_lane): Likewise.
7612 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
7613 (cortex_a8_neon_vst1_3_4_regs): Likewise.
7614 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
7615 (cortex_a8_neon_vst1_vst2_lane): Likewise.
7616 (cortex_a8_neon_vst3_vst4_lane): Likewise.
7617 (cortex_a8_neon_mcr): Likewise.
7618 (cortex_a8_neon_mcr_2_mcrr): Likewise.
7619 (cortex_a8_neon_mrc): Likewise.
7620 (cortex_a8_neon_mrrc): Likewise.
7622 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7624 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
7626 * config/aarch64/aarch64-simd.md (neon_type): Remove.
7627 (aarch64_simd_dup<mode>): Add "type" attribute.
7628 (aarch64_dup_lane<mode>): Likewise.
7629 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
7630 (*aarch64_simd_mov<mode>): Likewise.
7631 (aarch64_simd_mov_from_<mode>low): Likewise.
7632 (aarch64_simd_mov_from_<mode>high): Likewise.
7633 (orn<mode>3): Likewise.
7634 (bic<mode>3): Likewise.
7635 (add<mode>3): Likewise.
7636 (sub<mode>3): Likewise.
7637 (mul<mode>3): Likewise.
7638 (*aarch64_mul3_elt<mode>): Likewise.
7639 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
7640 (*aarch64_mul3_elt_to_128df): Likewise.
7641 (*aarch64_mul3_elt_to_64v2df): Likewise.
7642 (neg<mode>2): Likewise.
7643 (abs<mode>2): Likewise.
7644 (abd<mode>_3): Likewise.
7645 (aba<mode>_3): Likewise.
7646 (fabd<mode>_3): Likewise.
7647 (*fabd_scalar<mode>3): Likewise.
7648 (and<mode>3): Likewise.
7649 (ior<mode>3): Likewise.
7650 (xor<mode>3): Likewise.
7651 (one_cmpl<mode>2): Likewise.
7652 (aarch64_simd_vec_set<mode>): Likewise.
7653 (aarch64_simd_lshr<mode>): Likewise.
7654 (aarch64_simd_ashr<mode>): Likewise.
7655 (aarch64_simd_imm_shl<mode>): Likewise.
7656 (aarch64_simd_reg_sshl<mode): Likewise.
7657 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
7658 (aarch64_simd_reg_shl<mode>_signed): Likewise.
7659 (aarch64_simd_vec_setv2di): Likewise.
7660 (aarch64_simd_vec_set<mode>): Likewise.
7661 (aarch64_mla<mode>): Likewise.
7662 (*aarch64_mla_elt<mode>): Likewise.
7663 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
7664 (aarch64_mls<mode>): Likewise.
7665 (*aarch64_mls_elt<mode>): Likewise.
7666 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
7667 (<su><maxmin><mode>3): Likewise.
7668 (move_lo_quad_<mode>): Likewise.
7669 (aarch64_simd_move_hi_quad_<mode>): Likewise.
7670 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
7671 (vec_pack_trunc_<mode>): Likewise.
7672 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
7673 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
7674 (*aarch64_<su>mlal_lo<mode>): Likewise.
7675 (*aarch64_<su>mlal_hi<mode>): Likewise.
7676 (*aarch64_<su>mlsl_lo<mode>): Likewise.
7677 (*aarch64_<su>mlsl_hi<mode>): Likewise.
7678 (*aarch64_<su>mlal<mode>): Likewise.
7679 (*aarch64_<su>mlsl<mode>): Likewise.
7680 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
7681 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
7682 (add<mode>3): Likewise.
7683 (sub<mode>3): Likewise.
7684 (mul<mode>3): Likewise.
7685 (div<mode>3): Likewise.
7686 (neg<mode>2): Likewise.
7687 (abs<mode>2): Likewise.
7688 (fma<mode>4): Likewise.
7689 (*aarch64_fma4_elt<mode>): Likewise.
7690 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
7691 (*aarch64_fma4_elt_to_128df): Likewise.
7692 (*aarch64_fma4_elt_to_64v2df): Likewise.
7693 (fnma<mode>4): Likewise.
7694 (*aarch64_fnma4_elt<mode>): Likewise.
7695 (*aarch64_fnma4_elt_<vswap_width_name><mode>
7696 (*aarch64_fnma4_elt_to_128df): Likewise.
7697 (*aarch64_fnma4_elt_to_64v2df): Likewise.
7698 (<frint_pattern><mode>2): Likewise.
7699 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
7700 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
7701 (vec_unpacks_lo_v4sf): Likewise.
7702 (aarch64_float_extend_lo_v2df): Likewise.
7703 (vec_unpacks_hi_v4sf): Likewise.
7704 (aarch64_float_truncate_lo_v2sf): Likewise.
7705 (aarch64_float_truncate_hi_v4sf): Likewise.
7706 (aarch64_vmls<mode>): Likewise.
7707 (<su><maxmin><mode>3): Likewise.
7708 (<maxmin_uns><mode>3): Likewise.
7709 (reduc_<sur>plus_<mode>): Likewise.
7710 (reduc_<sur>plus_v2di): Likewise.
7711 (reduc_<sur>plus_v2si): Likewise.
7712 (reduc_<sur>plus_<mode>): Likewise.
7713 (aarch64_addpv4sf): Likewise.
7714 (clz<mode>2): Likewise.
7715 (reduc_<maxmin_uns>_<mode>): Likewise.
7716 (reduc_<maxmin_uns>_v2di): Likewise.
7717 (reduc_<maxmin_uns>_v2si): Likewise.
7718 (reduc_<maxmin_uns>_<mode>): Likewise.
7719 (reduc_<maxmin_uns>_v4sf): Likewise.
7720 (aarch64_simd_bsl<mode>_internal): Likewise.
7721 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
7722 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
7723 (aarch64_get_lane<mode>): Likewise.
7724 (*aarch64_combinez<mode>): Likewise.
7725 (aarch64_combine<mode>): Likewise.
7726 (aarch64_simd_combine<mode>): Likewise.
7727 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
7728 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
7729 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
7730 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
7731 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
7732 (aarch64_<sur>h<addsub><mode>): Likewise.
7733 (aarch64_<sur><addsub>hn<mode>): Likewise.
7734 (aarch64_<sur><addsub>hn2<mode>): Likewise.
7735 (aarch64_pmul<mode>): Likewise.
7736 (aarch64_<su_optab><optab><mode>): Likewise.
7737 (aarch64_<sur>qadd<mode>): Likewise.
7738 (aarch64_sqmovun<mode>): Likewise.
7739 (aarch64_<sur>qmovn<mode>): Likewise.
7740 (aarch64_s<optab><mode>): Likewise.
7741 (aarch64_sq<r>dmulh<mode>): Likewise.
7742 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
7743 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
7744 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
7745 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
7746 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
7747 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
7748 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
7749 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
7750 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
7751 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
7752 (aarch64_sqdmull<mode>): Likewise.
7753 (aarch64_sqdmull_lane<mode>_internal): Likewise.
7754 (aarch64_sqdmull_n<mode>): Likewise.
7755 (aarch64_sqdmull2<mode>_internal): Likewise.
7756 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
7757 (aarch64_sqdmull2_n<mode>_internal): Likewise.
7758 (aarch64_<sur>shl<mode>): Likewise.
7759 (aarch64_<sur>q<r>shl<mode>
7760 (aarch64_<sur>shll_n<mode>): Likewise.
7761 (aarch64_<sur>shll2_n<mode>): Likewise.
7762 (aarch64_<sur>shr_n<mode>): Likewise.
7763 (aarch64_<sur>sra_n<mode>): Likewise.
7764 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
7765 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
7766 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
7767 (aarch64_cm<optab><mode>): Likewise.
7768 (aarch64_cm<optab>di): Likewise.
7769 (aarch64_cm<optab><mode>): Likewise.
7770 (aarch64_cm<optab>di): Likewise.
7771 (aarch64_cmtst<mode>): Likewise.
7772 (aarch64_cmtstdi): Likewise.
7773 (aarch64_cm<optab><mode>): Likewise.
7774 (*aarch64_fac<optab><mode>): Likewise.
7775 (aarch64_addp<mode>): Likewise.
7776 (aarch64_addpdi): Likewise.
7777 (sqrt<mode>2): Likewise.
7778 (vec_load_lanesoi<mode>): Likewise.
7779 (vec_store_lanesoi<mode>): Likewise.
7780 (vec_load_lanesci<mode>): Likewise.
7781 (vec_store_lanesci<mode>): Likewise.
7782 (vec_load_lanesxi<mode>): Likewise.
7783 (vec_store_lanesxi<mode>): Likewise.
7784 (*aarch64_mov<mode>): Likewise.
7785 (aarch64_ld2<mode>_dreg): Likewise.
7786 (aarch64_ld2<mode>_dreg): Likewise.
7787 (aarch64_ld3<mode>_dreg): Likewise.
7788 (aarch64_ld3<mode>_dreg): Likewise.
7789 (aarch64_ld4<mode>_dreg): Likewise.
7790 (aarch64_ld4<mode>_dreg): Likewise.
7791 (aarch64_tbl1<mode>): Likewise.
7792 (aarch64_tbl2v16qi): Likewise.
7793 (aarch64_combinev16qi): Likewise.
7794 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
7795 (aarch64_st2<mode>_dreg): Likewise.
7796 (aarch64_st2<mode>_dreg): Likewise.
7797 (aarch64_st3<mode>_dreg): Likewise.
7798 (aarch64_st3<mode>_dreg): Likewise.
7799 (aarch64_st4<mode>_dreg): Likewise.
7800 (aarch64_st4<mode>_dreg): Likewise.
7801 (*aarch64_simd_ld1r<mode>): Likewise.
7802 (aarch64_frecpe<mode>): Likewise.
7803 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
7804 (aarch64_frecps<mode>): Likewise.
7806 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
7808 * config/arm/iterators.md (V_elem_ch): New.
7810 (VQH_type): Likewise.
7811 * config/arm/arm.md (is_neon_type): New.
7812 (conds): Use is_neon_type.
7813 (anddi3_insn): Update type attribute.
7814 (xordi3_insn): Likewise.
7815 (one_cmpldi2): Likewise.
7816 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
7817 * config/arm/neon.md (neon_mov): Update type attribute.
7818 (*movmisalign<mode>_neon_store): Likewise.
7819 (*movmisalign<mode>_neon_load): Likewise.
7820 (vec_set<mode>_internal): Likewise.
7821 (vec_set<mode>_internal): Likewise.
7822 (vec_setv2di_internal): Likewise.
7823 (vec_extract<mode>): Likewise.
7824 (vec_extract<mode>): Likewise.
7825 (vec_extractv2di): Likewise.
7826 (*add<mode>3_neon): Likewise.
7827 (adddi3_neon): Likewise.
7828 (*sub<mode>3_neon): Likewise.
7829 (subdi3_neon): Likewise.
7830 (fma<VCVTF:mode>4): Likewise.
7831 (fma<VCVTF:mode>4_intrinsic): Likewise.
7832 (*fmsub<VCVTF:mode>4): Likewise.
7833 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
7834 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
7835 (ior<mode>3): Likewise.
7836 (and<mode>3): Likewise.
7837 (orn<mode>3_neon): Likewise.
7838 (orndi3_neon): Likewise.
7839 (bic<mode>3_neon): Likewise.
7840 (bicdi3_neon): Likewise.
7841 (xor<mode>3): Likewise.
7842 (one_cmpl<mode>2): Likewise.
7843 (abs<mode>2): Likewise.
7844 (neg<mode>2): Likewise.
7845 (negdi2_neon): Likewise.
7846 (*umin<mode>3_neon): Likewise.
7847 (*umax<mode>3_neon): Likewise.
7848 (*smin<mode>3_neon): Likewise.
7849 (*smax<mode>3_neon): Likewise.
7850 (vashl<mode>3): Likewise.
7851 (vashr<mode>3_imm): Likewise.
7852 (vlshr<mode>3_imm): Likewise.
7853 (ashl<mode>3_signed): Likewise.
7854 (ashl<mode>3_unsigned): Likewise.
7855 (neon_load_count): Likewise.
7856 (ashldi3_neon_noclobber): Likewise.
7857 (ashldi3_neon): Likewise.
7858 (signed_shift_di3_neon): Likewise.
7859 (unsigned_shift_di3_neon): Likewise.
7860 (ashrdi3_neon_imm_noclobber): Likewise.
7861 (lshrdi3_neon_imm_noclobber): Likewise.
7862 (<shift>di3_neon): Likewise.
7863 (widen_ssum<mode>3): Likewise.
7864 (widen_usum<mode>3): Likewise.
7865 (quad_halves_<code>v4si): Likewise.
7866 (quad_halves_<code>v4sf): Likewise.
7867 (quad_halves_<code>v8hi): Likewise.
7868 (quad_halves_<code>v16qi): Likewise.
7869 (reduc_splus_v2di): Likewise.
7870 (neon_vpadd_internal<mode>): Likewise.
7871 (neon_vpsmin<mode>): Likewise.
7872 (neon_vpsmax<mode>): Likewise.
7873 (neon_vpumin<mode>): Likewise.
7874 (neon_vpumax<mode>): Likewise.
7875 (*ss_add<mode>_neon): Likewise.
7876 (*us_add<mode>_neon): Likewise.
7877 (*ss_sub<mode>_neon): Likewise.
7878 (*us_sub<mode>_neon): Likewise.
7879 (neon_vadd<mode>_unspec): Likewise.
7880 (neon_vaddl<mode>): Likewise.
7881 (neon_vaddw<mode>): Likewise.
7882 (neon_vhadd<mode>): Likewise.
7883 (neon_vqadd<mode>): Likewise.
7884 (neon_vaddhn<mode>): Likewise.
7885 (neon_vmul<mode>): Likewise.
7886 (neon_vfms<VCVTF:mode>): Likewise.
7887 (neon_vmlal<mode>): Likewise.
7888 (neon_vmls<mode>): Likewise.
7889 (neon_vmlsl<mode>): Likewise.
7890 (neon_vqdmulh<mode>): Likewise.
7891 (neon_vqdmlal<mode>): Likewise.
7892 (neon_vqdmlsl<mode>): Likewise.
7893 (neon_vmull<mode>): Likewise.
7894 (neon_vqdmull<mode>): Likewise.
7895 (neon_vsub<mode>_unspec): Likewise.
7896 (neon_vsubl<mode>): Likewise.
7897 (neon_vsubw<mode>): Likewise.
7898 (neon_vqsub<mode>): Likewise.
7899 (neon_vhsub<mode>): Likewise.
7900 (neon_vsubhn<mode>): Likewise.
7901 (neon_vceq<mode>): Likewise.
7902 (neon_vcge<mode>): Likewise.
7903 (neon_vcgeu<mode>): Likewise.
7904 (neon_vcgt<mode>): Likewise.
7905 (neon_vcgtu<mode>): Likewise.
7906 (neon_vcle<mode>): Likewise.
7907 (neon_vclt<mode>): Likewise.
7908 (neon_vcage<mode>): Likewise.
7909 (neon_vcagt<mode>): Likewise.
7910 (neon_vtst<mode>): Likewise.
7911 (neon_vabd<mode>): Likewise.
7912 (neon_vabdl<mode>): Likewise.
7913 (neon_vaba<mode>): Likewise.
7914 (neon_vabal<mode>): Likewise.
7915 (neon_vmax<mode>): Likewise.
7916 (neon_vmin<mode>): Likewise.
7917 (neon_vpaddl<mode>): Likewise.
7918 (neon_vpadal<mode>): Likewise.
7919 (neon_vpmax<mode>): Likewise.
7920 (neon_vpmin<mode>): Likewise.
7921 (neon_vrecps<mode>): Likewise.
7922 (neon_vrsqrts<mode>): Likewise.
7923 (neon_vqabs<mode>): Likewise.
7924 (neon_vqneg<mode>): Likewise.
7925 (neon_vcls<mode>): Likewise.
7926 (clz<mode>2): Likewise.
7927 (popcount<mode>2): Likewise.
7928 (neon_vrecpe<mode>): Likewise.
7929 (neon_vrsqrte<mode>): Likewise.
7930 (neon_vget_lane<mode>_sext_internal): Likewise.
7931 (neon_vget_lane<mode>_zext_internal): Likewise.
7932 (neon_vdup_n<mode>): Likewise.
7933 (neon_vdup_n<mode>): Likewise.
7934 (neon_vdup_nv2di): Likewise.
7935 (neon_vdup_lane<mode>_interal): Likewise.
7936 (*neon_vswp<mode>): Likewise.
7937 (neon_vcombine<mode>): Likewise.
7938 (float<mode><V_cvtto>2): Likewise.
7939 (floatuns<mode><V_cvtto>2): Likewise.
7940 (fix_trunc<mode><V_cvtto>2): Likewise.
7941 (fixuns_trunc<mode><V_cvtto>2
7942 (neon_vcvt<mode>): Likewise.
7943 (neon_vcvt<mode>): Likewise.
7944 (neon_vcvtv4sfv4hf): Likewise.
7945 (neon_vcvtv4hfv4sf): Likewise.
7946 (neon_vcvt_n<mode>): Likewise.
7947 (neon_vcvt_n<mode>): Likewise.
7948 (neon_vmovn<mode>): Likewise.
7949 (neon_vqmovn<mode>): Likewise.
7950 (neon_vqmovun<mode>): Likewise.
7951 (neon_vmovl<mode>): Likewise.
7952 (neon_vmul_lane<mode>): Likewise.
7953 (neon_vmul_lane<mode>): Likewise.
7954 (neon_vmull_lane<mode>): Likewise.
7955 (neon_vqdmull_lane<mode>): Likewise.
7956 (neon_vqdmulh_lane<mode>): Likewise.
7957 (neon_vqdmulh_lane<mode>): Likewise.
7958 (neon_vmla_lane<mode>): Likewise.
7959 (neon_vmla_lane<mode>): Likewise.
7960 (neon_vmlal_lane<mode>): Likewise.
7961 (neon_vqdmlal_lane<mode>): Likewise.
7962 (neon_vmls_lane<mode>): Likewise.
7963 (neon_vmls_lane<mode>): Likewise.
7964 (neon_vmlsl_lane<mode>): Likewise.
7965 (neon_vqdmlsl_lane<mode>): Likewise.
7966 (neon_vext<mode>): Likewise.
7967 (neon_vrev64<mode>): Likewise.
7968 (neon_vrev32<mode>): Likewise.
7969 (neon_vrev16<mode>): Likewise.
7970 (neon_vbsl<mode>_internal): Likewise.
7971 (neon_vshl<mode>): Likewise.
7972 (neon_vqshl<mode>): Likewise.
7973 (neon_vshr_n<mode>): Likewise.
7974 (neon_vshrn_n<mode>): Likewise.
7975 (neon_vqshrn_n<mode>): Likewise.
7976 (neon_vqshrun_n<mode>): Likewise.
7977 (neon_vshl_n<mode>): Likewise.
7978 (neon_vqshl_n<mode>): Likewise.
7979 (neon_vqshlu_n<mode>): Likewise.
7980 (neon_vshll_n<mode>): Likewise.
7981 (neon_vsra_n<mode>): Likewise.
7982 (neon_vsri_n<mode>): Likewise.
7983 (neon_vsli_n<mode>): Likewise.
7984 (neon_vtbl1v8qi): Likewise.
7985 (neon_vtbl2v8qi): Likewise.
7986 (neon_vtbl3v8qi): Likewise.
7987 (neon_vtbl4v8qi): Likewise.
7988 (neon_vtbl1v16qi): Likewise.
7989 (neon_vtbl2v16qi): Likewise.
7990 (neon_vcombinev16qi): Likewise.
7991 (neon_vtbx1v8qi): Likewise.
7992 (neon_vtbx2v8qi): Likewise.
7993 (neon_vtbx3v8qi): Likewise.
7994 (neon_vtbx4v8qi): Likewise.
7995 (*neon_vtrn<mode>_insn): Likewise.
7996 (*neon_vzip<mode>_insn): Likewise.
7997 (*neon_vuzp<mode>_insn): Likewise.
7998 (neon_vld1<mode>): Likewise.
7999 (neon_vld1_lane<mode>): Likewise.
8000 (neon_vld1_lane<mode>): Likewise.
8001 (neon_vld1_dup<mode>): Likewise.
8002 (neon_vld1_dup<mode>): Likewise.
8003 (neon_vld1_dupv2di): Likewise.
8004 (neon_vst1<mode>): Likewise.
8005 (neon_vst1_lane<mode>): Likewise.
8006 (neon_vst1_lane<mode>): Likewise.
8007 (neon_vld2<mode>): Likewise.
8008 (neon_vld2<mode>): Likewise.
8009 (neon_vld2_lane<mode>): Likewise.
8010 (neon_vld2_lane<mode>): Likewise.
8011 (neon_vld2_dup<mode>): Likewise.
8012 (neon_vst2<mode>): Likewise.
8013 (neon_vst2<mode>): Likewise.
8014 (neon_vst2_lane<mode>): Likewise.
8015 (neon_vst2_lane<mode>): Likewise.
8016 (neon_vld3<mode>): Likewise.
8017 (neon_vld3qa<mode>): Likewise.
8018 (neon_vld3qb<mode>): Likewise.
8019 (neon_vld3_lane<mode>): Likewise.
8020 (neon_vld3_lane<mode>): Likewise.
8021 (neon_vld3_dup<mode>): Likewise.
8022 (neon_vst3<mode>): Likewise.
8023 (neon_vst3qa<mode>): Likewise.
8024 (neon_vst3qb<mode>): Likewise.
8025 (neon_vst3_lane<mode>): Likewise.
8026 (neon_vst3_lane<mode>): Likewise.
8027 (neon_vld4<mode>): Likewise.
8028 (neon_vld4qa<mode>): Likewise.
8029 (neon_vld4qb<mode>): Likewise.
8030 (neon_vld4_lane<mode>): Likewise.
8031 (neon_vld4_lane<mode>): Likewise.
8032 (neon_vld4_dup<mode>): Likewise.
8033 (neon_vst4<mode>): Likewise.
8034 (neon_vst4qa<mode>): Likewise.
8035 (neon_vst4qb<mode>): Likewise.
8036 (neon_vst4_lane<mode>): Likewise.
8037 (neon_vst4_lane<mode>): Likewise.
8038 (neon_vec_unpack<US>_lo_<mode>): Likewise.
8039 (neon_vec_unpack<US>_hi_<mode>): Likewise.
8040 (neon_vec_<US>mult_lo_<mode>): Likewise.
8041 (neon_vec_<US>mult_hi_<mode>): Likewise.
8042 (neon_vec_<US>shiftl_<mode>): Likewise.
8043 (neon_unpack<US>_<mode>): Likewise.
8044 (neon_vec_<US>mult_<mode>): Likewise.
8045 (vec_pack_trunc_<mode>): Likewise.
8046 (neon_vec_pack_trunc_<mode>): Likewise.
8047 (neon_vabd<mode>_2): Likewise.
8048 (neon_vabd<mode>_3): Likewise.
8050 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8052 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
8053 (load_pair): Update type attribute.
8054 (store_pair): Update type attribute.
8055 * config/aarch64/iterators.md (q): New.
8057 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8059 * config/arm/types.md: Add new types for Neon insns.
8061 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
8062 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8063 Sergey Lega <sergey.s.lega@intel.com>
8064 Anna Tikhonova <anna.tikhonova@intel.com>
8065 Ilya Tocar <ilya.tocar@intel.com>
8066 Andrey Turetskiy <andrey.turetskiy@intel.com>
8067 Ilya Verbin <ilya.verbin@intel.com>
8068 Kirill Yukhin <kirill.yukhin@intel.com>
8069 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8071 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
8072 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
8073 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
8075 (srcp14<mode>): Ditto.
8076 (rsqrt14<mode>): Ditto.
8077 (rsqrt14<mode>): Ditto.
8078 (avx512f_vmscalef<mode>): Ditto.
8079 (avx512f_scalef<mode>): Ditto.
8080 (avx512f_getexp<mode>): Ditto.
8081 (avx512f_sgetexp<mode>): Ditto.
8082 (avx512f_fixupimm<mode>): Ditto.
8083 (avx512f_sfixupimm<mode>): Ditto.
8084 (avx512f_rndscale<mode>): Ditto.
8085 (*avx512er_exp2<mode>): Ditto.
8086 (*avx512er_rcp28<mode>): Ditto.
8087 (avx512er_rsqrt28<mode>): Ditto.
8088 (avx512f_getmant<mode>): Ditto.
8089 (avx512f_getmant<mode>): Ditto.
8090 (avx512f_rndscale<mode>): Fix formatting.
8092 2013-10-15 Martin Jambor <mjambor@suse.cz>
8094 * ipa-utils.h (ipa_edge_within_scc): Declare.
8095 * ipa-cp.c (edge_within_scc): Moved...
8096 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
8098 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
8099 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8100 Sergey Lega <sergey.s.lega@intel.com>
8101 Anna Tikhonova <anna.tikhonova@intel.com>
8102 Ilya Tocar <ilya.tocar@intel.com>
8103 Andrey Turetskiy <andrey.turetskiy@intel.com>
8104 Ilya Verbin <ilya.verbin@intel.com>
8105 Kirill Yukhin <kirill.yukhin@intel.com>
8106 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8108 * config/i386/predicates.md (const_8_to_15_operand): New.
8109 (const_16_to_31_operand): Ditto.
8110 * config/i386/sse.md (V8FI): New.
8112 (reduc_splus_v8df): Ditto.
8113 (reduc_splus_v16sf): Ditto.
8114 (avx512f_vextract<shuffletype>32x4_1): Ditto.
8115 (vec_extract_hi_<mode>): Ditto.
8116 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
8117 (vec_set_lo_<mode>): Ditto.
8118 (vec_set_hi_<mode>): Ditto.
8119 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
8120 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
8121 (avx512f_pshufd_1): Ditto.
8122 (avx512f_broadcast<mode>): Ditto.
8123 (avx512f_broadcast<mode>): Ditto.
8124 (define_split): Split vec_extract_lo into move.
8125 (ssequartermode): Ditto.
8126 (ssedoublemode): Extened with wider modes.
8127 (vec_extract_lo_<mode>): Ditto.
8129 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
8130 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8131 Sergey Lega <sergey.s.lega@intel.com>
8132 Anna Tikhonova <anna.tikhonova@intel.com>
8133 Ilya Tocar <ilya.tocar@intel.com>
8134 Andrey Turetskiy <andrey.turetskiy@intel.com>
8135 Ilya Verbin <ilya.verbin@intel.com>
8136 Kirill Yukhin <kirill.yukhin@intel.com>
8137 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8139 * config/i386/predicates.md (register_or_constm1_operand): New.
8140 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
8141 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
8142 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
8143 UNSPEC_SCATTER_PREFETCH
8145 (avx512f_ucmp<mode>3): Ditto.
8146 (avx512f_vternlog<mode>): Ditto.
8147 (avx512f_align<mode>): Ditto.
8148 (<shift_insn><mode>3): Ditto.
8149 (avx512f_<rotate>v<mode>): Ditto.
8150 (avx512f_<rotate><mode>): Ditto.
8151 (avx512f_eq<mode>3): Ditto.
8152 (avx512f_eq<mode>3_1): Ditto.
8153 (avx512f_gt<mode>3): Ditto.
8154 (avx512f_testm<mode>3): Ditto.
8155 (avx512f_testnm<mode>3): Ditto.
8156 (avx512pf_gatherpf<mode>): Ditto.
8157 (*avx512pf_gatherpf<mode>_mask): Ditto.
8158 (*avx512pf_gatherpf<mode>): Ditto.
8159 (avx512pf_scatterpf<mode>): Ditto.
8160 (*avx512pf_scatterpf<mode>_mask): Ditto.
8161 (*avx512pf_scatterpf<mode>): Ditto.
8162 (avx512f_vec_dup_gpr<mode>): Ditto.
8163 (clz<mode>2): Ditto.
8164 (conflict<mode>): Ditto.
8165 (REDUC_SMINMAX_MODE): Extened with wider modes.
8166 (reduc_<code>_<mode>): Ditto.
8167 (vlshr<mode>3): Ditto.
8168 (vashl<mode>3): Ditto.
8170 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
8171 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8172 Sergey Lega <sergey.s.lega@intel.com>
8173 Anna Tikhonova <anna.tikhonova@intel.com>
8174 Ilya Tocar <ilya.tocar@intel.com>
8175 Andrey Turetskiy <andrey.turetskiy@intel.com>
8176 Ilya Verbin <ilya.verbin@intel.com>
8177 Kirill Yukhin <kirill.yukhin@intel.com>
8178 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8180 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
8183 (avx512fmaskmode): Ditto.
8184 (bcstscalarsuff): Ditto.
8185 (avx512f_blendm<mode>): Ditto.
8186 (cmp_imm_predicate): Ditto.
8187 (avx512f_cmp<mode>3): Ditto.
8188 (avx512f_vec_dup<mode>): Ditto.
8189 (avx512f_vec_dup_mem<mode>): Ditto.
8190 (avx512f_vpermi2var<mode>3): Ditto.
8191 (avx512f_vpermt2var<mode>3): Ditto.
8192 (vec_init<mode>): Ditto.
8193 (avx512f_gathersi<mode>): Ditto.
8194 (*avx512f_gathersi<mode>): Ditto.
8195 (*avx512f_gathersi<mode>_2): Ditto.
8196 (avx512f_gatherdi<mode>): Ditto.
8197 (*avx512f_gatherdi<mode>): Ditto.
8198 (*avx512f_gatherdi<mode>_2): Ditto.
8199 (avx512f_scattersi<mode>): Ditto.
8200 (*avx512f_scattersi<mode>): Ditto.
8201 (avx512f_scatterdi<mode>): Ditto.
8202 (*avx512f_scatterdi<mode>): Ditto.
8203 (sseintprefix): Extened with wider modes.
8204 (VEC_GATHER_IDXSI): Ditto.
8205 (VEC_GATHER_IDXDI): Ditto.
8206 (VEC_GATHER_SRCDI): Ditto.
8208 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8209 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8211 * config/arm/t-aprofile: New file.
8212 * config.gcc: Handle --with-multilib-list option.
8214 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
8216 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
8219 2013-10-15 Richard Biener <rguenther@suse.de>
8221 * tree-loop-distribution.c (build_empty_rdg): Inline into
8223 (rdg_flag_vertex): Inline into single user.
8224 (rdg_flag_vertex_and_dependent): Likewise.
8225 (build_rdg_partition_for_vertex): Remove processed bitmap.
8226 (rdg_build_partitions): Simplify.
8228 2013-10-15 Richard Biener <rguenther@suse.de>
8230 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
8231 Restructure forwarding through conversions and copies to
8232 avoid performing copy-propagation the wrong way. Adjust
8233 recursion invocations.
8234 (forward_propagate_addr_expr): Add argument stating if we
8235 are recursing from a single-use.
8236 (ssa_forward_propagate_and_combine): Adjust.
8238 2013-10-14 David Malcolm <dmalcolm@redhat.com>
8240 * dumpfile.h (gcc::dump_manager): New class, to hold state
8241 relating to dumpfile management.
8242 (get_dump_file_name): Remove in favor of method of dump_manager.
8243 (dump_initialized_p): Likewise.
8244 (dump_start): Likewise.
8245 (dump_finish): Likewise.
8246 (dump_switch_p): Likewise.
8247 (dump_register): Likewise.
8248 (get_dump_file_info): Likewise.
8249 * context.c (gcc::context::context): Construct the dump_manager
8251 * context.h (gcc::context::get_dumps): New.
8252 (gcc::context::m_dumps): New.
8253 * coverage.c (coverage_init): Port to dump_manager API.
8254 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
8255 (extra_dump_files_in_use): Likewise.
8256 (extra_dump_files_alloced): Likewise.
8257 (gcc::dump_manager::dump_manager): New.
8258 (dump_register): Convert to...
8259 (gcc::dump_manager::dump_register): ...method, replacing
8260 function-static next_dump with m_next_dump field.
8261 (get_dump_file_info): Convert to...
8262 (gcc::dump_manager::get_dump_file_info): ...method.
8263 (get_dump_file_name): Convert to...
8264 (gcc::dump_manager::get_dump_file_name): ...method.
8265 (dump_start): Convert to...
8266 (gcc::dump_manager::dump_start): ...method.
8267 (dump_finish): Convert to...
8268 (gcc::dump_manager::dump_finish): ...method.
8269 (dump_begin): Replace body with...
8270 (gcc::dump_manager::dump_begin): ...new method.
8271 (dump_phase_enabled_p): Convert to...
8272 (gcc::dump_manager::dump_phase_enabled_p): ...method.
8273 (dump_phase_enabled_p): Convert to...
8274 (gcc::dump_manager::dump_phase_enabled_p): ...method.
8275 (dump_initialized_p): Convert to...
8276 (gcc::dump_manager::dump_initialized_p): ...method.
8277 (dump_flag_name): Replace body with...
8278 (gcc::dump_manager::dump_flag_name): ...new method.
8279 (dump_enable_all): Convert to...
8280 (gcc::dump_manager::dump_enable_all): ...new method.
8281 (opt_info_enable_passes): Convert to...
8282 (gcc::dump_manager::opt_info_enable_passes): ...new method.
8283 (dump_switch_p_1): Convert to...
8284 (gcc::dump_manager::dump_switch_p_1): ...new method.
8285 (dump_switch_p): Convert to...
8286 (gcc::dump_manager::dump_switch_p): ...new method.
8287 (opt_info_switch_p): Port to dump_manager API.
8288 (enable_rtl_dump_file): Likewise.
8289 * opts-global.c (handle_common_deferred_options): Port to new
8291 * passes.c (pass_manager::finish_optimization_passes): Likewise.
8292 (pass_manager::register_one_dump_file): Likewise.
8293 (pass_manager::register_pass): Likewise.
8294 (pass_init_dump_file): Likewise.
8295 (pass_fini_dump_file): Likewise.
8296 * statistics.c (statistics_early_init): Likewise.
8298 2013-10-14 Richard Biener <rguenther@suse.de>
8300 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
8301 iterative_hash_canonical_type, gimple_canonical_type_hash,
8302 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
8303 gimple_register_canonical_type, print_gimple_types_stats,
8304 free_gimple_type_tables): Move to lto/lto.c
8305 (gt-gimple.h): Do not include.
8306 * gimple.h (gimple_register_canonical_type,
8307 print_gimple_types_stats, free_gimple_type_tables): Remove.
8308 * Makefile.in (GTFILES): Remove gimple.c.
8310 2013-10-14 Travis Snoozy <quandary@remstate.com>
8313 * config/msp430/msp430.c (msp430_option_override): Correct thinko
8314 scanning for msp430x targets.
8316 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
8319 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
8320 (registers_ok_for_ldd_peep): Move around.
8321 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
8322 * config/sparc/sparc.md (widening peepholes): Use it.
8324 2013-10-14 Richard Biener <rguenther@suse.de>
8328 * gimple.c (iterative_hash_canonical_type): Make sure to
8329 record the hash into the correct hashtable slot.
8331 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
8333 PR rtl-optimization/58662
8334 * combine.c (try_combine): Take into account death nodes on I2 when
8335 splitting a PARALLEL of two independent SETs. Fix dump message.
8337 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
8340 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
8341 * config.gcc (SH extra_objs): Add sh_ifcvt.o.
8342 * config/sh/t-sh (sh_treg_combine.o): New entry.
8343 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
8344 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
8345 (register_sh_passes): New function. Register sh_treg_combine pass.
8346 (sh_option_override): Invoke it.
8347 (sh_canonicalize_comparison): Handle op0_preserve_value.
8348 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
8349 opportunities. Canonicalize branch condition.
8350 (nott): Allow only if pseudos can be created for non-SH2A.
8352 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
8355 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
8356 (ix86_expand_movmem): Replace copy_addr_to_reg with
8357 ix86_copy_addr_to_reg.
8358 (ix86_expand_setmem): Likewise.
8360 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
8362 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
8363 provided by ix86_fp_compare_mode instead of CCFPUmode.
8365 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
8367 * config/aarch64/arm_neon.h
8368 (vtbx<1,3>_<psu>8): Fix register constriants.
8370 2013-10-11 Jeff Law <law@redhat.com>
8372 PR tree-optimization/58640
8373 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
8374 threading paths that cross over two loop entry points.
8376 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8378 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
8379 handle vector float as well.
8380 (*vsx_le_perm_load_v4si): Likewise.
8381 (*vsx_le_perm_store_v2di): Likewise.
8382 (*vsx_le_perm_store_v4si): Likewise.
8384 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8386 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
8387 directly to circumvent subtract from splat{31} workaround.
8388 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
8390 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
8391 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
8392 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
8393 (altivec_vperm_<mode>): Convert to define_insn_and_split to
8394 separate big and little endian logic.
8395 (*altivec_vperm_<mode>_internal): New define_insn.
8396 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
8397 separate big and little endian logic.
8398 (*altivec_vperm_<mode>_uns_internal): New define_insn.
8399 (vec_permv16qi): Add little endian logic.
8401 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
8403 * doc/extend.texi (returns_nonnull): Remove arguments.
8405 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8406 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8407 Sergey Lega <sergey.s.lega@intel.com>
8408 Anna Tikhonova <anna.tikhonova@intel.com>
8409 Ilya Tocar <ilya.tocar@intel.com>
8410 Andrey Turetskiy <andrey.turetskiy@intel.com>
8411 Ilya Verbin <ilya.verbin@intel.com>
8412 Kirill Yukhin <kirill.yukhin@intel.com>
8413 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8415 * config/i386/sse.md (VI48F_256_512): New.
8416 (avx2_permvar<mode>): Change to ...
8417 (<avx2_avx512f>_permvar<mode>): This.
8419 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8420 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8421 Sergey Lega <sergey.s.lega@intel.com>
8422 Anna Tikhonova <anna.tikhonova@intel.com>
8423 Ilya Tocar <ilya.tocar@intel.com>
8424 Andrey Turetskiy <andrey.turetskiy@intel.com>
8425 Ilya Verbin <ilya.verbin@intel.com>
8426 Kirill Yukhin <kirill.yukhin@intel.com>
8427 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8429 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
8430 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
8431 * config/i386/sse.md (VI4_AVX): New.
8432 (sf2simodelower): Ditto.
8433 (sse2_cvtps2dq): Change to ...
8434 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
8436 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8437 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8438 Sergey Lega <sergey.s.lega@intel.com>
8439 Anna Tikhonova <anna.tikhonova@intel.com>
8440 Ilya Tocar <ilya.tocar@intel.com>
8441 Andrey Turetskiy <andrey.turetskiy@intel.com>
8442 Ilya Verbin <ilya.verbin@intel.com>
8443 Kirill Yukhin <kirill.yukhin@intel.com>
8444 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8446 * config/i386/sse.md (V_512): New.
8448 (vcond<V_512:mode><VF_512:mode>): Ditto.
8449 (vcond<V_512:mode><VI_512:mode>): Ditto.
8450 (vcondu<V_512:mode><VI_512:mode>): Ditto.
8452 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8453 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8454 Sergey Lega <sergey.s.lega@intel.com>
8455 Anna Tikhonova <anna.tikhonova@intel.com>
8456 Ilya Tocar <ilya.tocar@intel.com>
8457 Andrey Turetskiy <andrey.turetskiy@intel.com>
8458 Ilya Verbin <ilya.verbin@intel.com>
8459 Kirill Yukhin <kirill.yukhin@intel.com>
8460 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8462 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
8463 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
8465 (fma<mode>4): Removed condition.
8466 (fms<mode>4): Ditto.
8467 (fnma<mode>4): Ditto.
8468 (fnms<mode>4): Ditto.
8469 (fma4i_fmadd_<mode>): Ditto.
8470 (*fma_fmadd_<mode>): Ditto.
8471 (*fma_fmsub_<mode>): Ditto.
8472 (*fma_fnmadd_<mode>): Ditto.
8473 (*fma_fnmsub_<mode>): Ditto.
8474 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
8475 (*fma_fmaddsub_<mode>): Ditto.
8476 (*fma_fmsubadd_<mode>): Ditto.
8477 (*fmai_fmadd_<mode>): Ditto.
8478 (*fmai_fmsub_<mode>): Ditto.
8479 (*fmai_fnmadd_<mode>): Ditto.
8480 (*fmai_fnmsub_<mode>): Ditto.
8482 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8483 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8484 Sergey Lega <sergey.s.lega@intel.com>
8485 Anna Tikhonova <anna.tikhonova@intel.com>
8486 Ilya Tocar <ilya.tocar@intel.com>
8487 Andrey Turetskiy <andrey.turetskiy@intel.com>
8488 Ilya Verbin <ilya.verbin@intel.com>
8489 Kirill Yukhin <kirill.yukhin@intel.com>
8490 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8492 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
8493 (VI124_256): Changed to ...
8494 (VI124_256_48_512): This.
8495 (ssepackmode): Extended with wider modes.
8496 (<code><mode>3): Changed iterator.
8497 (*avx2_<code><mode>3): Ditto.
8498 (vec_pack_trunc_<mode>): Ditto.
8500 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8501 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8502 Sergey Lega <sergey.s.lega@intel.com>
8503 Anna Tikhonova <anna.tikhonova@intel.com>
8504 Ilya Tocar <ilya.tocar@intel.com>
8505 Andrey Turetskiy <andrey.turetskiy@intel.com>
8506 Ilya Verbin <ilya.verbin@intel.com>
8507 Kirill Yukhin <kirill.yukhin@intel.com>
8508 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8510 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
8511 (VI8F_256_512): Ditto.
8512 (abs<mode>2): Changed iterator.
8513 (avx2_perm<mode>): Changed to ...
8514 (<avx2_avx512f>_perm<mode>): This.
8515 (avx2_perm<mode>_1): Changed to ...
8516 (<avx2_avx512f>_perm<mode>_1): This.
8518 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8519 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8520 Sergey Lega <sergey.s.lega@intel.com>
8521 Anna Tikhonova <anna.tikhonova@intel.com>
8522 Ilya Tocar <ilya.tocar@intel.com>
8523 Andrey Turetskiy <andrey.turetskiy@intel.com>
8524 Ilya Verbin <ilya.verbin@intel.com>
8525 Kirill Yukhin <kirill.yukhin@intel.com>
8526 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8528 * config/i386/sse.md (VI48_AVX512F): New.
8529 (VI48_AVX2): Changed to ...
8530 (VI48_AVX2_48_AVX512F): This.
8531 (avx2_ashrv<mode>): Changed to ...
8532 (<avx2_avx512f>_ashrv<mode>): This.
8533 (avx2_<shift_insn>v<mode>): Changed to ...
8534 (<avx2_avx512f>_<shift_insn>v<mode>): This.
8536 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8537 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8538 Sergey Lega <sergey.s.lega@intel.com>
8539 Anna Tikhonova <anna.tikhonova@intel.com>
8540 Ilya Tocar <ilya.tocar@intel.com>
8541 Andrey Turetskiy <andrey.turetskiy@intel.com>
8542 Ilya Verbin <ilya.verbin@intel.com>
8543 Kirill Yukhin <kirill.yukhin@intel.com>
8544 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8546 * config/i386/sse.md (VI4_AVX512F): New.
8547 (VI8_AVX2_AVX512F): Ditto.
8548 (mul<mode>3): Extended with wider modes.
8549 (*<sse4_1_avx2>_mul<mode>3): Ditto.
8550 (mul<mode>3): Ditto.
8551 (vec_widen_<s>mult_odd_<mode>): Ditto.
8553 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8554 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8555 Sergey Lega <sergey.s.lega@intel.com>
8556 Anna Tikhonova <anna.tikhonova@intel.com>
8557 Ilya Tocar <ilya.tocar@intel.com>
8558 Andrey Turetskiy <andrey.turetskiy@intel.com>
8559 Ilya Verbin <ilya.verbin@intel.com>
8560 Kirill Yukhin <kirill.yukhin@intel.com>
8561 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8563 * config/i386/sse.md (VI2_AVX512F): New.
8564 (VI124_AVX512F): Ditto.
8565 (sseunpackmode): Extended with wider modes.
8566 (sseunpackfltmode): Ditto.
8567 (vec_unpacks_float_hi_<mode>): Ditto.
8568 (vec_unpacks_float_lo_<mode>): Ditto.
8569 (vec_unpacku_float_hi_<mode>): Ditto.
8570 (vec_unpacku_float_lo_<mode>): Ditto.
8571 (vec_unpacks_lo_<mode>): Ditto.
8572 (vec_unpacks_hi_<mode>): Ditto.
8573 (vec_unpacku_lo_<mode>): Ditto.
8574 (vec_unpacku_hi_<mode>): Ditto.
8576 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8577 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8578 Sergey Lega <sergey.s.lega@intel.com>
8579 Anna Tikhonova <anna.tikhonova@intel.com>
8580 Ilya Tocar <ilya.tocar@intel.com>
8581 Andrey Turetskiy <andrey.turetskiy@intel.com>
8582 Ilya Verbin <ilya.verbin@intel.com>
8583 Kirill Yukhin <kirill.yukhin@intel.com>
8584 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8586 * config/i386/i386.md (multdiv): New.
8587 (multdiv_mnemonic): Ditto.
8588 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
8589 (<sse>_vm<multdiv_mnemonic><mode>3): This.
8590 (<sse>_vmdiv<mode>3): Removed.
8592 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8593 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8594 Sergey Lega <sergey.s.lega@intel.com>
8595 Anna Tikhonova <anna.tikhonova@intel.com>
8596 Ilya Tocar <ilya.tocar@intel.com>
8597 Andrey Turetskiy <andrey.turetskiy@intel.com>
8598 Ilya Verbin <ilya.verbin@intel.com>
8599 Kirill Yukhin <kirill.yukhin@intel.com>
8600 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8602 * config/i386/sse.md (V): Extended with wider modes.
8604 (ssehalfvecmode): Ditto.
8606 (ssepackfltmode): Ditto.
8607 (avx_vec_concat<mode>): Ditto.
8608 (V_256_512): New iterator.
8609 (VF2_512_256): Ditto.
8610 (si2dfmode): New attribute.
8611 (si2dfmodelower): Ditto.
8613 (concat_tg_mode): Ditto.
8614 (floatv4siv4df2): Changed to ...
8615 (float<si2dfmodelower><mode>2): This.
8616 (avx_cvtps2pd256): Changed to ...
8617 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
8618 (vec_pack_trunc_v4df): Changed to ...
8619 (vec_pack_trunc_<mode>): This.
8620 (avx_vpermil<mode>): Changed to ...
8621 (<sse2_avx_avx512f>_vpermil<mode>): This.
8622 (<fixsuffix>fix_truncv8dfv8si2): New.
8623 (vec_pack_sfix_trunc_v8df): Ditto.
8624 (avx512f_rndscale<mode>): Ditto.
8625 (avx512f_roundpd512): Ditto.
8626 (vec_pack_ufix_trunc_<mode>): Updated iterator.
8628 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8629 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8630 Sergey Lega <sergey.s.lega@intel.com>
8631 Anna Tikhonova <anna.tikhonova@intel.com>
8632 Ilya Tocar <ilya.tocar@intel.com>
8633 Andrey Turetskiy <andrey.turetskiy@intel.com>
8634 Ilya Verbin <ilya.verbin@intel.com>
8635 Kirill Yukhin <kirill.yukhin@intel.com>
8636 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8638 * config/i386/i386.md (any_fix): New iterator.
8639 (fixsuffix): New attribute.
8640 * config/i386/sse.md (VF1): Extened with wider modes.
8644 (sseintvecmodelower): Ditto.
8645 (ssescalarmode): Ditto.
8646 (ssescalarnum): Ditto.
8648 (ssexmmmode): Ditto.
8649 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
8650 (<sse>_rcp<mode>2): Change iterator.
8651 (rsqrt<mode>2): Ditto.
8652 (<sse>_rsqrt<mode>2): Ditto.
8653 (avx2_vec_dup<mode>): Ditto.
8654 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
8655 (round<mode>2_sfix): Ditto.
8656 (avx2_pbroadcast<mode>): Ditto.
8657 (*andnot<mode>3): Handle XI mode.
8658 (*<code><mode>3): Ditto.
8659 (AVXTOSSEMODE): Removed.
8660 (avx_vpermil<mode>): Changed to ...
8661 (<sse2_avx_avx512f>_vpermil<mode>): This.
8663 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8664 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8665 Sergey Lega <sergey.s.lega@intel.com>
8666 Anna Tikhonova <anna.tikhonova@intel.com>
8667 Ilya Tocar <ilya.tocar@intel.com>
8668 Andrey Turetskiy <andrey.turetskiy@intel.com>
8669 Ilya Verbin <ilya.verbin@intel.com>
8670 Kirill Yukhin <kirill.yukhin@intel.com>
8671 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8673 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
8674 (<sse>_comi): Ditto.
8675 (<sse>_ucomi): Ditto.
8676 (sse_cvtss2siq_2): Ditto.
8677 (sse2_cvtsd2si): Ditto.
8678 (sse2_cvtsd2siq): Ditto.
8679 (sse2_cvttsd2si): Ditto.
8680 (sse2_cvttsd2siq): Ditto.
8681 (<shift_insn><mode>3): Ditto.
8682 (sse2_cvtsi2sdq): Update constraint and prefix.
8683 (sse_cvtsi2ss): Update prefix.
8684 (sse_cvtsi2ssq): Ditto.
8686 2013-10-11 Jakub Jelinek <jakub@redhat.com>
8688 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
8689 ignore internal calls.
8691 2013-10-11 Richard Biener <rguenther@suse.de>
8693 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
8694 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
8695 TREE_OVERFLOW is set.
8697 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8699 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
8701 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
8702 * gimple.h: Likewise.
8704 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
8706 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
8709 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
8711 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
8712 * configure: Regenerate.
8714 2013-10-11 Jakub Jelinek <jakub@redhat.com>
8716 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
8717 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
8718 formatting fixes, use pp_colon instead of pp_character (..., ':'),
8719 similarly pp_right_paren.
8720 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
8721 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
8722 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
8723 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
8725 (omp_declare_simd_clauses_equal,
8726 omp_remove_redundant_declare_simd_attrs): New functions.
8727 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
8728 (walk_tree_1): Handle new OpenMP 4.0 clauses.
8729 * tree.h (OMP_LOOP_CHECK): Define.
8730 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
8731 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
8732 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
8733 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
8734 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
8735 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
8736 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
8737 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
8738 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
8739 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
8740 OMP_CLAUSE_SIMDLEN_EXPR): Define.
8741 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
8742 (omp_remove_redundant_declare_simd_attrs): New prototype.
8743 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
8744 GIMPLE_OMP_TEAMS): New codes.
8745 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
8746 * omp-low.c (struct omp_context): Add cancel_label and cancellable
8748 (target_nesting_level): New variable.
8749 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
8750 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
8751 for collapse > 1 static schedule unless ordered.
8752 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
8753 (determine_parallel_type): Adjust get_ws_args_for caller.
8754 (install_var_field): Handle mask & 4 for double indirection.
8755 (scan_sharing_clauses): Ignore shared clause on teams construct.
8756 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
8757 (create_omp_child_function): If inside target or declare target
8758 constructs, set "omp declare target" attribute on the child function.
8759 (find_combined_for): New function.
8760 (scan_omp_parallel): Handle combined loops.
8761 (scan_omp_target, scan_omp_teams): New functions.
8762 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
8763 restrictions and set ctx->cancellable for cancellable constructs.
8764 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
8765 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
8766 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
8767 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
8768 (omp_clause_aligned_alignment): New function.
8769 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
8770 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
8771 on teams constructs. Handle user defined reductions and new
8773 (lower_reduction_clauses): Don't set placeholder to address of ref
8774 if it has already the right type.
8775 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
8776 (expand_parallel_call): Use the new non-_start suffixed builtins,
8777 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
8778 and GOMP_parallel_end after the call.
8779 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
8780 (expand_omp_for_init_counts): Handle combined loops.
8781 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
8783 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
8784 end of cancellable loops.
8785 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8786 Likewise. Handle collapse > 1 loops.
8787 (expand_omp_simd): Handle combined loops.
8788 (expand_omp_for): Add inner_stmt argument, adjust callers of
8789 expand_omp_for* functions, use expand_omp_for_static*chunk even
8790 for collapse > 1 unless ordered.
8791 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
8792 of cancellable sections.
8793 (expand_omp_single): Remove need_barrier variable, just rely on
8794 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
8795 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
8796 (expand_omp_atomic_load, expand_omp_atomic_store,
8797 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
8798 (expand_omp_target): New function.
8799 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
8800 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
8801 (build_omp_regions_1): Immediately close region for
8802 GF_OMP_TARGET_KIND_UPDATE.
8803 (maybe_add_implicit_barrier_cancel): New function.
8804 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
8806 (lower_omp_single): Likewise. Add clobber after the barrier.
8807 (lower_omp_taskgroup): New function.
8808 (lower_omp_for): Handle combined loops. Adjust
8809 lower_rec_input_clauses caller. Handle cancellation.
8810 (lower_depend_clauses): New function.
8811 (lower_omp_taskreg): Lower depend clauses. Adjust
8812 lower_rec_input_clauses caller. Add clobber after the call. Handle
8814 (lower_omp_target, lower_omp_teams): New functions.
8815 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
8816 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
8817 and GOMP_cancellation_point calls.
8818 (lower_omp): Fold stmts inside of target region.
8819 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
8820 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
8821 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
8822 (BT_FN_VOID_OMPFN_PTR_UINT,
8823 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
8824 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
8825 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
8826 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
8827 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
8828 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
8829 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
8830 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
8831 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
8832 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
8833 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
8834 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
8835 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
8836 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
8837 BUILT_IN_GOMP_PARALLEL_END.
8838 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
8839 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
8840 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
8841 GF_OMP_FOR_KIND_DISTRIBUTE.
8842 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
8843 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
8844 (dump_gimple_omp_return): Print lhs if it has any.
8845 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
8846 gimple_omp_atomic_seq_cst_p.
8847 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
8848 and GIMPLE_OMP_TEAMS.
8849 * langhooks.c (lhd_omp_mappable_type): New function.
8850 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
8851 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
8853 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
8854 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
8855 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
8856 (struct gimplify_omp_ctx): Add combined_loop field.
8857 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
8858 on stmts inside of target region.
8859 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
8860 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
8861 ORT_TARGET and ORT_TARGET_DATA.
8862 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
8864 (omp_notice_threadprivate_variable): Complain about threadprivate
8865 variables in target region.
8866 (omp_notice_variable): Complain about vars with non-mappable type
8867 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
8868 (omp_check_private): Ignore ORT_TARGET* regions.
8869 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
8870 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
8871 (find_combined_omp_for): New function.
8872 (gimplify_omp_for): Handle gimplification of combined loops.
8873 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
8875 (gimplify_omp_target_update): New function.
8876 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
8877 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
8878 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
8879 (gimplify_body): If fndecl has "omp declare target" attribute, add
8880 implicit ORT_TARGET context around it.
8881 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
8882 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
8883 * tree-nested.c (convert_nonlocal_reference_stmt,
8884 convert_local_reference_stmt, convert_gimple_call): Handle
8885 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
8886 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
8887 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
8888 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
8889 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
8890 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
8891 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
8892 BUILT_IN_GOMP_LOOP_END_CANCEL,
8893 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
8894 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
8895 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
8896 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
8897 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
8898 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
8899 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
8900 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
8901 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
8902 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
8903 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
8904 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
8905 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
8906 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
8907 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
8908 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
8909 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
8910 gimple_build_omp_teams): New functions.
8911 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
8912 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
8913 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
8914 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
8915 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
8916 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
8917 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
8918 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
8919 GF_OMP_ATOMIC_SEQ_CST): New.
8920 (gimple_build_omp_taskgroup, gimple_build_omp_target,
8921 gimple_build_omp_teams): New prototypes.
8922 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
8923 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
8924 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
8925 GIMPLE_OMP_SINGLE as end of range.
8926 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
8927 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
8928 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
8929 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
8930 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
8931 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
8932 gimple_omp_target_kind, gimple_omp_target_set_kind,
8933 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
8934 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
8935 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
8936 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
8937 gimple_omp_teams_set_clauses): New inlines.
8938 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
8939 and GIMPLE_OMP_TASKGROUP.
8940 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
8941 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
8942 enum omp_clause_proc_bind_kind): New.
8943 (union omp_clause_subcode): Add depend_kind, map_kind and
8944 proc_bind_kind fields.
8945 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
8946 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
8947 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
8948 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
8949 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
8951 2013-10-10 Teresa Johnson <tejohnson@google.com>
8953 * predict.c (tree_estimate_probability): Add new parameter
8954 for estimate_bb_frequencies.
8955 (estimate_bb_frequencies): Add new parameter to force estimation.
8956 (rebuild_frequencies): When max frequency in function is small,
8957 recompute counts from frequencies.
8958 * predict.h (estimate_bb_frequencies): New parameter.
8960 2013-10-10 David Malcolm <dmalcolm@redhat.com>
8962 * ipa-inline.c (ipa_inline): Fix leak of "order" when
8963 optimizations are disabled.
8965 2013-10-10 David Malcolm <dmalcolm@redhat.com>
8967 * coverage.c (coverage_finish): Fix leak of da_file_name.
8969 2013-10-10 Jan Hubicka <jh@suse.cz>
8971 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
8972 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
8975 2013-10-10 Jakub Jelinek <jakub@redhat.com>
8978 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
8979 if any labels are in FALLTHRU_BB, use a special label emitted
8980 immediately after the asm goto insn rather than label_rtx
8982 (expand_asm_stmt): Adjust caller.
8983 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
8984 edge if the last insn in predecessor is a jump with single successor,
8985 but it isn't simplejump_p.
8987 2013-10-10 Richard Biener <rguenther@suse.de>
8989 PR tree-optimization/58656
8990 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
8992 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
8994 * gimplify.c: Include expr.h and tm_p.h for targets with special
8995 va-arg padding requirements.
8997 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
8999 * tree-flow.h: Move some prototypes to gimple.h.
9000 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
9001 * gimple.h: Relocate some prototypes from tree-flow.h
9002 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
9004 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
9005 (build_va_arg_indirect_ref): Relocate and make static.
9006 (std_gimplify_va_arg_expr): Relocate here.
9007 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
9008 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
9010 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9012 * doc/md.texi: Document the mnemonic attribute.
9014 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9017 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
9018 (set_attr_alternative x ...) when searching for user defined
9021 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
9023 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
9025 2013-10-09 Easwaran Raman <eraman@google.com>
9027 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
9028 * cfgexpand.c (defer_stack_allocation): ...use here
9029 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
9031 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
9033 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
9034 (operand_equal_for_value_replacement): New function, extracted from
9035 value_replacement and enhanced to catch more cases.
9036 (value_replacement): Use operand_equal_for_value_replacement.
9038 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
9040 * loop-doloop.c (doloop_modify, doloop_optimize): Use
9041 get_max_loop_iterations.
9043 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9045 * config/arm/aarch-common.c (arm_early_load_addr_dep):
9046 Place comment above function.
9048 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
9050 * tree-flow.h: Remove all remaining prototypes, enums and structs that
9051 are not related to tree-cfg.c.
9052 * tree-ssa-address.h: New file. Relocate prototypes.
9053 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
9054 (addr_for_mem_ref): New. Combine call to get_address_description and
9055 return addr_for_mem_ref.
9056 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
9057 * tree-ssa-live.h: Adjust prototypes.
9058 * passes.c: Include tree-ssa-live.h.
9059 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
9060 * graphite.c (graphite_transform_loops): Make static.
9061 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
9062 make_pass_graphite, pass_data_graphite_transforms,
9063 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
9064 * ipa-pure-const.c (warn_function_noreturn): Make static.
9065 (execute_warn_function_noreturn, gate_warn_function_noreturn,
9066 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
9067 Relocate from tree-cfg.c
9068 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
9070 (execute_warn_function_noreturn, gate_warn_function_noreturn,
9071 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
9072 Move to ipa-pure-const.c.
9073 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
9074 Relocate from tree-optimize.c.
9075 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
9076 make_pass_fixup_cfg): Move to tree-cfg.c.
9077 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
9078 Relocate some prototypes.
9079 * tree-data-ref.h (tree_check_data_deps) Add prototype.
9080 * tree-dump.c (dump_function_to_file): Remove prototype.
9081 Add tree-flow.h to the include file.
9082 * tree-dump.h: Remove prototype.
9083 * tree-parloops.h: New File. Add prototypes.
9084 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
9085 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
9086 from tree-ssa-loop.c.
9087 * tree-predcom.c (run_tree_predictive_commoning,
9088 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
9089 Relocate here from tree-ssa-loop.c.
9090 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
9091 ssa_name_values.release ().
9092 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
9093 (ssa_name_values): Relocate from tree-flow.h.
9094 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
9095 * tree-ssa-loop.c (run_tree_predictive_commoning,
9096 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
9097 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
9098 make_pass_graphite, pass_data_graphite_transforms,
9099 make_pass_graphite_transforms, gate_tree_parallelize_loops,
9100 tree_parallelize_loops, pass_data_parallelize_loops,
9101 make_pass_parallelize_loops): Move to other files.
9102 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
9104 * tree.h: Remove prototypes from tree-address.c.
9106 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
9108 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
9109 (struct int_tree_map): Move to tree-hasher.h
9110 (SCALE, LABEL, PERCENT): Move to gimple.h
9111 * tree-flow-inline.h: Delete. Move functions to other files.
9112 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
9113 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
9114 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
9115 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
9116 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
9117 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
9118 * tree-hasher.h: Don't include tree-flow.h.
9119 (struct int_tree_map): Relocate from tree-flow.h.
9120 * tree-sra.c (contains_view_convert_expr_p): Relocate from
9121 tree-flow-inline.h and make static.
9122 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
9124 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
9125 tree-flow-inline.h and make static.
9126 * tree.h (is_global_var, may_be_aliased): Relocate from
9128 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
9129 * value-prof.c: No longer include tree-flow-inline.h.
9130 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
9132 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
9134 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
9135 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
9136 (enum move_pos): Move to tree-ssa-loop-im.h
9137 * cfgloop.h: Move some prototypes.
9138 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
9139 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
9140 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
9141 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
9142 (loop_containing_stmt): Relocate from tree-flow-inline.h.
9143 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
9144 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
9145 (enum move_pos): Relocate here.
9146 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
9148 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
9149 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
9150 make_pass_lim): Relocate here from tree-ssa-loop.c.
9151 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
9153 (loop_edge_to_cancel, unloop_loops): Make static.
9154 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
9155 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
9156 (tree_complete_unroll, gate_tree_complete_unroll,
9157 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
9158 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
9159 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
9160 * tree-ssa-loop-ivopts.c: Remove local prototypes.
9161 (stmt_invariant_in_loop_p): Remove unused function.
9162 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
9163 * tree-ssa-loop-manip.h: New file. Add prototypes.
9164 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
9165 (gcov_type_to_double_int): Move to cfgloop.h.
9166 (double_int_cmp, bound_index,
9167 estimate_numbers_of_iterations_loop): Make static.
9168 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
9169 (max_loop_iterations): Factor out get_max_loop_iterations.
9170 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
9172 * tree-ssa-loop-niter.h: New file. Add prototypes.
9173 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
9174 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
9175 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
9176 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
9177 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
9178 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
9179 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
9180 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
9181 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
9182 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
9183 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
9184 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
9185 pass_data_complete_unroll, make_pass_complete_unroll,
9186 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
9187 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
9188 tree-ssa-loop-ivcanon.c.
9189 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
9190 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
9191 tree-ssa-loop-prefetch.c.
9192 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
9194 (get_lsm_tmp_name): Relocate and add suffix parameter.
9195 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
9196 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
9197 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
9198 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
9199 (get_estimated_loop_iterations): Factor out accessor from
9200 estimated_loop_iterations in tree-ssa-loop-niter.c.
9201 (get_max_loop_iterations): Factor out accessor from
9202 _max_loop_iterations in tree-ssa-niter.c.
9203 * loop-unroll.c (decide_unroll_constant_iterations,
9204 decide_unroll_runtime_iterations, decide_peel_simple,
9205 decide_unroll_stupid): Use new get_* accessors.
9207 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
9209 PR tree-optimization/20318
9210 * doc/extend.texi (returns_nonnull): New function attribute.
9211 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
9213 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
9214 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
9216 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
9219 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
9220 false if both components are bitfields.
9222 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
9224 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
9225 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
9226 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
9227 * config/aarch64/aarch64.h
9228 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
9229 * config/aarch64/aarch64-simd-builtins.def
9230 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
9232 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
9234 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
9236 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
9238 * config/aarch64/arm_neon.h (vdiv_f64): Added.
9240 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
9242 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
9243 (vneg_f64): New intrinsic.
9244 (vneg_s8): Asm replaced with C.
9245 (vneg_s16): Likewise.
9246 (vneg_s32): Likewise.
9247 (vneg_s64): New intrinsic.
9248 (vnegq_f32): Asm replaced with C.
9249 (vnegq_f64): Likewise.
9250 (vnegq_s8): Likewise.
9251 (vnegq_s16): Likewise.
9252 (vnegq_s32): Likewise.
9253 (vnegq_s64): Likewise.
9255 2013-10-09 Renlin Li <Renlin.Li@arm.com>
9257 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
9259 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9261 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
9262 packed stack special handling.
9263 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
9264 back to fixed stack slots for FPRs saved due to stdarg.
9266 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9268 * config/s390/s390.c (s390_frame_info): Restructure function.
9270 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9272 * config/s390/s390.c (struct s390_frame_layout): New field
9274 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
9275 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
9276 regs_ever_clobbered to char*.
9277 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
9278 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
9279 (s390_register_info): Enable FPR save slots. Move/Copy some
9280 functionality into ...
9281 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
9282 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
9284 (s390_frame_info): Do gpr slot allocation here now. stdarg does
9285 not imply a stack frame.
9286 (s390_init_frame_layout): Remove variable clobbered_regs.
9287 (s390_update_register_info): Remove function.
9288 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
9289 cannot be used for register renaming.
9290 (s390_hard_regno_scratch_ok): New function.
9291 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
9292 (s390_initial_elimination_offset): Change offset calculation of
9293 the return address pointer.
9294 (save_gprs): Deal with only r6 being saved from the call-saved regs.
9295 (restore_gprs): Set frame related flag.
9296 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
9297 (s390_emit_prologue): Call s390_register_info instead of
9298 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
9299 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
9300 (s390_optimize_prologue): Call s390_optimize_register_info.
9301 Try to remove also FPR slot save/restore INSNs. Remove frame
9302 related flags from restore INSNs.
9304 2013-10-08 DJ Delorie <dj@redhat.com>
9306 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
9309 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
9310 avoid conflict with the MI use of %c.
9311 * config/rl78/rl78-real.md: change %c to %C throughout.
9312 * config/rl78/rl78-virt.md: Likewise.
9314 2013-10-08 Jan Hubicka <jh@suse.cz>
9316 * config/i386/i386.c (ix86_option_override_internal): Switch
9317 to SSE math for -ffast-math when target ISA supports SSE2.
9319 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
9321 * tree-flow.h: Remove some prototypes.
9322 * tree.h: Remove some protypes, add a couple.
9323 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
9324 using_eh_for_cleanups_p): Add interface routines for front ends.
9325 * tree-eh.h: New file. Add protoptyes.
9326 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
9327 (add_stmt_to_eh_lp_fn): Make static.
9328 (lower_try_finally): Use new using_eh_for_cleanups_p.
9329 * emit-rtl.c: Include tree-eh.h.
9330 * gimple.h: Include tree-eh.h.
9332 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
9334 PR tree-optimization/58480
9335 * tree-vrp.c (infer_nonnull_range): New function.
9336 (infer_value_range): Call infer_nonnull_range.
9338 2013-10-08 Dehao Chen <dehao@google.com>
9340 PR tree-optimization/58619
9341 * tree-inline.c (copy_phis_for_bb): Combine location data
9344 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9347 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
9348 RTX_FRAME_RELATED_P on INSN.
9350 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9352 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
9353 (altivec_expand_vec_perm_const): Call it.
9355 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9357 * config/rs6000/vector.md (mov<mode>): Emit permuted move
9358 sequences for LE VSX loads and stores at expand time.
9359 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
9361 * config/rs6000/rs6000.c (rs6000_const_vec): New.
9362 (rs6000_gen_le_vsx_permute): New.
9363 (rs6000_gen_le_vsx_load): New.
9364 (rs6000_gen_le_vsx_store): New.
9365 (rs6000_gen_le_vsx_move): New.
9366 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
9367 (*vsx_le_perm_load_v4si): New.
9368 (*vsx_le_perm_load_v8hi): New.
9369 (*vsx_le_perm_load_v16qi): New.
9370 (*vsx_le_perm_store_v2di): New.
9371 (*vsx_le_perm_store_v4si): New.
9372 (*vsx_le_perm_store_v8hi): New.
9373 (*vsx_le_perm_store_v16qi): New.
9374 (*vsx_xxpermdi2_le_<mode>): New.
9375 (*vsx_xxpermdi4_le_<mode>): New.
9376 (*vsx_xxpermdi8_le_V8HI): New.
9377 (*vsx_xxpermdi16_le_V16QI): New.
9378 (*vsx_lxvd2x2_le_<mode>): New.
9379 (*vsx_lxvd2x4_le_<mode>): New.
9380 (*vsx_lxvd2x8_le_V8HI): New.
9381 (*vsx_lxvd2x16_le_V16QI): New.
9382 (*vsx_stxvd2x2_le_<mode>): New.
9383 (*vsx_stxvd2x4_le_<mode>): New.
9384 (*vsx_stxvd2x8_le_V8HI): New.
9385 (*vsx_stxvd2x16_le_V16QI): New.
9387 2013-10-07 Renlin Li <Renlin.Li@arm.com>
9389 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
9391 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9393 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
9394 loop to work also for 31bit ABI.
9395 Save the stack pointer for frame_size > 0.
9397 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9399 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
9400 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
9401 constraint letters from expanders.
9402 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
9403 retry count to general_operand.
9404 ("tabort"): Give operand 0 a mode.
9405 ("tabort_1"): Add mode and constraint letter for operand 0.
9406 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
9408 2013-10-04 Jeff Law <law@redhat.com>
9410 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
9412 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
9414 (thread_across_edge): Here. Call it.
9416 2013-10-04 Cary Coutant <ccoutant@google.com>
9418 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
9419 discarding a location list expression (or a piece of one).
9421 2013-10-03 Jan Hubicka <jh@suse.cz>
9423 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
9424 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
9425 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
9427 2013-10-03 Jan Hubicka <jh@suse.cz>
9429 * config/i386/i386.c (ix86_option_override_internal): Do not enable
9430 accumulate-outgoing-args when producing unwind info.
9432 2013-10-03 Wei Mi <wmi@google.com>
9434 * lra-constraints.c (insert_move_for_subreg): New function
9435 extracted from simplify_operand_subreg.
9436 (simplify_operand_subreg): Add reload for paradoxical subreg.
9438 2013-10-03 Rong Xu <xur@google.com>
9440 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
9441 the candidate of builtin_expect such that we should fix the
9442 size/time estimation.
9443 (estimate_function_body_sizes): Do the acutally size/time fix-up
9446 2013-10-03 Rong Xu <xur@google.com>
9448 * predict.c (tree_predict_by_opcode): Get the probability
9449 for builtin_expect from param builtin_expect_probability.
9450 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
9451 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
9452 * doc/invoke.texi: Add documentation for builtin-expect-probability.
9454 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
9457 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
9458 * calls.c (alloca_call_p): Use get_callee_fndecl.
9459 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
9460 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
9462 (vrp_visit_stmt): Remove duplicated code.
9464 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
9466 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
9467 ceildf2, btruncdf2, instead of vsx_* name.
9469 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
9470 iterators to only do V2DF and V4SF here. Move the DF code to
9471 rs6000.md where it is combined with SF mode. Replace <VSv> with
9472 just 'v' since only vector operations are handled with these insns
9473 after moving the DF support to rs6000.md.
9474 (vsx_sub<mode>3): Likewise.
9475 (vsx_mul<mode>3): Likewise.
9476 (vsx_div<mode>3): Likewise.
9477 (vsx_fre<mode>2): Likewise.
9478 (vsx_neg<mode>2): Likewise.
9479 (vsx_abs<mode>2): Likewise.
9480 (vsx_nabs<mode>2): Likewise.
9481 (vsx_smax<mode>3): Likewise.
9482 (vsx_smin<mode>3): Likewise.
9483 (vsx_sqrt<mode>2): Likewise.
9484 (vsx_rsqrte<mode>2): Likewise.
9485 (vsx_fms<mode>4): Likewise.
9486 (vsx_nfma<mode>4): Likewise.
9487 (vsx_copysign<mode>3): Likewise.
9488 (vsx_btrunc<mode>2): Likewise.
9489 (vsx_floor<mode>2): Likewise.
9490 (vsx_ceil<mode>2): Likewise.
9491 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
9492 (vsx_sminsf3): Likewise.
9493 (vsx_fmadf4): Likewise.
9494 (vsx_fmsdf4): Likewise.
9495 (vsx_nfmadf4): Likewise.
9496 (vsx_nfmsdf4): Likewise.
9497 (vsx_cmpdf_internal1): Likewise.
9499 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
9500 simpler to select whether a target has SPE or traditional floating
9501 point support in iterators.
9502 (TARGET_DF_SPE): Likewise.
9503 (TARGET_SF_FPR): Likewise.
9504 (TARGET_DF_FPR): Likewise.
9505 (TARGET_SF_INSN): Macros to say whether floating point support
9506 exists for a given operation for expanders.
9507 (TARGET_DF_INSN): Likewise.
9509 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
9510 combining of SF/DF mode operations, using both traditional and VSX
9518 (abs<mode>2): Combine SF/DF modes using traditional floating point
9519 instructions. Add support for using the upper DF registers with
9520 VSX support, and SF registers with power8-vector support. Update
9521 expanders for operations supported by both the SPE and traditional
9522 floating point units.
9523 (abs<mode>2_fpr): Likewise.
9524 (nabs<mode>2): Likewise.
9525 (nabs<mode>2_fpr): Likewise.
9526 (neg<mode>2): Likewise.
9527 (neg<mode>2_fpr): Likewise.
9528 (add<mode>3): Likewise.
9529 (add<mode>3_fpr): Likewise.
9530 (sub<mode>3): Likewise.
9531 (sub<mode>3_fpr): Likewise.
9532 (mul<mode>3): Likewise.
9533 (mul<mode>3_fpr): Likewise.
9534 (div<mode>3): Likewise.
9535 (div<mode>3_fpr): Likewise.
9536 (sqrt<mode>3): Likewise.
9537 (sqrt<mode>3_fpr): Likewise.
9538 (fre<Fs>): Likewise.
9539 (rsqrt<mode>2): Likewise.
9540 (cmp<mode>_fpr): Likewise.
9541 (smax<mode>3): Likewise.
9542 (smin<mode>3): Likewise.
9543 (smax<mode>3_vsx): Likewise.
9544 (smin<mode>3_vsx): Likewise.
9545 (negsf2): Delete SF operations that are merged with DF.
9552 (fmasf4_fpr): Likewise.
9553 (fmssf4_fpr): Likewise.
9554 (nfmasf4_fpr): Likewise.
9555 (nfmssf4_fpr): Likewise.
9556 (sqrtsf2): Likewise.
9557 (rsqrtsf_internal1): Likewise.
9558 (smaxsf3): Likewise.
9559 (sminsf3): Likewise.
9560 (cmpsf_internal1): Likewise.
9561 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
9562 (negdf2): Delete DF operations that are merged with SF.
9564 (nabsdf2): Likewise.
9570 (rsqrtdf_internal1): Likewise.
9571 (fmadf4_fpr): Likewise.
9572 (fmsdf4_fpr): Likewise.
9573 (nfmadf4_fpr): Likewise.
9574 (nfmsdf4_fpr): Likewise.
9575 (sqrtdf2): Likewise.
9576 (smaxdf3): Likewise.
9577 (smindf3): Likewise.
9578 (cmpdf_internal1): Likewise.
9579 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
9580 (btrunc<mode>2): Delete separate expander, and combine with the
9581 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
9582 (btrunc<mode>2_fpr): Likewise.
9583 (ceil<mode>2): Likewise.
9584 (ceil<mode>2_fpr): Likewise.
9585 (floor<mode>2): Likewise.
9586 (floor<mode>2_fpr): Likewise.
9587 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
9588 Add support for using the upper registers with VSX and
9589 power8-vector. Move insns to be closer to the define_expands. On
9590 VSX systems, prefer the traditional form of FMA over the VSX
9591 version, since the traditional form allows the target not to
9592 overlap with the inputs.
9593 (fms<mode>4_fpr): Likewise.
9594 (nfma<mode>4_fpr): Likewise.
9595 (nfms<mode>4_fpr): Likewise.
9597 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9598 Richard Earnshaw <richard.earnshaw@arm.com>
9600 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
9601 (struct mult_cost_table): Likewise.
9602 (struct mem_cost_table): Likewise.
9603 (struct fp_cost_table): Likewise.
9604 (struct vector_cost_table): Likewise.
9605 (cpu_cost_table): Likewise.
9606 * config/arm/arm.opt (mold-rts-costs): New option.
9607 (mnew-generic-costs): Likewise.
9608 * config/arm/arm.c (generic_extra_costs): New table.
9609 (cortexa15_extra_costs): Likewise.
9610 (arm_slowmul_tune): Use NULL as new costs.
9611 (arm_fastmul_tune): Likewise.
9612 (arm_strongarm_tune): Likewise.
9613 (arm_xscale_tune): Likewise.
9614 (arm_9e_tune): Likewise.
9615 (arm_v6t2_tune): Likewise.
9616 (arm_cortex_a5_tune): Likewise.
9617 (arm_cortex_a9_tune): Likewise.
9618 (arm_v6m_tune): Likewise.
9619 (arm_fa726te_tune): Likewise.
9620 (arm_cortex_a15_tune): Use cortex15_extra_costs.
9621 (arm_cortex_tune): Use generict_extra_costs.
9622 (shifter_op_p): New function.
9623 (arm_unspec_cost): Likewise.
9624 (LIBCALL_COST): Define.
9625 (arm_new_rtx_costs): New function.
9626 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
9627 table is available. Use old costs otherwise unless mnew-generic-costs
9629 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
9630 (cpu_cost_table): Declare.
9632 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
9635 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
9636 (*subs_mul_imm_<mode>)
9637 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
9638 (*sub_<shift>_<mode>)
9639 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
9640 Remove k constraint.
9642 2013-10-03 Ian Bolton <ian.bolton@arm.com>
9644 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
9646 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
9648 2013-10-02 Teresa Johnson <tejohnson@google.com>
9650 * predict.c (probably_never_executed): New function.
9651 (probably_never_executed_bb_p): Invoke probably_never_executed.
9652 (probably_never_executed_edge_p): Ditto.
9653 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
9654 Treat profile insanities conservatively.
9656 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
9658 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
9660 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
9662 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
9663 use it. Use smaller increase for scratch. Don't increase reject
9664 for early clobber scratch.
9665 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
9666 setting eliminated regs except setting fp from hfp.
9667 (lra_eliminate): Check lra_insn_recog_data on NULL.
9669 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9672 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
9673 setting -mvsx-timode by default until the underlying problem is fixed.
9674 (RS6000_CPU, power7 defaults): Likewise.
9676 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
9678 * config/x-linux (host-linux.o): Remove header dependencies.
9679 Use $(COMPILE) and $(POSTCOMPILE).
9680 * config/t-linux-android (linux-android.o): Ditto.
9682 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
9684 * Makefile.in (expmed.o-warn): Remove.
9686 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
9688 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
9689 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
9691 2013-10-02 Teresa Johnson <tejohnson@google.com>
9693 * dojump.c (do_jump_1): Divide probability between
9694 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
9696 2013-10-02 Tom Tromey <tromey@redhat.com>
9698 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
9700 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
9702 * tree-flow.h: Remove some prototypes.
9703 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
9704 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
9705 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
9706 mark_virtual_phi_result_for_renaming): Relocate here.
9707 * tree-into-ssa.h: Add prototypes.
9708 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
9709 single_pred_before_succ_order.
9710 (blocks_in_phiopt_order): Rename and move to cfganal.c.
9711 (nonfreeing_call_p) Move to gimple.c.
9712 * cfganal.c (single_pred_before_succ_order): Move and renamed from
9714 * basic-block.h (single_pred_before_succ_order): Add prototype.
9715 * gimple.c (nonfreeing_call_p): Relocate here.
9716 * gimple.h: Add prototype.
9717 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
9718 * tree-ssa-dom.h: New file. Relocate prototypes here.
9719 * tree-ssa.h: Include tree-ssa-dom.h.
9721 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
9723 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
9724 Use $(COMPILE) and $(POSTCOMPILE).
9726 * config/alpha/x-alpha (driver-alpha.o): Ditto.
9728 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
9730 * tree-flow.h: Remove some prototypes.
9731 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
9732 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
9733 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
9734 propagate_tree_value*): Move from here to...
9735 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
9736 propagate_tree_value*): Relocate here.
9737 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
9738 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
9739 * gimple-fold.c: Remove gimple-fold.h from include list.
9740 * tree-vrp.c: Remove gimple-fold.h from include list.
9741 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
9742 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
9743 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
9744 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
9745 * sese.c: Add tree-ssa-propagate.h to include list.
9747 2013-10-02 Richard Biener <rguenther@suse.de>
9749 * tree-loop-distribution.c: Include tree-vectorizer.h for
9751 (enum partition_kind): Remove PKIND_REDUCTION.
9752 (struct partition_s): Remove has_writes member, add reduction_p member.
9753 (partition_alloc): Adjust.
9754 (partition_builtin_p): Likewise.
9755 (partition_has_writes): Remove.
9756 (partition_reduction_p): New function.
9757 (partition_merge_into): Likewise.
9758 (generate_code_for_partition): Commonize builtin partition
9760 (rdg_cannot_recompute_vertex_p): Remove.
9761 (already_processed_vertex_p): Likewise.
9762 (rdg_flag_vertex): Do not set has_writes.
9763 (classify_partition): Adjust.
9764 (rdg_build_partitions): Do not set has_writes, treat all
9765 partitions as useful.
9766 (distribute_loop): Record number of library calls generated. Adjust.
9767 (tree_loop_distribution): Report number of loops and library
9768 calls generated as opt-info.
9770 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
9772 * tree-flow.h: Include new .h files. Move prototypes.
9773 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
9774 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
9775 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
9776 * tree-pretty-print.h: Add prototypes from tree-flow.h.
9777 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
9778 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
9779 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
9780 * tree.h (get_ref_base_and_extent): Move prototype out.
9781 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
9783 * gimple-low.h: New File. Add prototypes from tree-flow.h.
9784 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
9785 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
9786 * tree-scalar-evolution.c: Include tree.h.
9787 * sese.c: Include tree.h.
9788 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
9789 * dwarf2out.c: Include tree-dfa.h.
9790 * tree-chrec.c: Include tree.h.
9791 * tree-data-ref.c: Include tree.h.
9793 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
9795 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
9798 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9800 * config/t-sol2 (sol2-c.o): Remove header dependencies.
9801 Use $(COMPILE) and $(POSTCOMPILE).
9802 (sol2-cxx.o): Likewise.
9803 (sol2-stubs.o): Likewise.
9805 * config/x-solaris (host-solaris.o): Likewise.
9807 * config/sparc/t-sparc (sparc.o): Remove.
9808 (sparc-c.o): Remove header dependencies.
9809 Use $(COMPILE) and $(POSTCOMPILE).
9810 * config/sparc/x-sparc: Likewise.
9812 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
9814 * config/arc/arc-opts.h: Add 2013 to Copyright years.
9815 * config/arc/arc700.md: Likewise.
9816 * config/arc/arc-modes.def: Likewise.
9817 * config/arc/arc-simd.h: Likewise.
9818 * config/arc/t-arc-uClibc: Likewise.
9819 * config/arc/t-arc-newlib: Likewise.
9821 2013-10-02 Renlin Li <renlin.li@arm.com>
9823 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
9825 (aarch64_expand_epilogue): Likewise.
9827 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9828 Yufeng Zhang <yufeng.zhang@arm.com>
9830 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
9832 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
9833 'base_in' represent a conversion and legal_cast_p_1 holds; set
9834 'base_in' with the returned value from get_unwidened.
9836 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9838 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
9839 plus_constant is not used.
9841 2013-10-01 Wei Mi <wmi@google.com>
9843 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
9844 * config/i386/i386.md: Add define_peephole2 to
9845 break partial reg stall for cvtss2sd/cvtsd2ss.
9847 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
9849 * config/arc/arc.c (pass_arc_ifcvt::clone):
9850 Update for ctxt_ -> m_ctxt change.
9852 2013-10-01 Jeff Law <law@redhat.com>
9854 * tree-ssa-threadupdate.c (struct redirection_data): Delete
9855 outgoing_edge and intermediate_edge fields. Instead store the path.
9856 (redirection_data::hash): Hash on the last edge's destination index.
9857 (redirection_data::equal): Check the entire thread path.
9858 (lookup_redirectio_data): Corresponding changes.
9859 (create_edge_and_update_destination_phis): Likewise.
9860 (thread_single_edge): Likewise.
9862 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
9863 Diego Novillo <dnovillo@google.com>
9865 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
9866 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
9867 (vld32wh_insn, vld32wl_insn): Delete commented-out old
9868 versions of these patterns.
9870 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
9871 (__builtin_arc_aligned): Likewise.
9873 * config/arc/arc.md: Expand adc_0 comment stating the intended
9874 purpose and why it isn't ready.
9875 Replace commented out call_value_via_label_mixed with a
9876 plain comment about bl_s.
9878 * config/arc/arc.c (stdio.h): Don't include directly.
9879 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
9880 Remove if (1) condition.
9881 (arc_encode_section_info): Fix comment.
9883 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
9885 * config/arc/arc.c (arc_conditional_register_usage):
9886 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
9887 Also set reg_alloc_order for DMA config regs.
9889 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
9890 Jeremy Bennett <jeremy.bennett@embecosm.com>
9892 * doc/install.texi (--with-cpu): Mention ARC.
9893 (arc-*-elf32): New paragraph.
9894 (arc-linux-uclibc): Likewise.
9895 * doc/md.texi (Machine Constraints): Add ARC part.
9896 * doc/invoke.texi: (menu): Add ARC Options.
9897 (Machine Dependent Options) <ARC Options>: Add synopsis.
9898 (node ARC Options): Add.
9899 * doc/extend.texi (long_call / short_call attribute): Add ARC.
9900 (ARC Built-in Functions): New section defining
9901 generic ARC built-in functions.
9902 (ARC SIMD Built-in Functions): New section defining SIMD specific
9904 (Declaring Attributes of Functions): Extended
9905 description of short_call and long_call attributes for ARC and
9906 added index entries.
9908 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
9909 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
9910 Joern Rennecke <joern.rennecke@embecosm.com>
9911 Muhammad Khurram Riaz <khurram.riaz@arc.com>
9912 Brendan Kehoe <brendan@zen.org>
9913 Michael Eager <eager@eagercon.com>
9914 Simon Cook <simon.cook@embecosm.com>
9915 Jeremy Bennett <jeremy.bennett@embecosm.com>
9917 * config/arc, common/config/arc: New directories.
9919 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
9920 Brendan Kehoe <brendan@zen.org>
9921 Simon Cook <simon.cook@embecosm.com>
9923 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
9925 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
9927 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
9928 * tree-ssa-coalesce.h: New. Move prototype to here.
9929 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
9930 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
9931 (gimple_can_coalesce_p): Move to...
9932 * gimple.c (gimple_can_coalesce_p): Here.
9934 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
9936 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
9937 (dump_decl_set): Move to gimple.c.
9938 * gimple.h: Don't include tree-ssa-operands.h.
9939 (dump_decl_set): Add prototype.
9940 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
9941 Move to gimple-ssa.h.
9942 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
9943 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
9944 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
9945 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
9946 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
9948 (dump_decl_set): Relocate here.
9949 * gimple-ssa.h: New file.
9950 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
9951 Relocate from gimple.h.
9952 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
9953 * tree-ssa-operands.c (swap_ssa_operands): Rename from
9954 swap_tree_operands and remove non-ssa path.
9955 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
9956 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
9958 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
9959 vect_is_simple_reduction_1): Use swap_ssa_operands.
9960 * tree-flow.h: Move various prototypes to tree-phinodes.h.
9961 (enum need_phi_state): Move to tree-into-ssa.c.
9962 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
9963 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
9964 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
9965 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
9966 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
9967 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
9968 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
9969 num_imm_uses): Move to ssa-iterators.h.
9970 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
9971 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
9973 (op_iter_done, op_iter_next_def, op_iter_next_tree,
9974 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
9975 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
9976 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
9977 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
9978 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
9979 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
9980 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
9981 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
9982 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
9983 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
9984 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
9985 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
9986 (set_phi_nodes): Move to tree-phinodes.h.
9987 * tree-ssa-operands.h (enum ssa_op_iter_type,
9988 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
9989 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
9990 (dump_decl_set): Remove prototype.
9991 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
9992 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
9993 (set_phi_nodes): Relocate from tree-flow-inline.h.
9994 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
9996 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
9997 include list. Temporarily add gimple.h to include list.
9998 * ssa-iterators.h: New file.
9999 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
10000 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
10001 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
10002 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
10003 Relocate from tree-ssa-operands.h.
10004 (delink_imm_use, link_imm_use_to_list, link_imm_use,
10005 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
10006 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
10007 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
10008 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
10009 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
10010 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
10011 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
10012 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
10013 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
10014 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
10015 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
10016 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
10017 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
10018 Relocate from tree-flow-inline.h.
10019 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
10021 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
10024 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
10025 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
10026 Insert '\t' to output template.
10027 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
10028 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
10029 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
10030 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
10032 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
10034 * doc/install.texi (Host/target specific installation notes for GCC):
10035 Put @anchor before @heading.
10036 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
10037 Use @email for email addresses.
10039 2013-10-01 Jeff Law <law@redhat.com>
10041 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
10042 a vec. Only delete the path if we create one without successfully
10043 registering a jump thread.
10044 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
10046 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
10047 (paths): New vector of jump threading paths.
10048 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
10049 (THREAD_PATH): New accessor macro for the entire thread path.
10050 (lookup_redirection_data): Get intermediate and final outgoing edge
10051 from the thread path.
10052 (create_edge_and_update_destination_phis): Copy the threading path.
10053 (ssa_fix_duplicate_block_edges): Get edges and block types from the
10054 jump threading path.
10055 (ssa_redirect_edges): Get edges and block types from the jump threading
10056 path. Free the path vector.
10057 (thread_block): Get edges from the jump threading path. Look at the
10058 entire path to see if we thread to a loop exit. If we cancel a jump
10059 thread request, then free the path vector.
10060 (thread_single_edge): Get edges and block types from the jump threading
10061 path. Free the path vector.
10062 (thread_through_loop_header): Get edges and block types from the jump
10063 threading path. Free the path vector.
10064 (mark_threaded_blocks): Iterate over the vector of paths and store
10065 the path on the appropriate edge. Get edges and block types from the
10066 jump threading path.
10067 (mark_threaded_blocks): Get edges and block types from the jump
10068 threading path. Free the path vector.
10069 (thread_through_all_blocks): Use the vector of paths rather than
10070 a vector of 3-edge sets.
10071 (register_jump_thread): Accept pointer to a path vector rather
10072 than the path vector itself. Store the path vector for later use.
10075 2013-10-01 Jakub Jelinek <jakub@redhat.com>
10076 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10079 * config/s390/s390.c (s390_split_branches): Modify check for table
10081 (s390_chunkify_start): Rearrange table jump insn check in order to
10082 deal with compare and branch insns correctly.
10084 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
10088 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
10089 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
10090 define_insn_and_split.
10091 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
10092 (shiftsi3_compare): New pattern.
10093 (rrx): New pattern.
10094 * config/arm/unspecs.md (UNSPEC_RRX): New.
10096 2013-10-01 Alan Modra <amodra@gmail.com>
10098 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
10099 casing inout operands.
10101 2013-10-01 Richard Biener <rguenther@suse.de>
10103 PR tree-optimization/58553
10104 * tree-loop-distribution.c (struct partition_s): Add niter member.
10105 (classify_partition): Populate niter member for the partition
10106 and properly identify whether the relevant store happens before
10107 or after the loop exit.
10108 (generate_memset_builtin): Use niter member from the partition.
10109 (generate_memcpy_builtin): Likewise.
10111 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
10113 * vec.h (vec_prefix, vec): Prefix member names with "m_".
10114 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
10116 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
10118 * basic-block.h (edge_list): Prefix member names with "m_".
10119 * context.h (context): Likewise.
10120 * domwalk.h (dom_walker): Likewise.
10121 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
10122 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
10123 * hash-table.h (hash_table): Likewise.
10124 * machmode.h (bit_field_mode_iterator): Likewise.
10125 * pass_manager.h (pass_list): Likewise.
10126 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
10127 * tree-pass.h (pass_data): Likewise.
10128 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
10129 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
10130 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
10131 * asan.c (pass_data_asan): Update accordingly.
10132 * cfganal.c (control_dependences::find_control_dependence): Likewise.
10133 (control_dependences::control_dependences): Likewise.
10134 (control_dependences::~control_dependences): Likewise.
10135 (control_dependences::~control_dependences): Likewise.
10136 (control_dependences::get_edges_dependent_on): Likewise.
10137 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
10138 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
10139 * context.c (gcc::context::context): Likewise.
10140 * cprop.c (pass_rtl_cprop::clone): Likewise.
10141 * domwalk.c (dom_walker::walk): Likewise.
10142 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
10143 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
10144 * mode-switching.c (pass_mode_switching::clone): Likewise.
10145 * passes.c (opt_pass::opt_pass): Likewise.
10146 (pass_manager::pass_manager): Likewise.
10147 * predict.c (pass_strip_predict_hints::clone): Likewise.
10148 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
10149 (pass_split_all_insns::clone): Likewise.
10150 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
10152 (bit_field_mode_iterator::next_mode): Likewise.
10153 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
10154 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
10155 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
10156 * tree-complex.c (pass_lower_complex::clone): Likewise.
10157 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
10158 * tree-object-size.c (pass_object_sizes::clone): Likewise.
10159 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
10160 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
10161 (pass_fold_builtins::clone): Likewise.
10162 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
10163 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
10164 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
10165 (pass_cd_dce::clone): Likewise.
10166 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
10167 (pass_phi_only_cprop::clone): Likewise.
10168 * tree-ssa-dse.c (pass_dse::clone): Likewise.
10169 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
10170 * tree-ssa-loop.c (pass_lim::clone): Likewise.
10171 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
10172 * tree-ssa-pre.c (pass_fre::clone): Likewise.
10173 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
10174 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
10175 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
10176 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
10177 * tree-vrp.c (pass_vrp::clone): Likewise.
10178 * tsan.c (pass_tsan::clone): Likewise.
10180 2013-09-30 Jakub Jelinek <jakub@redhat.com>
10182 PR middle-end/58564
10183 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
10184 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
10186 PR middle-end/58564
10187 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
10188 optimization, punt if sign_bit_p looked through any zero extension.
10190 2013-09-30 Teresa Johnson <tejohnson@google.com>
10192 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
10193 Update redirected out edge count in joiner case.
10194 (ssa_redirect_edges): Common the joiner and non-joiner cases
10195 so that joiner case gets profile updates.
10197 2013-09-30 Richard Biener <rguenther@suse.de>
10199 PR tree-optimization/58554
10200 * tree-loop-distribution.c (classify_partition): Require
10201 unconditionally executed stores for memcpy and memset recognition.
10202 (tree_loop_distribution): Calculate dominance info.
10204 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
10206 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
10207 (NO_PROFILE_COUNTERS): Likewise.
10208 (PROFILE_HOOK): Likewise.
10209 (FUNCTION_PROFILER): Likewise.
10210 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
10212 2013-09-30 Iain Sandoe <iain@codesourcery.com>
10214 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
10215 calls and defines in TARGET_MACHO conditional.
10216 (load_macho_picbase_di): Likewise.
10217 (reload_macho_picbase): Likewise.
10218 (reload_macho_picbase_si): Likewise.
10219 (reload_macho_picbase_di): Likewise.
10220 (nonlocal_goto_receiver): Likewise.
10222 2013-09-30 Nick Clifton <nickc@redhat.com>
10224 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
10225 that use the MSP430X ISA.
10226 (msp430_option_override): Scan -mmcu command line option for any
10227 MCU name that supports the MSP430X ISA.
10228 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
10229 -mmcu options which enable the MSP430X ISA.
10231 2013-09-30 Richard Biener <rguenther@suse.de>
10233 PR middle-end/58532
10234 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
10235 before looking for setjmp-like calls.
10237 2013-09-29 Iain Sandoe <iain@codesourcery.com>
10240 * config/darwin-protos.h (machopic_get_function_picbase): New.
10241 * config/darwin.c (machopic_get_function_picbase): New.
10242 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
10243 label for a new func. (load_macho_picbase_di): Likewise.
10244 (reload_macho_picbase): New expand.
10245 (reload_macho_picbase_si): New insn.
10246 (reload_macho_picbase_di): New insn.
10247 (nonlocal_goto_receiver): New define and split.
10248 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
10249 (unspecv enum): Add UNSPECV_NLGR.
10251 2013-09-29 Iain Sandoe <iain@codesourcery.com>
10253 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
10254 that altivec registers are correctly sized on Darwin.
10256 2013-09-29 Iain Sandoe <iain@codesourcery.com>
10258 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
10259 darwin-driver.o): Use COMPILE and POSTCOMPILE.
10260 * config/x-darwin (host-darwin.o): Likewise.
10261 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
10262 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
10263 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
10265 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
10267 * doc/invoke.texi: Fix usage of @tie{} command.
10269 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
10271 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
10273 2013-09-28 Jan Hubicka <jh@suse.cz>
10275 * config/i386/x86-tune.def: Add documentation for each of the options;
10278 2013-09-28 Jan Hubicka <jh@suse.cz>
10280 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
10282 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
10283 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
10284 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
10285 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
10286 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
10288 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
10290 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
10291 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
10292 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
10293 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
10294 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
10295 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
10296 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
10297 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
10298 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
10299 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
10300 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
10301 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
10302 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
10303 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
10304 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
10305 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
10306 gimple.h, godump.c, graphite-clast-to-gimple.c,
10307 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
10308 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
10309 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
10310 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
10311 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
10312 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
10313 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
10314 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
10315 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
10316 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
10317 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
10318 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
10319 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
10320 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
10321 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
10322 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
10323 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
10324 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
10325 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
10326 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
10327 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
10328 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
10329 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
10330 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
10331 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
10332 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10333 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
10334 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
10335 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
10336 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
10337 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
10338 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
10339 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
10340 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
10341 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
10342 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
10343 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
10344 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
10345 whitespace before "(".
10347 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
10349 * expr.h (extract_bit_field): Remove packedp parameter.
10350 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
10351 from forward declaration.
10352 (store_split_bit_field): Remove packedp arg from calls to
10353 extract_fixed_bit_field.
10354 (extract_bit_field_1): Remove packedp parameter and packedp
10355 argument from recursive calls and calls to extract_fixed_bit_field.
10356 (extract_bit_field): Remove packedp parameter and corresponding
10357 arg to extract_bit_field_1.
10358 (extract_fixed_bit_field): Remove packedp parameter. Remove code
10360 (extract_split_bit_field): Remove packedp arg from call to
10361 extract_fixed_bit_field.
10362 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
10363 (copy_blkmode_from_reg): Likewise.
10364 (copy_blkmode_to_reg): Likewise.
10365 (read_complex_part): Likewise.
10366 (store_field): Likewise.
10367 (expand_expr_real_1): Likewise.
10368 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
10369 to extract_bit_field.
10370 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
10371 call to extract_bit_field.
10372 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
10373 call to extract_bit_field.
10374 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
10375 and special packedp behavior from -fstrict-volatile-bitfields
10378 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10380 * lra-eliminations.c (init_elim_table): Guard value_p.
10382 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
10384 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
10385 DFmode, DImode, and SFmode in the upper VSX registers based on the
10386 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
10387 if -mpower8-vector. Combine -mvsx-timode handling with the rest
10388 of the VSX register handling.
10390 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
10391 (f32_sv): Likewise.
10392 (zero_extendsidi2_lfiwzx): Add support for loading into the
10393 Altivec registers with -mpower8-vector. Use wu/wv constraints to
10394 only do VSX memory options on Altivec registers.
10395 (extendsidi2_lfiwax): Likewise.
10396 (extendsfdf2_fpr): Likewise.
10397 (mov<mode>_hardfloat, SF/SD modes): Likewise.
10398 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
10399 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
10400 (movdi_internal64): Likewise.
10402 2013-09-27 Xinliang David Li <davidxl@google.com>
10404 * opts.c (finish_options): Adjust parameters
10405 according to vect cost model.
10406 (common_handle_option): Set dynamic vect cost
10408 targhooks.c (default_add_stmt_cost): Compute stmt cost
10410 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
10411 Use helper function.
10412 * tree-vectorizer.h (unlimited_cost_model): New function.
10413 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
10414 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
10416 (vect_enhance_data_refs_alignment): Ditto.
10417 * flag-types.h: New enum.
10418 * common/config/i386/i386-common.c (ix86_option_init_struct):
10419 No need to initialize vect_cost_model flag.
10420 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
10423 2013-09-27 Diego Novillo <dnovillo@google.com>
10425 * gimple.h (enum ssa_mode): Remove.
10427 2013-09-27 Paulo Matos <pmatos@broadcom.com>
10429 * cfgloop.h (number_of_loops): Fix typo in check for null.
10431 2013-09-27 Jakub Jelinek <jakub@redhat.com>
10433 PR middle-end/58551
10434 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
10435 are children of outermost saved_cfun's loop, and set it up to
10436 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
10437 if loop != loop0 and SESE region contains bbs that belong to loop0.
10439 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
10441 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
10442 (binary_scale_code_p, get_base_term, get_index_term): New functions.
10443 (set_address_segment, set_address_base, set_address_index)
10444 (set_address_disp): Accept the argument unconditionally.
10445 (baseness): Remove must_be_base_p and must_be_index_p checks.
10446 (decompose_normal_address): Classify as much as possible in the
10449 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
10451 * cse.c (count_reg_usage): Handle INT_LIST.
10452 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
10453 * reginfo.c (reg_scan_mark_refs): Likewise.
10454 * reload1.c (eliminate_regs_1): Likewise.
10456 2013-09-27 Iain Sandoe <iain@codesourcery.com>
10458 PR middle-end/58547
10459 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
10462 2013-09-27 Richard Biener <rguenther@suse.de>
10464 PR tree-optimization/58459
10465 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
10466 restriction not propagating into loops.
10468 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
10470 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
10471 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
10472 * doc/tree-ssa.texi (Walking use-def chains): Delete.
10474 2013-09-26 Richard Biener <rguenther@suse.de>
10476 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
10478 2013-09-26 Richard Biener <rguenther@suse.de>
10480 * alias.h (component_uses_parent_alias_set): Rename to ...
10481 (component_uses_parent_alias_set_from): ... this.
10482 * alias.c (component_uses_parent_alias_set): Rename to ...
10483 (component_uses_parent_alias_set_from): ... this and return
10484 the desired parent.
10485 (reference_alias_ptr_type_1): Use the result from
10486 component_uses_parent_alias_set_from instead of stripping
10487 components one at a time.
10488 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
10490 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
10492 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
10493 Move prototypes to...
10494 * tree-ssa-ter.h: New File. Move prototypes here.
10495 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
10496 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
10497 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
10498 from is_replaceable_p.
10499 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
10500 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
10501 (process_replaceable): Use ter_is_replaceable_p.
10502 (find_replaceable_in_bb): Use ter_is_replaceable_p.
10503 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
10504 newly refactored ssa_is_replaceable_p.
10505 * cfgexpand.c: Include tree-outof-ssa.h.
10506 * ssaexpand.h: Delete.
10508 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
10510 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
10511 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
10513 (create_gimple_tmp): Delete.
10514 (get_expr_type, build_assign, build_type_cast): Move to...
10515 * gimple-builder.c: New File.
10516 (get_expr_type): Relocate from gimple.c.
10517 (build_assign, build_type_cast): Change to only create ssanames.
10518 * gimple.h: Move prototypes to...
10519 * gimple-builder.h: New File. Here.
10520 * tree-ssa.h: And here.
10521 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
10522 count_uses_and_derefs): Relocate from gimple.c.
10523 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
10524 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
10525 * tree-ssa-math-opts (execute_cse_reciprocals): Use
10526 gimple_replace_ssa_lhs.
10527 * asan.c: Include gimple-builder.h.
10528 * Makefile.in: Add gimple-builder.o.
10530 2013-09-26 Richard Biener <rguenther@suse.de>
10532 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
10533 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
10534 (loe_visit_block): Use gcc_checking_assert.
10535 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
10536 gimple_assign_ssa_name_copy_p.
10537 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
10540 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
10542 * config/rs6000/t-rs6000 (rs6000.o): Remove.
10543 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
10545 2013-09-26 Richard Biener <rguenther@suse.de>
10547 PR tree-optimization/58539
10548 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
10549 the fact that debug statements are not taking part in loop-closed
10552 2013-09-26 Nick Clifton <nickc@redhat.com>
10554 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
10555 time warning message.
10556 (msp430_print_operand_raw): Delete unused letter parameter.
10557 (TARGET_PRINT_OPERAND_ADDRESS): Define.
10558 (msp430_print_operand_address): New function.
10559 (msp430_print_operand): Move address printing code from here to
10561 * config/msp430/msp430.md (movsipsi2): Add comment in generated
10563 (zero_extendpsisi2): Likewise.
10564 (extendpsisi2): New pattern.
10565 (andneghi3): New pattern.
10567 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
10569 * config/aarch64/aarch64.opt (mlra): New option.
10570 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
10571 (TARGET_LRA_P): Define.
10573 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
10575 * expr.c (expand_assignment): Remove obsolete comment.
10577 2013-09-25 Jeff Law <law@redhat.com>
10579 * tree-flow.h (thread_through_all_blocks): Prototype moved into
10580 tree-ssa-threadupdate.h.
10581 (register_jump_thread): Similarly.
10582 * tree-ssa-threadupdate.h: New header file.
10583 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
10584 * tree-vrp.c: Likewise.
10585 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
10586 (thread_around_empty_blocks): Change type of path vector argument to
10587 an edge,type pair from just an edge. Initialize both elements when
10588 appending to a jump threading path. Tweak references to elements
10590 (thread_across_edge): Similarly. Release memory for the elements
10592 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
10593 (dump_jump_thread_path): New function broken out from
10594 register_jump_thread.
10595 (register_jump_thread): Use dump_jump_thread_path. Change type of
10596 path vector entries. Search the path for NULL edges and dump
10597 the path if one is found. Tweak the conversion of path to 3-edge
10598 form to use the block copy type information embedded in the path.
10600 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
10602 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
10604 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
10605 Vladimir Makarov <vmakarov@redhat.com>
10607 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
10608 from the least significant bit.
10609 (strip_address_mutations): Add bitfield operations handling.
10610 (must_be_index_p): Add shifting and rotate operations handling.
10611 (set_address_base): Use must_be_base_p predicate.
10612 (set_address_index): Use must_be_index_p predicate.
10614 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
10615 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10616 Sergey Lega <sergey.s.lega@intel.com>
10617 Anna Tikhonova <anna.tikhonova@intel.com>
10618 Ilya Tocar <ilya.tocar@intel.com>
10619 Andrey Turetskiy <andrey.turetskiy@intel.com>
10620 Ilya Verbin <ilya.verbin@intel.com>
10621 Kirill Yukhin <kirill.yukhin@intel.com>
10622 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10624 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
10626 (ix86_expand_vector_move_misalign): Support new unaligned load and
10627 stores and use new names.
10628 (CODE_FOR_sse2_storedqu): Rename to ...
10629 (CODE_FOR_sse2_storedquv16qi): ... this.
10630 (CODE_FOR_sse2_loaddqu): Rename to ...
10631 (CODE_FOR_sse2_loaddquv16qi): ... this.
10632 (CODE_FOR_avx_loaddqu256): Rename to ...
10633 (CODE_FOR_avx_loaddquv32qi): ... this.
10634 (CODE_FOR_avx_storedqu256): Rename to ...
10635 (CODE_FOR_avx_storedquv32qi): ... this.
10636 * config/i386/i386.md (fpint_logic): New.
10637 * config/i386/sse.md (VMOVE): Extend for AVX512.
10641 (VI_UNALIGNED_LOADSTORE): Ditto.
10642 (sse2_avx_avx512f): Ditto.
10643 (sse2_avx2): Extend for AVX512.
10644 (sse4_1_avx2): Ditto.
10645 (avx2_avx512f): New.
10646 (sse): Extend for AVX512.
10649 (avxsizesuffix): Ditto.
10650 (sseintvecmode): Ditto.
10651 (ssePSmode): Ditto.
10652 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
10653 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
10654 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
10655 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
10656 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
10657 (<sse2_avx_avx512f>_storedqu<mode): ... this.
10658 (<sse>_movnt<mode>): Replace constraint "x" with "v".
10659 (STORENT_MODE): Extend for AVX512.
10660 (*absneg<mode>2): Replace constraint "x" with "v".
10661 (*mul<mode>3): Ditto.
10662 (*ieee_smin<mode>3): Ditto.
10663 (*ieee_smax<mode>3): Ditto.
10664 (avx_cmp<mode>3): Replace VF with VF_128_256.
10665 (*<sse>_maskcmp<mode>3_comm): Ditto.
10666 (<sse>_maskcmp<mode>3): Ditto.
10667 (<sse>_andnot<mode>3): Extend for AVX512.
10668 (<code><mode>3, anylogic): Replace VF with VF_128_256.
10669 (<code><mode>3, fpint_logic): New.
10670 (*<code><mode>3): Extend for AVX512.
10671 (avx512flogicsuff): New.
10672 (avx512f_<logic><mode>): Ditto.
10673 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
10675 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
10676 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
10677 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
10678 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
10679 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
10680 (xop_vpermil2<mode>3): Ditto.
10681 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
10682 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
10683 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
10684 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
10686 2013-09-25 Tom Tromey <tromey@redhat.com>
10688 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
10689 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
10690 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
10691 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
10692 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
10693 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
10694 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
10695 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
10696 (GRAPHITE_HTAB_H): Remove.
10698 2013-09-25 Tom Tromey <tromey@redhat.com>
10700 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
10702 2013-09-25 Tom Tromey <tromey@redhat.com>
10704 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
10706 2013-09-25 Tom Tromey <tromey@redhat.com>
10708 * config/i386/t-i386 (i386.o): Remove.
10709 (i386-c.o): Use COMPILE and POSTCOMPILE.
10711 2013-09-25 Tom Tromey <tromey@redhat.com>
10713 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
10715 2013-09-25 Tom Tromey <tromey@redhat.com>
10717 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
10718 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
10719 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
10720 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
10721 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
10722 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
10723 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
10724 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
10725 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
10726 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
10727 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
10728 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
10729 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
10730 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
10731 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
10732 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
10733 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
10734 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
10735 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
10736 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
10737 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
10738 (tree-ssa-pre.o, tree-ssa-sccvn.o)
10739 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
10740 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
10741 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
10742 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
10743 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
10744 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
10745 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
10746 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
10747 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
10748 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
10749 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
10750 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
10751 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
10752 (graphite-clast-to-gimple.o, graphite-dependences.o)
10753 (graphite-interchange.o, graphite-poly.o)
10754 (graphite-scop-detection.o, graphite-sese-to-poly.o)
10755 (graphite-optimize-isl.o, tree-vect-loop.o)
10756 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
10757 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
10758 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
10759 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
10760 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
10761 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
10762 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
10763 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
10764 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
10765 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
10766 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
10767 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
10768 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
10769 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
10770 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
10771 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
10772 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
10773 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
10774 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
10775 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
10776 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
10777 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
10778 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
10779 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
10780 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
10781 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
10782 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
10783 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
10784 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
10785 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
10786 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
10787 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
10788 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
10789 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
10790 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
10791 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
10792 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
10793 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
10794 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
10795 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
10796 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
10797 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
10798 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
10799 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
10800 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
10801 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
10802 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
10803 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
10804 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
10805 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
10806 (gcov-dump.o): Remove.
10807 (default-c.o): Use COMPILE and POSTCOMPILE.
10808 (CFLAGS-gcc.o): New variable.
10809 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
10811 2013-09-25 Tom Tromey <tromey@redhat.com>
10813 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
10814 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
10815 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
10816 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
10817 (c-family/c-pragma.o, c-family/c-pretty-print.o)
10818 (c-family/c-semantics.o, c-family/c-ada-spec.o)
10819 (c-family/array-notation-common.o, c-family/stub-objc.o)
10820 (c-family/c-ubsan.o): Remove.
10822 2013-09-25 Tom Tromey <tromey@redhat.com>
10824 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
10826 2013-09-25 Tom Tromey <tromey@redhat.com>
10828 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
10829 to add -DENABLE_SHARED_LIBGCC.
10830 (gcc.o): Don't use subshell.
10832 2013-09-25 Tom Tromey <tromey@redhat.com>
10834 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
10835 * configure.ac: Don't invoke AM_PROG_CC_C_O.
10836 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
10837 * configure, config.in: Rebuild.
10839 2013-09-25 Tom Tromey <tromey@redhat.com>
10841 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
10842 (COMPILE, POSTCOMPILE): New variables.
10843 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
10844 (DEPFILES): New variable.
10845 Include ".Po" files.
10846 * configure.ac: Add checks for dependency checking.
10847 * configure, aclocal.m4: Regenerate.
10849 2013-09-25 Tom Tromey <tromey@redhat.com>
10851 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
10852 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
10854 2013-09-25 Tom Tromey <tromey@redhat.com>
10856 * Makefile.in (generated_files): Add options.h,
10857 target-hooks-def.h, insn-opinit.h,
10858 common/common-target-hooks-def.h, pass-instances.def,
10859 c-family/c-target-hooks-def.h.
10861 2013-09-25 Jeff Law <law@redhat.com>
10863 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
10864 than foo[foo.length () - 1] to access last member in a vec.
10865 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
10867 2013-09-25 Richard Biener <rguenther@suse.de>
10869 PR middle-end/58521
10870 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
10872 2013-09-25 Jan Hubicka <jh@suse.cz>
10874 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
10877 2013-09-25 Marek Polacek <polacek@redhat.com>
10880 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
10881 when determining the type name.
10883 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
10885 * config/sh/sh.md: Fix formatting.
10887 2013-09-24 Xinliang David Li <davidxl@google.com>
10889 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
10890 max peel iterations parameter.
10891 * param.def: New parameter.
10892 * doc/invoke.texi: Document New parameter.
10894 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
10896 * gimple-pretty-print.c: Various whitespace tweaks.
10897 * tree-core.h: Likewise.
10898 * tree-pretty-print.c: Likewise.
10899 * tree-ssa-alias.c: Likewise.
10900 * tree-ssa-copy.c: Likewise.
10901 * tree-ssanames.c: Likewise.
10902 * tree-ssanames.h: Likewise.
10903 * tree-vrp.c: Likewise.
10905 2013-09-24 Alan Modra <amodra@gmail.com>
10907 PR middle-end/57134
10908 PR middle-end/57586
10909 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
10910 for output operands that disallow regs. Don't use EXPAND_WRITE on
10913 2013-09-24 Richard Biener <rguenther@suse.de>
10915 PR middle-end/58513
10916 * tree.c (reference_alias_ptr_type): Move ...
10917 * alias.c (reference_alias_ptr_type): ... here and implement
10918 in terms of the new reference_alias_ptr_type_1.
10919 (ref_all_alias_ptr_type_p): New helper.
10920 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
10921 use ref_all_alias_ptr_type_p.
10922 (get_deref_alias_set): Add flag_strict_aliasing check here.
10923 (reference_alias_ptr_type_1): New function, split out from ...
10924 (get_alias_set): ... here.
10925 (alias_ptr_types_compatible_p): New function.
10926 * alias.h (reference_alias_ptr_type): Declare.
10927 (alias_ptr_types_compatible_p): Likewise.
10928 * tree.h (reference_alias_ptr_type): Remove.
10929 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
10930 to compare MEM_REF alias types.
10932 2013-09-24 Richard Biener <rguenther@suse.de>
10934 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
10936 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10938 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
10939 reload helper function arrays into a single array reg_addr.
10940 (reload_fpr_gpr): Likewise.
10941 (reload_gpr_vsx): Likewise.
10942 (reload_vsx_gpr): Likewise.
10943 (struct rs6000_reg_addr): Likewise.
10944 (reg_addr): Likewise.
10945 (rs6000_debug_reg_global): Change rs6000_vector_reload,
10946 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
10947 (rs6000_init_hard_regno_mode_ok): Likewise.
10948 (rs6000_secondary_reload_direct_move): Likewise.
10949 (rs6000_secondary_reload): Likewise.
10951 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
10952 constraints: wu, ww, and wy. Repurpose wv constraint added during
10953 power8 changes. Put wg constraint in alphabetical order.
10955 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
10956 for future work to add ISA 2.07 VSX single precision support.
10957 (-mvsx-scalar-double): Change default from -1 to 1, update
10958 documentation comment.
10959 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
10960 (-mupper-regs-df): New debug switch to control whether DF values
10961 can go in the traditional Altivec registers.
10962 (-mupper-regs-sf): New debug switch to control whether SF values
10963 can go in the traditional Altivec registers.
10965 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
10966 and wy constraints.
10967 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
10968 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
10969 Add new constraints, wu/ww/wy. Repurpose wv constraint.
10970 (rs6000_debug_legitimate_address_p): Print if we are running
10971 before, during, or after reload.
10972 (rs6000_secondary_reload): Add a comment.
10973 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
10975 * config/rs6000/constraints.md (wa constraint): Sort w<x>
10976 constraints. Update documentation string.
10977 (wd constraint): Likewise.
10978 (wf constraint): Likewise.
10979 (wg constraint): Likewise.
10980 (wn constraint): Likewise.
10981 (ws constraint): Likewise.
10982 (wt constraint): Likewise.
10983 (wx constraint): Likewise.
10984 (wz constraint): Likewise.
10985 (wu constraint): New constraint for ISA 2.07 SFmode scalar
10987 (ww constraint): Likewise.
10988 (wy constraint): Likewise.
10989 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
10990 in the previous submissions.
10991 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
10993 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
10995 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
10996 (REG_BR_PROB): Say that the probability is stored in an int_list.
10997 * reg-notes.def: Update commentary to mention INT_LIST.
10998 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
10999 (INT_LIST): New rtx.
11000 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
11001 * rtlanal.c (int_reg_note_p): New function.
11002 (alloc_reg_note): Assert that the note does not have an int argument.
11003 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
11004 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
11005 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
11006 rather than an INSN_LIST. Handle INT_LIST.
11007 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
11008 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
11009 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
11010 Manipulate them as ints rather than rtxes.
11011 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
11012 * regmove.c (copy_src_to_dest): Likewise.
11013 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
11015 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
11016 into the cases that need it.
11017 * config/arm/arm.c (arm_unwind_emit): Likewise.
11019 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
11020 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
11021 * loop-doloop.c (add_test, doloop_modify): Likewise.
11022 * loop-unswitch.c (compare_and_jump_seq): Likewise.
11023 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
11024 * predict.c (combine_predictions_for_insn): Likewise.
11025 * print-rtl.c (print_rtx): Handle INT_LIST.
11026 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
11027 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
11028 * config/arm/arm.c (emit_unlikely_jump): Likewise.
11029 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
11030 (ix86_split_fp_branch, predict_jump): Likewise.
11031 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
11032 * config/sh/sh.c (expand_cbranchsi4): Likewise.
11033 * config/spu/spu.c (ea_load_store_inline): Likewise.
11035 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
11036 value of a REG_BR_PROB note.
11037 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
11038 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
11039 * emit-rtl.c (try_split): Likewise.
11040 * predict.c (br_prob_note_reliable_p): Likewise.
11041 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
11042 * reorg.c (mostly_true_jump): Likewise.
11043 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
11044 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
11045 * config/i386/i386.c (ix86_print_operand): Likewise.
11046 * config/ia64/ia64.c (ia64_print_operand): Likewise.
11047 * config/mmix/mmix.c (mmix_print_operand): Likewise.
11048 * config/rs6000/rs6000.c (output_cbranch): Likewise.
11049 * config/s390/s390.c (s390_expand_tbegin): Likewise.
11050 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
11051 * config/sparc/sparc.c (output_cbranch): Likewise.
11052 * config/spu/spu.c (get_branch_target): Likewise.
11053 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
11054 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
11056 2013-09-23 Jan Hubicka <jh@suse.cz>
11058 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
11060 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
11061 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
11063 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
11064 (gimple_fold_call): Dump inconsistent devirtualizations; add
11065 sanity check for type based devirtualizations.
11066 * ipa-prop.c: Include ipa-utils.h
11067 (ipa_intraprocedural_devirtualization): Add sanity check.
11068 (try_make_edge_direct_virtual_call): Likewise.
11070 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
11072 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
11073 assignment statements.
11075 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11077 * gimple-pretty-print.c (dump_ssaname_info): New function.
11078 (dump_gimple_phi): Call it.
11079 (pp_gimple_stmt_1): Likewise.
11080 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
11081 (range_info_def): Declare.
11082 * tree-pretty-print.c (pp_double_int): New function.
11083 (dump_generic_node): Call it.
11084 * tree-pretty-print.h (pp_double_int): Declare.
11085 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
11086 * tree-ssanames.h (range_info_def): New structure.
11087 (value_range_type): Move definition here.
11088 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
11090 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
11092 (set_range_info): New function.
11093 (get_range_info): Likewise.
11094 (duplicate_ssa_name_range_info): Likewise.
11095 (duplicate_ssa_name_fn): Check pointer type and call
11096 duplicate_ssa_name_range_info.
11097 * tree-ssa-copy.c (fini_copy_prop): Likewise.
11098 * tree-vrp.c (value_range_type): Remove definition, now in
11100 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
11101 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
11102 (SSA_NAME_RANGE_INFO): New macro.
11104 2013-09-23 Richard Biener <rguenther@suse.de>
11106 PR tree-optimization/58464
11107 * tree-ssa-pre.c (phi_trans_lookup): Remove.
11108 (phi_trans_add): Change to add conditionally on being not present.
11109 (phi_translate_1): Remove recursion detection here.
11110 (phi_translate): Pre-seed the cache with NULL to catch
11111 recursion here in a more generic way.
11112 (bitmap_find_leader): Adjust comment.
11113 (get_representative_for): Dump value-numbers.
11114 (create_expression_by_pieces): Likewise.
11115 (insert_into_preds_of_block): Likewise.
11117 2013-09-23 Christian Bruel <christian.bruel@st.com>
11120 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
11121 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
11123 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
11126 2013-09-20 Renlin Li <renlin.li@arm.com>
11128 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
11130 (aarch64_expand_epilogue): Likewise.
11131 (aarch64_legitimize_reload_address): Likewise.
11133 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
11135 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
11136 NULL_TREE before pushing them onto the vector. Likewise for labels.
11138 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
11140 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
11141 comparison operators when -fno-trapping-math is in effect.
11142 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
11143 comparison operators in TFmode and assert that unsupported operators
11145 (ia64_print_operand): Likewise.
11147 2013-09-21 Jan Hubicka <jh@suse.cz>
11149 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
11150 (sse_typeless_stores): Enable for core
11151 (sse_load0_by_pxor): Likewise.
11152 (four_jump_limit): Disable for core.
11153 (pad_returns): Likewise.
11154 (avoid_vector_decode): Likewise.
11155 (fuse_cmp_and_branch): Enable for cores.
11156 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
11158 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
11160 PR middle-end/56791
11161 * config/pa/pa.c (pa_option_override): Disable auto increment and
11162 decrement instructions until reload is completed.
11164 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
11165 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
11166 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
11168 2013-09-20 DJ Delorie <dj@redhat.com>
11169 Nick Clifton <nickc@redhat.com>
11171 * config/rl78/rl78.c: Various whitespace and comment tweaks.
11172 (need_to_save): Save bank 0 on interrupts.
11173 (characterize_address): Strip far address wrappers.
11174 (rl78_as_legitimate_address): Likewise.
11175 (transcode_memory_rtx): Likewise.
11176 (rl78_peep_movhi_p): Disable this peephole after devirt.
11177 (rl78_propogate_register_origins): Forget all origins when a
11179 * config/rl78/rl78-virt.md: Various whitespace tweaks.
11180 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
11182 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
11183 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
11184 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
11186 * config/rl78/constraints.md: Various whitespace and paren tweaks.
11188 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
11190 * config/pa/pa.md: In "scc" insn patterns, change output template to
11191 handle const0_rtx in reg_or_0_operand operands.
11193 2013-09-20 Martin Husemann <martin@NetBSD.org>
11196 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
11197 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
11199 2013-09-20 Richard Biener <rguenther@suse.de>
11201 PR middle-end/58484
11202 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
11203 remembering SSA name version and block index.
11204 (new_scev_info_str): Adjust.
11205 (hash_scev_info): Likewise. Also hash the block index.
11206 (eq_scev_info): Adjust.
11207 (find_var_scev_info): Likewise.
11208 (struct instantiate_cache_entry): Remove.
11209 (struct instantiate_cache_type): Use a htab to map name, block
11211 (instantiate_cache_type::~instantiate_cache_type): Adjust.
11212 (get_instantiated_value_entry): Likewise.
11213 (hash_idx_scev_info, eq_idx_scev_info): New functions.
11214 (instantiate_scev_name): Adjust.
11216 2013-09-20 Jeff Law <law@redhat.com>
11218 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
11220 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
11222 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
11223 Call aarch64_simd_expand_args to update op[argc].
11225 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
11227 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
11230 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
11232 * gengtype.c (file_rules): Added rule for *.cc files.
11233 (get_output_file_with_visibility): Give fatal message when no
11236 2013-09-20 Renlin Li <renlin.li@arm.com>
11238 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
11239 (aarch64_expand_epilogue): Likewise.
11240 (aarch64_legitimize_reload_address): Likewise.
11242 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
11244 PR middle-end/57748
11245 * expr.c (expand_assignment): Remove misalignp code path.
11247 2013-09-20 Marek Polacek <polacek@redhat.com>
11250 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
11251 TYPE_PRECISION. Add asserts.
11253 2013-09-20 Richard Biener <rguenther@suse.de>
11255 PR tree-optimization/58453
11256 * tree-loop-distribution.c (distribute_loop): Apply the cost
11257 model for -ftree-loop-distribute-patterns, too.
11259 2013-09-20 Richard Biener <rguenther@suse.de>
11261 PR middle-end/58473
11262 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
11263 make type comparison less strict.
11265 2013-09-20 Alan Modra <amodra@gmail.com>
11267 * configure: Regenerate.
11268 * aclocal.m4: Regenerate.
11270 2013-09-20 Marek Polacek <polacek@redhat.com>
11273 * doc/extend.texi: Document that attribute used is meant to be used
11274 on variables with static storage duration.
11276 2013-09-19 Jakub Jelinek <jakub@redhat.com>
11278 PR tree-optimization/58472
11279 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
11280 simd_lane_access set inv_p = false.
11281 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
11282 the simduid magic VAR_DECL.
11284 2013-09-19 Jan Hubicka <jh@suse.cz>
11286 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
11288 2013-09-17 Jeff Law <law@redhat.com>
11290 * tree-ssa-dom.c (record_temporary_equivalences): New function
11291 split out of dom_opt_dom_walker::after_dom_children.
11292 (dom_opt_dom_walker::thread_across_edge): Move common code
11293 in here from dom_opt_dom_walker::after_dom_children.
11294 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
11296 2013-09-19 Jan Hubicka <jh@suse.cz>
11298 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
11299 (TARGET_GENERIC): Use PROCESOR_GENERIC
11300 (enum processor_type): Unify generic32 and 64.
11301 * i386.md (cpu): Likewise.
11302 * x86-tune.def (use_leave): Enable for generic32.
11303 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
11304 * athlon.md: Change generic64 to generic in all occurences.
11305 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
11306 (ix86_target_macros_internal): Likewise.
11307 * driver-i386.c (host_detect_local_cpu): Likewise.
11308 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
11310 (generic_memcpy, generic_memset, generic_cost): This one.
11311 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
11312 (m_GENERIC32, m_GENERIC64): Remove.
11313 (m_GENERIC): Turn into one flag.
11314 (processor_target): Unify generic tunnings.
11315 (ix86_option_override_internal): Replace generic32/64 by generic.
11316 (ix86_issue_rate): Likewise.
11317 (ix86_adjust_cost): Likewise.
11319 2013-09-19 Jan Hubicka <jh@suse.cz>
11321 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
11322 of speculative flag.
11324 2013-09-19 Jakub Jelinek <jakub@redhat.com>
11326 * omp-low.c (expand_omp_sections): Always pass len - 1 to
11327 GOMP_sections_start, even if !exit_reachable.
11329 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
11331 * lra-constraints.c (need_for_all_save_p): Use macro
11332 HARD_REGNO_CALL_PART_CLOBBERED.
11333 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
11334 set up pseudo conflict hard regs.
11336 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
11339 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
11342 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
11344 PR rtl-optimization/58438
11345 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
11346 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
11347 from previous subpasses.
11349 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
11351 * arm.c (arm_get_frame_offsets): Validate architecture supports
11352 LDRD/STRD before accepting the tuning preference.
11353 (arm_expand_prologue): Likewise.
11354 (arm_expand_epilogue): Likewise.
11356 2013-09-18 Richard Biener <rguenther@suse.de>
11358 PR tree-optimization/58417
11359 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
11360 have chrecs with symbols defined in the loop as operands.
11361 (chrec_fold_multiply): Likewise.
11362 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
11363 parameters before folding binary operations.
11364 (struct instantiate_cache_entry_hasher): Remove.
11365 (struct instantiate_cache_type): Use a pointer-map.
11366 (instantiate_cache_type::instantiate_cache_type): New function.
11367 (instantiate_cache_type::get): Likewise.
11368 (instantiate_cache_type::set): Likewise.
11369 (instantiate_cache_type::~instantiate_cache_type): Adjust.
11370 (get_instantiated_value_entry): Likewise.
11371 (global_cache): New global.
11372 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
11373 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
11374 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
11375 (instantiate_scev_name): Adjust.
11376 (instantiate_scev): Construct global instead of local cache.
11377 (resolve_mixers): Likewise.
11379 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
11380 Paolo Carlini <paolo.carlini@oracle.com>
11383 * doc/implement-cxx.texi: Fix references to the C++ standards.
11385 2013-09-18 Jakub Jelinek <jakub@redhat.com>
11387 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
11388 * tree-vect-data-refs.c (vect_analyze_data_refs): For
11389 simd_lane_access drs, update also DR_ALIGNED_TO.
11391 2013-09-18 Marek Polacek <polacek@redhat.com>
11394 * doc/extend.texi: Document no_sanitize_undefined attribute.
11395 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
11396 no_sanitize_undefined attribute.
11398 2013-09-18 Nick Clifton <nickc@redhat.com>
11400 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
11401 (ASM_DECLARE_FUNCTION_NAME): Define.
11403 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
11405 * compare-elim.c (find_comparison_dom_walker): New class
11406 (find_comparisons_in_bb): Rename to
11407 find_comparison_dom_walker::before_dom_children
11408 (find_comparisons): Adjust
11409 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
11411 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
11412 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
11413 (init_walk_dominator_tree): Remove declaration.
11414 (fini_walk_dominator_tree): Remove declaration.
11415 * fwprop.c (single_def_use_dom_walker): New class
11416 (single_def_use_enter_block): Convert to
11417 single_def_use_dom_walker::before_dom_children.
11418 (single_def_use_leave_block): Convert to
11419 single_def_use_dom_walker::after_dom_children.
11420 (build_single_def_use_links): Adjust.
11421 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
11423 (find_candidates_in_block): Convert to
11424 find_candidates_dom_walker::before_dom_children.
11425 (execute_strength_reduction): Adjust.
11426 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
11427 (sese_dom_walker): New class.
11428 (sese_dom_walker::sese_dom_walker): New constructor.
11429 (sese_dom_walker::~sese_dom_walker): New destructor.
11430 (build_sese_conditions_before): Convert to
11431 sese_dom_walker::before_dom_children.
11432 (build_sese_conditions_after): Convert to
11433 sese_dom_walker::after_dom_children.
11434 (build_poly_scop): Adjust
11435 * tree-into-ssa.c (rewrite_dom_walker): New class
11436 (rewrite_enter_block): Convert to
11437 rewrite_dom_walker::before_dom_children.
11438 (rewrite_leave_block): Convert to
11439 rewrite_dom_walker::after_dom_children.
11440 (rewrite_update_dom_walker): New class.
11441 (rewrite_update_enter_block): Convert to
11442 rewrite_update_dom_walker::before_dom_children.
11443 (rewrite_update_leave_block): Convert to
11444 rewrite_update_dom_walker::after_dom_children.
11445 (rewrite_blocks, rewrite_into_ssa): Adjust.
11446 (mark_def_dom_walker): New class.
11447 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
11448 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
11449 (mark_def_sites_blocks): Convert to
11450 mark_def_dom_walker::before_dom_children.
11451 (mark_def_site_blocks): Remove.
11452 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
11453 (tree_ssa_dominator_optimize): Adjust.
11454 (dom_thread_across_edge): Convert to method
11455 dom_opt_dom_walker::thread_across_edge.
11456 (dom_opt_enter_block): Convert to member function
11457 dom_opt_dom_walker::before_dom_children.
11458 (dom_opt_leave_block): Convert to member function
11459 dom_opt_dom_walker::after_dom_children.
11460 * tree-ssa-dse.c (dse_dom_walker): New class.
11461 (dse_enter_block): Convert to member function
11462 dse_dom_walker::before_dom_children.
11463 (tree_ssa_dse): Adjust.
11464 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
11465 (determine_invariantness_stmt): Convert to method
11466 invariantness_dom_walker::before_dom_children.
11467 (determine_invariantness): Remove
11468 (move_computations_dom_walker): New class.
11469 (move_computations_stmt): Convert to method
11470 move_computations_dom_walker::before_dom_children.
11471 (move_computations, tree_ssa_lim): Adjust.
11472 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
11473 (nt_init_block): Convert to method
11474 notrappping_dom_walker::before_dom_children.
11475 (nt_fini_block): Convert to method
11476 method nontrapping_dom_walker::after_dom_children.
11477 (get_non_trapping): Adjust.
11478 * tree-ssa-pre.c (eliminate_dom_walker): New class.
11479 (eliminate_bb): Convert to method
11480 eliminate_dom_walker::before_dom_children.
11481 (eliminate_leave_block): Convert to method
11482 eliminate_dom_walker::after_dom_children.
11483 (eliminate): Adjust.
11484 * tree-ssa-strlen.c (strlen_dom_walker): New class.
11485 (strlen_enter_block): Convert to method
11486 strlen_dom_walker::before_dom_children.
11487 (strlen_leave_block): Convert to method
11488 method strlen_dom_walker::after_dom_children.
11489 (tree_ssa_strlen): Adjust.
11490 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
11491 (tree_ssa_uncprop): Adjust.
11492 (uncprop_leave_block): Convert to method
11493 uncprop_dom_walker::after_dom_children.
11494 (uncprop_leave_block): Convert to method
11495 uncprop_dom_walker::before_dom_children.
11497 2013-09-18 Bin Cheng <bin.cheng@arm.com>
11499 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
11500 branch in same basic block. Check both src and dest of the move insn.
11502 2013-09-17 Nick Clifton <nickc@redhat.com>
11504 * config/rl78/rl78-real.md (bf): New pattern.
11506 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
11507 (rl78_print_operand): Do not put a # before a %B.
11508 * config/rl78/rl78.opt: Tweak doc strings.
11510 2013-09-17 DJ Delorie <dj@redhat.com>
11512 * config/rl78/constraints.md (Wcv): Allow up to $r31.
11513 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
11514 (rl78_option_override): Likewise, if -mallregs.
11515 (is_virtual_register): Likewise.
11516 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
11517 (REGNO_OK_FOR_BASE_P): Likewise.
11518 * config/rl78/rl78.opt (-mallregs): New.
11520 2013-09-17 Nick Clifton <nickc@redhat.com>
11522 * config/rl78/rl78.c (need_to_save): Change return type to bool.
11523 For interrupt functions: save all call clobbered registers if the
11524 interrupt handler is not a leaf function.
11525 (rl78_expand_prologue): Always recompute the frame information.
11526 For interrupt functions: only select bank 0 if one of the bank 0
11527 registers is going to be psuhed.
11529 2013-09-17 DJ Delorie <dj@redhat.com>
11531 * config/rl78/constraints.md: For each W* constraint, rename to C*
11532 and create a W* constraint that checks for an optional ES: prefix
11534 * config/rl78/rl78.md (UNS_ES_ADDR): New.
11535 (es_addr): New. Used to wrap far addresses.
11536 * config/rl78/rl78-protos.h (rl78_es_addr): New.
11537 (rl78_es_base): New.
11538 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
11539 wrapped far addresses.
11540 (rl78_print_operand_1): Unwrap far addresses before processing.
11541 (rl78_lo16): Wrap far addresses in unspecs.
11542 (rl78_es_addr): New.
11543 (rl78_es_base): New.
11544 (insn_ok_now): Check for not-yet-wrapped far addresses.
11545 (transcode_memory_rtx): Properly re-wrap far addresses.
11547 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
11549 * config/sparc/t-rtems: Add leon3 multilibs.
11551 2013-09-17 Cong Hou <congh@google.com>
11553 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
11554 when checking the dot production pattern. The type of rhs operand
11555 of multiply is now checked correctly.
11557 2013-09-17 Jeff Law <law@redhat.com>
11559 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
11560 edge implied equivalences into successor phis.
11561 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
11562 here from tree-ssa-threadedge.c.
11563 (mark_threaded_blocks): When threading through a joiner, if both
11564 successors of the joiner's clone reach the same block, verify the
11565 PHI arguments are equal. If not, cancel the jump threading request.
11566 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
11567 tree-ssa-threadupdate.c
11568 (thread_across_edge): Don't check PHI argument equality when
11569 threading through joiner block here.
11571 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
11573 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
11574 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
11575 (warn_uninit, warn_uninitialized_vars,
11576 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
11577 Move to tree-ssa-uninit.c.
11578 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
11579 (has_undefined_value_p): New. Pass dependant parts of
11580 ssa_undefined_value_p.
11581 (uninit_undefined_value_p): Use has_undefined_value_p.
11582 (warn_uninit, warn_uninitialized_vars,
11583 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
11584 Move from tree-ssa.c.
11585 * tree-ssa.h: Adjust prototypes.
11587 2013-09-17 Jan Hubicka <jh@suse.cz>
11589 PR middle-end/58332
11590 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
11591 * ipa-inline.c (can_inline_edge_p): Do not downgrade
11592 FUNCTION_NOT_OPTIMIZED.
11593 * ipa-inline-analysis.c (compute_inline_parameters): Function
11594 not optimized is not inlinable unless it is alwaysinline.
11595 (inline_analyze_function): Force calls in not optimized
11596 function not inlinable.
11598 2013-09-17 Jan Hubicka <jh@suse.cz>
11600 PR middle-end/58329
11601 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
11603 * ipa.c (function_and_variable_visibility): Likewise.
11604 * ipa-profile.c (ipa_profile): Likewise.
11606 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
11609 * cgraph.c (cgraph_function_body_availability): Check for ifunc
11610 attribute, and don't inline the resolver in this case.
11612 2013-09-17 Teresa Johnson <tejohnson@google.com>
11614 * coverage.c (get_coverage_counts): Add missing newline.
11616 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11618 PR tree-optimization/58088
11619 * fold-const.c (mask_with_trailing_zeros): New function.
11620 (fold_binary_loc): Make sure we don't recurse infinitely
11621 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
11622 Use mask_with_trailing_zeros where appropriate.
11624 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
11626 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
11627 of 'prev' var to get better distance estimation.
11629 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
11631 * tree-inline.h (struct copy_body_data): Add transform_parameter.
11632 * tree-inline.c (is_parameter_of): New predicate.
11633 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
11634 a parameter has been remapped.
11635 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
11636 (optimize_inline_calls): Initialize transform_parameter.
11637 (copy_gimple_seq_and_replace_locals): Likewise.
11638 (tree_function_versioning): Likewise.
11639 (maybe_inline_call_in_expr): Likewise.
11641 2013-09-17 Nick Clifton <nickc@redhat.com>
11643 * config/msp430/msp430-protos.h: Add prototypes for new functions.
11644 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
11645 interrupt handlers.
11646 (is_attr_func): New function.
11647 (msp430_is_interrupt_func): New function.
11648 (is_naked_func): New function.
11649 (is_reentrant_func): New function.
11650 (is_critical_func): New function.
11651 (msp430_start_function): Add annotations for function attributes.
11652 (msp430_attr): New function.
11653 (msp430_attribute_table): New.
11654 (msp430_function_section): New function.
11655 (TARGET_ASM_FUNCTION_SECTION): Define.
11656 (msp430_builtin): New enum.
11657 (msp430_init_builtins): New function.
11658 (msp430_builtin_devl): New function.
11659 (msp430_expand_builtin): New function.
11660 (TARGET_INIT_BUILTINS): Define.
11661 (TARGET_EXPAND_BUILTINS): Define.
11662 (TARGET_BUILTIN_DECL): Define.
11663 (msp430_expand_prologue): Add support for naked, interrupt,
11664 critical and reentrant functions.
11665 (msp430_expand_epilogue): Likewise.
11666 (msp430_print_operand): Handle 'O' character.
11667 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
11669 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
11670 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
11671 (pushm): Use a 'n' rather than an 'i' constraint.
11672 (msp_return): Add generation of the interrupt return instruction.
11673 (disable_interrupts): New pattern.
11674 (enable_interrupts): New pattern.
11675 (push_intr_state): New pattern.
11676 (pop_intr_state): New pattern.
11677 (bic_SR): New pattern.
11678 (bis_SR): New pattern.
11679 * doc/extend.texi: Document MSP430 function attributes and builtin
11682 2013-09-17 Richard Biener <rguenther@suse.de>
11684 PR tree-optimization/58432
11685 * tree-loop-distribution.c (tree_loop_distribution): Also
11686 scan PHIs for outside loop uses and seed a partition from them.
11688 2013-09-17 Bin Cheng <bin.cheng@arm.com>
11690 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
11691 (restructure_reference): Call backtrace_base_for_ref.
11693 2013-09-17 Alan Modra <amodra@gmail.com>
11696 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
11699 2013-09-16 DJ Delorie <dj@redhat.com>
11701 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
11702 vregs location for RL78/G10.
11703 (rl78_expand_prologue): Avoid SEL on G10.
11704 (rl78_expand_epilogue): Likewise.
11705 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
11706 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
11707 __RL78_G10__ when appropriate.
11708 (ASM_SPEC): Pass -mg10 along to the assembler.
11709 * config/rl78/rl78.md (sel_rb): Disable for G10.
11710 * config/rl78/rl78.opt: Add -mg10 option.
11711 * config/rl78/t-rl78: Add -mg10 multilib.
11713 2013-09-16 Xinliang David Li <davidxl@google.com>
11715 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
11716 * omp-low.c (omp_max_vf): Ditto.
11717 (expand_omp_simd): Ditto.
11718 * tree-vectorizer.c (vectorize_loops): Ditto.
11719 (gate_vect_slp): Ditto.
11720 (gate_increase_alignment): Ditto.
11721 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
11722 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
11723 (gate_tree_vectorize): Name change.
11724 (tree_vectorize): Ditto.
11725 (pass_vectorize::gate): Call new function.
11726 (pass_vectorize::execute): Ditto.
11727 * opts.c: O3 default setting change.
11728 (finish_options): Check new flag.
11729 * doc/invoke.texi: Document new flags.
11730 * common.opt: New flags.
11732 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
11734 * doc/tm.texi.in (Cond Exec Macros): Remove node.
11735 (Condition Code): Don't reference it.
11736 * doc/tm.texi: Regenerate.
11738 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
11740 PR middle-end/58418
11741 * lra-constraints.c (undo_optional_reloads): Consider all optional
11742 reload even if it did not get a hard reg.
11744 2013-09-16 Teresa Johnson <tejohnson@google.com>
11746 * dumpfile.c (dump_loc): Remove newline emission.
11747 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
11748 emission to dump_printf_loc calls where missing.
11749 (vect_mark_for_runtime_alias_test): Ditto.
11750 (vect_analyze_data_ref_dependence): Ditto.
11751 (vect_analyze_data_ref_dependences): Ditto.
11752 (vect_slp_analyze_data_ref_dependence): Ditto.
11753 (vect_slp_analyze_data_ref_dependences): Ditto.
11754 (vect_compute_data_ref_alignment): Ditto.
11755 (vect_update_misalignment_for_peel): Ditto.
11756 (vect_verify_datarefs_alignment): Ditto.
11757 (vector_alignment_reachable_p): Ditto.
11758 (vect_get_data_access_cost): Ditto.
11759 (vect_enhance_data_refs_alignment): Ditto.
11760 (vect_find_same_alignment_drs): Ditto.
11761 (vect_analyze_data_refs_alignment): Ditto.
11762 (vect_analyze_group_access): Ditto.
11763 (vect_analyze_data_ref_access): Ditto.
11764 (vect_analyze_data_ref_accesses): Ditto.
11765 (vect_prune_runtime_alias_test_list): Ditto.
11766 (vect_analyze_data_refs): Ditto.
11767 (vect_create_addr_base_for_vector_ref): Ditto.
11768 (vect_create_data_ref_ptr): Ditto.
11769 (vect_grouped_store_supported): Ditto.
11770 (vect_grouped_load_supported): Ditto.
11771 * value-prof.c (check_counter): Ditto.
11772 (check_ic_target): Ditto.
11773 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
11774 (vect_recog_widen_mult_pattern): Ditto.
11775 (vect_recog_widen_sum_pattern): Ditto.
11776 (vect_recog_over_widening_pattern): Ditto.
11777 (vect_recog_widen_shift_pattern): Ditto.
11778 (vect_recog_rotate_pattern): Ditto.
11779 (vect_recog_vector_vector_shift_pattern): Ditto.
11780 (vect_recog_divmod_pattern): Ditto.
11781 (vect_recog_mixed_size_cond_pattern): Ditto.
11782 (vect_recog_bool_pattern): Ditto.
11783 (vect_pattern_recog_1): Ditto.
11784 (vect_pattern_recog): Ditto.
11785 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
11786 (vect_is_simple_iv_evolution): Ditto.
11787 (vect_analyze_scalar_cycles_1): Ditto.
11788 (vect_get_loop_niters): Ditto.
11789 (vect_analyze_loop_1): Ditto.
11790 (vect_analyze_loop_form): Ditto.
11791 (vect_analyze_loop_operations): Ditto.
11792 (vect_analyze_loop_2): Ditto.
11793 (vect_analyze_loop): Ditto.
11794 (report_vect_op): Ditto.
11795 (vect_is_slp_reduction): Ditto.
11796 (vect_is_simple_reduction_1): Ditto.
11797 (vect_get_known_peeling_cost): Ditto.
11798 (vect_estimate_min_profitable_iters): Ditto.
11799 (vect_model_reduction_cost): Ditto.
11800 (vect_model_induction_cost): Ditto.
11801 (get_initial_def_for_induction): Ditto.
11802 (vect_create_epilog_for_reduction): Ditto.
11803 (vectorizable_reduction): Ditto.
11804 (vectorizable_induction): Ditto.
11805 (vectorizable_live_operation): Ditto.
11806 (vect_loop_kill_debug_uses): Ditto.
11807 (vect_transform_loop): Ditto.
11808 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
11809 (vect_stmt_relevant_p): Ditto.
11810 (process_use): Ditto.
11811 (vect_mark_stmts_to_be_vectorized): Ditto.
11812 (vect_model_simple_cost): Ditto.
11813 (vect_model_promotion_demotion_cost): Ditto.
11814 (vect_model_store_cost): Ditto.
11815 (vect_get_store_cost): Ditto.
11816 (vect_model_load_cost): Ditto.
11817 (vect_get_load_cost): Ditto.
11818 (vect_init_vector_1): Ditto.
11819 (vect_get_vec_def_for_operand): Ditto.
11820 (vect_finish_stmt_generation): Ditto.
11821 (vectorizable_call): Ditto.
11822 (vectorizable_conversion): Ditto.
11823 (vectorizable_assignment): Ditto.
11824 (vectorizable_shift): Ditto.
11825 (vectorizable_operation): Ditto.
11826 (vectorizable_store): Ditto.
11827 (vectorizable_load): Ditto.
11828 (vectorizable_condition): Ditto.
11829 (vect_analyze_stmt): Ditto.
11830 (vect_transform_stmt): Ditto.
11831 (vect_is_simple_use): Ditto.
11832 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
11833 (vect_can_advance_ivs_p): Ditto.
11834 (vect_update_ivs_after_vectorizer): Ditto.
11835 (vect_do_peeling_for_loop_bound): Ditto.
11836 (vect_gen_niters_for_prolog_loop): Ditto.
11837 (vect_update_inits_of_drs): Ditto.
11838 (vect_create_cond_for_alias_checks): Ditto.
11839 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
11840 (vect_build_slp_tree_1): Ditto.
11841 (vect_supported_load_permutation_p): Ditto.
11842 (vect_analyze_slp_instance): Ditto.
11843 (vect_analyze_slp): Ditto.
11844 (vect_make_slp_decision): Ditto.
11845 (vect_detect_hybrid_slp): Ditto.
11846 (vect_bb_vectorization_profitable_p): Ditto.
11847 (vect_slp_analyze_bb_1): Ditto.
11848 (vect_update_slp_costs_according_to_vf): Ditto.
11849 (vect_get_mask_element): Ditto.
11850 (vect_transform_slp_perm_load): Ditto.
11851 (vect_schedule_slp_instance): Ditto.
11852 (vect_schedule_slp): Ditto.
11853 (vect_slp_transform_bb): Ditto.
11854 * profile.c (read_profile_edge_counts): Ditto.
11855 (compute_branch_probabilities): Ditto.
11856 * coverage.c (get_coverage_counts): Ditto.
11858 2013-09-16 Diego Novillo <dnovillo@google.com>
11860 * tree-core.h: Add missing comment lines from refactoring of tree.h.
11862 2013-09-16 Jan Hubicka <jh@suse.cz>
11864 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
11865 abstract functions; for static functions check the presence of body.
11867 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
11869 * config/aarch64/aarch64-simd-builtins.def (fma): New.
11870 * config/aarch64/aarch64-simd.md
11871 (aarch64_mla_elt<mode>): New.
11872 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
11873 (aarch64_mls_elt<mode>): Likewise.
11874 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
11875 (aarch64_fma4_elt<mode>): Likewise.
11876 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
11877 (aarch64_fma4_elt_to_128v2df): Likewise.
11878 (aarch64_fma4_elt_to_64df): Likewise.
11879 (fnma<mode>4): Likewise.
11880 (aarch64_fnma4_elt<mode>): Likewise.
11881 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
11882 (aarch64_fnma4_elt_to_128v2df): Likewise.
11883 (aarch64_fnma4_elt_to_64df): Likewise.
11884 * config/aarch64/iterators.md (VDQSF): New.
11885 * config/aarch64/arm_neon.h
11886 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
11887 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
11889 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
11891 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
11892 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
11893 (aarch64_mul3_elt_to_128df): Likewise.
11894 (aarch64_mul3_elt_to_64v2df): Likewise.
11895 * config/aarch64/iterators.md (VEL): Also handle DFmode.
11897 (VMUL_CHANGE_NLANES) Likewise.
11900 * config/aarch64/arm_neon.h
11901 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
11903 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
11905 * config/aarch64/arm_neon.h
11906 (vcvtx_high_f32_f64): Fix parameters.
11908 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11909 Uros Bizjak <ubizjak@gmail.com>
11911 * config/alpha.c: Include tree-ssanames.h.
11913 2013-09-16 Richard Biener <rguenther@suse.de>
11915 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
11916 (dot_rdg_1): Handle control_dd.
11917 (create_edge_for_control_dependence): New function.
11918 (create_rdg_edges): Add control dependences if asked for.
11919 (build_rdg): Likewise.
11920 (generate_loops_for_partition): If there are not necessary
11921 control stmts remove all their dependencies.
11922 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
11923 (distribute_loop): Pass on control dependences.
11924 (tree_loop_distribution): Compute control dependences and remove
11925 restriction on number of loop nodes.
11927 2013-09-16 Jakub Jelinek <jakub@redhat.com>
11929 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
11930 for internal calls.
11932 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
11934 * cse.c (try_const_anchors): Punt on CC modes.
11936 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11938 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
11940 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
11943 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
11944 calls to word_mode.
11946 2013-09-14 Iain Sandoe <iain@codesourcery.com>
11949 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
11951 (darwin_objc1_section): Likewise.
11952 (darwin_file_end): Emit Image Info section when required.
11954 2013-09-14 Jan Hubicka <jh@suse.cz>
11956 * tree-into-ssa.c (gate_into_ssa): New.
11957 (pass_data_build_ssa): Use it.
11958 * cgraph.h (expand_thunk): Update prototype.
11959 * cgraphunit.c (analyze_function): Expand thunks early.
11960 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
11961 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
11962 set lowered flag; do not add new function.
11963 (assemble_thunks_and_aliases): Update.
11964 * tree-ssa.c (gate_init_datastructures): New gate.
11965 (pass_data_init_datastructures): Use it.
11967 2013-09-14 Iain Sandoe <iain@codesourcery.com>
11970 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
11971 xmm register set described in the psABI.
11973 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
11975 * dwarf2out.c (should_emit_struct_debug): Add check
11976 for type_decl variable is not NULL.
11978 2013-09-13 Jacek Caban <jacek@codeweavers.com>
11980 * config.gcc: Use new winnt-c.c target hooks
11981 * config/t-winnt: New file
11982 * config/winnt-c.c: New file
11983 * doc/tm.texi.in: Document new hook
11984 * doc/tm.texi: Regenerated
11986 2013-09-13 Jan Hubicka <jh@suse.cz>
11988 PR middle-end/58094
11989 * ipa-inline.c (check_callers): New function.
11990 (check_caller_edge): Remove.
11991 (want_inline_function_to_all_callers_p): Also permit alises that are
11993 (inline_to_all_callers): Terminate the walk when devirtualization
11994 introduce new calls.
11996 2013-09-13 Jan Hubicka <jh@suse.cz>
11998 * ipa-inline-analysis.c (struct growth_data): Add node.
11999 (do_estimate_growth_1): Fix detection of recursion.
12001 2013-09-13 Jakub Jelinek <jakub@redhat.com>
12003 PR tree-optimization/58392
12004 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
12005 to avoid shadowing of outer loop variable. If
12006 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
12007 replace_by_duplicate_decl simduid of loops that have it set and
12008 set dest_cfun->has_simduid_loops and/or
12009 dest_cfun->has_force_vect_loops.
12010 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
12011 instead of maybe_lookup_decl.
12012 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
12013 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
12014 call. Copy over force_vect and copy and remap simduid. Set
12015 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
12016 (copy_cfg_body): Remove blocks_to_copy argument. Use
12017 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
12018 caller. Don't set cfun->has_simduid_loops and/or
12019 cfun->has_force_vect_loops here.
12020 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
12022 (expand_call_inline, tree_function_versioning): Adjust copy_body
12025 2013-09-13 Martin Jambor <mjambor@suse.cz>
12028 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
12029 the assert if the edge was a speculative one.
12031 2013-09-13 Richard Biener <rguenther@suse.de>
12033 * tree-data-ref.h (known_dependences_p): Move here ...
12034 * tree-loop-distribution.c (known_dependences_p): ... from here.
12035 (dump_rdg_component, debug_rdg_component): Remove.
12036 (dump_rdg): Adjust.
12037 (generate_loops_for_partition): Use gimple_uid instead of
12038 relying on matching stmt visit order.
12039 (rdg_build_partitions): Take starting stmt vector.
12040 (ldist_gen): Merge into ...
12041 (distribute_loop): ... this function. Do not compute starting
12043 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
12045 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12047 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
12048 Set type attribute correctly. Set predicable_short_it attribute.
12049 (cmpsi_shiftsi): Remove %? from output template.
12051 2013-09-13 Richard Biener <rguenther@suse.de>
12053 * tree-loop-distribution.c (struct rdg_component,
12054 rdg_defs_used_in_other_loops_p, free_rdg_components,
12055 rdg_build_components): Remove.
12056 (stmts_from_loop): Do not record virtual PHIs.
12057 (generate_loops_for_partition): Skip virtual PHIs.
12058 (build_rdg_partition_for_component): Rename to ...
12059 (build_rdg_partition_for_vertex): ... this and adjust.
12060 (rdg_build_partitions): Take a vector of starting vertices
12061 instead of components. Remove unnecessary leftover handling.
12062 (ldist_gen): Do not build components or record other stores.
12063 (distribute_loop): Do not distribute loops containing stmts
12066 2013-09-13 Christian Bruel <christian.bruel@st.com>
12069 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
12071 2013-09-13 Kai Tietz <ktietz@redhat.com>
12073 * config.gcc: Separate cases for mingw and cygwin targets,
12074 and add 64-bit cygwin target case.
12076 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
12077 dll-export inline-functions.
12078 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
12080 2013-09-13 Jeff Law <law@redhat.com>
12082 PR middle-end/58387
12084 2013-09-06 Jeff Law <law@redhat.com>
12086 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
12087 edge implied equivalences into successor phis.
12089 2013-09-12 DJ Delorie <dj@redhat.com>
12091 * config/rl78/rl78-virt.md: Change from | to \; for asm line
12094 2013-09-12 Brooks Moses <bmoses@google.com>
12097 * Makefile.in: Do not install driver binaries in $(target)/bin.
12099 2013-09-12 DJ Delorie <dj@redhat.com>
12101 * config/rl78/rl78.opt (mrelax): New.
12102 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
12103 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
12105 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
12107 (rl78_expand_epilogue): Likewise.
12109 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
12111 PR middle-end/58335
12112 * lra-eliminations.c (remove_reg_equal_offset_note): New.
12113 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
12114 pointer elimination with using remove_reg_equal_offset_note.
12116 2013-09-12 DJ Delorie <dj@redhat.com>
12118 * config/msp430/: New port.
12119 * config.gcc (msp430): Added.
12120 * doc/invoke.texi: Document MSP430 options.
12121 * doc/install.texi: Document msp430-elf
12122 * doc/md.texi: Document msp430-elf
12123 * doc/contrib.texi: Document msp430-elf
12125 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
12128 2013-09-12 Martin Jambor <mjambor@suse.cz>
12131 * ipa-prop.c (remove_described_reference): Give up if the edge in the
12132 reference descriptor is NULL.
12133 (ipa_edge_removal_hook): If owning a reference descriptor, set its
12136 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
12138 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
12139 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
12140 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
12141 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
12142 make_temp_ssa_name): move to tree-ssanames.h
12143 * tree-ssa-alias.h: Move prototype.
12144 * tree-ssa.h: Include tree-ssanames.h.
12145 * tree-ssanames.c (FREE_SSANAMES): Move to here.
12146 * tree-ssanames.h: New. Move items from tree-flow*.h
12147 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
12149 2013-09-12 Richard Biener <rguenther@suse.de>
12151 PR tree-optimization/58404
12152 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
12153 propagate non-invariant addresses into dereferences wrapped
12154 in component references.
12156 2013-09-12 Richard Biener <rguenther@suse.de>
12158 PR tree-optimization/58402
12159 * passes.def: Move pass_late_warn_uninitialized later.
12161 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
12163 * tree-ssa.h: New. Move content from tree-flow.h and
12164 tree-flow-inline.h.
12165 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
12166 Move prototypes belonging to tree-ssa.c.
12167 * tree-flow-inline.h (redirect_edge_var_map_def,
12168 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
12170 * gimple.h: Adjust prototypes.
12171 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
12173 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
12174 * tree.h: Move prototype to tree-ssa.h.
12175 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
12176 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
12177 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
12178 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
12179 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
12180 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
12181 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
12182 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
12183 graphite-blocking.c, graphite-clast-to-gimple.c,
12184 graphite-dependences.c, graphite-interchange.c,
12185 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
12186 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
12187 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
12188 ipa-reference.c, ipa-split.c, ipa-utils.c,
12189 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
12190 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
12191 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
12192 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
12193 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
12194 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
12195 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
12196 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
12197 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
12198 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
12199 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
12200 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
12201 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
12202 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
12203 value-prof.c, var-tracking.c,
12204 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
12206 2013-09-12 Richard Biener <rguenther@suse.de>
12208 PR tree-optimization/58396
12209 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
12210 (build_rdg): Take a loop-nest parameter, fix memleaks.
12211 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
12213 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
12215 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
12218 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
12220 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
12221 The FMA instruction names should have a 'v' prefix.
12223 2013-09-12 Richard Biener <rguenther@suse.de>
12225 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
12226 (dot_rdg): Use popen instead of system in optional code.
12227 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
12228 (already_processed_vertex_p): Adjust.
12229 (has_anti_or_output_dependence, predecessor_has_mem_write,
12230 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
12231 rdg_flag_uses): Remove.
12232 (rdg_flag_vertex): Simplify.
12233 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
12235 (build_rdg_partition_for_component): Process the first vertex
12236 of a component only.
12237 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
12239 2013-09-12 Alan Modra <amodra@gmail.com>
12241 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
12243 2013-09-11 DJ Delorie <dj@redhat.com>
12244 Nick Clifton <nickc@redhat.com>
12246 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
12247 (rl78_stack_based_mem): New.
12248 * config/rl78/constraints.md (Iv08): New.
12257 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
12259 (movsi): Change from expand to insn-and-split.
12260 (ashrsi3): Clobber AX.
12264 * config/rl78/rl78.md (CC_REG): Fix.
12265 (addsi3): Allow memory and immediate operands.
12266 (addsi3_internal): Split into...
12267 (addsi3_internal_virt): ...new, and ...
12268 (addsi3_internal_real): ...new.
12270 (subsi3_internal_virt): New.
12271 (subsi3_internal_real): New.
12272 (mulsi3): Add memory operand.
12273 (mulsi3_rl78): Likewise.
12274 (mulsi3_g13): Likewise.
12275 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
12276 (cbranchqi4_real): Add more constraint options.
12277 (cbranchhi4_real): Expand pattern.
12278 (cbranchhi4_real_signed): New.
12279 (cbranchhi4_real_inverted): New.
12280 (cbranchsi4_real_lt): New.
12281 (cbranchsi4_real_ge): New.
12282 (cbranchsi4_real_signed): New.
12283 (cbranchsi4_real): New.
12285 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
12287 (lshrsi3_virt): Likewise.
12288 (ashlsi3_virt): Likewise.
12289 (cbranchqi4_virt_signed): New.
12290 (cbranchhi4_virt_signed): New.
12291 (cbranchsi4_virt): New.
12292 * config/rl78/rl78.c: Whitespace fixes throughout.
12293 (move_elim_pass): New.
12294 (pass_data_rl78_move_elim): New.
12295 (pass_rl78_move_elim): New.
12296 (make_pass_rl78_move_elim): New.
12297 (rl78_devirt_info): Run devirt earlier.
12298 (rl78_move_elim_info): New.
12299 (rl78_asm_file_start): Register it.
12300 (rl78_split_movsi): New.
12301 (rl78_as_legitimate_address): Allow virtual base registers when
12303 (rl78_addr_space_convert): Remove spurious debug stuff.
12304 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
12305 (rl78_print_operand): More cases for not printing '#'.
12306 (rl78_expand_compare): Remove most of the logic.
12307 (content_memory): New.
12308 (clear_content_memory): New.
12309 (get_content_index): New.
12310 (get_content_name): New.
12311 (display_content_memory): New.
12312 (update_content): New.
12313 (record_content): New.
12314 (already_contains): New.
12315 (insn_ok_now): Re-recog insns with virtual registers.
12316 (add_postponed_content_update): New.
12317 (process_postponed_content_update): New.
12318 (gen_and_emit_move): New.
12319 (transcode_memory_rtx): Record new location content.
12320 Use gen_and_emit_move.
12321 (force_into_acc): New.
12322 (move_to_acc): Use gen_and_emit_move.
12323 (move_from_acc): Likewise.
12324 (move_acc_to_reg): Likewise.
12325 (move_to_x): Likewise.
12326 (move_to_hl): Likewise.
12327 (move_to_de): Likewise.
12328 (rl78_alloc_physical_registers_op1): Record location content.
12329 (has_constraint): New.
12330 (rl78_alloc_physical_registers_op2): Record location content.
12331 Optimize use of HL.
12332 (rl78_alloc_physical_registers_ro1): Likewise.
12333 (rl78_alloc_physical_registers_cmp): Likewise.
12334 (rl78_alloc_physical_registers_umul): Likewise.
12335 (rl78_alloc_address_registers_macax): New.
12336 (rl78_alloc_physical_registers): Initialize and set location
12337 content memory as needed.
12338 (rl78_reorg): Make sure split2 is called.
12339 (rl78_rtx_costs): New.
12341 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
12343 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
12344 for (not (neg ...)) and (neg (not ...)) cases.
12346 2013-09-11 Richard Biener <rguenther@suse.de>
12348 PR middle-end/58377
12349 * passes.def: Split critical edges before late uninit warning passes.
12350 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
12352 2013-09-11 Jakub Jelinek <jakub@redhat.com>
12354 PR tree-optimization/58385
12355 * fold-const.c (build_range_check): If both low and high are NULL,
12356 use omit_one_operand_loc to preserve exp side-effects.
12358 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12360 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
12362 2013-09-11 Richard Biener <rguenther@suse.de>
12364 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
12365 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
12366 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
12367 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
12368 stmts_from_loop, known_dependences_p, build_empty_rdg,
12369 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
12370 * tree-loop-distribution.c: ... here.
12371 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
12372 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
12373 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
12374 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
12375 * tree-loop-distribution.c: ... here.
12376 * tree-loop-distribution.c: Include gimple-pretty-print.h.
12377 (struct partition_s): Add loops member.
12378 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
12379 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
12380 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
12382 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12383 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12384 Sergey Lega <sergey.s.lega@intel.com>
12385 Anna Tikhonova <anna.tikhonova@intel.com>
12386 Ilya Tocar <ilya.tocar@intel.com>
12387 Andrey Turetskiy <andrey.turetskiy@intel.com>
12388 Ilya Verbin <ilya.verbin@intel.com>
12389 Kirill Yukhin <kirill.yukhin@intel.com>
12390 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12392 * config/i386/constraints.md (k): New.
12394 * config/i386/i386.c (const regclass_map): Add new mask registers.
12395 (dbx_register_map): Ditto.
12396 (dbx64_register_map): Ditto.
12397 (svr4_dbx_register_map): Ditto.
12398 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
12400 (ix86_preferred_reload_class): Disable constants for mask registers.
12401 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
12402 (ix86_hard_regno_mode_ok): Support new mask registers.
12403 (x86_order_regs_for_local_alloc): Ditto.
12404 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
12405 (FIXED_REGISTERS): Add new mask registers.
12406 (CALL_USED_REGISTERS): Ditto.
12407 (REG_ALLOC_ORDER): Ditto.
12408 (VALID_MASK_REG_MODE): New.
12409 (FIRST_MASK_REG): Ditto.
12410 (LAST_MASK_REG): Ditto.
12411 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
12412 (MAYBE_MASK_CLASS_P): New.
12413 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
12414 (REG_CLASS_CONTENTS): Ditto.
12415 (MASK_REGNO_P): New.
12416 (ANY_MASK_REG_P): Ditto.
12417 (HI_REGISTER_NAMES): Add new mask registers.
12418 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
12419 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
12421 (attribute "type"): Add mskmov, msklog.
12422 (attribute "length_immediate"): Support them.
12423 (attribute "memory"): Ditto.
12424 (attribute "prefix_0f"): Ditto.
12425 (*movhi_internal): Support new mask registers.
12426 (*movqi_internal): Ditto.
12427 (define_split): Split out clobber pattern is a logic
12428 insn on mask registers.
12429 (*k<logic><mode>): New.
12430 (*andhi_1): Extend to support mask regs.
12431 (*andqi_1): Extend to support mask regs.
12432 (kandn<mode>): New.
12433 (define_split): Split and-not to and and not if operands
12435 (*<code><mode>_1): Separate HI mode to new pattern...
12436 (*<code>hi_1): This.
12437 (*<code>qi_1): Extend to support mask regs.
12438 (kxnor<mode>): New.
12439 (kortestzhi): Ditto.
12440 (kortestchi): Ditto.
12442 (*one_cmpl<mode>2_1): Remove HImode and handle it...
12443 (*one_cmplhi2_1): ...Here, now with mask registers support.
12444 (*one_cmplqi2_1): Support new mask registers.
12445 (HI/QImode arithmetics splitter): Don't split if mask registers
12447 (HI/QImode not splitter): Ditto.
12448 * config/i386/predicated.md (mask_reg_operand): New.
12449 (general_reg_operand): Ditto.
12451 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
12453 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
12454 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
12456 2013-09-10 Jeff Law <law@redhat.com>
12458 PR tree-optimization/58380
12459 * tree-ssa-threadupdate.c (thread_block): Recognize another case
12460 of threading through a buried loop header.
12462 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
12463 return value for single successor case.
12465 2013-09-10 Jan Hubicka <jh@suse.cz>
12467 * ipa-devirt.c (ipa_devirt): Enable with LTO.
12469 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
12472 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
12473 support conditional execution.
12474 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
12476 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
12478 * lra.c (lra): Clear lra_optional_reload_pseudos before every
12480 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
12481 Check destination too to check move insn.
12482 (undo_optional_reloads): Add check that the original peudo did not
12483 changed its allocation and the optional reload was inherited on last
12484 inheritance pass. Break loop after deciding to keep optional reload.
12485 (lra_undo_inheritance): Add check that inherited pseudo still in
12488 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
12490 * config/aarch64/aarch64.md (generic_sched): New.
12491 * config/aarch64/aarch64-generic.md (load): Make conditional
12492 on generic_sched attribute.
12493 (nonload): Likewise.
12495 2013-09-10 Jan Hubicka <jh@suse.cz>
12497 * lto-cgraph.c: Include ipa-utils.h.
12498 (compute_ltrans_boundary): Also add possible targets into the boundary.
12500 2013-09-10 Jan Hubicka <jh@suse.cz>
12502 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
12503 VAR_DECL of vtable rather than full expression.
12505 2013-09-10 Jan Hubicka <jh@suse.cz>
12506 Paolo Carlini <paolo.carlini@oracle.com>
12508 * cgraphunit.c (analyze_functions): Save input_location, set it
12509 to UNKNOWN_LOCATION and restore it at the end.
12511 2013-09-10 Martin Jambor <mjambor@suse.cz>
12513 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
12514 represented by a thunk.
12516 2013-09-10 Jeff Law <law@redhat.com>
12518 PR tree-optimization/58343
12519 * tree-ssa-threadupdate.c (thread_block): Identify and disable
12520 jump threading requests through loop headers buried in the middle
12521 of a jump threading path.
12523 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
12524 in return value/type.
12526 2013-09-10 Jakub Jelinek <jakub@redhat.com>
12528 PR rtl-optimization/58365
12529 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
12530 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
12533 2013-09-10 Richard Biener <rguenther@suse.de>
12535 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
12536 * tree-data-ref.c (create_rdg_vertices): Collect all data
12537 references, signal failure to the caller, use data-ref API.
12538 (build_rdg): Compute data references only once. Maintain lifetime
12539 of data references and data dependences from within RDG.
12540 (free_rdg): Free dependence relations.
12541 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
12542 inventing extra dependences.
12543 (distribute_loop): Update for RDG API changes.
12545 2013-09-10 Kai Tietz <ktietz@redhat.com>
12547 * doc/invoke.texi (fms-extensions): Document changed
12548 behavior for ms-abi targets.
12549 * config/i386/i386.c (ix86_option_override_internal):
12550 Set default value of option -fms-extension for ms-abi targets.
12552 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
12554 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
12556 2013-09-10 Alan Modra <amodra@gmail.com>
12559 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
12561 2013-09-10 Alan Modra <amodra@gmail.com>
12563 * config/rs6000/predicates.md (add_cint_operand): New.
12564 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
12565 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
12566 using add_cint_operand.
12567 (largetoc_high_plus_aix): Likewise.
12569 2013-09-09 Jakub Jelinek <jakub@redhat.com>
12571 PR tree-optimization/58364
12572 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
12573 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
12574 the current range can't be an unconditional true or false.
12576 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
12578 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
12580 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
12582 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
12584 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
12587 * doc/invoke.texi (-Wdelete-incomplete): Document it.
12589 2013-09-09 Ian Bolton <ian.bolton@arm.com>
12591 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
12592 NO_REGS for immediate that can't be moved directly into FP_REGS.
12594 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12596 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
12597 comparison with negated operand.
12598 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
12601 2013-09-09 Richard Biener <rguenther@suse.de>
12603 PR middle-end/58326
12604 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
12605 of a subloop record all its block as affecting loop-closed SSA form.
12607 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
12609 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
12610 of an rtx/bitpos pair.
12611 (store_fixed_bit_field): Update accordingly.
12613 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
12615 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
12617 * builtins.c (expand_errno_check): Likewise.
12618 * dwarf2cfi.c (init_return_column_size): Likewise.
12619 * except.c (sjlj_mark_call_sites): Likewise.
12620 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
12621 * lra-constraints.c (emit_inc): Likewise.
12622 * ree.c (combine_set_extension): Likewise.
12623 * regmove.c (fixup_match_2): Likewise.
12624 * reload1.c (inc_for_reload): Likewise.
12626 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
12628 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
12629 (force_to_mode, simplify_shift_const_1, simplify_comparison):
12630 Use gen_int_mode with the mode of the associated simplify_* call.
12631 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
12632 * expmed.c (expand_shift_1): Likewise.
12633 * function.c (instantiate_virtual_regs_in_insn): Likewise.
12634 * loop-iv.c (iv_number_of_iterations): Likewise.
12635 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
12636 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12638 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
12640 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
12641 of the associated expand_* call.
12642 (asan_emit_stack_protection): Likewise.
12643 * builtins.c (round_trampoline_addr): Likewise.
12644 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
12645 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
12646 (emit_store_flag): Likewise.
12647 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
12648 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
12650 * function.c (instantiate_virtual_regs_in_insn): Likewise.
12651 * ifcvt.c (noce_try_store_flag_constants): Likewise.
12652 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
12653 * modulo-sched.c (generate_prolog_epilog): Likewise.
12654 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
12655 (expand_ctz, expand_ffs, expand_unop): Likewise.
12657 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
12659 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
12660 of the associated gen_rtx_* call.
12661 * caller-save.c (init_caller_save): Likewise.
12662 * combine.c (find_split_point, make_extraction): Likewise.
12663 (make_compound_operation): Likewise.
12664 * dwarf2out.c (mem_loc_descriptor): Likewise.
12665 * explow.c (plus_constant, probe_stack_range): Likewise.
12666 * expmed.c (expand_mult_const): Likewise.
12667 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
12668 * reload1.c (init_reload): Likewise.
12669 * valtrack.c (cleanup_auto_inc_dec): Likewise.
12670 * var-tracking.c (adjust_mems): Likewise.
12671 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
12672 rather than gen_rtx_fmt_ee.
12674 2013-09-09 Jan Hubicka <jh@suse.cz>
12676 PR middle-end/58294
12677 * value-prof.c (gimple_ic): Copy also abnormal edges.
12679 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
12681 * asan.c (asan_shadow_cst): Use gen_int_mode.
12683 2013-09-08 Jan Hubicka <jh@suse.cz>
12685 * ipa-profile.c: Add toplevel comment.
12686 (ipa_propagate_frequency_1): Be more conservative when profile is read.
12687 (contains_hot_call_p): New function.
12688 (ipa_propagate_frequency): Set frequencies based on counts when
12690 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
12691 profile; do not tamper with profile after inlining if it is read.
12693 2013-09-08 Jan Hubicka <jh@suse.cz>
12695 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
12698 2013-09-08 Jan Hubicka <jh@suse.cz>
12700 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
12701 summary generation.
12703 2013-09-08 Jeff Law <law@redhat.com>
12706 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
12709 2013-09-08 Andi Kleen <ak@linux.intel.com>
12711 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
12713 2013-09-08 Jan Hubicka <jh@suse.cz>
12715 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
12717 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
12719 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
12720 for non-debug insns.
12721 * lra.c (new_insn_reg): Take the containing insn as a parameter.
12722 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
12723 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
12726 2013-09-08 Jan Hubicka <jh@suse.cz>
12728 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
12729 targets and devirtualize to BUILT_IN_UNREACHABLE.
12730 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
12731 * ipa.c (walk_polymorphic_call_targets): New function.
12732 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
12733 functions; use the new timevar.
12734 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
12735 was removed from the program.
12736 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
12737 not consider it in the walk when its vtable is dead.
12738 (possible_polymorphic_call_targets_1): Pass anonymous flag to
12740 (devirt_variable_node_removal_hook): New function.
12741 (possible_polymorphic_call_targets): Also register
12742 devirt_variable_node_removal_hook.
12743 (ipa_devirt): Do not do non-speculative devirtualization.
12744 (gate_ipa_devirt): One execute if devirtualizing speculatively.
12746 2013-09-08 Jan Hubicka <jh@suse.cz>
12748 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
12749 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
12750 varpool_remove_variable_insertion_hook): Declare.
12751 * varpool.c (varpool_node_hook_list): New structure.
12752 (first_varpool_node_removal_hook,
12753 first_varpool_variable_insertion_hook): New variables.
12754 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
12755 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
12756 varpool_remove_variable_insertion_hook,
12757 varpool_call_variable_insertion_hooks): New functions.
12758 (varpool_remove_node): Use it.
12760 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
12763 * diagnostic.c (diagnostic_build_prefix): When s.file is
12764 "<built-in>" don't output line and column numbers.
12766 2013-09-06 Jan Hubicka <jh@suse.cz>
12768 * cgraphunit.c (expand_thunk): Get body before touching arguments.
12769 * lto-streamer-out.c: Stream thunks, too.
12770 * lto-streamer-in.c (input_function): Pop cfun here
12771 (lto_read_body): Instead of here.
12773 2013-09-06 Caroline Tice <cmtice@google.com>
12775 * doc/install.texi: Add documentation for the --enable-vtable-verify
12776 and the --disable-libvtv configure options.
12778 2013-09-06 Jeff Law <law@redhat.com>
12780 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
12781 edge implied equivalences into successor phis.
12783 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
12785 * resource.c (mark_referenced_resources): Handle COND_EXEC.
12787 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
12789 * resource.c (mark_target_live_regs): Compute resources taking
12790 into account if a call is predicated or not.
12792 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
12794 * toplev.c (output_stack_usage): Be prepared for suffixes created by
12795 the compiler in the function names.
12797 2013-09-06 Jan Hubicka <jh@suse.cz>
12799 PR middle-end/58094
12800 * ipa-inline.c (has_caller_p): New function.
12801 (want_inline_function_to_all_callers_p): Use it.
12802 (sum_callers, inline_to_all_callers): Break out from ...
12803 (ipa_inline): ... here.
12805 2013-09-06 Jan Hubicka <jh@suse.cz>
12807 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
12808 only when AVX is enabled.
12810 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12812 * config/aarch64/aarch64.md
12813 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
12814 is fpsimd_<load/store>2.
12815 (load_pair<mode>): Likewise.
12816 (store_pair<mode>): Likewise.
12818 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12820 * config/arm/types.md (type): Add "mrs" type.
12821 * config/aarch64/aarch64.md
12822 (aarch64_load_tp_hard): Make type "mrs".
12823 * config/arm/arm.md
12824 (load_tp_hard): Make type "mrs".
12825 * config/arm/cortex-a15.md: Update with new attributes.
12826 * config/arm/cortex-a5.md: Update with new attributes.
12827 * config/arm/cortex-a53.md: Update with new attributes.
12828 * config/arm/cortex-a7.md: Update with new attributes.
12829 * config/arm/cortex-a8.md: Update with new attributes.
12830 * config/arm/cortex-a9.md: Update with new attributes.
12831 * config/arm/cortex-m4.md: Update with new attributes.
12832 * config/arm/cortex-r4.md: Update with new attributes.
12833 * config/arm/fa526.md: Update with new attributes.
12834 * config/arm/fa606te.md: Update with new attributes.
12835 * config/arm/fa626te.md: Update with new attributes.
12836 * config/arm/fa726te.md: Update with new attributes.
12838 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12840 * config/aarch64/aarch64.md
12841 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
12842 (*movtf_aarch64): Likewise.
12843 * config/arm/arm.md
12844 (thumb1_movdi_insn): Use "multiple" for type where more than one
12845 instruction is used for a move.
12846 (*arm32_movhf): Likewise.
12847 (*thumb_movdf_insn): Likewise.
12849 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12851 * config/arm/types.md (type): Rename fcpys to fmov.
12852 * config/arm/vfp.md
12853 (*arm_movsi_vfp): Rename type fcpys as fmov.
12854 (*thumb2_movsi_vfp): Likewise
12855 (*movhf_vfp_neon): Likewise
12856 (*movhf_vfp): Likewise
12857 (*movsf_vfp): Likewise
12858 (*thumb2_movsf_vfp): Likewise
12859 (*movsfcc_vfp): Likewise
12860 (*thumb2_movsfcc_vfp): Likewise
12861 * config/aarch64/aarch64-simd.md
12862 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
12863 * config/aarch64/aarch64.md
12864 (*movsi_aarch64): Replace type mov_reg with fmovs.
12865 (*movdi_aarch64): Likewise
12866 (*movsf_aarch64): Likewise
12867 (*movdf_aarch64): Likewise
12869 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
12870 * config/arm/iwmmxt.md
12871 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
12872 * config/arm/arm1020e.md: Update with new attributes.
12873 * config/arm/cortex-a15-neon.md: Update with new attributes.
12874 * config/arm/cortex-a5.md: Update with new attributes.
12875 * config/arm/cortex-a53.md: Update with new attributes.
12876 * config/arm/cortex-a7.md: Update with new attributes.
12877 * config/arm/cortex-a8-neon.md: Update with new attributes.
12878 * config/arm/cortex-a9.md: Update with new attributes.
12879 * config/arm/cortex-m4-fpu.md: Update with new attributes.
12880 * config/arm/cortex-r4f.md: Update with new attributes.
12881 * config/arm/marvell-pj4.md: Update with new attributes.
12882 * config/arm/vfp11.md: Update with new attributes.
12884 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12886 * config/aarch64/aarch64.md
12887 (*madd<mode>): Fix type attribute.
12888 (*maddsi_uxtw): Likewise.
12889 (*msub<mode>): Likewise.
12890 (*msubsi_uxtw): Likewise.
12891 (<su_optab>maddsidi4): Likewise.
12892 (<su_optab>msubsidi4): Likewise.
12894 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12896 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
12897 * config/arm/arm.md (core_cycles): Remove fdiv.
12898 * config/arm/vfp.md:
12899 (*sqrtsf2_vfp): Update for attribute changes.
12900 (*sqrtdf2_vfp): Likewise.
12901 * config/aarch64/aarch64.md:
12902 (sqrt<mode>2): Update for attribute changes.
12903 * config/arm/arm1020e.md: Update with new attributes.
12904 * config/arm/cortex-a15-neon.md: Update with new attributes.
12905 * config/arm/cortex-a5.md: Update with new attributes.
12906 * config/arm/cortex-a53.md: Update with new attributes.
12907 * config/arm/cortex-a7.md: Update with new attributes.
12908 * config/arm/cortex-a8-neon.md: Update with new attributes.
12909 * config/arm/cortex-a9.md: Update with new attributes.
12910 * config/arm/cortex-m4-fpu.md: Update with new attributes.
12911 * config/arm/cortex-r4f.md: Update with new attributes.
12912 * config/arm/marvell-pj4.md: Update with new attributes.
12913 * config/arm/vfp11.md: Update with new attributes.
12915 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12917 * config/arm/types.md
12918 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
12919 * config/aarch64/aarch64.md
12920 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
12922 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
12923 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
12924 (float<GPI:mode><GPF:mode>2): Likewise.
12925 * config/arm/vfp.md
12926 (*truncsisf2_vfp): Update with new attributes.
12927 (*truncsidf2_vfp): Likewise.
12928 (fixuns_truncsfsi2): Likewise.
12929 (fixuns_truncdfsi2): Likewise.
12930 (*floatsisf2_vfp): Likewise.
12931 (*floatsidf2_vfp): Likewise.
12932 (floatunssisf2): Likewise.
12933 (floatunssidf2): Likewise.
12934 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
12935 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
12936 * config/arm/arm1020e.md: Update with new attributes.
12937 * config/arm/cortex-a15-neon.md: Update with new attributes.
12938 * config/arm/cortex-a5.md: Update with new attributes.
12939 * config/arm/cortex-a53.md: Update with new attributes.
12940 * config/arm/cortex-a7.md: Update with new attributes.
12941 * config/arm/cortex-a8-neon.md: Update with new attributes.
12942 * config/arm/cortex-a9.md: Update with new attributes.
12943 * config/arm/cortex-m4-fpu.md: Update with new attributes.
12944 * config/arm/cortex-r4f.md: Update with new attributes.
12945 * config/arm/marvell-pj4.md: Update with new attributes.
12946 * config/arm/vfp11.md: Update with new attributes.
12948 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12950 * config/aarch64/arm_neon.h
12951 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
12952 (vqtbx<1,2,3,4><q>_s8): Likewise.
12954 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
12956 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
12957 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
12958 (add<mode>3): Add type attribute.
12959 (add<mode>3): Likewise.
12960 (usadd<mode>3): Likewise.
12961 (ssadd<mode>3): Likewise.
12962 (sub<mode>3): Likewise.
12963 (sub<mode>3): Likewise.
12964 (ussub<mode>3): Likewise.
12965 (sssub<mode>3): Likewise.
12966 (ssmulsa3): Likewise.
12967 (usmulusa3): Likewise.
12968 (arm_usatsihi): Likewise.
12969 * config/arm/vfp.md
12970 (*movdi_vfp): Add types for all instructions.
12971 (*movdi_vfp_cortexa8): Likewise.
12972 (*movhf_vfp_neon): Likewise.
12973 (*movhf_vfp): Likewise.
12974 (*movdf_vfp): Likewise.
12975 (*thumb2_movdf_vfp): Likewise.
12976 (*thumb2_movdfcc_vfp): Likewise.
12977 * config/arm/arm.md: Add type attribute to all insn patterns.
12978 (*thumb1_adddi3): Add type attribute.
12979 (*arm_adddi3): Likewise.
12980 (*adddi_sesidi_di): Likewise.
12981 (*adddi_zesidi_di): Likewise.
12982 (*thumb1_addsi3): Likewise.
12983 (addsi3_compare0): Likewise.
12984 (*addsi3_compare0_scratch): Likewise.
12985 (*compare_negsi_si): Likewise.
12986 (cmpsi2_addneg): Likewise.
12987 (*addsi3_carryin_<optab>): Likewise.
12988 (*addsi3_carryin_alt2_<optab>): Likewise.
12989 (*addsi3_carryin_clobercc_<optab>): Likewise.
12990 (*subsi3_carryin): Likewise.
12991 (*subsi3_carryin_const): Likewise.
12992 (*subsi3_carryin_compare): Likewise.
12993 (*subsi3_carryin_compare_const): Likewise.
12994 (*arm_subdi3): Likewise.
12995 (*thumb_subdi3): Likewise.
12996 (*subdi_di_zesidi): Likewise.
12997 (*subdi_di_sesidi): Likewise.
12998 (*subdi_zesidi_di): Likewise.
12999 (*subdi_sesidi_di): Likewise.
13000 (*subdi_zesidi_ze): Likewise.
13001 (thumb1_subsi3_insn): Likewise.
13002 (*arm_subsi3_insn): Likewise.
13003 (*anddi3_insn): Likewise.
13004 (*anddi_zesidi_di): Likewise.
13005 (*anddi_sesdi_di): Likewise.
13006 (*ne_zeroextracts): Likewise.
13007 (*ne_zeroextracts): Likewise.
13008 (*ite_ne_zeroextr): Likewise.
13009 (*ite_ne_zeroextr): Likewise.
13010 (*anddi_notdi_di): Likewise.
13011 (*anddi_notzesidi): Likewise.
13012 (*anddi_notsesidi): Likewise.
13013 (andsi_notsi_si): Likewise.
13014 (thumb1_bicsi3): Likewise.
13015 (*iordi3_insn): Likewise.
13016 (*iordi_zesidi_di): Likewise.
13017 (*iordi_sesidi_di): Likewise.
13018 (*thumb1_iorsi3_insn): Likewise.
13019 (*xordi3_insn): Likewise.
13020 (*xordi_zesidi_di): Likewise.
13021 (*xordi_sesidi_di): Likewise.
13022 (*arm_xorsi3): Likewise.
13023 (*andsi_iorsi3_no): Likewise.
13024 (*smax_0): Likewise.
13025 (*smax_m1): Likewise.
13026 (*arm_smax_insn): Likewise.
13027 (*smin_0): Likewise.
13028 (*arm_smin_insn): Likewise.
13029 (*arm_umaxsi3): Likewise.
13030 (*arm_uminsi3): Likewise.
13031 (*minmax_arithsi): Likewise.
13032 (*minmax_arithsi_): Likewise.
13033 (*satsi_<SAT:code>): Likewise.
13034 (arm_ashldi3_1bit): Likewise.
13035 (arm_ashrdi3_1bit): Likewise.
13036 (arm_lshrdi3_1bit): Likewise.
13037 (*arm_negdi2): Likewise.
13038 (*thumb1_negdi2): Likewise.
13039 (*arm_negsi2): Likewise.
13040 (*thumb1_negsi2): Likewise.
13041 (*negdi_extendsid): Likewise.
13042 (*negdi_zero_extend): Likewise.
13043 (*arm_abssi2): Likewise.
13044 (*thumb1_abssi2): Likewise.
13045 (*arm_neg_abssi2): Likewise.
13046 (*thumb1_neg_abss): Likewise.
13047 (one_cmpldi2): Likewise.
13048 (extend<mode>di2): Likewise.
13049 (*compareqi_eq0): Likewise.
13050 (*arm_extendhisi2addsi): Likewise.
13051 (*arm_movdi): Likewise.
13052 (*thumb1_movdi_insn): Likewise.
13053 (*arm_movt): Likewise.
13054 (*thumb1_movsi_insn): Likewise.
13055 (pic_add_dot_plus_four): Likewise.
13056 (pic_add_dot_plus_eight): Likewise.
13057 (tls_load_dot_plus_eight): Likewise.
13058 (*thumb1_movhi_insn): Likewise.
13059 (*thumb1_movsf_insn): Likewise.
13060 (*movdf_soft_insn): Likewise.
13061 (*thumb_movdf_insn): Likewise.
13062 (cbranchsi4_insn): Likewise.
13063 (cbranchsi4_scratch): Likewise.
13064 (*negated_cbranchsi4): Likewise.
13065 (*tbit_cbranch): Likewise.
13066 (*tlobits_cbranch): Likewise.
13067 (*tstsi3_cbranch): Likewise.
13068 (*cbranchne_decr1): Likewise.
13069 (*addsi3_cbranch): Likewise.
13070 (*addsi3_cbranch_scratch): Likewise.
13071 (*arm_cmpdi_insn): Likewise.
13072 (*arm_cmpdi_unsig): Likewise.
13073 (*arm_cmpdi_zero): Likewise.
13074 (*thumb_cmpdi_zero): Likewise.
13075 (*deleted_compare): Likewise.
13076 (*mov_scc): Likewise.
13077 (*mov_negscc): Likewise.
13078 (*mov_notscc): Likewise.
13079 (*cstoresi_eq0_thumb1_insn): Likewise.
13080 (cstoresi_nltu_thumb1): Likewise.
13081 (cstoresi_ltu_thu): Likewise.
13082 (thumb1_addsi3_addgeu): Likewise.
13083 (*arm_jump): Likewise.
13084 (*thumb_jump): Likewise.
13085 (*check_arch2): Likewise.
13086 (arm_casesi_internal): Likewise.
13087 (thumb1_casesi_dispatch): Likewise.
13088 (*arm_indirect_jump): Likewise.
13089 (*thumb1_indirect_jump): Likewise.
13091 (*and_scc): Likewise.
13092 (*ior_scc): Likewise.
13093 (*compare_scc): Likewise.
13094 (*cond_move): Likewise.
13095 (*cond_arith): Likewise.
13096 (*cond_sub): Likewise.
13097 (*cmp_ite0): Likewise.
13098 (*cmp_ite1): Likewise.
13099 (*cmp_and): Likewise.
13100 (*cmp_ior): Likewise.
13101 (*ior_scc_scc): Likewise.
13102 (*ior_scc_scc_cmp): Likewise.
13103 (*and_scc_scc): Likewise.
13104 (*and_scc_scc_cmp): Likewise.
13105 (*and_scc_scc_nod): Likewise.
13106 (*negscc): Likewise.
13107 (movcond_addsi): Likewise.
13108 (movcond): Likewise.
13109 (*ifcompare_plus_move): Likewise.
13110 (*if_plus_move): Likewise.
13111 (*ifcompare_move_plus): Likewise.
13112 (*if_move_plus): Likewise.
13113 (*ifcompare_arith_arith): Likewise.
13114 (*if_arith_arith): Likewise.
13115 (*ifcompare_arith_move): Likewise.
13116 (*if_arith_move): Likewise.
13117 (*ifcompare_move_arith): Likewise.
13118 (*if_move_arith): Likewise.
13119 (*ifcompare_move_not): Likewise.
13120 (*if_move_not): Likewise.
13121 (*ifcompare_not_move): Likewise.
13122 (*if_not_move): Likewise.
13123 (*ifcompare_shift_move): Likewise.
13124 (*if_shift_move): Likewise.
13125 (*ifcompare_move_shift): Likewise.
13126 (*if_move_shift): Likewise.
13127 (*ifcompare_shift_shift): Likewise.
13128 (*ifcompare_not_arith): Likewise.
13129 (*ifcompare_arith_not): Likewise.
13130 (*if_arith_not): Likewise.
13131 (*ifcompare_neg_move): Likewise.
13132 (*if_neg_move): Likewise.
13133 (*ifcompare_move_neg): Likewise.
13134 (*if_move_neg): Likewise.
13135 (prologue_thumb1_interwork): Likewise.
13136 (*cond_move_not): Likewise.
13137 (*sign_extract_onebit): Likewise.
13138 (*not_signextract_onebit): Likewise.
13139 (stack_tie): Likewise.
13140 (align_4): Likewise.
13141 (align_8): Likewise.
13142 (consttable_end): Likewise.
13143 (consttable_1): Likewise.
13144 (consttable_2): Likewise.
13145 (consttable_4): Likewise.
13146 (consttable_8): Likewise.
13147 (consttable_16): Likewise.
13148 (*thumb1_tablejump): Likewise.
13149 (prefetch): Likewise.
13150 (force_register_use): Likewise.
13151 (thumb_eh_return): Likewise.
13152 (load_tp_hard): Likewise.
13153 (load_tp_soft): Likewise.
13154 (tlscall): Likewise.
13155 (*arm_movtas_ze): Likewise.
13156 (*arm_rev): Likewise.
13157 (*arm_revsh): Likewise.
13158 (*arm_rev16): Likewise.
13159 * config/arm/thumb2.md
13160 (*thumb2_smaxsi3): Likewise.
13161 (*thumb2_sminsi3): Likewise.
13162 (*thumb32_umaxsi3): Likewise.
13163 (*thumb2_uminsi3): Likewise.
13164 (*thumb2_negdi2): Likewise.
13165 (*thumb2_abssi2): Likewise.
13166 (*thumb2_neg_abss): Likewise.
13167 (*thumb2_movsi_insn): Likewise.
13168 (tls_load_dot_plus_four): Likewise.
13169 (*thumb2_movhi_insn): Likewise.
13170 (*thumb2_mov_scc): Likewise.
13171 (*thumb2_mov_negs): Likewise.
13172 (*thumb2_mov_negs): Likewise.
13173 (*thumb2_mov_nots): Likewise.
13174 (*thumb2_mov_nots): Likewise.
13175 (*thumb2_movsicc_): Likewise.
13176 (*thumb2_movsfcc_soft_insn): Likewise.
13177 (*thumb2_indirect_jump): Likewise.
13178 (*thumb2_and_scc): Likewise.
13179 (*thumb2_ior_scc): Likewise.
13180 (*thumb2_ior_scc_strict_it): Likewise.
13181 (*thumb2_cond_move): Likewise.
13182 (*thumb2_cond_arith): Likewise.
13183 (*thumb2_cond_ari): Likewise.
13184 (*thumb2_cond_sub): Likewise.
13185 (*thumb2_negscc): Likewise.
13186 (*thumb2_movcond): Likewise.
13187 (thumb2_casesi_internal): Likewise.
13188 (thumb2_casesi_internal_pic): Likewise.
13189 (*thumb2_alusi3_short): Likewise.
13190 (*thumb2_mov<mode>_shortim): Likewise.
13191 (*thumb2_addsi_short): Likewise.
13192 (*thumb2_subsi_short): Likewise.
13193 (thumb2_addsi3_compare0): Likewise.
13194 (*thumb2_cbz): Likewise.
13195 (*thumb2_cbnz): Likewise.
13196 (*thumb2_one_cmplsi2_short): Likewise.
13197 (*thumb2_negsi2_short): Likewise.
13198 (*orsi_notsi_si): Likewise.
13199 * config/arm/arm1020e.md: Update with new attributes.
13200 * config/arm/arm1026ejs.md: Update with new attributes.
13201 * config/arm/arm1136jfs.md: Update with new attributes.
13202 * config/arm/arm926ejs.md: Update with new attributes.
13203 * config/arm/cortex-a15.md: Update with new attributes.
13204 * config/arm/cortex-a5.md: Update with new attributes.
13205 * config/arm/cortex-a53.md: Update with new attributes.
13206 * config/arm/cortex-a7.md: Update with new attributes.
13207 * config/arm/cortex-a8.md: Update with new attributes.
13208 * config/arm/cortex-a9.md: Update with new attributes.
13209 * config/arm/cortex-m4.md: Update with new attributes.
13210 * config/arm/cortex-r4.md: Update with new attributes.
13211 * config/arm/fa526.md: Update with new attributes.
13212 * config/arm/fa606te.md: Update with new attributes.
13213 * config/arm/fa626te.md: Update with new attributes.
13214 * config/arm/fa726te.md: Update with new attributes.
13216 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13218 * config/aarch64/aarch64-simd.md
13219 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
13220 <vwx> iterator to ensure correct register choice.
13221 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
13222 (aarch64_sqdmull_n<mode>): Likewise.
13223 (aarch64_sqdmull2_n<mode>_internal): Likewise.
13224 * config/aarch64/arm_neon.h
13225 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
13226 (vml<as><q>_n_<su>16): Likewise.
13227 (vml<as>l_high_lane<q>_<su>16): Likewise.
13228 (vml<as>l_high_n_<su>16): Likewise.
13229 (vml<as>l_lane<q>_<su>16): Likewise.
13230 (vml<as>l_n_<su>16): Likewise.
13231 (vmul<q>_lane<q>_<su>16): Likewise.
13232 (vmul<q>_n_<su>16): Likewise.
13233 (vmull_lane<q>_<su>16): Likewise.
13234 (vmull_n_<su>16): Likewise.
13235 (vmull_high_lane<q>_<su>16): Likewise.
13236 (vmull_high_n_<su>16): Likewise.
13237 (vqrdmulh<q>_n_s16): Likewise.
13239 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
13241 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
13242 have the correct lane parameter.
13244 2013-09-06 Richard Biener <rguenther@suse.de>
13246 * cfganal.c (control_dependences::~control_dependences):
13247 Properly free all of the vector.
13249 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
13252 * config/i386/i386.c (ix86_conditional_register_usage):
13253 Proper initialize extended SSE registers.
13255 2013-09-06 Jan Hubicka <jh@suse.cz>
13257 PR tree-optimization/58311
13258 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
13260 2013-09-06 Jan Hubicka <jh@suse.cz>
13262 * Makefile.in (tree-sra.o): Update dependencies.
13263 * tree-sra.c: Include ipa-utils.h
13264 (scan_function): Use recursive_call_p.
13265 (has_caller_p): New function.
13266 (cgraph_for_node_and_aliases): Count also callers of aliases.
13268 2013-09-06 Jan Hubicka <jh@suse.cz>
13270 PR middle-end/58094
13271 * cgraph.h (symtab_semantically_equivalent_p): Declare.
13272 * tree-tailcall.c: Include ipa-utils.h.
13273 (find_tail_calls): Use it.
13274 * ipa-pure-const.c (check_call): Likewise.
13275 * ipa-utils.c (recursive_call_p): New function.
13276 * ipa-utils.h (recursive_call_p): Dclare.
13277 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
13278 (symtab_semantically_equivalent_p): New function.
13279 * Makefile.in (tree-tailcall.o): Update dependencies.
13281 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
13283 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
13284 non-inlinable part.
13286 2013-09-06 Richard Biener <rguenther@suse.de>
13288 * lto-streamer.h (lto_global_var_decls): Remove.
13289 * Makefile.in (OBJS): Remove lto-symtab.o.
13290 (lto-symtab.o): Remove.
13291 (GTFILES): Remove lto-symtab.c
13292 * lto-symtab.c: Move to lto/
13294 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13296 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
13297 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
13298 (UNSPEC_FPINT_RINT): New constant definitions.
13299 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
13300 definition with 2 attributes.
13301 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
13302 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
13305 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13307 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
13308 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
13309 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
13310 attribute to "z196_alone".
13311 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
13314 2013-09-06 Richard Biener <rguenther@suse.de>
13316 * basic-block.h (class control_dependences): New.
13317 * tree-ssa-dce.c (control_dependence_map): Remove.
13319 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
13320 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
13321 find_pdom, find_control_dependence, find_all_control_dependences):
13323 (mark_control_dependent_edges_necessary,
13324 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
13325 tree_dce_done, perform_tree_ssa_dce): Adjust.
13326 * cfganal.c (set_control_dependence_map_bit,
13327 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
13328 find_all_control_dependences): Move from tree-ssa-dce.c and
13329 implement as methods of control_dependences class.
13330 (control_dependences::control_dependences): New.
13331 (control_dependences::~control_dependences): Likewise.
13332 (control_dependences::get_edges_dependent_on): Likewise.
13333 (control_dependences::get_edge): Likewise.
13335 2013-09-04 Jan Hubicka <jh@suse.cz>
13337 * tree.c (types_same_for_odr): Drop overactive check.
13338 * ipa-devirt.c (hash_type_name): Likewise.
13340 2013-09-04 Jan Hubicka <jh@suse.cz>
13342 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
13343 (analyze_functions): ... here.
13345 2013-09-04 Jan Hubicka <jh@suse.cz>
13347 PR middle-end/58201
13348 * cgraphunit.c (analyze_functions): Clear AUX fields
13349 after processing; initialize assembler name has.
13351 2013-09-05 Jeff Law <law@redhat.com>
13353 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
13354 from thread_around_empty_block. Record threading path into PATH.
13355 Recurse if threading through the initial block is successful.
13356 (thread_across_edge): Corresponding changes to slightly simplify.
13358 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
13360 * config/aarch64/aarch64.md
13361 (type): Remove frecpe, frecps, frecpx.
13362 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
13363 fix to be a TARGET_SIMD instruction.
13364 (aarch64_frecps): Remove.
13365 * config/aarch64/aarch64-simd.md
13366 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
13367 (aarch64_frecps<mode>): Handle all float/vector of float modes.
13369 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
13370 Sofiane Naci <sofiane.naci@arm.com>
13372 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
13373 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
13374 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
13375 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
13376 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
13377 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
13378 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
13379 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
13380 into "clz, "rbit". Rename "shift" to "shift_imm".
13381 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
13382 changes. Update for attribute changes all occurrences of arlo_* and
13384 * config/arm/arm-fixed.md: Update for attribute changes
13385 all occurrences of arlo_* types.
13386 * config/arm/thumb2.md: Update for attribute changes all occurrences
13388 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
13389 (cortexa7_older_only): Likewise.
13390 (cortexa7_younger): Likewise.
13391 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
13392 (1020alu_shift_op): Likewise.
13393 (1020alu_shift_reg_op): Likewise.
13394 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
13395 (alu_shift_op): Likewise.
13396 (alu_shift_reg_op): Likewise.
13397 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
13398 (11_alu_shift_op): Likewise.
13399 (11_alu_shift_reg_op): Likewise.
13400 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
13401 (9_alu_shift_reg_op): Likewise.
13402 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
13404 (cortex_a15_alu_shift): Likewise.
13405 (cortex_a15_alu_shift_reg): Likewise.
13406 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
13408 (cortex_a5_alu_shift): Likewise.
13409 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
13411 (cortex_a53_alu_shift): Likewise.
13412 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
13414 (cortex_a7_alu_reg): Likewise.
13415 (cortex_a7_alu_shift): Likewise.
13416 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
13418 (cortex_a8_alu_shift): Likewise.
13419 (cortex_a8_alu_shift_reg): Likewise.
13420 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
13421 (cortex_a9_dp_shift): Likewise.
13422 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
13424 * config/arm/cortex-r4.md
13425 (cortex_r4_alu): Update for attribute changes.
13426 (cortex_r4_mov): Likewise.
13427 (cortex_r4_alu_shift_reg): Likewise.
13428 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
13429 (526_alu_shift_op): Likewise.
13430 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
13431 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
13432 (626te_alu_shift_op): Likewise.
13433 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
13434 (726te_alu_shift_op): Likewise.
13435 (726te_alu_shift_reg_op): Likewise.
13436 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
13437 (mp626_alu_shift_op): Likewise.
13438 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
13439 (pj4_alu_conds): Likewise.
13440 (pj4_shift): Likewise.
13441 (pj4_shift_conds): Likewise.
13442 (pj4_alu_shift): Likewise.
13443 (pj4_alu_shift_conds): Likewise.
13444 * config/aarch64/aarch64.md: Update for attribute change
13445 all occurrences of arlo_* and shift* types.
13447 2013-09-05 Mike Stump <mikestump@comcast.net>
13449 * tree.h: Move documentation for tree_function_decl to tree-core.h
13450 with the declaration.
13452 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
13455 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
13456 looking for widest mode.
13458 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
13460 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
13462 2013-09-05 Richard Biener <rguenther@suse.de>
13464 PR tree-optimization/58137
13465 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
13466 Do not create vectors of pointers.
13467 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
13468 types for the components of the vector initializer.
13469 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
13470 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
13472 2013-09-05 Martin Jambor <mjambor@suse.cz>
13474 * ipa-prop.c (remove_described_reference): Accept missing references,
13475 return false if that hppens, otherwise return true.
13476 (cgraph_node_for_jfunc): New function.
13477 (try_decrement_rdesc_refcount): Likewise.
13478 (try_make_edge_direct_simple_call): Use them.
13479 (ipa_edge_removal_hook): Remove references from rdescs.
13480 (ipa_edge_duplication_hook): Clone rdescs and their references
13481 when the new edge has the same caller as the old one.
13482 * cgraph.c (cgraph_resolve_speculation): Remove speculative
13483 reference before removing any edges.
13485 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
13487 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
13489 * thumb2.md (thumb2_storewb_parisi): New pattern.
13491 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
13493 * config/aarch64/aarch64-option-extensions.def: Add
13494 AARCH64_OPT_EXTENSION of 'crc'.
13495 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
13496 (AARCH64_ISA_CRC): Ditto.
13497 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
13498 description of the CRC extension.
13500 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
13502 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
13503 * config/rs6000/linux.h: Ditto.
13504 * alpha/linux.h: Ditto.
13505 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
13506 no_c99_libc_has_function.
13507 * config/c6x/uclinux-elf.h: Ditto.
13508 * config/lm32/uclinux-elf.h: Ditto.
13509 * config/m68k/uclinux.h: Ditto.
13510 * config/moxie/uclinux.h: Ditto.
13511 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
13512 (crisv32-*-linux*, cris-*-linux*): Ditto.
13513 * config/bfin/bfin.c: Include "tm_p.h".
13515 2013-09-05 Richard Biener <rguenther@suse.de>
13517 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
13518 check for a definition without a basic-block.
13520 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
13521 Sofiane Naci <sofiane.naci@arm.com>
13523 * config/aarch64/aarch64.md
13524 (*movti_aarch64): Rename r_2_f and f_2_r.
13525 (*movsf_aarch64): Likewise.
13526 (*movdf_aarch64): Likewise.
13527 (*movtf_aarch64): Likewise.
13528 (aarch64_movdi_<mode>low): Likewise.
13529 (aarch64_movdi_<mode>high): Likewise.
13530 (aarch64_mov<mode>high_di): Likewise.
13531 (aarch64_mov<mode>low_di): Likewise.
13532 (aarch64_movtilow_tilow): Likewise.
13533 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
13534 values to config/arm/types.md
13535 (attribute "conds"): Update for attribute change.
13536 (anddi3_insn): Likewise.
13537 (iordi3_insn): Likewise.
13538 (xordi3_insn): Likewise.
13539 (one_cmpldi2): Likewise.
13540 * config/arm/types.md (type): Add Neon types.
13541 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
13542 use "type" attribute.
13543 (movmisalign<mode>_neon_store): Likewise.
13544 (movmisalign<mode>_neon_load): Likewise.
13545 (vec_set<mode>_internal): Likewise.
13546 (vec_setv2di_internal): Likewise.
13547 (vec_extract<mode>): Likewise.
13548 (vec_extractv2di): Likewise.
13549 (add<mode>3_neon): Likewise.
13550 (adddi3_neon): Likewise.
13551 (sub<mode>3_neon): Likewise.
13552 (subdi3_neon): Likewise.
13553 (mul<mode>3_neon): Likewise.
13554 (mul<mode>3add<mode>_neon): Likewise.
13555 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
13556 (fma<VCVTF:mode>4)): Likewise.
13557 (fma<VCVTF:mode>4_intrinsic): Likewise.
13558 (fmsub<VCVTF:mode>4)): Likewise.
13559 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
13560 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
13561 (ior<mode>3): Likewise.
13562 (and<mode>3): Likewise.
13563 (anddi3_neon): Likewise.
13564 (orn<mode>3_neon): Likewise.
13565 (orndi3_neon): Likewise.
13566 (bic<mode>3_neon): Likewise.
13567 (bicdi3_neon): Likewise.
13568 (xor<mode>3): Likewise.
13569 (one_cmpl<mode>2): Likewise.
13570 (abs<mode>2): Likewise.
13571 (neg<mode>2): Likewise.
13572 (umin<mode>3_neon): Likewise.
13573 (umax<mode>3_neon): Likewise.
13574 (smin<mode>3_neon): Likewise.
13575 (smax<mode>3_neon): Likewise.
13576 (vashl<mode>3): Likewise.
13577 (vashr<mode>3_imm): Likewise.
13578 (vlshr<mode>3_imm): Likewise.
13579 (ashl<mode>3_signed): Likewise.
13580 (ashl<mode>3_unsigned): Likewise.
13581 (neon_load_count): Likewise.
13582 (ashldi3_neon_noclobber): Likewise.
13583 (signed_shift_di3_neon): Likewise.
13584 (unsigned_shift_di3_neon): Likewise.
13585 (ashrdi3_neon_imm_noclobber): Likewise.
13586 (lshrdi3_neon_imm_noclobber): Likewise.
13587 (widen_ssum<mode>3): Likewise.
13588 (widen_usum<mode>3): Likewise.
13589 (quad_halves_<code>v4si): Likewise.
13590 (quad_halves_<code>v4sf): Likewise.
13591 (quad_halves_<code>v8hi): Likewise.
13592 (quad_halves_<code>v16qi): Likewise.
13593 (reduc_splus_v2di): Likewise.
13594 (neon_vpadd_internal<mode>): Likewise.
13595 (neon_vpsmin<mode>): Likewise.
13596 (neon_vpsmax<mode>): Likewise.
13597 (neon_vpumin<mode>): Likewise.
13598 (neon_vpumax<mode>): Likewise.
13599 (ss_add<mode>_neon): Likewise.
13600 (us_add<mode>_neon): Likewise.
13601 (ss_sub<mode>_neon): Likewise.
13602 (us_sub<mode>_neon): Likewise.
13603 (neon_vadd<mode>_unspec): Likewise.
13604 (neon_vaddl<mode>): Likewise.
13605 (neon_vaddw<mode>): Likewise.
13606 (neon_vhadd<mode>): Likewise.
13607 (neon_vqadd<mode>): Likewise.
13608 (neon_vaddhn<mode>): Likewise.
13609 (neon_vmul<mode>): Likewise.
13610 (neon_vmla<mode>): Likewise.
13611 (neon_vmlal<mode>): Likewise.
13612 (neon_vmls<mode>): Likewise.
13613 (neon_vmlsl<mode>): Likewise.
13614 (neon_vqdmulh<mode>): Likewise.
13615 (neon_vqdmlal<mode>): Likewise.
13616 (neon_vqdmlsl<mode>): Likewise.
13617 (neon_vmull<mode>): Likewise.
13618 (neon_vqdmull<mode>): Likewise.
13619 (neon_vsub<mode>_unspec): Likewise.
13620 (neon_vsubl<mode>): Likewise.
13621 (neon_vsubw<mode>): Likewise.
13622 (neon_vqsub<mode>): Likewise.
13623 (neon_vhsub<mode>): Likewise.
13624 (neon_vsubhn<mode>): Likewise.
13625 (neon_vceq<mode>): Likewise.
13626 (neon_vcge<mode>): Likewise.
13627 (neon_vcgeu<mode>): Likewise.
13628 (neon_vcgt<mode>): Likewise.
13629 (neon_vcgtu<mode>): Likewise.
13630 (neon_vcle<mode>): Likewise.
13631 (neon_vclt<mode>): Likewise.
13632 (neon_vcage<mode>): Likewise.
13633 (neon_vcagt<mode>): Likewise.
13634 (neon_vtst<mode>): Likewise.
13635 (neon_vabd<mode>): Likewise.
13636 (neon_vabdl<mode>): Likewise.
13637 (neon_vaba<mode>): Likewise.
13638 (neon_vabal<mode>): Likewise.
13639 (neon_vmax<mode>): Likewise.
13640 (neon_vmin<mode>): Likewise.
13641 (neon_vpaddl<mode>): Likewise.
13642 (neon_vpadal<mode>): Likewise.
13643 (neon_vpmax<mode>): Likewise.
13644 (neon_vpmin<mode>): Likewise.
13645 (neon_vrecps<mode>): Likewise.
13646 (neon_vrsqrts<mode>): Likewise.
13647 (neon_vqabs<mode>): Likewise.
13648 (neon_vqneg<mode>): Likewise.
13649 (neon_vcls<mode>): Likewise.
13650 (clz<mode>2): Likewise.
13651 (popcount<mode>2): Likewise.
13652 (neon_vrecpe): Likewise.
13653 (neon_vrsqrte): Likewise.
13654 (neon_vget_lane<mode>_sext_internal): Likewise.
13655 (neon_vget_lane<mode>_zext_internal): Likewise.
13656 (neon_vdup_n<mode>): Likewise.
13657 (neon_vdup_nv2di): Likewise.
13658 (neon_vdpu_lane<mode>_internal): Likewise.
13659 (neon_vswp<mode>): Likewise.
13660 (float<mode><V_cvtto>2): Likewise.
13661 (floatuns<mode><V_cvtto>2): Likewise.
13662 (fix_trunc<mode><V_cvtto>)2): Likewise
13663 (fixuns_trunc<mode><V_cvtto)2): Likewise.
13664 (neon_vcvt<mode>): Likewise.
13665 (neon_vcvtv4sfv4hf): Likewise.
13666 (neon_vcvtv4hfv4sf): Likewise.
13667 (neon_vcvt_n<mode>): Likewise.
13668 (neon_vmovn<mode>): Likewise.
13669 (neon_vqmovn<mode>): Likewise.
13670 (neon_vqmovun<mode>): Likewise.
13671 (neon_vmovl<mode>): Likewise.
13672 (neon_vmul_lane<mode>): Likewise.
13673 (neon_vmull_lane<mode>): Likewise.
13674 (neon_vqdmull_lane<mode>): Likewise.
13675 (neon_vqdmulh_lane<mode>): Likewise.
13676 (neon_vmla_lane<mode>): Likewise.
13677 (neon_vmlal_lane<mode>): Likewise.
13678 (neon_vqdmlal_lane<mode>): Likewise.
13679 (neon_vmls_lane<mode>): Likewise.
13680 (neon_vmlsl_lane<mode>): Likewise.
13681 (neon_vqdmlsl_lane<mode>): Likewise.
13682 (neon_vext<mode>): Likewise.
13683 (neon_vrev64<mode>): Likewise.
13684 (neon_vrev32<mode>): Likewise.
13685 (neon_vrev16<mode>): Likewise.
13686 (neon_vbsl<mode>_internal): Likewise.
13687 (neon_vshl<mode>): Likewise.
13688 (neon_vqshl<mode>): Likewise.
13689 (neon_vshr_n<mode>): Likewise.
13690 (neon_vshrn_n<mode>): Likewise.
13691 (neon_vqshrn_n<mode>): Likewise.
13692 (neon_vqshrun_n<mode>): Likewise.
13693 (neon_vshl_n<mode>): Likewise.
13694 (neon_vqshl_n<mode>): Likewise.
13695 (neon_vqshlu_n<mode>): Likewise.
13696 (neon_vshll_n<mode>): Likewise.
13697 (neon_vsra_n<mode>): Likewise.
13698 (neon_vsri_n<mode>): Likewise.
13699 (neon_vsli_n<mode>): Likewise.
13700 (neon_vtbl1v8qi): Likewise.
13701 (neon_vtbl2v8qi): Likewise.
13702 (neon_vtbl3v8qi): Likewise.
13703 (neon_vtbl4v8qi): Likewise.
13704 (neon_vtbx1v8qi): Likewise.
13705 (neon_vtbx2v8qi): Likewise.
13706 (neon_vtbx3v8qi): Likewise.
13707 (neon_vtbx4v8qi): Likewise.
13708 (neon_vtrn<mode>_internal): Likewise.
13709 (neon_vzip<mode>_internal): Likewise.
13710 (neon_vuzp<mode>_internal): Likewise.
13711 (neon_vld1<mode>): Likewise.
13712 (neon_vld1_lane<mode>): Likewise.
13713 (neon_vld1_dup<mode>): Likewise.
13714 (neon_vld1_dupv2di): Likewise.
13715 (neon_vst1<mode>): Likewise.
13716 (neon_vst1_lane<mode>): Likewise.
13717 (neon_vld2<mode>): Likewise.
13718 (neon_vld2_lane<mode>): Likewise.
13719 (neon_vld2_dup<mode>): Likewise.
13720 (neon_vst2<mode>): Likewise.
13721 (neon_vst2_lane<mode>): Likewise.
13722 (neon_vld3<mode>): Likewise.
13723 (neon_vld3qa<mode>): Likewise.
13724 (neon_vld3qb<mode>): Likewise.
13725 (neon_vld3_lane<mode>): Likewise.
13726 (neon_vld3_dup<mode>): Likewise.
13727 (neon_vst3<mode>): Likewise.
13728 (neon_vst3qa<mode>): Likewise.
13729 (neon_vst3qb<mode>): Likewise.
13730 (neon_vst3_lane<mode>): Likewise.
13731 (neon_vld4<mode>): Likewise.
13732 (neon_vld4qa<mode>): Likewise.
13733 (neon_vld4qb<mode>): Likewise.
13734 (neon_vld4_lane<mode>): Likewise.
13735 (neon_vld4_dup<mode>): Likewise.
13736 (neon_vst4<mode>): Likewise.
13737 (neon_vst4qa<mode>): Likewise.
13738 (neon_vst4qb<mode>): Likewise.
13739 (neon_vst4_lane<mode>): Likewise.
13740 (neon_vec_unpack<US>_lo_<mode>): Likewise.
13741 (neon_vec_unpack<US>_hi_<mode>): Likewise.
13742 (neon_vec_<US>mult_lo_<mode>): Likewise.
13743 (neon_vec_<US>mult_hi_<mode>): Likewise.
13744 (neon_vec_<US>shiftl_<mode>): Likewise.
13745 (neon_unpack<US>_<mode>): Likewise.
13746 (neon_vec_<US>mult_<mode>): Likewise.
13747 (vec_pack_trunc_<mode>): Likewise.
13748 (neon_vec_pack_trunk_<mode>): Likewise.
13749 (neon_vabd<mode>_2): Likewise.
13750 (neon_vabd<mode>_3): Likewise.
13751 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
13752 (thumb2_movsi_vfp): Likewise.
13753 (movdi_vfp): Likewise.
13754 (movdi_vfp_cortexa8): Likewise.
13755 (movhf_vfp_neon): Likewise.
13756 (movhf_vfp): Likewiwse.
13757 (movsf_vfp): Likewiwse.
13758 (thumb2_movsf_vfp): Likewiwse.
13759 (movdf_vfp): Likewise.
13760 (thumb2_movdf_vfp): Likewise.
13761 (movsfcc_vfp): Likewise.
13762 (thumb2_movsfcc_vfp): Likewise.
13763 (movdfcc_vfp): Likewise.
13764 (thumb2_movdfcc_vfp): Likewise.
13765 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
13766 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
13767 (v10_v2c): Likewise.
13768 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
13770 (cortex_a15_neon_int_2): Likewise.
13771 (cortex_a15_neon_int_3): Likewise.
13772 (cortex_a15_neon_int_4): Likewise.
13773 (cortex_a15_neon_int_5): Likewise.
13774 (cortex_a15_neon_vqneg_vqabs): Likewise.
13775 (cortex_a15_neon_vmov): Likewise.
13776 (cortex_a15_neon_vaba): Likewise.
13777 (cortex_a15_neon_vaba_qqq): Likewise.
13778 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13779 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13780 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
13781 scalar_64_32_long_scalar): Likewise.
13782 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13783 (cortex_a15_neon_mla_qqq_8_16): Likewise.
13784 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
13785 lotype_qdd_64_32_long): Likewise.
13786 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13787 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13788 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
13789 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13790 (cortex_a15_neon_shift_1): Likewise.
13791 (cortex_a15_neon_shift_2): Likewise.
13792 (cortex_a15_neon_shift_3): Likewise.
13793 (cortex_a15_neon_vshl_ddd): Likewise.
13794 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13795 (cortex_a15_neon_vsra_vrsra): Likewise.
13796 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
13797 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
13798 (cortex_a15_neon_fp_vmul_ddd): Likewise.
13799 (cortex_a15_neon_fp_vmul_qqd): Likewise.
13800 (cortex_a15_neon_fp_vmla_ddd): Likewise.
13801 (cortex_a15_neon_fp_vmla_qqq): Likewise.
13802 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
13803 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
13804 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13805 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13806 (cortex_a15_neon_bp_simple): Likewise.
13807 (cortex_a15_neon_bp_2cycle): Likewise.
13808 (cortex_a15_neon_bp_3cycle): Likewise.
13809 (cortex_a15_neon_vld1_1_2_regs): Likewise.
13810 (cortex_a15_neon_vld1_3_4_regs): Likewise.
13811 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13812 (cortex_a15_neon_vld2_4_regs): Likewise.
13813 (cortex_a15_neon_vld3_vld4): Likewise.
13814 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13815 (cortex_a15_neon_vst1_3_4_regs): Likewise.
13816 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
13817 (cortex_a15_neon_vst3_vst4): Likewise.
13818 (cortex_a15_neon_vld1_vld2_lane): Likewise.
13819 (cortex_a15_neon_vld3_vld4_lane" 10
13820 (cortex_a15_neon_vst1_vst2_lane): Likewise.
13821 (cortex_a15_neon_vst3_vst4_lane): Likewise.
13822 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
13823 (cortex_a15_neon_ldm_2): Likewise.0
13824 (cortex_a15_neon_stm_2): Likewise.
13825 (cortex_a15_neon_mcr): Likewise.
13826 (cortex_a15_neon_mcr_2_mcrr): Likewise.
13827 (cortex_a15_neon_mrc): Likewise.
13828 (cortex_a15_neon_mrrc): Likewise.
13829 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
13831 (cortex_a15_alu_shift): Likewise.
13832 (cortex_a15_alu_shift_reg): Likewise.
13833 (cortex_a15_mult32): Likewise.
13834 (cortex_a15_mult64): Likewise.
13835 (cortex_a15_block): Likewise.
13836 (cortex_a15_branch): Likewise.
13837 (cortex_a15_load1): Likewise.
13838 (cortex_a15_load3): Likewise.
13839 (cortex_a15_store1): Likewise.
13840 (cortex_a15_store3): Likewise.
13841 (cortex_a15_call): Likewise.
13842 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
13843 (cortex_a5_f2r): Likewise.
13844 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
13846 (cortex_a53_f2r): Likewise.
13847 * config/arm/cortex-a7.md
13848 (cortex_a7_branch): Update for attribute change.
13849 (cortex_a7_call): Likewise.
13850 (cortex_a7_alu_imm): Likewise.
13851 (cortex_a7_alu_reg): Likewise.
13852 (cortex_a7_alu_shift): Likewise.
13853 (cortex_a7_mul): Likewise.
13854 (cortex_a7_load1): Likewise.
13855 (cortex_a7_store1): Likewise.
13856 (cortex_a7_load2): Likewise.
13857 (cortex_a7_store2): Likewise.
13858 (cortex_a7_load3): Likewise.
13859 (cortex_a7_store3): Likewise.
13860 (cortex_a7_load4): Likewise.
13861 (cortex_a7_store4): Likewise.
13862 (cortex_a7_fpalu): Likewise.
13863 (cortex_a7_fconst): Likewise.
13864 (cortex_a7_fpmuls): Likewise.
13865 (cortex_a7_neon_mul): Likewise.
13866 (cortex_a7_fpmacs): Likewise.
13867 (cortex_a7_neon_mla: Likewise.
13868 (cortex_a7_fpmuld: Likewise.
13869 (cortex_a7_fpmacd: Likewise.
13870 (cortex_a7_fpfmad: Likewise.
13871 (cortex_a7_fdivs: Likewise.
13872 (cortex_a7_fdivd: Likewise.
13873 (cortex_a7_r2f: Likewise.
13874 (cortex_a7_f2r: Likewise.
13875 (cortex_a7_f_flags: Likewise.
13876 (cortex_a7_f_loads: Likewise.
13877 (cortex_a7_f_loadd: Likewise.
13878 (cortex_a7_f_stores: Likewise.
13879 (cortex_a7_f_stored: Likewise.
13880 (cortex_a7_neon): Likewise.
13881 * config/arm/cortex-a8-neon.md
13882 (cortex_a8_neon_mrc): Update for attribute change.
13883 (cortex_a8_neon_mrrc): Likewise.
13884 (cortex_a8_neon_int_1): Likewise.
13885 (cortex_a8_neon_int_2): Likewise.
13886 (cortex_a8_neon_int_3): Likewise.
13887 (cortex_a8_neon_int_4): Likewise.
13888 (cortex_a8_neon_int_5): Likewise.
13889 (cortex_a8_neon_vqneg_vqabs): Likewise.
13890 (cortex_a8_neon_vmov): Likewise.
13891 (cortex_a8_neon_vaba): Likewise.
13892 (cortex_a8_neon_vaba_qqq): Likewise.
13893 (cortex_a8_neon_vsma): Likewise.
13894 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13895 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13896 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
13897 long_scalar): Likewise.
13898 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13899 (cortex_a8_neon_mla_qqq_8_16): Likewise.
13900 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
13901 long_scalar_qdd_64_32_long): Likewise.
13902 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13903 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13904 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
13905 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13906 (cortex_a8_neon_shift_1): Likewise.
13907 (cortex_a8_neon_shift_2): Likewise.
13908 (cortex_a8_neon_shift_3): Likewise.
13909 (cortex_a8_neon_vshl_ddd): Likewise.
13910 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13911 (cortex_a8_neon_vsra_vrsra): Likewise.
13912 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
13913 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
13914 (cortex_a8_neon_fp_vsum): Likewise.
13915 (cortex_a8_neon_fp_vmul_ddd): Likewise.
13916 (cortex_a8_neon_fp_vmul_qqd): Likewise.
13917 (cortex_a8_neon_fp_vmla_ddd): Likewise.
13918 (cortex_a8_neon_fp_vmla_qqq): Likewise.
13919 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
13920 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
13921 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13922 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13923 (cortex_a8_neon_bp_simple): Likewise.
13924 (cortex_a8_neon_bp_2cycle): Likewise.
13925 (cortex_a8_neon_bp_3cycle): Likewise.
13926 (cortex_a8_neon_ldr): Likewise.
13927 (cortex_a8_neon_str): Likewise.
13928 (cortex_a8_neon_vld1_1_2_regs): Likewise.
13929 (cortex_a8_neon_vld1_3_4_regs): Likewise.
13930 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13931 (cortex_a8_neon_vld2_4_regs): Likewise.
13932 (cortex_a8_neon_vld3_vld4): Likewise.
13933 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13934 (cortex_a8_neon_vst1_3_4_regs): Likewise.
13935 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
13936 (cortex_a8_neon_vst3_vst4): Likewise.
13937 (cortex_a8_neon_vld1_vld2_lane): Likewise.
13938 (cortex_a8_neon_vld3_vld4_lane): Likewise.
13939 (cortex_a8_neon_vst1_vst2_lane): Likewise.
13940 (cortex_a8_neon_vst3_vst4_lane): Likewise.
13941 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
13942 (cortex_a8_neon_mcr): Likewise.
13943 (cortex_a8_neon_mcr_2_mcrr): Likewise.
13944 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
13945 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
13947 (ca9_neon_mrrc): Likewise.
13948 (cortex_a9_neon_int_1): Likewise.
13949 (cortex_a9_neon_int_2): Likewise.
13950 (cortex_a9_neon_int_3): Likewise.
13951 (cortex_a9_neon_int_4): Likewise.
13952 (cortex_a9_neon_int_5): Likewise.
13953 (cortex_a9_neon_vqneg_vqabs): Likewise.
13954 (cortex_a9_neon_vmov): Likewise.
13955 (cortex_a9_neon_vaba): Likewise.
13956 (cortex_a9_neon_vaba_qqq): Likewise.
13957 (cortex_a9_neon_vsma): Likewise.
13958 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13959 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13960 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
13961 long_scalar): Likewise.
13962 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13963 (cortex_a9_neon_mla_qqq_8_16): Likewise.
13964 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
13965 long_scalar_qdd_64_32_long): Likewise.
13966 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13967 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13968 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
13969 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13970 (cortex_a9_neon_shift_1): Likewise.
13971 (cortex_a9_neon_shift_2): Likewise.
13972 (cortex_a9_neon_shift_3): Likewise.
13973 (cortex_a9_neon_vshl_ddd): Likewise.
13974 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13975 (cortex_a9_neon_vsra_vrsra): Likewise.
13976 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
13977 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
13978 (cortex_a9_neon_fp_vsum): Likewise.
13979 (cortex_a9_neon_fp_vmul_ddd): Likewise.
13980 (cortex_a9_neon_fp_vmul_qqd): Likewise.
13981 (cortex_a9_neon_fp_vmla_ddd): Likewise.
13982 (cortex_a9_neon_fp_vmla_qqq): Likewise.
13983 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
13984 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
13985 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13986 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13987 (cortex_a9_neon_bp_simple): Likewise.
13988 (cortex_a9_neon_bp_2cycle): Likewise.
13989 (cortex_a9_neon_bp_3cycle): Likewise.
13990 (cortex_a9_neon_ldr): Likewise.
13991 (cortex_a9_neon_str): Likewise.
13992 (cortex_a9_neon_vld1_1_2_regs): Likewise.
13993 (cortex_a9_neon_vld1_3_4_regs): Likewise.
13994 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13995 (cortex_a9_neon_vld2_4_regs): Likewise.
13996 (cortex_a9_neon_vld3_vld4): Likewise.
13997 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13998 (cortex_a9_neon_vst1_3_4_regs): Likewise.
13999 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
14000 (cortex_a9_neon_vst3_vst4): Likewise.
14001 (cortex_a9_neon_vld1_vld2_lane): Likewise.
14002 (cortex_a9_neon_vld3_vld4_lane): Likewise.
14003 (cortex_a9_neon_vst1_vst2_lane): Likewise.
14004 (cortex_a9_neon_vst3_vst4_lane): Likewise.
14005 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
14006 (cortex_a9_neon_mcr): Likewise.
14007 (cortex_a9_neon_mcr_2_mcrr): Likewise.
14008 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
14009 (cortex_a9_fps): Likewise.
14010 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
14012 (cortex_m4_fmuls): Likewise.
14013 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
14015 (cortex_r4_mrc): Likewise.
14016 * config/arm/iterators.md: Update comment referring to neon_type.
14017 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
14018 (iwmmxt_movsi_insn): Likewise.
14019 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
14021 (pj4_core_to_vfp): Likewise.
14022 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
14024 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
14025 (vfp_fstore): Likewise.
14026 * doc/md.texi: Change references to neon_type to refer to type.
14028 2013-09-04 Dodji Seketeli <dodji@redhat.com>
14030 * tree.h (DECL_BUILT_IN): Fix typo in comment.
14032 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
14034 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
14035 lglobl if not weak.
14037 2013-09-04 Easwaran Raman <eraman@google.com>
14039 PR middle-end/57370
14040 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
14041 (build_and_add_sum): Use it.
14042 (appears_later_in_bb): Simplify code.
14044 2013-09-04 Teresa Johnson <tejohnson@google.com>
14046 * dumpfile.c (dump_finish): Don't close stderr/stdout.
14048 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
14050 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
14052 2013-09-04 Jan Hubicka <jh@suse.cz>
14054 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
14055 * ipa-devirt.c: Include diganostic.h
14056 (odr_type_d): Add types and types_set.
14057 (hash_type_name): Work for types with vtables during LTO.
14058 (odr_hasher::remove): Fix comment; destroy types_set.
14059 (add_type_duplicate): New function,
14060 (get_odr_type): Use it.
14061 (dump_type_inheritance_graph): Dump type duplicates.
14062 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
14064 * tree.c (types_same_for_odr): Give exact answers on types with
14067 2013-09-04 Dodji Seketeli <dodji@redhat.com>
14069 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
14070 explaining their differences.
14072 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
14074 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
14076 2013-09-03 Jeff Law <law@redhat.com>
14078 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
14079 when not threading through a joiner block. Pass joiner/no joiner
14080 state to register_jump_thread.
14081 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
14082 state from argument rather than implying on path length.
14083 Dump the entire jump thread path into debugging dump.
14084 * tree-flow.h (register_jump_thread): Update prototype.
14086 2013-08-29 Xinliang David Li <davidxl@google.com>
14088 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14089 Remove a trivial gcc_assert.
14091 2013-08-29 Xinliang David Li <davidxl@google.com>
14093 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
14094 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
14095 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14096 Delay base decl alignment adjustment.
14097 * tree-vectorizer.c (vect_destroy_datarefs): New function.
14098 * tree-vectorizer.h: New data structure.
14099 (set_dr_misalignment): New function.
14100 (dr_misalignment): Ditto.
14101 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
14102 (vectorizable_load): Ditto.
14103 (ensure_base_align): New function.
14104 (vectorize_loops): Add dbg_cnt support.
14105 (execute_vect_slp): Ditto.
14106 * dbgcnt.def: New debug counter.
14107 * Makefile: New dependency.
14109 2013-09-03 Meador Inge <meadori@codesourcery.com>
14113 2013-08-30 Meador Inge <meadori@codesourcery.com>
14115 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
14117 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
14119 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
14120 function descriptor.
14122 2013-09-03 Richard Biener <rguenther@suse.de>
14124 * tree-affine.c (add_elt_to_tree): Fix association issue,
14125 avoid useless converts and make sure to always return a
14126 properly typed result.
14128 2013-09-03 Richard Biener <rguenther@suse.de>
14130 PR middle-end/57656
14131 * fold-const.c (negate_expr_p): Fix division case.
14132 (negate_expr): Likewise.
14134 2013-09-03 Richard Biener <rguenther@suse.de>
14137 * tree-streamer-out.c: Include tm.h.
14138 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
14140 2013-09-03 Jan Hubicka <jh@suse.cz>
14142 * tree-profile.c (tree_profiling): Cleanup CFG when done.
14144 2013-09-03 Alan Modra <amodra@gmail.com>
14146 * config.gcc (powerpc*-*-linux*): Add support for little-endian
14147 multilibs to big-endian target and vice versa.
14148 * config/rs6000/t-linux64: Use := assignment on all vars.
14149 (MULTILIB_EXTRA_OPTS): Remove fPIC.
14150 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
14151 * config/rs6000/t-linux64le: New file.
14152 * config/rs6000/t-linux64bele: New file.
14153 * config/rs6000/t-linux64lebe: New file.
14155 2013-09-02 Jan Hubicka <jh@suse.cz>
14157 * ipa-inline-transform.c (inline_transform): Do not
14158 optimize_inline_calls when not optimizing.
14160 2013-09-02 Jan Hubicka <jh@suse.cz>
14162 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
14163 duplicated nodes for assembler names.
14164 * symtab.c (symtab_unregister_node): Do not attempt to unlink
14165 hard registers from assembler name hash.
14167 2013-09-02 Jan Hubicka <jh@suse.cz>
14169 * ipa-split.c (execute_split_functions): Split externally visible
14170 functions called once.
14172 2013-09-02 Martin Jambor <mjambor@suse.cz>
14175 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
14176 linked list. When finding the correct duplicate, also consider also
14177 the caller in additon to its inlined_to node.
14179 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
14181 * config/aarch64/aarch64-simd-builtins.def
14182 (dup_lane_scalar): Remove.
14183 * config/aarch64/aarch64-simd.md
14184 (aarch64_simd_dup): Add 'w->w' alternative.
14185 (aarch64_dup_lane<mode>): Allow for VALL.
14186 (aarch64_dup_lane_scalar<mode>): Remove.
14187 (aarch64_dup_lane_<vswap_width_name><mode>): New.
14188 (aarch64_get_lane_signed<mode>): Add w->w altenative.
14189 (aarch64_get_lane_unsigned<mode>): Likewise.
14190 (aarch64_get_lane<mode>): Likewise.
14191 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
14192 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
14193 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
14194 (VCON): Change container of V2SF.
14195 (vswap_width_name): Likewise.
14196 * config/aarch64/arm_neon.h
14197 (__aarch64_vdup_lane_any): New.
14198 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
14199 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
14200 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
14202 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
14204 PR middle-end/56382
14205 * expr.c (emit_move_complex): Do not move complex FP values as parts if
14206 the source or the destination is a single hard register.
14208 2013-09-02 Richard Biener <rguenther@suse.de>
14210 PR middle-end/57511
14211 * tree-scalar-evolution.c (instantiate_scev_name): Allow
14214 2013-09-02 Richard Biener <rguenther@suse.de>
14216 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
14217 arithmetic to sizetype.
14219 2013-09-02 Bin Cheng <bin.cheng@arm.com>
14221 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
14222 Find auto-increment use both before and after candidate.
14224 2013-09-02 Marek Polacek <polacek@redhat.com>
14226 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
14228 2013-09-01 Jan Hubicka <jh@suse.cz>
14230 * Makefile.in: Add ipa-profile.o
14231 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
14232 * cgraph.c (struct cgraph_propagate_frequency_data,
14233 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
14234 ipa-profile.c; replace cgraph_ by ipa_ prefix.
14235 * cgraph.h (cgraph_propagate_frequency): Remove.
14236 * ipa-inline-analysis.c: Include ipa-utils.h;
14237 drop duplicated cfgloop.h.
14238 (inline_update_callee_summaries): Update.
14239 * ipa-profile.c: New file.
14240 * ipa-utils.h (ipa_propagate_frequency): Declare.
14241 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
14242 data-streamer.h, value-prof.h.
14243 (symtab_remove_unreachable_nodes): Update profile.
14244 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
14245 account_time_size, cmp_counts, dump_histogram,
14246 ipa_profile_generate_summary, ipa_profile_write_summary,
14247 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
14248 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
14249 Move to ipa-profile.c.
14251 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
14253 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
14255 2013-09-01 Jan Hubicka <jh@suse.cz>
14257 * common.opt (fdevirtualize-speculatively): New function.
14258 * invoke.texi (fdevirtualize-speculatively): Document.
14259 * ipa-devirt.c: Include ipa-inline.h
14260 (likely_target_p): New function.
14261 (ipa_devirt): New function.
14262 (gate_ipa_devirt): New function.
14263 (pass_data_ipa_devirt): New static var.
14264 (pass_ipa_devirt): Likewise.
14265 (make_pass_ipa_devirt): New function.
14266 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
14267 (common_handle_option): Disable devirtualization when
14268 value range profiling is available.
14269 * passes.def (pass_ipa_devirt): Add.
14270 * timever.def (TV_IPA_DEVIRT): New timevar.
14271 * tree-pass.h (make_pass_ipa_devirt):
14273 2013-09-01 Iain Sandoe <iain@codesourcery.com>
14275 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
14276 include sanitize(undefined).
14278 2013-08-31 Diego Novillo <dnovillo@google.com>
14280 * Makefile.in (TREE_CORE_H): Define.
14282 (GTFILES): Add tree-core.h.
14283 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
14285 * tree-core.h: New file.
14286 Move all data structures, enum, typedefs, global
14287 declarations and constants from ...
14288 * tree.h: ... here.
14290 2013-08-31 Jan Hubicka <jh@suse.cz>
14292 * bulitins.c (expand_builtin): Do not early exit for gcov
14293 instrumented functions.
14295 2013-08-31 Marek Polacek <polacek@redhat.com>
14297 * ubsan.c: Include tm_p.h.
14299 2013-08-31 Jan Hubicka <jh@suse.cz>
14301 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
14304 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
14305 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
14306 * tree-cfg.c (verify_gimple_label): ... here.
14307 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
14308 (ipa_merge_profiles): New function.
14309 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
14310 (lto_input_function_body): Likewise.
14311 * ipa-utils.h (ipa_merge_profiles): Declare.
14312 * lto-streamer.h (lto_input_function_body): Update prototype.
14313 (emit_label_in_global_context_p): Remove.
14314 * lto-symtab.c: Include ipa-utils.h
14315 (lto_cgraph_replace_node): Use ipa_merge_profiles.
14317 2013-08-31 Jan Hubicka <jh@suse.cz>
14319 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
14321 2013-08-31 Jan Hubicka <jh@suse.cz>
14323 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
14325 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
14327 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
14328 "cmp" RTX before signed_comparison_operator check to account
14329 for "code" changes.
14331 2013-08-30 Jan Hubicka <jh@suse.cz>
14333 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
14334 (detect_type_change_1): Rename to ...
14335 (detect_type_change): ... this one; early return on non-polymorphic
14337 (detect_type_change_ssa): Add comp_type parameter; update
14338 use of detect_type_change.
14339 (compute_complex_assign_jump_func): Add param_type parameter;
14340 update use of detect_type_change_ssa.
14341 (compute_complex_ancestor_jump_func): Likewise.
14342 (ipa_get_callee_param_type): New function.
14343 (ipa_compute_jump_functions_for_edge): Compute parameter type;
14344 update calls to the jump function computation functions.
14346 2013-08-30 Teresa Johnson <tejohnson@google.com>
14347 Steven Bosscher <steven@gcc.gnu.org>
14349 * cfgrtl.c (fixup_new_cold_bb): New routine.
14350 (commit_edge_insertions): Invoke fixup_partitions.
14351 (find_partition_fixes): New routine.
14352 (fixup_partitions): Ditto.
14353 (verify_hot_cold_block_grouping): Update comments.
14354 (rtl_verify_edges): Invoke find_partition_fixes.
14355 (rtl_verify_bb_pointers): Update comments.
14356 (rtl_verify_bb_layout): Ditto.
14357 * basic-block.h (probably_never_executed_edge_p): Declare.
14358 (fixup_partitions): Ditto.
14359 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
14360 * bb-reorder.c (sanitize_hot_paths): New function.
14361 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
14362 sanitize_hot_paths.
14363 * predict.c (probably_never_executed_edge_p): New routine.
14364 * cfg.c (check_bb_profile): Add partition insanity warnings.
14366 2013-08-30 Meador Inge <meadori@codesourcery.com>
14368 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
14370 2013-08-30 Marek Polacek <polacek@redhat.com>
14372 * Makefile.in (ubsan.o): Add.
14373 (c-family/c-ubsan.o): Add.
14374 (builtins.o): Add ubsan.h dependency.
14375 * ubsan.h: New file.
14376 * ubsan.c: New file.
14377 * common.opt: Add -fsanitize=undefined option.
14378 (flag_sanitize): Add variable.
14379 (fsanitize=): Add option. Add Driver.
14380 (fsanitize=thread): Remove option.
14381 (fsanitize=address): Likewise.
14382 (static-libubsan): New option.
14383 * doc/invoke.texi: Document the new flag and -static-libubsan.
14384 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
14385 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
14386 * builtin-attrs.def (ATTR_COLD): Define.
14387 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
14388 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
14389 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
14390 * flag-types.h (sanitize_code): New enum.
14391 * opts.c (common_handle_option): Parse command line arguments
14392 of -fsanitize=. Add -fsanitize=unreachable option.
14393 * varasm.c (get_variable_section): Adjust.
14394 (assemble_noswitch_variable): Likewise.
14395 (assemble_variable): Likewise.
14396 (output_constant_def_contents): Likewise.
14397 (categorize_decl_for_section): Likewise.
14398 (place_block_symbol): Likewise.
14399 (output_object_block): Likewise.
14400 * builtins.def: Likewise.
14401 * toplev.c (compile_file): Likewise.
14402 (process_options): Likewise.
14403 * cppbuiltin.c: Likewise.
14404 * tsan.c (tsan_pass): Likewise.
14405 (tsan_gate): Likewise.
14406 (tsan_gate_O0): Likewise.
14407 * cfgexpand.c (partition_stack_vars): Likewise.
14408 (expand_stack_vars): Likewise.
14409 (defer_stack_allocation): Likewise.
14410 (expand_used_vars): Likewise.
14411 * cfgcleanup.c (old_insns_match_p): Likewise.
14412 * asan.c (asan_finish_file): Likewise.
14413 (asan_instrument): Likewise.
14414 (gate_asan): Likewise.
14415 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
14416 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
14417 (asan_global_struct): Use pointer_sized_int_node instead
14418 calling build_nonstandard_integer_type.
14419 (initialize_sanitizer_builtins): Likewise.
14420 (asan_finish_file): Likewise.
14421 * gcc.c: Document %{%:function(args):X}.
14422 (static_spec_functions): Add sanitize.
14423 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
14424 store funcval != NULL there.
14425 (do_spec_1): Adjust handle_spec_function caller.
14426 (handle_braces): Allow %:function(args) as condition.
14427 (sanitize_spec_function): New function.
14428 (ADD_STATIC_LIBUBSAN_LIBS): Define.
14429 (LIBUBSAN_SPEC): Likewise.
14430 (LIBUBSAN_EARLY_SPEC): Likewise.
14431 (SANITIZER_SPEC): Handle libubsan.
14432 (SANITIZER_EARLY_SPEC): Likewise.
14433 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
14434 instead of fsanitize=address.
14435 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
14436 instead of fsanitize=address*.
14437 * builtins.c: Include ubsan.h.
14438 (fold_builtin_0): Instrument __builtin_unreachable.
14439 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
14440 instead of flag_asan.
14441 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
14442 (pointer_sized_int_node): Define.
14443 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
14445 2013-08-30 Mike Stump <mikestump@comcast.net>
14447 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
14450 2013-08-29 Jan Hubicka <jh@suse.cz>
14452 * cgraph.c (cgraph_function_body_availability): Handle weakref
14454 * passes.def: Remove pass_fixup_cfg.
14455 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
14456 track when we need to remove functions.
14457 (gate_ipa_inline): Execute inlining always; add comment why.
14458 (pass_data_ipa_inline): Remove TODO_remove_functions.
14459 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
14460 do not produce summaries.
14461 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
14462 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
14463 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
14464 constant pool and vtable.
14466 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
14468 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
14469 New arm_neon.h's internal macros to specify 64-bit constants.
14470 Avoid using stdint.h's macros.
14472 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
14474 * recog.c (verify_changes): Verify that changes[i].old is non-zero
14475 before applying REG_P.
14477 2013-08-30 Jakub Jelinek <jakub@redhat.com>
14479 PR tree-optimization/58277
14480 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
14481 after seeing too many stmts with vdef in between dombb and current
14482 bb, invalidate everything.
14484 2013-08-30 Richard Biener <rguenther@suse.de>
14486 * fold-const.c (fold_single_bit_test): Fix overflow test.
14488 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
14490 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
14491 and which can live in a register, always retrieve the value on entry.
14492 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
14493 passed by invisible reference specially.
14494 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
14495 (vt_add_function_parameter): Correctly deal with a parameter passed by
14496 invisible reference.
14498 2013-08-30 Jan Hubicka <jh@suse.cz>
14500 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
14502 2013-08-30 Richard Biener <rguenther@suse.de>
14504 PR tree-optimization/58228
14505 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
14506 allow invariant loads in nested loop vectorization.
14508 2013-08-30 Richard Biener <rguenther@suse.de>
14510 PR tree-optimization/58223
14511 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
14512 (has_anti_or_output_dependence): ... this and adjust to also
14513 look for output dependences.
14514 (mark_nodes_having_upstream_mem_writes): Adjust.
14515 (rdg_flag_uses): Likewise.
14517 2013-08-30 Richard Biener <rguenther@suse.de>
14519 PR tree-optimization/58010
14520 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
14521 assert that we have a loop-closed PHI.
14523 2013-08-29 Jan Hubicka <jh@suse.cz>
14525 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
14526 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
14527 * lto-section-in.c (lto_free_function_in_decl_state): New function.
14528 (lto_free_function_in_decl_state_for_node): New function.
14530 2013-08-29 Xinliang David Li <davidxl@google.com>
14532 * loop-unroll.c (report_unroll_peel): Minor message change.
14533 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
14534 Emit alignment peeling message with default -fopt-info.
14535 (vect_loop_versioning): Emit loop version info message.
14536 * tree-vectorizer.c (vectorize_loops): Minor message change.
14537 (execute_vect_slp): Ditto.
14539 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
14541 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
14542 of the clone from the DECL_NAME of the original function.
14544 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
14546 * passes.c (register_pass): Add overload.
14547 * tree-pass.h (register_pass): Forward declare it. Add comment.
14549 2013-08-29 Jan Hubicka <jh@suse.cz>
14551 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
14552 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
14553 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
14554 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
14555 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
14556 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
14557 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
14558 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
14560 2013-08-29 Teresa Johnson <tejohnson@google.com>
14562 * dumpfile.c (dump_loc): Output column number.
14563 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
14564 * doc/invoke.texi: Document optall -fopt-info flag.
14565 * profile.c (read_profile_edge_counts): Use new dump framework.
14566 (compute_branch_probabilities): Ditto.
14567 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
14568 when pass not in any opt group.
14569 * pass_manager.h (pass_manager::get_pass_profile): New method.
14570 * value-prof.c (check_counter): Use new dump framework.
14571 (check_ic_target): Ditto.
14572 * coverage.c (get_coverage_counts): Ditto.
14573 (coverage_init): Setup new dump framework.
14575 2013-08-29 Richard Biener <rguenther@suse.de>
14577 PR tree-optimization/58246
14578 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
14579 handle the dominance check inside a basic-block.
14581 2013-08-29 Richard Biener <rguenther@suse.de>
14583 PR middle-end/57287
14584 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
14585 of default defs that appear in abnormal PHI nodes.
14587 2013-08-29 Richard Biener <rguenther@suse.de>
14589 PR tree-optimization/57685
14590 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
14591 single-use operands to avoid exponential complexity.
14593 2013-08-28 Dehao Chen <dehao@google.com>
14595 * ipa-inline.c (edge_badness): Fix integer underflow.
14597 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
14599 * gtm-builtins.def (_ITM_free): Declare leaf.
14601 2013-08-28 Jakub Jelinek <jakub@redhat.com>
14604 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
14605 (*tls_local_dynamic_base_64_largepic): Likewise.
14606 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
14607 Remove predicate from call operand.
14608 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
14609 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
14611 2013-08-28 Jeff Law <law@redhat.com>
14613 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
14614 checks for the number of predecessors and successors allowed.
14615 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
14616 which require copying a joiner block if there is a request which
14617 is a subpath that requires no joiner block copying.
14619 2013-08-28 Jan Hubicka <jh@suse.cz>
14621 * lto-streamer-out.c (DFS_write_tree_body): Drop
14622 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
14623 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
14624 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
14625 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
14626 Do not read DECL_ERROR_ISSUED.
14627 (unpack_ts_decl_with_vis_value_fields): Do not read
14629 (lto_input_ts_binfo_tree_pointers): Do not read
14630 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
14631 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
14632 write DECL_ERROR_ISSUED..
14633 (pack_ts_decl_with_vis_value_fields): Do not write
14635 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
14636 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
14637 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
14638 * tree.h (tree_decl_common): Update comment.
14639 (DECL_ERROR_ISSUED): Remove.
14641 2013-08-28 Jakub Jelinek <jakub@redhat.com>
14643 PR middle-end/58257
14644 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
14646 2013-08-28 Jan Hubicka <jh@suse.cz>
14648 * builtins.def (free): Declare leaf.
14650 2013-08-27 David Malcolm <dmalcolm@redhat.com>
14652 * gdbhooks.py: New.
14653 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
14654 * configure: Regenerate.
14656 2013-08-27 Martin Jambor <mjambor@suse.cz>
14658 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
14659 (ipa_ancestor_jf_data): Likewise.
14660 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
14661 (ipa_get_jf_pass_through_type_preserved): New function.
14662 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
14663 (ipa_get_jf_ancestor_type_preserved): New function.
14664 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
14665 (ipa_get_jf_ancestor_result): Likewise.
14666 (propagate_vals_accross_pass_through): Use
14667 ipa_get_jf_pass_through_result to do all the value mappings.
14668 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
14669 type_preserved flag.
14670 (ipa_set_jf_cst_copy): New function.
14671 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
14672 (ipa_set_jf_arith_pass_through): Likewise.
14673 (ipa_set_ancestor_jf): Likewise.
14674 (compute_complex_assign_jump_func): Set type_preserved instead of
14676 (ipa_compute_jump_functions_for_edge): Likewise.
14677 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
14678 (update_jump_functions_after_inlining): Update type_preserved.
14679 Explicitely create jump functions when combining one with pass_through.
14680 (ipa_write_jump_function): Stream the type_preserved flags.
14681 (ipa_read_jump_function): Likewise.
14683 2013-08-27 Jakub Jelinek <jakub@redhat.com>
14684 Aldy Hernandez <aldyh@redhat.com>
14686 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
14687 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
14688 * function.h (struct function): Add has_force_vect_loops and
14690 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
14691 * gimple.c (gimple_build_omp_critical): Add KIND argument and
14693 * gimple.def: Update CLAUSES comments.
14694 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
14695 (gimple_build_omp_for): Add argument to prototype.
14696 (gimple_omp_for_kind): New.
14697 (gimple_omp_for_set_kind): New.
14698 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
14699 GOVD_DATA_SHARE_CLASS.
14700 (enum omp_region_type): Add ORT_SIMD.
14701 (gimple_add_tmp_var): Handle ORT_SIMD.
14702 (gimplify_var_or_parm_decl): Same.
14703 (is_gimple_stmt): Same.
14704 (omp_firstprivatize_variable): Same.
14705 (omp_add_variable): Only use splay_tree_insert if lookup failed.
14706 (omp_notice_variable): Handle ORT_SIMD.
14707 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
14708 (omp_check_private): Handle ORT_SIMD.
14709 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
14710 OMP_CLAUSE_SAFELEN.
14711 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
14712 Handle OMP_CLAUSE_LASTPRIVATE.
14713 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
14714 OMP_CLAUSE_SAFELEN.
14715 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
14716 (gimplify_expr): Handle OMP_SIMD.
14717 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
14718 (expand_GOMP_SIMD_VF): New.
14719 (expand_GOMP_SIMD_LAST_LANE): New.
14720 * internal-fn.def (GOMP_SIMD_LANE): New.
14721 (GOMP_SIMD_VF): New.
14722 (GOMP_SIMD_LAST_LANE): New.
14723 * omp-low.c: Include target.h.
14724 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
14725 OMP_CLAUSE_SAFELEN.
14726 (check_omp_nesting_restrictions): Same.
14728 (lower_rec_simd_input_clauses): New.
14729 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
14731 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
14732 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
14733 (expand_omp_build_assign): New.
14734 (expand_omp_for_init_counts): New.
14735 (expand_omp_for_init_vars): New.
14736 (extract_omp_for_update_vars): New.
14737 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
14738 and rewrite accordingly.
14739 (expand_omp_simd): New.
14740 (expand_omp_for): Use expand_omp_simd.
14741 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
14742 (lower_omp_for): Do not lower the body.
14743 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
14744 in their own loops.
14745 * tree-flow.h (find_omp_clause): Remove prototype.
14746 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
14747 forcing vectorization of the loop, or if flag_tree_vectorize.
14748 (gate_tree_if_conversion): Similarly.
14749 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
14750 gimple_build_omp_for.
14751 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
14752 * tree-parloops (create_parallel_loop): Pass kind argument to
14753 gimple_build_omp_for.
14754 * tree-pretty-print.c (dump_omp_clause): Add cases for
14755 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
14756 OMP_CLAUSE__SIMDUID_.
14757 (dump_generic_node): Handle OMP_SIMD.
14758 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
14759 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
14760 unroll OMP_SIMD loops here.
14761 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
14762 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
14764 (vect_analyze_data_refs): Handle simd loops.
14765 * tree-vect-loop.c (vectorizable_live_operation): Handle
14767 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
14768 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
14769 (vectorizable_load): Same.
14770 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
14771 (struct simduid_to_vf): New.
14772 (simduid_to_vf::hash): New.
14773 (simduid_to-vf::equal): New.
14774 (struct simd_array_to_simduid): New.
14775 (simd_array_to_simduid::hash): New.
14776 (simd_array_to_simduid::equal): New.
14777 (adjust_simduid_builtins): New.
14778 (struct note_simd_array_uses_struct): New.
14779 (note_simd_array_uses_cb): New.
14780 (note_simd_array_uses): New.
14781 (vectorize_loops): Handle simd hints and adjust simd builtins
14783 * tree-vectorizer.h (struct _stmt_vec_info): Add
14784 simd_lane_access_p field.
14785 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
14786 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
14787 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
14788 (omp_clause_code_name): Same.
14789 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
14790 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
14791 * tree.def (OMP_SIMD): New entry.
14792 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
14793 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
14794 (OMP_CLAUSE_DECL): Adjust range for new clauses.
14795 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
14796 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
14797 (OMP_CLAUSE_LINEAR_STEP): New.
14798 (OMP_CLAUSE_SAFELEN_EXPR): New.
14799 (OMP_CLAUSE__SIMDUID__DECL): New.
14800 (find_omp_clause): New prototype.
14802 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
14804 * config/i386/driver-i386.c (host_detect_local_cpu): Update
14805 Haswell processor detection.
14807 2013-08-27 Christian Widmer <shadow@umbrox.de>
14810 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
14811 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
14812 AVX2 capable processors.
14814 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
14816 * config/aarch64/arm_neon.h: Replace all inline asm implementations
14817 of vget_low_* with implementations in terms of other intrinsics.
14819 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
14821 PR middle-end/57219
14822 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
14823 values to -1, 0 and 1.
14825 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
14827 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
14828 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
14829 (<optab><mode>3_insn): Remove.
14830 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
14831 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
14832 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
14833 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
14834 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
14835 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
14836 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
14837 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
14838 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
14839 (ror<mode>3_insn): Likewise.
14840 * config/aarch64/predicates.md (aarch64_simd_register): New.
14842 2013-08-27 Richard Biener <rguenther@suse.de>
14844 PR tree-optimization/57521
14845 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
14846 one edge is non-critical.
14847 (find_phi_replacement_condition): Make sure to use a non-critical
14848 edge. Cleanup and remove old bug workarounds.
14849 (bb_postdominates_preds): Remove.
14850 (if_convertible_loop_p_1): Do not compute post-dominators.
14851 (combine_blocks): Do not free post-dominators.
14852 (main_tree_if_conversion): Likewise.
14853 (pass_data_if_conversion): Add TODO_verify_ssa.
14855 2013-08-27 DJ Delorie <dj@redhat.com>
14857 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
14859 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
14861 * function.c (assign_parm_find_data_types): Set passed_mode and
14862 nominal_mode to the TYPE_MODE of nominal_type for the built
14863 pointer type in case of the struct-pass-by-reference.
14865 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
14867 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
14868 (UINT16_TYPE): Change default to "unsigned int".
14870 * config/avr/avr.opt (mfract-convert-truncate): New option.
14871 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
14872 is set, round negative fractional integers according to n1169
14873 when converting to integer types.
14875 2013-08-26 Jan Hubicka <jh@suse.cz>
14877 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
14878 methods can not be called indirectly when their address is not taken.
14880 2013-08-26 Jan Hubicka <jh@suse.cz>
14882 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
14885 2013-08-26 Jan Hubicka <jh@suse.cz>
14887 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
14890 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
14892 * reload.c (find_valid_class): Allow classes that do not include
14893 FIRST_PSEUDO_REGISTER - 1.
14895 2013-08-26 Jan Hubicka <jh@suse.cz>
14897 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
14898 fix edge count/frequency when speculation failed; fix type check
14899 for the direct call.
14901 2013-08-26 Jan Hubicka <jh@suse.cz>
14903 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
14905 2013-08-26 Jan Hubicka <jh@suse.cz>
14907 * ipa-inline-transform.c (inline_transform): Be ready for basic block
14908 to be changed by edge redirection.
14910 2013-08-26 Jan Hubicka <jh@suse.cz>
14912 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
14913 formating; add sanity check.
14914 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
14915 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
14916 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
14917 (resolve_noninline_speculation): Update callee keys, too.
14919 2013-08-26 Jan Hubicka <jh@suse.cz>
14921 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
14922 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
14924 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
14926 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
14929 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
14931 * config/i386/i386.c (ix86_debug_options): Remove prototype.
14932 (x86_64_elf_select_section): Ditto.
14933 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
14935 (ix86_pass_by_reference): Ditto.
14936 (output_set_got): Ditto.
14937 (ix86_unary_operator_ok): Ditto.
14938 (ix86_expand_builtin): Ditto.
14940 2013-08-23 Jan Hubicka <jh@suse.cz>
14942 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
14944 2013-08-23 Jan Hubicka <jh@suse.cz>
14946 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
14947 (tree_decl_with_vis): Add FINAL field.
14949 2013-08-23 Jeff Law <law@redhat.com>
14951 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
14952 the debugging dump when the expression is fully redundant.
14954 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
14956 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
14957 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
14958 * pretty-print.c (pp_formatted_text_data): Likewise.
14959 (pp_write_text_to_stream): Likewise.
14960 (pp_write_text_as_dot_label_to_stream): Likewise.
14961 (pp_append_r): Likewise.
14962 (pp_format): Likewise.
14963 (pp_flush): Likewise.
14964 (pp_clear_output_area): Likewise.
14965 (pp_append_text): Likewise.
14966 (pp_formatted_text): Likewise.
14967 (pp_remaining_character_count_for_line): Likewise.
14968 (pp_newline): Likewise.
14969 (pp_character): Likewise.
14970 (output_buffer::~output_buffer): Define.
14971 (pretty_printer::~pretty_printer): Destruct output buffer.
14972 * pretty-print.h (output_buffer::~output_buffer): Declare.
14973 (pretty_printer::~pretty_printer): Declare virtual.
14975 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
14978 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
14979 HOST_WIDE_INT_M1U): New macros.
14980 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
14981 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
14982 unsigned -1 for lshift.
14983 * cse.c (cse_insn): Likewise.
14984 * double-int.c (rshift_double, lshift_double): Likewise.
14985 * builtins.c (fold_builtin_bitop): Likewise.
14986 * combine.c (force_to_mode): Likewise.
14987 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
14988 * simplify-rtx.c (simplify_const_unary_operation,
14989 simplify_const_binary_operation): Likewise.
14990 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
14991 check_va_list_escapes): Likewise.
14992 * rtlanal.c (nonzero_bits1): Likewise.
14993 * expmed.c (expand_smod_pow2): Likewise.
14994 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
14996 2013-08-23 Jan Hubicka <jh@suse.cz>
14998 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
14999 as having address taken.
15001 2013-08-23 Jan Hubicka <jh@suse.cz>
15003 * ipa-utils.h (method_class_type): Declare.
15004 * ipa-devirt.c (method_class_type): Export.
15006 * cgraphunit.c (analyze_functions): Do basic devirtualization;
15007 do not walk base classes of anonymous types.
15009 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
15011 PR rtl-optimization/58220
15012 PR regression/58221
15013 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
15014 handle SEQUENCE insns properly.
15016 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
15018 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
15020 (pp_newline_and_indent): Likewise.
15021 (pp_separate_with): Likewise.
15022 * pretty-print.c (pp_newline_and_flush): Define.
15023 (pp_newline_and_indent): Likewise.
15024 (pp_separate_with): Likewise.
15026 2013-08-23 Jakub Jelinek <jakub@redhat.com>
15029 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
15030 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
15032 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
15034 * config/i386/predicates.md (ext_sse_reg_operand): New.
15035 * config/i386/i386.md (*movti_internal): Use
15036 predicate to determine if EVEX is needed.
15037 (*movsi_internal): Ditto.
15038 (*movdf_internal): Ditto.
15039 (*movsf_internal): Ditto.
15040 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
15042 2013-08-23 Jakub Jelinek <jakub@redhat.com>
15044 PR tree-optimization/58209
15045 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
15046 (find_tail_calls): Give up for pointer result types if m is non-NULL.
15047 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
15048 emit POINTER_PLUS_EXPR.
15049 (create_tailcall_accumulator): For pointer result type accumulate in
15052 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
15054 * configure.ac: Add backslashes missing from the last change.
15055 * configure: Regenerate.
15057 2013-08-22 Jan Hubicka <jh@susue.cz>
15059 * ipa.c (function_and_variable_visibility): First remember function
15060 was global and then make it local.
15062 2013-08-22 Julian Brown <julian@codesourcery.com>
15064 * configure.ac: Add aarch64 to list of arches which use "nop" in
15066 * configure: Regenerate.
15068 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15070 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
15071 gnu_libc_has_function.
15072 * config/s390/tpf.h: Likewise.
15074 2013-08-22 Jan Hubicka <jh@susue.cz>
15076 * timevar.c (validate_phases): Add cast.
15078 2013-08-22 Jan Hubicka <jh@susue.cz>
15080 * timevar.c (validate_phases): Use size_t for memory.
15081 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
15083 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
15085 * pretty-print.h (output_buffer::output_buffer): Declare.
15086 (pretty_printer::pretty_printer): Likewise.
15087 (pp_construct): Remove.
15088 * pretty-print.c (output_buffer::output_buffer): Define.
15089 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
15090 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
15091 (print_gimple_expr): Likewise.
15092 (print_gimple_seq): Likewise.
15093 (gimple_dump_bb): Likewise.
15094 * sched-vis.c (dump_value_slim): Likewise.
15095 (dump_insn_slim): Likewise.
15096 (dump_rtl_slim): Likewise.
15097 (str_pattern_slim): Likewise.
15098 * tree-mudflap.c (mf_varname_tree): Likewise.
15099 * graph.c (print_graph_cfg): Likewise.
15100 (start_graph_dump): Likewise.
15101 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
15103 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
15104 pretty printer initialization.
15105 * coretypes.h (diagnostic_context): Remove superflous type alias
15107 (pretty_printer): Likewise. Declare directly as a class.
15108 (pretty_print_info): Remove declaration as class.
15109 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
15110 and pp_clear_output_area.
15111 (asan_add_global): Likewise.
15113 2013-08-22 Jan Hubicka <jh@suse.cz>
15115 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
15116 * ipa-utils.h (update_type_inheritance_graph): Declare.
15117 (possible_polymorphic_call_target_p): Declare.
15118 (possible_polymorphic_call_target_p): New.
15119 * ipa-devirt.c: Update toplevel comments.
15120 (cached_polymorphic_call_targets): Move up.
15121 (odr_type_d): Move ID down.
15122 (polymorphic_type_binfo_p): Update comment.
15123 (odr_hasher::remove): Likewise;
15124 (get_odr_type): Set anonymous_namespace.
15125 (dump_odr_type): Dump it.
15126 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
15127 (maybe_record_node): Record node in cached_polymorphic_call_targets.
15128 (record_binfo): Add comment.
15129 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
15131 (devirt_node_removal_hook): Do not iCE when cache is freed.
15132 (possible_polymorphic_call_target_p): New predicate.
15133 (update_type_inheritance_graph): New function.
15135 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
15136 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15137 Sergey Lega <sergey.s.lega@intel.com>
15138 Anna Tikhonova <anna.tikhonova@intel.com>
15139 Ilya Tocar <ilya.tocar@intel.com>
15140 Andrey Turetskiy <andrey.turetskiy@intel.com>
15141 Ilya Verbin <ilya.verbin@intel.com>
15142 Kirill Yukhin <kirill.yukhin@intel.com>
15143 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15145 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
15146 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
15147 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
15148 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
15149 (OPTION_MASK_ISA_AVX2_UNSET): Update.
15150 (OPTION_MASK_ISA_AVX512F_UNSET): New.
15151 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
15152 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
15153 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
15154 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
15155 OPT_mavx512pf, OPT_mavx512er cases.
15156 * config/i386/constraints.md (v): New constraint.
15157 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
15158 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
15159 (bit_AVX512CD): New.
15160 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
15161 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
15162 * config/i386/i386-c.c (ix86_target_macros_internal):
15163 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
15165 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
15166 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
15167 * config/i386/i386.c (regclass_map, dbx_register_map)
15168 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
15169 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
15170 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
15171 -mavx512pf options.
15172 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
15173 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
15174 -mavx512pf options. Fix formatting.
15175 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
15176 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
15177 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
15178 -mavx512cd, -mavx512pf options.
15179 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
15180 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
15181 (ix86_preferred_output_reload_class): Replace SSE_REGS with
15183 (ix86_hard_regno_mode_ok): Support 512-bit registers.
15184 (ix86_set_reg_reg_cost): Ditto.
15185 (x86_order_regs_for_local_alloc): Ditto.
15186 (MAX_VECT_LEN): Extend to 64-byte.
15187 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
15188 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
15189 (TARGET_AVX512ER, TARGET_AVX512CD): New.
15190 (BIGGEST_ALIGNMENT): Extend to 512-bits.
15191 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
15192 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
15193 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
15194 (SSE_REG_MODE_P): Support new modes.
15195 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
15196 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
15197 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
15198 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
15199 (REG_CLASS_CONTENTS): Add new registers.
15200 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
15201 (EXT_REX_SSE_REGNO_P): New.
15202 (HI_REGISTER_NAMES): Add new registers.
15203 * config/i386/i386.md: Define constants for new registers.
15204 (mode): Add new 512-bit modes.
15205 (prefix): Support evex prefix.
15206 (isa): Support avx512f, noavx512f, fma_avx512f.
15207 (ssemodesuffix): Add new 512-bit modes.
15209 (*movxi_internal_avx512f): Ditto.
15210 (*movdi_internal): Replace constraint "x" with the new constraint "v".
15212 (*movsi_internal): Likewise.
15213 (*movdf_internal): Likewise.
15214 (*movsf_internal): Likewise.
15215 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
15216 (<code><mode>3): Likewise.
15217 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
15219 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
15220 with the new constraint "v".
15221 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
15223 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
15224 with the new constraint "v".
15225 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
15226 (<sse2>_storedqu<avxsizesuffix>): Likewise.
15227 (*<plusminus_insn><mode>3): Likewise.
15228 (<sse>_vm<plusminus_insn><mode>3): Likewise.
15229 (*mul<mode>3): Likewise.
15230 (<sse>_vmmul<mode>3): Likewise.
15231 (<sse>_div<mode>3): Likewise.
15232 (<sse>_vmdiv<mode>3): Likewise.
15233 (<sse>_sqrt<mode>2): Likewise.
15234 (<sse>_vmsqrt<mode>2): Likewise.
15235 (*<code><mode>3_finite): Likewise.
15236 (*<code><mode>3) <smaxmin>: Likewise.
15237 (<sse>_vm<code><mode>3): Likewise.
15238 (*<code><mode>3) <any_logic>: Likewise.
15239 (*fma_fmadd_<mode>): Likewise.
15240 (*fma_fmsub_<mode>): Likewise.
15241 (*fma_fnmadd_<mode>): Likewise.
15242 (*fma_fnmsub_<mode>): Likewise.
15243 (*fma_fmaddsub_<mode>): Likewise.
15244 (*fma_fmsubadd_<mode>): Likewise.
15245 (*fmai_fmadd_<mode>): Likewise.
15246 (*fmai_fmsub_<mode>): Likewise.
15247 (*fmai_fnmadd_<mode>): Likewise.
15248 (*fmai_fnmsub_<mode>): Likewise.
15249 (sse_cvtsi2ss): Likewise.
15250 (sse_cvtsi2ssq): Likewise.
15251 (sse_cvtss2si): Likewise.
15252 (sse_cvtss2si_2): Likewise.
15253 (sse_cvtss2siq): Likewise.
15254 (sse_cvtss2siq_2): Likewise.
15255 (sse_cvttss2si): Likewise.
15256 (sse_cvtss2siq_2): Likewise.
15257 (float<sseintvecmodelower><mode>2): Likewise.
15258 (sse2_cvtsd2si_2): Likewise.
15259 (sse2_cvtsd2siq_2): Likewise.
15260 (*<plusminus_insn><mode>3): Likewise.
15261 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
15262 (*<sse4_1_avx2>_mul<mode>3): Likewise.
15263 (ashr<mode>3): Likewise.
15264 (<shift_insn><mode>3): Likewise.
15265 (avx2_<code><mode>3): Likewise.
15266 (*avx2_<code><mode>3): Likewise.
15267 (*andnot<mode>3): Likewise.
15268 (*<code><mode>3) <any_logic>: Likewise.
15269 (abs<mode>2): Likewise.
15270 (avx2_permvar<mode>): Likewise.
15271 (avx2_perm<mode>_1): Likewise.
15272 (*avx_vpermilp<mode>): Likewise.
15273 (avx_vpermilvar<mode>3): Likewise.
15274 (avx2_ashrv<mode>): Likewise.
15275 (avx2_<shift_insn>v<mode>): Likewise.
15276 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
15278 * doc/rtl.texi: Document XImode.
15280 2013-08-21 Jeff Law <law@redhat.com>
15282 * tree-flow.h (register_jump_thread): Pass vector of edges
15283 instead of each important edge.
15284 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
15285 thread path into a vector and pass that to register_jump_thread.
15286 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
15287 passed in edge vector to the current 3-edge form.
15290 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
15292 * dce.c (fini_dce): Call df_analyze again just in case
15293 delete_unmarked_insns removed anything.
15295 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
15297 * reload.h (struct reg_equivs): Rename to ..
15298 (struct reg_equivs_s): .. this.
15300 2013-08-20 Martin Liska <marxin.liska@gmail.com>
15302 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
15304 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15306 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
15308 2013-08-21 Jeff Law <law@redhat.com>
15310 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
15311 simplify assignments too. If the RHS collapses to a singleton
15312 range, then return the value for the range.
15314 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
15316 * config/i386/sse.md (V16): Rename to...
15318 (mov<mode>): Update iterator name.
15319 (*mov<mode>_internal): Ditto.
15320 (push<mode>1): Ditto.
15321 (movmisalign<mode>): Ditto.
15323 2013-08-20 Jan Hubicka <jh@suse.cz>
15326 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
15327 entry for direct edges.
15328 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
15330 2013-08-20 David Malcolm <dmalcolm@redhat.com>
15332 Revert my last two changes, r201865 and r201864:
15335 2013-08-20 David Malcolm <dmalcolm@redhat.com>
15337 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
15338 instances can own GC refs.
15340 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
15341 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
15342 (gcc::context::gt_pch_nx): Likewise.
15343 (gcc::context::gt_pch_nx): Likewise.
15344 * ggc.h (gt_ggc_mx <T>): New.
15345 (gt_pch_nx_with_op <T>): New.
15346 (gt_pch_nx <T>): New.
15347 * passes.c (opt_pass::gt_ggc_mx): New.
15348 (opt_pass::gt_pch_nx): New.
15349 (opt_pass::gt_pch_nx_with_op): New.
15350 (pass_manager::gt_ggc_mx): New.
15351 (pass_manager::gt_pch_nx): New.
15352 (pass_manager::gt_pch_nx_with_op): New.
15353 (pass_manager::operator new): Use
15354 ggc_internal_cleared_alloc_stat rather than xcalloc.
15355 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
15356 (pass_manager::gt_ggc_mx): New.
15357 (pass_manager::gt_pch_nx): New.
15358 (pass_manager::gt_pch_nx_with_op): New.
15359 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
15360 (opt_pass::operator new): New.
15361 (opt_pass::gt_ggc_mx): New.
15362 (opt_pass::gt_pch_nx): New.
15363 (opt_pass::gt_pch_nx_with_op): New.
15366 2013-08-20 David Malcolm <dmalcolm@redhat.com>
15368 * Makefile.in (GTFILES): Add context.h.
15369 * context.c (gcc::context::operator new): New.
15370 (gcc::context::gt_ggc_mx): New.
15371 (gcc::context::gt_pch_nx): New.
15372 (gcc::context::gt_pch_nx): New.
15373 * context.h (gcc::context): Add GTY((user)) marking.
15374 (gcc::context::operator new): New.
15375 (gcc::context::gt_ggc_mx): New.
15376 (gcc::context::gt_pch_nx): New.
15377 (gcc::context::gt_pch_nx): New.
15378 (g): Add GTY marking.
15379 (gt_ggc_mx (gcc::context *)): New.
15380 (gt_pch_nx (gcc::context *)): New.
15381 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
15382 void *cookie)): New.
15383 * gengtype.c (open_base_files) <ifiles>: Add context.h.
15385 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
15387 * dce.c (fini_dce): Call df_analyze again just in case
15388 delete_unmarked_insns removed anything.
15390 2013-08-20 Teresa Johnson <tejohnson@google.com>
15392 PR rtl-optimizations/57451
15393 * final.c (reemit_insn_block_notes): Prevent lexical blocks
15394 from crossing split section boundaries.
15396 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
15398 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
15399 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
15400 with MULTLIB_DEFAULTS.
15402 2013-08-20 Nick Clifton <nickc@redhat.com>
15404 * target.def (narrow_volatile_bitfield): Note that the default
15405 value is false, not !TARGET_STRICT_ALIGN.
15406 * doc/tm.texi: Regenerate.
15408 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
15410 Fix LIB_SPEC for systems without libpthread.
15412 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
15413 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
15415 * config/i386/linux-common.h: Likewise.
15416 * config/mips/linux-common.h: Likewise.
15418 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15420 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
15423 2013-08-20 David Malcolm <dmalcolm@redhat.com>
15425 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
15426 instances can own GC refs.
15428 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
15429 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
15430 (gcc::context::gt_pch_nx): Likewise.
15431 (gcc::context::gt_pch_nx): Likewise.
15432 * ggc.h (gt_ggc_mx <T>): New.
15433 (gt_pch_nx_with_op <T>): New.
15434 (gt_pch_nx <T>): New.
15435 * passes.c (opt_pass::gt_ggc_mx): New.
15436 (opt_pass::gt_pch_nx): New.
15437 (opt_pass::gt_pch_nx_with_op): New.
15438 (pass_manager::gt_ggc_mx): New.
15439 (pass_manager::gt_pch_nx): New.
15440 (pass_manager::gt_pch_nx_with_op): New.
15441 (pass_manager::operator new): Use
15442 ggc_internal_cleared_alloc_stat rather than xcalloc.
15443 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
15444 (pass_manager::gt_ggc_mx): New.
15445 (pass_manager::gt_pch_nx): New.
15446 (pass_manager::gt_pch_nx_with_op): New.
15447 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
15448 (opt_pass::operator new): New.
15449 (opt_pass::gt_ggc_mx): New.
15450 (opt_pass::gt_pch_nx): New.
15451 (opt_pass::gt_pch_nx_with_op): New.
15453 2013-08-20 David Malcolm <dmalcolm@redhat.com>
15455 * Makefile.in (GTFILES): Add context.h.
15456 * context.c (gcc::context::operator new): New.
15457 (gcc::context::gt_ggc_mx): New.
15458 (gcc::context::gt_pch_nx): New.
15459 (gcc::context::gt_pch_nx): New.
15460 * context.h (gcc::context): Add GTY((user)) marking.
15461 (gcc::context::operator new): New.
15462 (gcc::context::gt_ggc_mx): New.
15463 (gcc::context::gt_pch_nx): New.
15464 (gcc::context::gt_pch_nx): New.
15465 (g): Add GTY marking.
15466 (gt_ggc_mx (gcc::context *)): New.
15467 (gt_pch_nx (gcc::context *)): New.
15468 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
15469 void *cookie)): New.
15470 * gengtype.c (open_base_files) <ifiles>: Add context.h.
15472 2013-08-20 Alan Modra <amodra@gmail.com>
15475 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
15476 (rs6000_emit_epilogue): Likewise.
15478 2013-08-19 Dehao Chen <dehao@google.com>
15480 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
15482 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
15483 Jakub Jelinek <jakub@redhat.com>
15485 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
15486 (BUILT_IN_FABSD64): Likewise.
15487 (BUILT_IN_FABSD128): Likewise.
15488 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
15489 (fold_builtin_1): Likewise.
15490 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
15491 destination and source operands.
15492 (*abstd2_fpr): Likewise.
15493 (*nabstd2_fpr): Likewise.
15495 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
15497 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
15500 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
15502 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
15505 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
15507 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
15508 * builtins.c (default_libc_has_function): New.
15509 (gnu_libc_has_function): Ditto.
15510 (no_c99_libc_has_function): Ditto.
15511 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
15512 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
15513 (fold_builtin_sincos): Likewise.
15514 (fold_builtin_cexp): Likewise.
15515 * builtins.def (DEF_C94_BUILTIN): Likewise.
15516 (DEF_C99_BUILTIN): Likewise.
15517 (DEF_C99_C90RES_BUILTIN): Likewise.
15518 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
15519 definitions to using this define.
15520 * config/darwin-protos.h (darwin_libc_has_function): New.
15521 * config/darwin.c (darwin_libc_has_function): Ditto.
15522 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
15523 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
15524 * config/darwin.h: Ditto.
15525 * config/elfos.h: Ditto.
15526 * config/freebsd.h: Ditto.
15527 * config/i386/cygming.h: Ditto.
15528 * config/i386/djgpp.h: Ditto.
15529 * config/i386/i386-interix.h: Ditto.
15530 * config/microblaze/microblaze.h: Ditto.
15531 * config/mmix/mmix.h: Ditto.
15532 * config/gnu-user.h: Ditto.
15533 * config/ia64/hpux.h: Ditto.
15534 * config/pa/pa-hpux.h: Ditto.
15535 * config/pdp11/pdp11.h: Ditto.
15536 * config/picochip/picochip.h: Ditto.
15537 * config/linux.h: Ditto.
15538 * config/netbsd.h: Ditto.
15539 * config/openbsd.h: Ditto.
15540 * config/rs6000/aix43.h: Ditto.
15541 * config/rs6000/aix51.h: Ditto.
15542 * config/rs6000/aix52.h: Ditto.
15543 * config/rs6000/aix53.h: Ditto.
15544 * config/rs6000/aix61.h: Ditto.
15545 * config/rs6000/darwin.h: Ditto.
15546 * config/rs6000/linux.h: Ditto.
15547 * config/rs6000/linux64.h: Ditto.
15548 * config/s390/tpf.h: Ditto.
15549 * config/sol2-10.h: Ditto.
15550 * config/sol2.h: Ditto.
15551 * config/vms/vms.h: Ditto.
15552 * config/vxworks.h: Ditto.
15553 * config/linux-android.c (linux_android_libc_has_function):
15554 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
15555 * config/linux-protos.h (linux_android_libc_has_function):
15557 * config/i386/i386.c (ix86_libc_has_function): New.
15558 * config/i386/i386-protos.h
15559 (ix86_libc_has_function): New declaration.
15560 * config/i386/i386.md
15561 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
15562 ("isinf<mode>2): Likewise.
15563 * convert.c (convert_to_integer): Using new target hook
15564 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
15565 TARGET_C99_FUNCTIONS.
15566 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
15567 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
15568 * coretypes.h (function_class): New enum for different
15569 classes of functions.
15570 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
15571 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
15572 (TARGET_HAS_SINCOS): Likewise.
15573 (TARGET_LIBC_HAS_FUNCTION): New.
15574 * doc/tm.texi: Regenerated.
15575 * targhooks.h (default_libc_has_function): New declaration.
15576 (no_c99_libc_has_function): Ditto.
15577 (gnu_libc_has_function): Ditto.
15578 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
15579 and TARGET_HAS_SINCOS.
15581 2013-08-18 Jan Hubicka <jh@suse.cz>
15583 * Makeifle-in (ipa-devirt.o): New.
15584 (GTFILES): Add ipa-utils.h and ipa-devirt.c
15585 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
15586 (analyze_functions): Look into possible targets of polymorphic call.
15587 * dumpfile.c (dump_files): Add type-inheritance dump.
15588 * dumpfile.h (TDI_inheritance): New.
15589 * ipa-devirt.c: New file.
15590 * ipa-utils.h (odr_type_d): Forward declare.
15591 (odr_type): New type.
15592 (build_type_inheritance_graph): Declare.
15593 (possible_polymorphic_call_targets): Declare and introduce inline
15594 variant when only edge is pased.
15595 (dump_possible_polymorphic_call_targets): Likewise.
15596 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
15597 * tree.c (type_in_anonymous_namespace_p): Break out from ...
15598 (types_same_for_odr): ... here.
15599 * tree.h (type_in_anonymous_namespace_p): Declare.
15601 2013-08-18 Jakub Jelinek <jakub@redhat.com>
15603 PR tree-optimization/58006
15604 * tree-parloops.c (take_address_of): Don't ICE if get_name
15606 (eliminate_local_variables_stmt): Remove clobber stmts.
15608 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
15610 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
15611 error message is issued for an alias to undefined symbol.
15613 2013-08-18 Jan Hubicka <jh@suse.cz>
15615 * cgraph.c (cgraph_create_indirect_edge): Discover
15616 polymorphic calls and record basic info into indirect_info.
15617 * gimple-fold.c (gimple_fold_call): When doing BINFO based
15618 devirtualization, ignore objc function calls.
15619 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
15620 call with no parm index info.
15621 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
15622 * tree.c (virtual_method_call_p): New function.
15623 * tree.h (virtual_method_call_p): Declare.
15625 2013-08-16 Jan Hubicka <jh@suse.cz>
15627 PR middle-end/58179
15628 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
15630 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
15632 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
15635 2013-08-16 David Malcolm <dmalcolm@redhat.com>
15637 * gengtype.c (type_for_name): Add special-case support for
15638 locating types within the "gcc::" namespace.
15639 (open_base_files): Emit a "using namespace gcc" directive.
15641 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
15644 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
15645 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
15647 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
15648 array instead of each individual operand as a separate argument.
15649 (emit_fusion_gpr_load): Likewise.
15650 (expand_fusion_gpr_load): Add new function declaration.
15652 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
15653 signature to have the operands passed as an array, instead of as
15654 separate arguments. Allow ZERO_EXTEND to be in the memory
15655 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
15656 depend on the register live/dead flags when peepholes are run.
15657 (expand_fusion_gpr_load): New function to be called from the
15658 peephole2 pass, to change the register that addis sets to be the
15660 (emit_fusion_gpr_load): Change the calling signature to have the
15661 operands passed as an array, instead of as separate arguments.
15662 Allow ZERO_EXTEND to be in the memory address, and also
15663 SIGN_EXTEND if -mpower8-fusion-sign.
15665 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
15666 unspec enumeration.
15667 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
15668 adjust the register addis loads up in the peephole2 pass. Do not
15669 depend on the register live/dead state when the peephole pass is done.
15671 2013-08-16 David Malcolm <dmalcolm@redhat.com>
15673 * gengtype.c (create_user_defined_type): Ensure that the kind
15674 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
15675 declaration is seen before the GTY((user)) marking.
15677 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15680 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
15682 2013-08-16 Jan Hubicka <jh@suse.cz>
15684 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
15685 arugment expected_type.
15686 (gimple_fold_call): Use it.
15687 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
15688 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
15689 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
15690 (try_make_edge_direct_virtual_call): Likewise.
15691 * tree.c (obj_type_ref_class): New.
15692 * tree.h (obj_type_ref_class): Use it.
15694 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
15696 * sched-vis.c (rtl_slim_pp_initialized): Remove.
15697 (rtl_slim_pp): Likewise.
15698 (init_rtl_slim_pretty_print): Likewise.
15699 (dump_value_slim): Don't call it. Use local pretty printer.
15700 (dump_insn_slim): Likewise.
15701 (dump_rtl_slim): Likewise.
15702 (str_pattern_slim): Likewise.
15703 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
15706 2013-08-16 Jakub Jelinek <jakub@redhat.com>
15708 PR tree-optimization/58164
15709 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
15710 walk gimple_goto_dest of GIMPLE_GOTO.
15712 PR tree-optimization/58165
15713 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
15714 bi_call must be the last stmt in a bb, don't split_block, instead
15715 use fallthru edge from it and give up if there is none.
15716 Release conds vector when returning early.
15718 2013-08-14 Xinliang David Li <davidxl@google.com>
15720 * config/i386/i386.c (ix86_option_override_internal):
15721 Remove unused variable and field.
15723 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15726 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
15727 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
15728 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
15729 and Linux, correct BLKmode alignment when 128-bit alignment is
15730 required and compatibility flag is not set.
15731 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
15732 for zero-size arguments when compatibility flag is not set.
15734 2013-08-14 Jakub Jelinek <jakub@redhat.com>
15736 PR tree-optimization/58145
15737 * tree-sra.c (build_ref_for_offset): If prev_base has
15738 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
15740 2013-08-14 Xinliang David Li <davidxl@google.com>
15742 * config/i386/i386.c (ix86_option_override_internal):
15743 Fix uninitialized variable error.
15745 2013-08-14 Xinliang David Li <davidxl@google.com>
15747 * config/i386/i386.opt: Define two new options.
15748 * config/i386/x86-tune.def: Add arch selector field in macros.
15749 * config/i386/i386.h: Adjust macro definition.
15750 * config/i386/i386.c (ix86_option_override_internal):
15752 (parse_mtune_ctrl_str): New function.
15753 (set_ix86_tune_features): New function.
15754 (ix86_function_specific_restore): Call the new helper function.
15756 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
15758 PR rtl-optimization/57662
15759 * sel-sched.c (code_motion_process_successors): When the current insn
15760 is removed after the recursive traversal, break from the loop.
15761 Add comments and debug printouts.
15763 2013-08-14 Jakub Jelinek <jakub@redhat.com>
15764 Alexandre Oliva <aoliva@redhat.com>
15767 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
15768 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
15769 there also UNSPEC_PLTOFF.
15771 2013-08-14 Marek Polacek <polacek@redhat.com>
15773 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
15774 NUM_CONDITIONS bit positions.
15776 2013-08-13 Cary Coutant <ccoutant@google.com>
15778 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
15779 (attr_checksum): Hash vector contents instead of pointer.
15780 (attr_checksum_ordered): Likewise.
15782 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
15784 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
15785 when Pmode != word_mode. Add length_address attribute.
15786 (sse3_monitor_<mode>): Merge from sse3_monitor and
15787 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
15788 Pmode != word_mode. Update insn length attribute.
15789 * config/i386/i386.c (ix86_option_override_internal): Update
15790 ix86_gen_monitor selection for merged sse3_monitor insn.
15792 2013-08-13 Julian Brown <julian@codesourcery.com>
15794 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
15795 perform invalid legitimization on greater-than-word-size modes for
15796 TARGET_E500_DOUBLE.
15798 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
15800 * ira.c (setup_class_translate_array): Use aclass instead of cl
15801 for classes not fully covered by allocno classes.
15803 2013-08-13 Jakub Jelinek <jakub@redhat.com>
15805 PR tree-optimization/57661
15806 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
15807 * tree-inline.c (tree_function_versioning): Initialize it.
15808 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
15809 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
15810 that is not being copied.
15813 * asan.c (instrument_strlen_call): Fix typo in comment.
15814 Use char * type even for the lhs of POINTER_PLUS_EXPR.
15816 2013-08-13 Steve Ellcey <sellcey@mips.com>
15818 * config/mips/mips.md (prefetch): Use lw instead of ld on
15819 loongson in 32bit mode.
15821 2013-08-13 Nick Clifton <nickc@redhat.com>
15823 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
15825 2013-08-13 Jan Hubicka <jh@suse.cz>
15827 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
15828 introduced edge; fix typo in sanity check.
15829 (cgraph_resolve_speculation): Export; improve diagnostic.
15830 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
15831 speculation at type mismatch.
15832 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
15833 (cgraph_resolve_speculation): Declare.
15834 (symtab_can_be_discarded): New function.
15835 * value-prof.c (gimple_ic_transform): Remove actual transform code.
15836 * ipa-inline-transform.c (speculation_removed): New global var.
15837 (clone_inlined_nodes): See if speculation can be removed.
15838 (inline_call): If speculations was removed, we growths may not match.
15839 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
15840 (speculation_useful_p): New function.
15841 (resolve_noninline_speculation): New function.
15842 (inline_small_functions): Resolve useless speculations.
15843 * ipa-inline.h (speculation_useful_p): Declare
15844 * ipa.c (can_replace_by_local_alias): Simplify.
15845 (ipa_profile): Produce speculative calls in non-lto, too;
15846 add simple cost model; produce local aliases.
15848 2013-08-13 David Malcolm <dmalcolm@redhat.com>
15850 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
15853 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
15855 * config/i386/i386.c (ix86_function_versions): Use error + inform.
15857 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
15859 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
15860 iterator instead of X87MODEF.
15862 2013-08-12 Perez Read <netfirewall@gmail.com>
15865 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
15866 operand 0 for intel asm alternative.
15867 (*movabs<mode>_2): Ditto for operand 1.
15869 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
15871 * config/aarch64/arm_none.h
15872 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
15874 2013-08-12 Nick Clifton <nickc@redhat.com>
15876 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
15878 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
15880 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
15881 expand for QI/HImode operand to produce more effictive code for
15882 unsigned char(short) --> float(double) conversion.
15884 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
15886 * doc/invoke.texi: Mention that -ftls-model does not force the final
15889 2013-08-12 Marek Polacek <polacek@redhat.com>
15890 Marc Glisse <marc.glisse@inria.fr>
15892 PR tree-optimization/57980
15893 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
15894 when creating -1 constant.
15896 2013-08-10 Jan Hubicka <jh@suse.cz>
15898 Workaround binutils PR14342.
15899 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
15900 (gimple_init_edge_profiler): Likewise.
15901 (gimple_gen_ic_func_profiler): Likewise.
15903 2013-08-09 Jan Hubicka <jh@suse.cz>
15905 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
15907 2013-08-09 Xinliang David Li <davidxl@google.com>
15909 * config/i386/stringop.def: New file.
15910 * config/i386/stringop.opt: New file.
15911 * config/i386/i386-opts.h: Include stringopt.def.
15912 * config/i386/i386.opt: Include stringopt.opt.
15913 * config/i386/i386.c (ix86_option_override_internal):
15914 Override default size based stringop inline strategies with options.
15915 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
15918 2013-08-09 Jan Hubicka <jh@suse.cz>
15920 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
15922 2013-08-09 Jan Hubicka <jh@suse.cz>
15924 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
15926 (dump_cgraph_node): Dump profile-id.
15927 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
15928 and common_target_probability.
15929 * lto-cgraph.c (lto_output_edge): Stream common targets.
15930 (lto_output_node): Stream profile ids.
15931 (input_node): Stream profile ids.
15932 (input_edge): Stream common targets.
15933 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
15934 * ipa.c: Include value-prof.h
15935 (ipa_profile_generate_summary): Turn indirect call statement histograms
15936 into common targets.
15937 (ipa_profile): Turn common targets into speculative edges.
15939 2013-08-09 Jan Hubicka <jh@suse.cz>
15941 * cgraph.h (cgraph_node): Add profile_id.
15942 * value-prof.c (cgraph_node_map): Turn into pointer_map.
15943 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
15944 (del_node_map): Update.
15945 (find_func_by_funcdef_no): Replace by ...
15946 (find_func_by_profile_id): ... this one.
15947 (gimple_ic_transform): Do not remove useful histograms when
15948 speculation is not done; dump info when indirect call removal
15950 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
15951 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
15952 (__gcov_indirect_call_profiler_v2): .. this one.
15953 * profile.h (init_node_map): Update.
15954 * coverage.c (coverage_compute_profile_id): New function.
15955 * coverage.h (coverage_compute_profile_id): Declare.
15956 * tree-profile.c (init_ic_make_global_vars): Make
15957 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
15958 (gimple_init_edge_profiler): Update prototype of
15959 __gcov_indirect_call_profiler.
15960 (gimple_gen_ic_func_profiler): Simplify.
15961 (tree_profiling): Use init_node_map
15963 2013-08-09 Jan Hubicka <jh@suse.cz>
15965 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
15966 non-speculative refs.
15967 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
15968 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
15969 (cgraph_set_call_stmt): Likewise.
15970 (cgraph_create_edge_1): Fix release checking compilatoin;
15971 clear lto_stmt_uid.
15972 (cgraph_free_edge): Free indirect info.
15973 (cgraph_turn_edge_to_speculative): New function.
15974 (cgraph_speculative_call_info): New function.
15975 (cgraph_make_edge_direct): Return direct edge; handle speculation.
15976 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
15977 (dump_cgraph_node): Dump speculation.
15978 (verify_edge_count_and_frequency): Accept speculative edges.
15979 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
15980 (verify_cgraph_node): Handle speculation.
15981 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
15982 (cgraph_set_call_stmt): Update prototype.
15983 (cgraph_make_edge_direct): Update prototype.
15984 (cgraph_speculative_call_info): Declare.
15985 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
15986 to change; update call of ipa_find_references.
15987 * ipa-ref.c (ipa_record_reference): Fix return value; clear
15988 lto_stmt_uid and speculative flags.
15989 (ipa_dump_references): Dump speculation.
15990 (ipa_clone_references): Clone speculative flag.
15991 (ipa_clone_referring): Likewise.
15992 (ipa_clone_ref): New function.
15993 (ipa_find_reference): Look into lto_stmt_uids
15994 (ipa_clear_stmts_in_references): Do not clear speculative calls.
15995 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
15996 (ipa_find_reference): Update declaration.
15997 (ipa_clone_ref): Declare.
15998 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
15999 stream speculative flag.
16000 (lto_output_ref): Stream statements uids and speculation.
16001 (input_ref): Likewise.
16002 (input_edge): Stream speuclation.
16003 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
16004 (cgraph_set_call_stmt_including_clones): Handle speculation.
16005 * ipa-inline.c (heap_edge_removal_hook): New function.
16006 (inline_small_functions): Register it.
16007 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
16008 also initialize refs.
16009 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
16011 (try_make_edge_direct_simple_call): Likewise.
16012 (try_make_edge_direct_simple_call): Likewise.
16013 (update_indirect_edges_after_inlining): Likewise.
16014 (remove_described_reference): Look proper lto_stmt_uid.
16015 (propagate_controlled_uses): Likewise.
16016 (propagate_controlled_uses): Liekwise.
16017 * tree-inline.c (copy_bb): Copy speculative edges.
16018 (redirect_all_calls): New function.
16019 (copy_cfg_body): Do redirection after loop info is updated.
16020 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
16022 2013-08-09 Jan Hubicka <jh@suse.cz>
16024 * lto-streamer-out.c (output_function): Renumber PHIs.
16025 * lto-streamer-in.c (input_function): Likewise.
16027 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
16029 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
16030 (get_lane_unsigned): Likewise.
16031 (dup_lane_scalar): Likewise.
16032 (get_lane): enable for VALL.
16033 * config/aarch64/aarch64-simd.md
16034 (aarch64_dup_lane_scalar<mode>): Remove.
16035 (aarch64_get_lane_signed<mode>): Likewise.
16036 (aarch64_get_lane_unsigned<mode>): Likewise.
16037 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
16038 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
16039 (aarch64_get_lane<mode>): Enable for all vector modes.
16040 (aarch64_get_lanedi): Remove misleading constraints.
16041 * config/aarch64/arm_neon.h
16042 (__aarch64_vget_lane_any): Define.
16043 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
16044 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
16045 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
16046 * config/aarch64/iterators.md (VDQQH): New.
16047 (VDQQHS): Likewise.
16048 (vwcore): Likewise.
16050 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
16052 * configure.ac: Add GAS check for LEON instructions on SPARC.
16053 * configure: Regenerate.
16054 * config.in: Likewise.
16055 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
16057 * config/sparc/sparc.opt (LEON, LEON3): New masks.
16058 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
16060 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
16061 (AS_LEON_FLAG): New macro.
16062 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
16063 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
16064 Deal with LEON and LEON3 for the memory model.
16065 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
16066 (atomic_compare_and_swap<mode>_1): Likewise.
16067 (*atomic_compare_and_swap<mode>_1): Likewise.
16069 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16071 * config/arm/neon.md (vcond): Fix floating-point vector
16072 comparisons against 0.
16074 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
16076 * lra-constraints.c (emit_spill_move): Remove assert.
16077 (process_alt_operands): Add more debugging
16078 output. Increase reject for spilling into memory. Decrease
16079 reject for reloading scratch.
16080 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
16082 2013-08-08 Steve Ellcey <sellcey@mips.com>
16084 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
16085 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
16086 micromips incompatible. Add nan2008.
16087 (MULTILIB_DIRNAMES): Add nan2008.
16088 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
16089 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
16090 and micromips incompatible. Add nan2008.
16091 (MULTILIB_DIRNAMES): Add nan2008.
16092 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
16094 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
16096 PR rtl-optimization/58079
16097 * combine.c (combine_simplify_rtx): Avoid using SUBST if
16098 simplify_comparison has widened a comparison with an integer.
16100 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16102 * config/arm/neon.md (movmisalign<mode>): Disable when we
16103 don't allow unaligned accesses.
16104 (*movmisalign<mode>_neon_store): Likewise.
16105 (*movmisalign<mode>_neon_load): Likewise.
16106 (*movmisalign<mode>_neon_store): Likewise.
16107 (*movmisalign<mode>_neon_load): Likewise.
16109 2013-08-08 Jan Hubicka <jh@suse.cz>
16111 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
16112 (make_pass_rebuild_cgraph_edges): Also clear references.
16113 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
16114 * ipa-inline-transform.c (inline_transform): Remove all references
16116 * cgraphunit.c (expand_function): Remove all references after
16118 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
16119 (ipa_find_reference): Rewrite to iterator.
16120 (remove_stmt_references): Likewise.
16121 (ipa_clear_stmts_in_references): New function.
16122 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
16123 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
16125 * ipa-split.c (split_function): Remove references in split function.
16127 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
16130 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
16131 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
16133 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
16136 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
16137 suggested mode for the assignment isn't compatible with the
16138 registers required.
16140 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
16143 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
16145 2013-08-07 Xinliang David Li <davidxl@google.com>
16147 * config/i386/i386.opt: New option -mtune-ctrl=.
16148 * config/i386/x86-tune.def: New file.
16149 * config/i386/i386.h: include x86-tune.def.
16150 * config/i386/i386.c (ix86_option_override_internal):
16151 Parsing -mtune-ctrl= option and set tune features.
16153 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
16156 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
16157 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
16160 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
16162 * rtl.h (update_alignments): Declare.
16163 * final.c (grow_label_align): New function extracted from...
16164 (shorten_branches): ...here. Call it.
16165 (update_alignments): New function.
16166 * reorg.c (sibling_labels): New variable.
16167 (get_label_before): Add SIBLING parameter. If it is non-zero, push
16168 the new label along with it onto the sibling_labels vector.
16169 (fill_simple_delay_slots): Adjust call to get_label_before.
16170 (fill_slots_from_thread): Likewise.
16171 (relax_delay_slots): Likewise.
16172 (make_return_insns): Likewise.
16173 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
16175 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
16177 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
16178 document its semantics.
16179 (diagnostic_report_diagnostic): Adjust accordingly.
16181 2013-08-07 David Malcolm <dmalcolm@redhat.com>
16183 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
16184 (sparc_option_override): ...and port to new C++ pass API.
16185 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
16187 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
16189 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
16191 2013-08-06 Caroline Tice <cmtice@google.com>
16193 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
16194 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
16195 * tree-pass.h: Add pass_vtable_verify.
16196 * varasm.c (assemble_variable): Add code to properly set the comdat
16197 section and name for the .vtable_map_vars section.
16198 (assemble_vtyv_preinit_initializer): New function.
16199 (default_sectin_type_flags): Make sure .vtable_map_vars section has
16201 * output.h: Add function decl for assemble_vtv_preinit_initializer.
16202 * vtable-verify.c: New file.
16203 * vtable-verify.h: New file.
16204 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
16205 initialiation levels.
16206 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
16207 * passes.def: Insert pass_vtable_verify.
16208 * aclocal.m4: Reorder includes.
16209 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
16210 -fvtv-counts options.
16211 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
16212 as appropriate, if -fvtable-verify=... is used.
16213 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
16214 -fvtable-verify=... is used.
16215 * Makefile.in (OBJS): Add vtable-verify.o to list.
16216 (vtable-verify.o): Add new build rule.
16217 (GTFILES): Add vtable-verify.c to list.
16218 * common.opt (fvtable-verify=): New flag.
16219 (vtv_priority): Values for fvtable-verify= flag.
16220 (fvtv-counts): New flag.
16221 (fvtv-debug): New flag.
16222 * tree.h (save_vtable_map_decl): New extern function decl.
16224 2013-08-07 David Malcolm <dmalcolm@redhat.com>
16226 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
16227 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
16228 (pass_data_rl78_devirt): ...new pass_data instance and...
16229 (make_pass_rl78_devirt): ...new function.
16230 (rl78_asm_file_start): Port pass registration to new C++ API.
16232 2013-08-07 David Malcolm <dmalcolm@redhat.com>
16234 * coretypes.h (rtl_opt_pass): Add.
16235 (gcc::context): Add.
16236 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
16237 (epiphany_init): Port to new C++ pass API.
16238 (epiphany_optimize_mode_switching): Likewise.
16239 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
16240 (pass_manager::get_pass_mode_switching): New.
16241 (pass_manager::get_pass_peephole2): New.
16242 * mode-switching.c (pass_mode_switching): Add clone method.
16243 * recog.c (pass_peephole2): Add clone method.
16244 (pass_split_all_insns): Add clone method.
16246 2013-08-06 David Malcolm <dmalcolm@redhat.com>
16248 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
16249 (mips_option_override): ...here, porting to new C++ API for passes.
16251 2013-08-06 Jan Hubicka <jh@suse.cz>
16253 * cgraph.c (cgraph_get_body): New function based on lto.c
16255 * cgraph.h (cgraph_get_body): Declare.
16256 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
16258 * cgraphunit.c (expand_function): Get body prior expanding.
16259 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
16260 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
16262 * passes.c (do_per_function_toporder): Get body.
16263 * tree-inline.c (expand_call_inline): Get body prior inlining it.
16264 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
16266 2013-08-06 Martin Jambor <mjambor@suse.cz>
16269 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
16270 is not re-finalized. Rename second parameter to no_collect.
16272 2013-08-06 Martin Jambor <mjambor@suse.cz>
16274 PR middle-end/58041
16275 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
16276 MEM_REF has proper alignment information.
16278 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
16281 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
16283 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
16284 rtx (*) (rtx, ...) with insn_gen_fn.
16285 * genoutput.c (output_insn_data): Cast gen_? function pointers to
16286 insn_gen_fn::stored_funcptr. Add initializer braces.
16288 2013-08-05 David Malcolm <dmalcolm@redhat.com>
16290 Rewrite how instances of passes are cloned to remove assumptions
16291 about their sizes (thus allowing pass subclasses to have
16292 additional data fields, albeit non-GC-managed ones at this point).
16294 * passes.c (make_pass_instance): Now that passes have clone
16295 methods, rewrite this function to eliminate XNEW and memcpy
16296 calls that used hardcoded sizes. Since this function no longer
16297 creates pass instances, rename it to...
16298 (add_pass_instance): ...this. Document the old way that passes were
16299 numbered and flagged, and rework this function to continue using it.
16300 (next_pass_1): Add an initial_pass argument for use by
16302 (position_pass): When adding multiple instances of a pass, use
16303 the pass's clone method, rather than relying on the XNEW/memcpy
16304 within the former make_pass_instance (now add_pass_instance).
16305 (pass_manager::pass_manager): When invoking next_pass_1, also supply
16306 the initial instance of the current pass within the pass manager.
16308 2013-08-05 David Malcolm <dmalcolm@redhat.com>
16310 This is the automated part of the conversion of passes from C
16311 structs to C++ classes.
16313 Patch autogenerated by refactor_passes.py from
16314 https://github.com/davidmalcolm/gcc-refactoring-scripts
16315 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
16317 * asan.c (pass_asan): Convert from a global struct to a subclass of
16318 gimple_opt_pass along with...
16319 (pass_data_asan): ...new pass_data instance and...
16320 (make_pass_asan): ...new function.
16321 (pass_asan_O0): Convert from a global struct to a subclass of
16322 gimple_opt_pass along with...
16323 (pass_data_asan_O0): ...new pass_data instance and...
16324 (make_pass_asan_O0): ...new function.
16325 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
16326 subclass of rtl_opt_pass along with...
16327 (pass_data_inc_dec): ...new pass_data instance and...
16328 (make_pass_inc_dec): ...new function.
16329 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
16330 a subclass of rtl_opt_pass along with...
16331 (pass_data_reorder_blocks): ...new pass_data instance and...
16332 (make_pass_reorder_blocks): ...new function.
16333 (pass_duplicate_computed_gotos): Convert from a global struct to a
16334 subclass of rtl_opt_pass along with...
16335 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
16336 (make_pass_duplicate_computed_gotos): ...new function.
16337 (pass_partition_blocks): Convert from a global struct to a subclass of
16338 rtl_opt_pass along with...
16339 (pass_data_partition_blocks): ...new pass_data instance and...
16340 (make_pass_partition_blocks): ...new function.
16341 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
16342 struct to a subclass of rtl_opt_pass along with...
16343 (pass_data_branch_target_load_optimize1): ...new pass_data instance
16345 (make_pass_branch_target_load_optimize1): ...new function.
16346 (pass_branch_target_load_optimize2): Convert from a global struct to a
16347 subclass of rtl_opt_pass along with...
16348 (pass_data_branch_target_load_optimize2): ...new pass_data instance
16350 (make_pass_branch_target_load_optimize2): ...new function.
16351 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
16352 of rtl_opt_pass along with...
16353 (pass_data_jump): ...new pass_data instance and...
16354 (make_pass_jump): ...new function.
16355 (pass_jump2): Convert from a global struct to a subclass of
16356 rtl_opt_pass along with...
16357 (pass_data_jump2): ...new pass_data instance and...
16358 (make_pass_jump2): ...new function.
16359 * cfgexpand.c (pass_expand): Convert from a global struct to a
16360 subclass of rtl_opt_pass along with...
16361 (pass_data_expand): ...new pass_data instance and...
16362 (make_pass_expand): ...new function.
16363 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
16364 of rtl_opt_pass along with...
16365 (pass_data_free_cfg): ...new pass_data instance and...
16366 (make_pass_free_cfg): ...new function.
16367 (pass_into_cfg_layout_mode): Convert from a global struct to a
16368 subclass of rtl_opt_pass along with...
16369 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
16370 (make_pass_into_cfg_layout_mode): ...new function.
16371 (pass_outof_cfg_layout_mode): Convert from a global struct to a
16372 subclass of rtl_opt_pass along with...
16373 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
16374 (make_pass_outof_cfg_layout_mode): ...new function.
16375 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
16376 struct to a subclass of gimple_opt_pass along with...
16377 (pass_data_build_cgraph_edges): ...new pass_data instance and...
16378 (make_pass_build_cgraph_edges): ...new function.
16379 (pass_rebuild_cgraph_edges): Convert from a global struct to a
16380 subclass of gimple_opt_pass along with...
16381 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
16382 (make_pass_rebuild_cgraph_edges): ...new function.
16383 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
16384 subclass of gimple_opt_pass along with...
16385 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
16387 (make_pass_remove_cgraph_callee_edges): ...new function.
16388 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
16389 struct to a subclass of rtl_opt_pass along with...
16390 (pass_data_stack_adjustments): ...new pass_data instance and...
16391 (make_pass_stack_adjustments): ...new function.
16392 * combine.c (pass_combine): Convert from a global struct to a subclass
16393 of rtl_opt_pass along with...
16394 (pass_data_combine): ...new pass_data instance and...
16395 (make_pass_combine): ...new function.
16396 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
16397 global struct to a subclass of rtl_opt_pass along with...
16398 (pass_data_compare_elim_after_reload): ...new pass_data instance
16400 (make_pass_compare_elim_after_reload): ...new function.
16401 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
16402 of rtl_opt_pass along with...
16403 (pass_data_rtl_cprop): ...new pass_data instance and...
16404 (make_pass_rtl_cprop): ...new function.
16405 * cse.c (pass_cse): Convert from a global struct to a subclass of
16406 rtl_opt_pass along with...
16407 (pass_data_cse): ...new pass_data instance and...
16408 (make_pass_cse): ...new function.
16409 (pass_cse2): Convert from a global struct to a subclass of
16410 rtl_opt_pass along with...
16411 (pass_data_cse2): ...new pass_data instance and...
16412 (make_pass_cse2): ...new function.
16413 (pass_cse_after_global_opts): Convert from a global struct to a
16414 subclass of rtl_opt_pass along with...
16415 (pass_data_cse_after_global_opts): ...new pass_data instance and...
16416 (make_pass_cse_after_global_opts): ...new function.
16417 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
16418 of rtl_opt_pass along with...
16419 (pass_data_ud_rtl_dce): ...new pass_data instance and...
16420 (make_pass_ud_rtl_dce): ...new function.
16421 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
16422 rtl_opt_pass along with...
16423 (pass_data_fast_rtl_dce): ...new pass_data instance and...
16424 (make_pass_fast_rtl_dce): ...new function.
16425 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
16426 a subclass of rtl_opt_pass along with...
16427 (pass_data_df_initialize_opt): ...new pass_data instance and...
16428 (make_pass_df_initialize_opt): ...new function.
16429 (pass_df_initialize_no_opt): Convert from a global struct to a
16430 subclass of rtl_opt_pass along with...
16431 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
16432 (make_pass_df_initialize_no_opt): ...new function.
16433 (pass_df_finish): Convert from a global struct to a subclass of
16434 rtl_opt_pass along with...
16435 (pass_data_df_finish): ...new pass_data instance and...
16436 (make_pass_df_finish): ...new function.
16437 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
16438 rtl_opt_pass along with...
16439 (pass_data_rtl_dse1): ...new pass_data instance and...
16440 (make_pass_rtl_dse1): ...new function.
16441 (pass_rtl_dse2): Convert from a global struct to a subclass of
16442 rtl_opt_pass along with...
16443 (pass_data_rtl_dse2): ...new pass_data instance and...
16444 (make_pass_rtl_dse2): ...new function.
16445 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
16446 subclass of rtl_opt_pass along with...
16447 (pass_data_dwarf2_frame): ...new pass_data instance and...
16448 (make_pass_dwarf2_frame): ...new function.
16449 * except.c (pass_set_nothrow_function_flags): Convert from a global
16450 struct to a subclass of rtl_opt_pass along with...
16451 (pass_data_set_nothrow_function_flags): ...new pass_data instance
16453 (make_pass_set_nothrow_function_flags): ...new function.
16454 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
16455 subclass of rtl_opt_pass along with...
16456 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
16458 (make_pass_convert_to_eh_region_ranges): ...new function.
16459 * final.c (pass_compute_alignments): Convert from a global struct to a
16460 subclass of rtl_opt_pass along with...
16461 (pass_data_compute_alignments): ...new pass_data instance and...
16462 (make_pass_compute_alignments): ...new function.
16463 (pass_final): Convert from a global struct to a subclass of
16464 rtl_opt_pass along with...
16465 (pass_data_final): ...new pass_data instance and...
16466 (make_pass_final): ...new function.
16467 (pass_shorten_branches): Convert from a global struct to a subclass of
16468 rtl_opt_pass along with...
16469 (pass_data_shorten_branches): ...new pass_data instance and...
16470 (make_pass_shorten_branches): ...new function.
16471 (pass_clean_state): Convert from a global struct to a subclass of
16472 rtl_opt_pass along with...
16473 (pass_data_clean_state): ...new pass_data instance and...
16474 (make_pass_clean_state): ...new function.
16475 * function.c (pass_instantiate_virtual_regs): Convert from a global
16476 struct to a subclass of rtl_opt_pass along with...
16477 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
16478 (make_pass_instantiate_virtual_regs): ...new function.
16479 (pass_leaf_regs): Convert from a global struct to a subclass of
16480 rtl_opt_pass along with...
16481 (pass_data_leaf_regs): ...new pass_data instance and...
16482 (make_pass_leaf_regs): ...new function.
16483 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
16484 subclass of rtl_opt_pass along with...
16485 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
16487 (make_pass_thread_prologue_and_epilogue): ...new function.
16488 (pass_match_asm_constraints): Convert from a global struct to a
16489 subclass of rtl_opt_pass along with...
16490 (pass_data_match_asm_constraints): ...new pass_data instance and...
16491 (make_pass_match_asm_constraints): ...new function.
16492 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
16493 subclass of rtl_opt_pass along with...
16494 (pass_data_rtl_fwprop): ...new pass_data instance and...
16495 (make_pass_rtl_fwprop): ...new function.
16496 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
16497 rtl_opt_pass along with...
16498 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
16499 (make_pass_rtl_fwprop_addr): ...new function.
16500 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
16501 rtl_opt_pass along with...
16502 (pass_data_rtl_pre): ...new pass_data instance and...
16503 (make_pass_rtl_pre): ...new function.
16504 (pass_rtl_hoist): Convert from a global struct to a subclass of
16505 rtl_opt_pass along with...
16506 (pass_data_rtl_hoist): ...new pass_data instance and...
16507 (make_pass_rtl_hoist): ...new function.
16508 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
16509 subclass of gimple_opt_pass along with...
16510 (pass_data_lower_cf): ...new pass_data instance and...
16511 (make_pass_lower_cf): ...new function.
16512 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
16513 from a global struct to a subclass of gimple_opt_pass along with...
16514 (pass_data_strength_reduction): ...new pass_data instance and...
16515 (make_pass_strength_reduction): ...new function.
16516 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
16517 of rtl_opt_pass along with...
16518 (pass_data_rtl_ifcvt): ...new pass_data instance and...
16519 (make_pass_rtl_ifcvt): ...new function.
16520 (pass_if_after_combine): Convert from a global struct to a subclass of
16521 rtl_opt_pass along with...
16522 (pass_data_if_after_combine): ...new pass_data instance and...
16523 (make_pass_if_after_combine): ...new function.
16524 (pass_if_after_reload): Convert from a global struct to a subclass of
16525 rtl_opt_pass along with...
16526 (pass_data_if_after_reload): ...new pass_data instance and...
16527 (make_pass_if_after_reload): ...new function.
16528 * init-regs.c (pass_initialize_regs): Convert from a global struct to
16529 a subclass of rtl_opt_pass along with...
16530 (pass_data_initialize_regs): ...new pass_data instance and...
16531 (make_pass_initialize_regs): ...new function.
16532 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
16533 of ipa_opt_pass_d along with...
16534 (pass_data_ipa_cp): ...new pass_data instance and...
16535 (make_pass_ipa_cp): ...new function.
16536 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
16537 global struct to a subclass of gimple_opt_pass along with...
16538 (pass_data_inline_parameters): ...new pass_data instance and...
16539 (make_pass_inline_parameters): ...new function.
16540 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
16541 subclass of gimple_opt_pass along with...
16542 (pass_data_early_inline): ...new pass_data instance and...
16543 (make_pass_early_inline): ...new function.
16544 (pass_ipa_inline): Convert from a global struct to a subclass of
16545 ipa_opt_pass_d along with...
16546 (pass_data_ipa_inline): ...new pass_data instance and...
16547 (make_pass_ipa_inline): ...new function.
16548 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
16549 struct to a subclass of gimple_opt_pass along with...
16550 (pass_data_local_pure_const): ...new pass_data instance and...
16551 (make_pass_local_pure_const): ...new function.
16552 (pass_ipa_pure_const): Convert from a global struct to a subclass of
16553 ipa_opt_pass_d along with...
16554 (pass_data_ipa_pure_const): ...new pass_data instance and...
16555 (make_pass_ipa_pure_const): ...new function.
16556 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
16557 to a subclass of ipa_opt_pass_d along with...
16558 (pass_data_ipa_reference): ...new pass_data instance and...
16559 (make_pass_ipa_reference): ...new function.
16560 * ipa-split.c (pass_split_functions): Convert from a global struct to
16561 a subclass of gimple_opt_pass along with...
16562 (pass_data_split_functions): ...new pass_data instance and...
16563 (make_pass_split_functions): ...new function.
16564 (pass_feedback_split_functions): Convert from a global struct to a
16565 subclass of gimple_opt_pass along with...
16566 (pass_data_feedback_split_functions): ...new pass_data instance and...
16567 (make_pass_feedback_split_functions): ...new function.
16568 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
16569 global struct to a subclass of simple_ipa_opt_pass along with...
16570 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
16572 (make_pass_ipa_function_and_variable_visibility): ...new function.
16573 (pass_ipa_free_inline_summary): Convert from a global struct to a
16574 subclass of simple_ipa_opt_pass along with...
16575 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
16576 (make_pass_ipa_free_inline_summary): ...new function.
16577 (pass_ipa_whole_program_visibility): Convert from a global struct to a
16578 subclass of ipa_opt_pass_d along with...
16579 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
16581 (make_pass_ipa_whole_program_visibility): ...new function.
16582 (pass_ipa_profile): Convert from a global struct to a subclass of
16583 ipa_opt_pass_d along with...
16584 (pass_data_ipa_profile): ...new pass_data instance and...
16585 (make_pass_ipa_profile): ...new function.
16586 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
16587 ipa_opt_pass_d along with...
16588 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
16589 (make_pass_ipa_cdtor_merge): ...new function.
16590 * ira.c (pass_ira): Convert from a global struct to a subclass of
16591 rtl_opt_pass along with...
16592 (pass_data_ira): ...new pass_data instance and...
16593 (make_pass_ira): ...new function.
16594 (pass_reload): Convert from a global struct to a subclass of
16595 rtl_opt_pass along with...
16596 (pass_data_reload): ...new pass_data instance and...
16597 (make_pass_reload): ...new function.
16598 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
16599 subclass of rtl_opt_pass along with...
16600 (pass_data_cleanup_barriers): ...new pass_data instance and...
16601 (make_pass_cleanup_barriers): ...new function.
16602 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
16603 of rtl_opt_pass along with...
16604 (pass_data_loop2): ...new pass_data instance and...
16605 (make_pass_loop2): ...new function.
16606 (pass_rtl_loop_init): Convert from a global struct to a subclass of
16607 rtl_opt_pass along with...
16608 (pass_data_rtl_loop_init): ...new pass_data instance and...
16609 (make_pass_rtl_loop_init): ...new function.
16610 (pass_rtl_loop_done): Convert from a global struct to a subclass of
16611 rtl_opt_pass along with...
16612 (pass_data_rtl_loop_done): ...new pass_data instance and...
16613 (make_pass_rtl_loop_done): ...new function.
16614 (pass_rtl_move_loop_invariants): Convert from a global struct to a
16615 subclass of rtl_opt_pass along with...
16616 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
16617 (make_pass_rtl_move_loop_invariants): ...new function.
16618 (pass_rtl_unswitch): Convert from a global struct to a subclass of
16619 rtl_opt_pass along with...
16620 (pass_data_rtl_unswitch): ...new pass_data instance and...
16621 (make_pass_rtl_unswitch): ...new function.
16622 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
16623 subclass of rtl_opt_pass along with...
16624 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
16626 (make_pass_rtl_unroll_and_peel_loops): ...new function.
16627 (pass_rtl_doloop): Convert from a global struct to a subclass of
16628 rtl_opt_pass along with...
16629 (pass_data_rtl_doloop): ...new pass_data instance and...
16630 (make_pass_rtl_doloop): ...new function.
16631 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
16632 a subclass of rtl_opt_pass along with...
16633 (pass_data_lower_subreg): ...new pass_data instance and...
16634 (make_pass_lower_subreg): ...new function.
16635 (pass_lower_subreg2): Convert from a global struct to a subclass of
16636 rtl_opt_pass along with...
16637 (pass_data_lower_subreg2): ...new pass_data instance and...
16638 (make_pass_lower_subreg2): ...new function.
16639 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
16640 struct to a subclass of ipa_opt_pass_d along with...
16641 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
16642 (make_pass_ipa_lto_gimple_out): ...new function.
16643 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
16644 of ipa_opt_pass_d along with...
16645 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
16646 (make_pass_ipa_lto_finish_out): ...new function.
16647 * mode-switching.c (pass_mode_switching): Convert from a global struct
16648 to a subclass of rtl_opt_pass along with...
16649 (pass_data_mode_switching): ...new pass_data instance and...
16650 (make_pass_mode_switching): ...new function.
16651 * modulo-sched.c (pass_sms): Convert from a global struct to a
16652 subclass of rtl_opt_pass along with...
16653 (pass_data_sms): ...new pass_data instance and...
16654 (make_pass_sms): ...new function.
16655 * omp-low.c (pass_expand_omp): Convert from a global struct to a
16656 subclass of gimple_opt_pass along with...
16657 (pass_data_expand_omp): ...new pass_data instance and...
16658 (make_pass_expand_omp): ...new function.
16659 (pass_lower_omp): Convert from a global struct to a subclass of
16660 gimple_opt_pass along with...
16661 (pass_data_lower_omp): ...new pass_data instance and...
16662 (make_pass_lower_omp): ...new function.
16663 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
16664 of gimple_opt_pass along with...
16665 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
16666 (make_pass_diagnose_omp_blocks): ...new function.
16667 * passes.c (pass_early_local_passes): Convert from a global struct to
16668 a subclass of simple_ipa_opt_pass along with...
16669 (pass_data_early_local_passes): ...new pass_data instance and...
16670 (make_pass_early_local_passes): ...new function.
16671 (pass_all_early_optimizations): Convert from a global struct to a
16672 subclass of gimple_opt_pass along with...
16673 (pass_data_all_early_optimizations): ...new pass_data instance and...
16674 (make_pass_all_early_optimizations): ...new function.
16675 (pass_all_optimizations): Convert from a global struct to a subclass
16676 of gimple_opt_pass along with...
16677 (pass_data_all_optimizations): ...new pass_data instance and...
16678 (make_pass_all_optimizations): ...new function.
16679 (pass_all_optimizations_g): Convert from a global struct to a subclass
16680 of gimple_opt_pass along with...
16681 (pass_data_all_optimizations_g): ...new pass_data instance and...
16682 (make_pass_all_optimizations_g): ...new function.
16683 (pass_rest_of_compilation): Convert from a global struct to a subclass
16684 of rtl_opt_pass along with...
16685 (pass_data_rest_of_compilation): ...new pass_data instance and...
16686 (make_pass_rest_of_compilation): ...new function.
16687 (pass_postreload): Convert from a global struct to a subclass of
16688 rtl_opt_pass along with...
16689 (pass_data_postreload): ...new pass_data instance and...
16690 (make_pass_postreload): ...new function.
16691 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
16692 subclass of rtl_opt_pass along with...
16693 (pass_data_gcse2): ...new pass_data instance and...
16694 (make_pass_gcse2): ...new function.
16695 * postreload.c (pass_postreload_cse): Convert from a global struct to
16696 a subclass of rtl_opt_pass along with...
16697 (pass_data_postreload_cse): ...new pass_data instance and...
16698 (make_pass_postreload_cse): ...new function.
16699 * predict.c (pass_profile): Convert from a global struct to a subclass
16700 of gimple_opt_pass along with...
16701 (pass_data_profile): ...new pass_data instance and...
16702 (make_pass_profile): ...new function.
16703 (pass_strip_predict_hints): Convert from a global struct to a subclass
16704 of gimple_opt_pass along with...
16705 (pass_data_strip_predict_hints): ...new pass_data instance and...
16706 (make_pass_strip_predict_hints): ...new function.
16707 * recog.c (pass_peephole2): Convert from a global struct to a subclass
16708 of rtl_opt_pass along with...
16709 (pass_data_peephole2): ...new pass_data instance and...
16710 (make_pass_peephole2): ...new function.
16711 (pass_split_all_insns): Convert from a global struct to a subclass of
16712 rtl_opt_pass along with...
16713 (pass_data_split_all_insns): ...new pass_data instance and...
16714 (make_pass_split_all_insns): ...new function.
16715 (pass_split_after_reload): Convert from a global struct to a subclass
16716 of rtl_opt_pass along with...
16717 (pass_data_split_after_reload): ...new pass_data instance and...
16718 (make_pass_split_after_reload): ...new function.
16719 (pass_split_before_regstack): Convert from a global struct to a
16720 subclass of rtl_opt_pass along with...
16721 (pass_data_split_before_regstack): ...new pass_data instance and...
16722 (make_pass_split_before_regstack): ...new function.
16723 (pass_split_before_sched2): Convert from a global struct to a subclass
16724 of rtl_opt_pass along with...
16725 (pass_data_split_before_sched2): ...new pass_data instance and...
16726 (make_pass_split_before_sched2): ...new function.
16727 (pass_split_for_shorten_branches): Convert from a global struct to a
16728 subclass of rtl_opt_pass along with...
16729 (pass_data_split_for_shorten_branches): ...new pass_data instance
16731 (make_pass_split_for_shorten_branches): ...new function.
16732 * ree.c (pass_ree): Convert from a global struct to a subclass of
16733 rtl_opt_pass along with...
16734 (pass_data_ree): ...new pass_data instance and...
16735 (make_pass_ree): ...new function.
16736 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
16737 subclass of rtl_opt_pass along with...
16738 (pass_data_stack_regs): ...new pass_data instance and...
16739 (make_pass_stack_regs): ...new function.
16740 (pass_stack_regs_run): Convert from a global struct to a subclass of
16741 rtl_opt_pass along with...
16742 (pass_data_stack_regs_run): ...new pass_data instance and...
16743 (make_pass_stack_regs_run): ...new function.
16744 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
16745 subclass of rtl_opt_pass along with...
16746 (pass_data_cprop_hardreg): ...new pass_data instance and...
16747 (make_pass_cprop_hardreg): ...new function.
16748 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
16749 subclass of rtl_opt_pass along with...
16750 (pass_data_reginfo_init): ...new pass_data instance and...
16751 (make_pass_reginfo_init): ...new function.
16752 * regmove.c (pass_regmove): Convert from a global struct to a subclass
16753 of rtl_opt_pass along with...
16754 (pass_data_regmove): ...new pass_data instance and...
16755 (make_pass_regmove): ...new function.
16756 * regrename.c (pass_regrename): Convert from a global struct to a
16757 subclass of rtl_opt_pass along with...
16758 (pass_data_regrename): ...new pass_data instance and...
16759 (make_pass_regrename): ...new function.
16760 * reorg.c (pass_delay_slots): Convert from a global struct to a
16761 subclass of rtl_opt_pass along with...
16762 (pass_data_delay_slots): ...new pass_data instance and...
16763 (make_pass_delay_slots): ...new function.
16764 (pass_machine_reorg): Convert from a global struct to a subclass of
16765 rtl_opt_pass along with...
16766 (pass_data_machine_reorg): ...new pass_data instance and...
16767 (make_pass_machine_reorg): ...new function.
16768 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
16769 of rtl_opt_pass along with...
16770 (pass_data_sched): ...new pass_data instance and...
16771 (make_pass_sched): ...new function.
16772 (pass_sched2): Convert from a global struct to a subclass of
16773 rtl_opt_pass along with...
16774 (pass_data_sched2): ...new pass_data instance and...
16775 (make_pass_sched2): ...new function.
16776 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
16777 to a subclass of rtl_opt_pass along with...
16778 (pass_data_stack_ptr_mod): ...new pass_data instance and...
16779 (make_pass_stack_ptr_mod): ...new function.
16780 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
16781 to a subclass of rtl_opt_pass along with...
16782 (pass_data_rtl_store_motion): ...new pass_data instance and...
16783 (make_pass_rtl_store_motion): ...new function.
16784 * tracer.c (pass_tracer): Convert from a global struct to a subclass
16785 of gimple_opt_pass along with...
16786 (pass_data_tracer): ...new pass_data instance and...
16787 (make_pass_tracer): ...new function.
16788 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
16789 to a subclass of gimple_opt_pass along with...
16790 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
16791 (make_pass_diagnose_tm_blocks): ...new function.
16792 (pass_lower_tm): Convert from a global struct to a subclass of
16793 gimple_opt_pass along with...
16794 (pass_data_lower_tm): ...new pass_data instance and...
16795 (make_pass_lower_tm): ...new function.
16796 (pass_tm_init): Convert from a global struct to a subclass of
16797 gimple_opt_pass along with...
16798 (pass_data_tm_init): ...new pass_data instance and...
16799 (make_pass_tm_init): ...new function.
16800 (pass_tm_mark): Convert from a global struct to a subclass of
16801 gimple_opt_pass along with...
16802 (pass_data_tm_mark): ...new pass_data instance and...
16803 (make_pass_tm_mark): ...new function.
16804 (pass_tm_edges): Convert from a global struct to a subclass of
16805 gimple_opt_pass along with...
16806 (pass_data_tm_edges): ...new pass_data instance and...
16807 (make_pass_tm_edges): ...new function.
16808 (pass_tm_memopt): Convert from a global struct to a subclass of
16809 gimple_opt_pass along with...
16810 (pass_data_tm_memopt): ...new pass_data instance and...
16811 (make_pass_tm_memopt): ...new function.
16812 (pass_ipa_tm): Convert from a global struct to a subclass of
16813 simple_ipa_opt_pass along with...
16814 (pass_data_ipa_tm): ...new pass_data instance and...
16815 (make_pass_ipa_tm): ...new function.
16816 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
16817 subclass of gimple_opt_pass along with...
16818 (pass_data_call_cdce): ...new pass_data instance and...
16819 (make_pass_call_cdce): ...new function.
16820 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
16821 subclass of gimple_opt_pass along with...
16822 (pass_data_build_cfg): ...new pass_data instance and...
16823 (make_pass_build_cfg): ...new function.
16824 (pass_split_crit_edges): Convert from a global struct to a subclass of
16825 gimple_opt_pass along with...
16826 (pass_data_split_crit_edges): ...new pass_data instance and...
16827 (make_pass_split_crit_edges): ...new function.
16828 (pass_warn_function_return): Convert from a global struct to a
16829 subclass of gimple_opt_pass along with...
16830 (pass_data_warn_function_return): ...new pass_data instance and...
16831 (make_pass_warn_function_return): ...new function.
16832 (pass_warn_function_noreturn): Convert from a global struct to a
16833 subclass of gimple_opt_pass along with...
16834 (pass_data_warn_function_noreturn): ...new pass_data instance and...
16835 (make_pass_warn_function_noreturn): ...new function.
16836 (pass_warn_unused_result): Convert from a global struct to a subclass
16837 of gimple_opt_pass along with...
16838 (pass_data_warn_unused_result): ...new pass_data instance and...
16839 (make_pass_warn_unused_result): ...new function.
16840 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
16841 a subclass of gimple_opt_pass along with...
16842 (pass_data_merge_phi): ...new pass_data instance and...
16843 (make_pass_merge_phi): ...new function.
16844 * tree-complex.c (pass_lower_complex): Convert from a global struct to
16845 a subclass of gimple_opt_pass along with...
16846 (pass_data_lower_complex): ...new pass_data instance and...
16847 (make_pass_lower_complex): ...new function.
16848 (pass_lower_complex_O0): Convert from a global struct to a subclass of
16849 gimple_opt_pass along with...
16850 (pass_data_lower_complex_O0): ...new pass_data instance and...
16851 (make_pass_lower_complex_O0): ...new function.
16852 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
16853 subclass of gimple_opt_pass along with...
16854 (pass_data_lower_eh): ...new pass_data instance and...
16855 (make_pass_lower_eh): ...new function.
16856 (pass_refactor_eh): Convert from a global struct to a subclass of
16857 gimple_opt_pass along with...
16858 (pass_data_refactor_eh): ...new pass_data instance and...
16859 (make_pass_refactor_eh): ...new function.
16860 (pass_lower_resx): Convert from a global struct to a subclass of
16861 gimple_opt_pass along with...
16862 (pass_data_lower_resx): ...new pass_data instance and...
16863 (make_pass_lower_resx): ...new function.
16864 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
16865 of gimple_opt_pass along with...
16866 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
16867 (make_pass_lower_eh_dispatch): ...new function.
16868 (pass_cleanup_eh): Convert from a global struct to a subclass of
16869 gimple_opt_pass along with...
16870 (pass_data_cleanup_eh): ...new pass_data instance and...
16871 (make_pass_cleanup_eh): ...new function.
16872 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
16873 to a subclass of simple_ipa_opt_pass along with...
16874 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
16875 (make_pass_ipa_lower_emutls): ...new function.
16876 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
16877 a subclass of gimple_opt_pass along with...
16878 (pass_data_if_conversion): ...new pass_data instance and...
16879 (make_pass_if_conversion): ...new function.
16880 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
16881 subclass of gimple_opt_pass along with...
16882 (pass_data_build_ssa): ...new pass_data instance and...
16883 (make_pass_build_ssa): ...new function.
16884 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
16885 global struct to a subclass of gimple_opt_pass along with...
16886 (pass_data_loop_distribution): ...new pass_data instance and...
16887 (make_pass_loop_distribution): ...new function.
16888 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
16889 subclass of gimple_opt_pass along with...
16890 (pass_data_mudflap_1): ...new pass_data instance and...
16891 (make_pass_mudflap_1): ...new function.
16892 (pass_mudflap_2): Convert from a global struct to a subclass of
16893 gimple_opt_pass along with...
16894 (pass_data_mudflap_2): ...new pass_data instance and...
16895 (make_pass_mudflap_2): ...new function.
16896 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
16897 subclass of gimple_opt_pass along with...
16898 (pass_data_mudflap_1): ...new pass_data instance and...
16899 (make_pass_mudflap_1): ...new function.
16900 (pass_mudflap_2): Convert from a global struct to a subclass of
16901 gimple_opt_pass along with...
16902 (pass_data_mudflap_2): ...new pass_data instance and...
16903 (make_pass_mudflap_2): ...new function.
16904 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
16905 gimple_opt_pass along with...
16906 (pass_data_nrv): ...new pass_data instance and...
16907 (make_pass_nrv): ...new function.
16908 (pass_return_slot): Convert from a global struct to a subclass of
16909 gimple_opt_pass along with...
16910 (pass_data_return_slot): ...new pass_data instance and...
16911 (make_pass_return_slot): ...new function.
16912 * tree-object-size.c (pass_object_sizes): Convert from a global struct
16913 to a subclass of gimple_opt_pass along with...
16914 (pass_data_object_sizes): ...new pass_data instance and...
16915 (make_pass_object_sizes): ...new function.
16916 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
16917 global struct to a subclass of gimple_opt_pass along with...
16918 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
16920 (make_pass_cleanup_cfg_post_optimizing): ...new function.
16921 (pass_fixup_cfg): Convert from a global struct to a subclass of
16922 gimple_opt_pass along with...
16923 (pass_data_fixup_cfg): ...new pass_data instance and...
16924 (make_pass_fixup_cfg): ...new function.
16925 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
16926 (make_pass_mudflap_1): ...new function.
16927 (pass_mudflap_2): Replace declaration with that of...
16928 (make_pass_mudflap_2): ...new function.
16929 (pass_asan): Replace declaration with that of...
16930 (make_pass_asan): ...new function.
16931 (pass_asan_O0): Replace declaration with that of...
16932 (make_pass_asan_O0): ...new function.
16933 (pass_tsan): Replace declaration with that of...
16934 (make_pass_tsan): ...new function.
16935 (pass_tsan_O0): Replace declaration with that of...
16936 (make_pass_tsan_O0): ...new function.
16937 (pass_lower_cf): Replace declaration with that of...
16938 (make_pass_lower_cf): ...new function.
16939 (pass_refactor_eh): Replace declaration with that of...
16940 (make_pass_refactor_eh): ...new function.
16941 (pass_lower_eh): Replace declaration with that of...
16942 (make_pass_lower_eh): ...new function.
16943 (pass_lower_eh_dispatch): Replace declaration with that of...
16944 (make_pass_lower_eh_dispatch): ...new function.
16945 (pass_lower_resx): Replace declaration with that of...
16946 (make_pass_lower_resx): ...new function.
16947 (pass_build_cfg): Replace declaration with that of...
16948 (make_pass_build_cfg): ...new function.
16949 (pass_early_tree_profile): Replace declaration with that of...
16950 (make_pass_early_tree_profile): ...new function.
16951 (pass_cleanup_eh): Replace declaration with that of...
16952 (make_pass_cleanup_eh): ...new function.
16953 (pass_sra): Replace declaration with that of...
16954 (make_pass_sra): ...new function.
16955 (pass_sra_early): Replace declaration with that of...
16956 (make_pass_sra_early): ...new function.
16957 (pass_early_ipa_sra): Replace declaration with that of...
16958 (make_pass_early_ipa_sra): ...new function.
16959 (pass_tail_recursion): Replace declaration with that of...
16960 (make_pass_tail_recursion): ...new function.
16961 (pass_tail_calls): Replace declaration with that of...
16962 (make_pass_tail_calls): ...new function.
16963 (pass_tree_loop): Replace declaration with that of...
16964 (make_pass_tree_loop): ...new function.
16965 (pass_tree_loop_init): Replace declaration with that of...
16966 (make_pass_tree_loop_init): ...new function.
16967 (pass_lim): Replace declaration with that of...
16968 (make_pass_lim): ...new function.
16969 (pass_tree_unswitch): Replace declaration with that of...
16970 (make_pass_tree_unswitch): ...new function.
16971 (pass_predcom): Replace declaration with that of...
16972 (make_pass_predcom): ...new function.
16973 (pass_iv_canon): Replace declaration with that of...
16974 (make_pass_iv_canon): ...new function.
16975 (pass_scev_cprop): Replace declaration with that of...
16976 (make_pass_scev_cprop): ...new function.
16977 (pass_empty_loop): Replace declaration with that of...
16978 (make_pass_empty_loop): ...new function.
16979 (pass_record_bounds): Replace declaration with that of...
16980 (make_pass_record_bounds): ...new function.
16981 (pass_graphite): Replace declaration with that of...
16982 (make_pass_graphite): ...new function.
16983 (pass_graphite_transforms): Replace declaration with that of...
16984 (make_pass_graphite_transforms): ...new function.
16985 (pass_if_conversion): Replace declaration with that of...
16986 (make_pass_if_conversion): ...new function.
16987 (pass_loop_distribution): Replace declaration with that of...
16988 (make_pass_loop_distribution): ...new function.
16989 (pass_vectorize): Replace declaration with that of...
16990 (make_pass_vectorize): ...new function.
16991 (pass_slp_vectorize): Replace declaration with that of...
16992 (make_pass_slp_vectorize): ...new function.
16993 (pass_complete_unroll): Replace declaration with that of...
16994 (make_pass_complete_unroll): ...new function.
16995 (pass_complete_unrolli): Replace declaration with that of...
16996 (make_pass_complete_unrolli): ...new function.
16997 (pass_parallelize_loops): Replace declaration with that of...
16998 (make_pass_parallelize_loops): ...new function.
16999 (pass_loop_prefetch): Replace declaration with that of...
17000 (make_pass_loop_prefetch): ...new function.
17001 (pass_iv_optimize): Replace declaration with that of...
17002 (make_pass_iv_optimize): ...new function.
17003 (pass_tree_loop_done): Replace declaration with that of...
17004 (make_pass_tree_loop_done): ...new function.
17005 (pass_ch): Replace declaration with that of...
17006 (make_pass_ch): ...new function.
17007 (pass_ccp): Replace declaration with that of...
17008 (make_pass_ccp): ...new function.
17009 (pass_phi_only_cprop): Replace declaration with that of...
17010 (make_pass_phi_only_cprop): ...new function.
17011 (pass_build_ssa): Replace declaration with that of...
17012 (make_pass_build_ssa): ...new function.
17013 (pass_build_alias): Replace declaration with that of...
17014 (make_pass_build_alias): ...new function.
17015 (pass_build_ealias): Replace declaration with that of...
17016 (make_pass_build_ealias): ...new function.
17017 (pass_dominator): Replace declaration with that of...
17018 (make_pass_dominator): ...new function.
17019 (pass_dce): Replace declaration with that of...
17020 (make_pass_dce): ...new function.
17021 (pass_dce_loop): Replace declaration with that of...
17022 (make_pass_dce_loop): ...new function.
17023 (pass_cd_dce): Replace declaration with that of...
17024 (make_pass_cd_dce): ...new function.
17025 (pass_call_cdce): Replace declaration with that of...
17026 (make_pass_call_cdce): ...new function.
17027 (pass_merge_phi): Replace declaration with that of...
17028 (make_pass_merge_phi): ...new function.
17029 (pass_split_crit_edges): Replace declaration with that of...
17030 (make_pass_split_crit_edges): ...new function.
17031 (pass_pre): Replace declaration with that of...
17032 (make_pass_pre): ...new function.
17033 (pass_profile): Replace declaration with that of...
17034 (make_pass_profile): ...new function.
17035 (pass_strip_predict_hints): Replace declaration with that of...
17036 (make_pass_strip_predict_hints): ...new function.
17037 (pass_lower_complex_O0): Replace declaration with that of...
17038 (make_pass_lower_complex_O0): ...new function.
17039 (pass_lower_complex): Replace declaration with that of...
17040 (make_pass_lower_complex): ...new function.
17041 (pass_lower_vector): Replace declaration with that of...
17042 (make_pass_lower_vector): ...new function.
17043 (pass_lower_vector_ssa): Replace declaration with that of...
17044 (make_pass_lower_vector_ssa): ...new function.
17045 (pass_lower_omp): Replace declaration with that of...
17046 (make_pass_lower_omp): ...new function.
17047 (pass_diagnose_omp_blocks): Replace declaration with that of...
17048 (make_pass_diagnose_omp_blocks): ...new function.
17049 (pass_expand_omp): Replace declaration with that of...
17050 (make_pass_expand_omp): ...new function.
17051 (pass_expand_omp_ssa): Replace declaration with that of...
17052 (make_pass_expand_omp_ssa): ...new function.
17053 (pass_object_sizes): Replace declaration with that of...
17054 (make_pass_object_sizes): ...new function.
17055 (pass_strlen): Replace declaration with that of...
17056 (make_pass_strlen): ...new function.
17057 (pass_fold_builtins): Replace declaration with that of...
17058 (make_pass_fold_builtins): ...new function.
17059 (pass_stdarg): Replace declaration with that of...
17060 (make_pass_stdarg): ...new function.
17061 (pass_early_warn_uninitialized): Replace declaration with that of...
17062 (make_pass_early_warn_uninitialized): ...new function.
17063 (pass_late_warn_uninitialized): Replace declaration with that of...
17064 (make_pass_late_warn_uninitialized): ...new function.
17065 (pass_cse_reciprocals): Replace declaration with that of...
17066 (make_pass_cse_reciprocals): ...new function.
17067 (pass_cse_sincos): Replace declaration with that of...
17068 (make_pass_cse_sincos): ...new function.
17069 (pass_optimize_bswap): Replace declaration with that of...
17070 (make_pass_optimize_bswap): ...new function.
17071 (pass_optimize_widening_mul): Replace declaration with that of...
17072 (make_pass_optimize_widening_mul): ...new function.
17073 (pass_warn_function_return): Replace declaration with that of...
17074 (make_pass_warn_function_return): ...new function.
17075 (pass_warn_function_noreturn): Replace declaration with that of...
17076 (make_pass_warn_function_noreturn): ...new function.
17077 (pass_cselim): Replace declaration with that of...
17078 (make_pass_cselim): ...new function.
17079 (pass_phiopt): Replace declaration with that of...
17080 (make_pass_phiopt): ...new function.
17081 (pass_forwprop): Replace declaration with that of...
17082 (make_pass_forwprop): ...new function.
17083 (pass_phiprop): Replace declaration with that of...
17084 (make_pass_phiprop): ...new function.
17085 (pass_tree_ifcombine): Replace declaration with that of...
17086 (make_pass_tree_ifcombine): ...new function.
17087 (pass_dse): Replace declaration with that of...
17088 (make_pass_dse): ...new function.
17089 (pass_nrv): Replace declaration with that of...
17090 (make_pass_nrv): ...new function.
17091 (pass_rename_ssa_copies): Replace declaration with that of...
17092 (make_pass_rename_ssa_copies): ...new function.
17093 (pass_sink_code): Replace declaration with that of...
17094 (make_pass_sink_code): ...new function.
17095 (pass_fre): Replace declaration with that of...
17096 (make_pass_fre): ...new function.
17097 (pass_check_data_deps): Replace declaration with that of...
17098 (make_pass_check_data_deps): ...new function.
17099 (pass_copy_prop): Replace declaration with that of...
17100 (make_pass_copy_prop): ...new function.
17101 (pass_vrp): Replace declaration with that of...
17102 (make_pass_vrp): ...new function.
17103 (pass_uncprop): Replace declaration with that of...
17104 (make_pass_uncprop): ...new function.
17105 (pass_return_slot): Replace declaration with that of...
17106 (make_pass_return_slot): ...new function.
17107 (pass_reassoc): Replace declaration with that of...
17108 (make_pass_reassoc): ...new function.
17109 (pass_rebuild_cgraph_edges): Replace declaration with that of...
17110 (make_pass_rebuild_cgraph_edges): ...new function.
17111 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
17112 (make_pass_remove_cgraph_callee_edges): ...new function.
17113 (pass_build_cgraph_edges): Replace declaration with that of...
17114 (make_pass_build_cgraph_edges): ...new function.
17115 (pass_local_pure_const): Replace declaration with that of...
17116 (make_pass_local_pure_const): ...new function.
17117 (pass_tracer): Replace declaration with that of...
17118 (make_pass_tracer): ...new function.
17119 (pass_warn_unused_result): Replace declaration with that of...
17120 (make_pass_warn_unused_result): ...new function.
17121 (pass_diagnose_tm_blocks): Replace declaration with that of...
17122 (make_pass_diagnose_tm_blocks): ...new function.
17123 (pass_lower_tm): Replace declaration with that of...
17124 (make_pass_lower_tm): ...new function.
17125 (pass_tm_init): Replace declaration with that of...
17126 (make_pass_tm_init): ...new function.
17127 (pass_tm_mark): Replace declaration with that of...
17128 (make_pass_tm_mark): ...new function.
17129 (pass_tm_memopt): Replace declaration with that of...
17130 (make_pass_tm_memopt): ...new function.
17131 (pass_tm_edges): Replace declaration with that of...
17132 (make_pass_tm_edges): ...new function.
17133 (pass_split_functions): Replace declaration with that of...
17134 (make_pass_split_functions): ...new function.
17135 (pass_feedback_split_functions): Replace declaration with that of...
17136 (make_pass_feedback_split_functions): ...new function.
17137 (pass_strength_reduction): Replace declaration with that of...
17138 (make_pass_strength_reduction): ...new function.
17139 (pass_ipa_lower_emutls): Replace declaration with that of...
17140 (make_pass_ipa_lower_emutls): ...new function.
17141 (pass_ipa_function_and_variable_visibility): Replace declaration with
17143 (make_pass_ipa_function_and_variable_visibility): ...new function.
17144 (pass_ipa_tree_profile): Replace declaration with that of...
17145 (make_pass_ipa_tree_profile): ...new function.
17146 (pass_early_local_passes): Replace declaration with that of...
17147 (make_pass_early_local_passes): ...new function.
17148 (pass_ipa_whole_program_visibility): Replace declaration with that
17150 (make_pass_ipa_whole_program_visibility): ...new function.
17151 (pass_ipa_lto_gimple_out): Replace declaration with that of...
17152 (make_pass_ipa_lto_gimple_out): ...new function.
17153 (pass_ipa_increase_alignment): Replace declaration with that of...
17154 (make_pass_ipa_increase_alignment): ...new function.
17155 (pass_ipa_inline): Replace declaration with that of...
17156 (make_pass_ipa_inline): ...new function.
17157 (pass_ipa_free_lang_data): Replace declaration with that of...
17158 (make_pass_ipa_free_lang_data): ...new function.
17159 (pass_ipa_free_inline_summary): Replace declaration with that of...
17160 (make_pass_ipa_free_inline_summary): ...new function.
17161 (pass_ipa_cp): Replace declaration with that of...
17162 (make_pass_ipa_cp): ...new function.
17163 (pass_ipa_reference): Replace declaration with that of...
17164 (make_pass_ipa_reference): ...new function.
17165 (pass_ipa_pure_const): Replace declaration with that of...
17166 (make_pass_ipa_pure_const): ...new function.
17167 (pass_ipa_pta): Replace declaration with that of...
17168 (make_pass_ipa_pta): ...new function.
17169 (pass_ipa_lto_finish_out): Replace declaration with that of...
17170 (make_pass_ipa_lto_finish_out): ...new function.
17171 (pass_ipa_tm): Replace declaration with that of...
17172 (make_pass_ipa_tm): ...new function.
17173 (pass_ipa_profile): Replace declaration with that of...
17174 (make_pass_ipa_profile): ...new function.
17175 (pass_ipa_cdtor_merge): Replace declaration with that of...
17176 (make_pass_ipa_cdtor_merge): ...new function.
17177 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
17179 (make_pass_cleanup_cfg_post_optimizing): ...new function.
17180 (pass_init_datastructures): Replace declaration with that of...
17181 (make_pass_init_datastructures): ...new function.
17182 (pass_fixup_cfg): Replace declaration with that of...
17183 (make_pass_fixup_cfg): ...new function.
17184 (pass_expand): Replace declaration with that of...
17185 (make_pass_expand): ...new function.
17186 (pass_instantiate_virtual_regs): Replace declaration with that of...
17187 (make_pass_instantiate_virtual_regs): ...new function.
17188 (pass_rtl_fwprop): Replace declaration with that of...
17189 (make_pass_rtl_fwprop): ...new function.
17190 (pass_rtl_fwprop_addr): Replace declaration with that of...
17191 (make_pass_rtl_fwprop_addr): ...new function.
17192 (pass_jump): Replace declaration with that of...
17193 (make_pass_jump): ...new function.
17194 (pass_jump2): Replace declaration with that of...
17195 (make_pass_jump2): ...new function.
17196 (pass_lower_subreg): Replace declaration with that of...
17197 (make_pass_lower_subreg): ...new function.
17198 (pass_cse): Replace declaration with that of...
17199 (make_pass_cse): ...new function.
17200 (pass_fast_rtl_dce): Replace declaration with that of...
17201 (make_pass_fast_rtl_dce): ...new function.
17202 (pass_ud_rtl_dce): Replace declaration with that of...
17203 (make_pass_ud_rtl_dce): ...new function.
17204 (pass_rtl_dce): Replace declaration with that of...
17205 (make_pass_rtl_dce): ...new function.
17206 (pass_rtl_dse1): Replace declaration with that of...
17207 (make_pass_rtl_dse1): ...new function.
17208 (pass_rtl_dse2): Replace declaration with that of...
17209 (make_pass_rtl_dse2): ...new function.
17210 (pass_rtl_dse3): Replace declaration with that of...
17211 (make_pass_rtl_dse3): ...new function.
17212 (pass_rtl_cprop): Replace declaration with that of...
17213 (make_pass_rtl_cprop): ...new function.
17214 (pass_rtl_pre): Replace declaration with that of...
17215 (make_pass_rtl_pre): ...new function.
17216 (pass_rtl_hoist): Replace declaration with that of...
17217 (make_pass_rtl_hoist): ...new function.
17218 (pass_rtl_store_motion): Replace declaration with that of...
17219 (make_pass_rtl_store_motion): ...new function.
17220 (pass_cse_after_global_opts): Replace declaration with that of...
17221 (make_pass_cse_after_global_opts): ...new function.
17222 (pass_rtl_ifcvt): Replace declaration with that of...
17223 (make_pass_rtl_ifcvt): ...new function.
17224 (pass_into_cfg_layout_mode): Replace declaration with that of...
17225 (make_pass_into_cfg_layout_mode): ...new function.
17226 (pass_outof_cfg_layout_mode): Replace declaration with that of...
17227 (make_pass_outof_cfg_layout_mode): ...new function.
17228 (pass_loop2): Replace declaration with that of...
17229 (make_pass_loop2): ...new function.
17230 (pass_rtl_loop_init): Replace declaration with that of...
17231 (make_pass_rtl_loop_init): ...new function.
17232 (pass_rtl_move_loop_invariants): Replace declaration with that of...
17233 (make_pass_rtl_move_loop_invariants): ...new function.
17234 (pass_rtl_unswitch): Replace declaration with that of...
17235 (make_pass_rtl_unswitch): ...new function.
17236 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
17237 (make_pass_rtl_unroll_and_peel_loops): ...new function.
17238 (pass_rtl_doloop): Replace declaration with that of...
17239 (make_pass_rtl_doloop): ...new function.
17240 (pass_rtl_loop_done): Replace declaration with that of...
17241 (make_pass_rtl_loop_done): ...new function.
17242 (pass_web): Replace declaration with that of...
17243 (make_pass_web): ...new function.
17244 (pass_cse2): Replace declaration with that of...
17245 (make_pass_cse2): ...new function.
17246 (pass_df_initialize_opt): Replace declaration with that of...
17247 (make_pass_df_initialize_opt): ...new function.
17248 (pass_df_initialize_no_opt): Replace declaration with that of...
17249 (make_pass_df_initialize_no_opt): ...new function.
17250 (pass_reginfo_init): Replace declaration with that of...
17251 (make_pass_reginfo_init): ...new function.
17252 (pass_inc_dec): Replace declaration with that of...
17253 (make_pass_inc_dec): ...new function.
17254 (pass_stack_ptr_mod): Replace declaration with that of...
17255 (make_pass_stack_ptr_mod): ...new function.
17256 (pass_initialize_regs): Replace declaration with that of...
17257 (make_pass_initialize_regs): ...new function.
17258 (pass_combine): Replace declaration with that of...
17259 (make_pass_combine): ...new function.
17260 (pass_if_after_combine): Replace declaration with that of...
17261 (make_pass_if_after_combine): ...new function.
17262 (pass_ree): Replace declaration with that of...
17263 (make_pass_ree): ...new function.
17264 (pass_partition_blocks): Replace declaration with that of...
17265 (make_pass_partition_blocks): ...new function.
17266 (pass_match_asm_constraints): Replace declaration with that of...
17267 (make_pass_match_asm_constraints): ...new function.
17268 (pass_regmove): Replace declaration with that of...
17269 (make_pass_regmove): ...new function.
17270 (pass_split_all_insns): Replace declaration with that of...
17271 (make_pass_split_all_insns): ...new function.
17272 (pass_fast_rtl_byte_dce): Replace declaration with that of...
17273 (make_pass_fast_rtl_byte_dce): ...new function.
17274 (pass_lower_subreg2): Replace declaration with that of...
17275 (make_pass_lower_subreg2): ...new function.
17276 (pass_mode_switching): Replace declaration with that of...
17277 (make_pass_mode_switching): ...new function.
17278 (pass_sms): Replace declaration with that of...
17279 (make_pass_sms): ...new function.
17280 (pass_sched): Replace declaration with that of...
17281 (make_pass_sched): ...new function.
17282 (pass_ira): Replace declaration with that of...
17283 (make_pass_ira): ...new function.
17284 (pass_reload): Replace declaration with that of...
17285 (make_pass_reload): ...new function.
17286 (pass_clean_state): Replace declaration with that of...
17287 (make_pass_clean_state): ...new function.
17288 (pass_branch_prob): Replace declaration with that of...
17289 (make_pass_branch_prob): ...new function.
17290 (pass_value_profile_transformations): Replace declaration with that
17292 (make_pass_value_profile_transformations): ...new function.
17293 (pass_postreload_cse): Replace declaration with that of...
17294 (make_pass_postreload_cse): ...new function.
17295 (pass_gcse2): Replace declaration with that of...
17296 (make_pass_gcse2): ...new function.
17297 (pass_split_after_reload): Replace declaration with that of...
17298 (make_pass_split_after_reload): ...new function.
17299 (pass_branch_target_load_optimize1): Replace declaration with that
17301 (make_pass_branch_target_load_optimize1): ...new function.
17302 (pass_thread_prologue_and_epilogue): Replace declaration with that
17304 (make_pass_thread_prologue_and_epilogue): ...new function.
17305 (pass_stack_adjustments): Replace declaration with that of...
17306 (make_pass_stack_adjustments): ...new function.
17307 (pass_peephole2): Replace declaration with that of...
17308 (make_pass_peephole2): ...new function.
17309 (pass_if_after_reload): Replace declaration with that of...
17310 (make_pass_if_after_reload): ...new function.
17311 (pass_regrename): Replace declaration with that of...
17312 (make_pass_regrename): ...new function.
17313 (pass_cprop_hardreg): Replace declaration with that of...
17314 (make_pass_cprop_hardreg): ...new function.
17315 (pass_reorder_blocks): Replace declaration with that of...
17316 (make_pass_reorder_blocks): ...new function.
17317 (pass_branch_target_load_optimize2): Replace declaration with that
17319 (make_pass_branch_target_load_optimize2): ...new function.
17320 (pass_leaf_regs): Replace declaration with that of...
17321 (make_pass_leaf_regs): ...new function.
17322 (pass_split_before_sched2): Replace declaration with that of...
17323 (make_pass_split_before_sched2): ...new function.
17324 (pass_compare_elim_after_reload): Replace declaration with that of...
17325 (make_pass_compare_elim_after_reload): ...new function.
17326 (pass_sched2): Replace declaration with that of...
17327 (make_pass_sched2): ...new function.
17328 (pass_stack_regs): Replace declaration with that of...
17329 (make_pass_stack_regs): ...new function.
17330 (pass_stack_regs_run): Replace declaration with that of...
17331 (make_pass_stack_regs_run): ...new function.
17332 (pass_df_finish): Replace declaration with that of...
17333 (make_pass_df_finish): ...new function.
17334 (pass_compute_alignments): Replace declaration with that of...
17335 (make_pass_compute_alignments): ...new function.
17336 (pass_duplicate_computed_gotos): Replace declaration with that of...
17337 (make_pass_duplicate_computed_gotos): ...new function.
17338 (pass_variable_tracking): Replace declaration with that of...
17339 (make_pass_variable_tracking): ...new function.
17340 (pass_free_cfg): Replace declaration with that of...
17341 (make_pass_free_cfg): ...new function.
17342 (pass_machine_reorg): Replace declaration with that of...
17343 (make_pass_machine_reorg): ...new function.
17344 (pass_cleanup_barriers): Replace declaration with that of...
17345 (make_pass_cleanup_barriers): ...new function.
17346 (pass_delay_slots): Replace declaration with that of...
17347 (make_pass_delay_slots): ...new function.
17348 (pass_split_for_shorten_branches): Replace declaration with that of...
17349 (make_pass_split_for_shorten_branches): ...new function.
17350 (pass_split_before_regstack): Replace declaration with that of...
17351 (make_pass_split_before_regstack): ...new function.
17352 (pass_convert_to_eh_region_ranges): Replace declaration with that
17354 (make_pass_convert_to_eh_region_ranges): ...new function.
17355 (pass_shorten_branches): Replace declaration with that of...
17356 (make_pass_shorten_branches): ...new function.
17357 (pass_set_nothrow_function_flags): Replace declaration with that of...
17358 (make_pass_set_nothrow_function_flags): ...new function.
17359 (pass_dwarf2_frame): Replace declaration with that of...
17360 (make_pass_dwarf2_frame): ...new function.
17361 (pass_final): Replace declaration with that of...
17362 (make_pass_final): ...new function.
17363 (pass_rtl_seqabstr): Replace declaration with that of...
17364 (make_pass_rtl_seqabstr): ...new function.
17365 (pass_release_ssa_names): Replace declaration with that of...
17366 (make_pass_release_ssa_names): ...new function.
17367 (pass_early_inline): Replace declaration with that of...
17368 (make_pass_early_inline): ...new function.
17369 (pass_inline_parameters): Replace declaration with that of...
17370 (make_pass_inline_parameters): ...new function.
17371 (pass_update_address_taken): Replace declaration with that of...
17372 (make_pass_update_address_taken): ...new function.
17373 (pass_convert_switch): Replace declaration with that of...
17374 (make_pass_convert_switch): ...new function.
17375 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
17376 to a subclass of simple_ipa_opt_pass along with...
17377 (pass_data_ipa_tree_profile): ...new pass_data instance and...
17378 (make_pass_ipa_tree_profile): ...new function.
17379 * tree-sra.c (pass_sra_early): Convert from a global struct to a
17380 subclass of gimple_opt_pass along with...
17381 (pass_data_sra_early): ...new pass_data instance and...
17382 (make_pass_sra_early): ...new function.
17383 (pass_sra): Convert from a global struct to a subclass of
17384 gimple_opt_pass along with...
17385 (pass_data_sra): ...new pass_data instance and...
17386 (make_pass_sra): ...new function.
17387 (pass_early_ipa_sra): Convert from a global struct to a subclass of
17388 gimple_opt_pass along with...
17389 (pass_data_early_ipa_sra): ...new pass_data instance and...
17390 (make_pass_early_ipa_sra): ...new function.
17391 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
17392 subclass of gimple_opt_pass along with...
17393 (pass_data_ccp): ...new pass_data instance and...
17394 (make_pass_ccp): ...new function.
17395 (pass_fold_builtins): Convert from a global struct to a subclass of
17396 gimple_opt_pass along with...
17397 (pass_data_fold_builtins): ...new pass_data instance and...
17398 (make_pass_fold_builtins): ...new function.
17399 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
17400 subclass of gimple_opt_pass along with...
17401 (pass_data_copy_prop): ...new pass_data instance and...
17402 (make_pass_copy_prop): ...new function.
17403 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
17404 global struct to a subclass of gimple_opt_pass along with...
17405 (pass_data_rename_ssa_copies): ...new pass_data instance and...
17406 (make_pass_rename_ssa_copies): ...new function.
17407 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
17408 subclass of gimple_opt_pass along with...
17409 (pass_data_dce): ...new pass_data instance and...
17410 (make_pass_dce): ...new function.
17411 (pass_dce_loop): Convert from a global struct to a subclass of
17412 gimple_opt_pass along with...
17413 (pass_data_dce_loop): ...new pass_data instance and...
17414 (make_pass_dce_loop): ...new function.
17415 (pass_cd_dce): Convert from a global struct to a subclass of
17416 gimple_opt_pass along with...
17417 (pass_data_cd_dce): ...new pass_data instance and...
17418 (make_pass_cd_dce): ...new function.
17419 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
17420 subclass of gimple_opt_pass along with...
17421 (pass_data_dominator): ...new pass_data instance and...
17422 (make_pass_dominator): ...new function.
17423 (pass_phi_only_cprop): Convert from a global struct to a subclass of
17424 gimple_opt_pass along with...
17425 (pass_data_phi_only_cprop): ...new pass_data instance and...
17426 (make_pass_phi_only_cprop): ...new function.
17427 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
17428 subclass of gimple_opt_pass along with...
17429 (pass_data_dse): ...new pass_data instance and...
17430 (make_pass_dse): ...new function.
17431 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
17432 a subclass of gimple_opt_pass along with...
17433 (pass_data_forwprop): ...new pass_data instance and...
17434 (make_pass_forwprop): ...new function.
17435 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
17436 struct to a subclass of gimple_opt_pass along with...
17437 (pass_data_tree_ifcombine): ...new pass_data instance and...
17438 (make_pass_tree_ifcombine): ...new function.
17439 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
17440 subclass of gimple_opt_pass along with...
17441 (pass_data_ch): ...new pass_data instance and...
17442 (make_pass_ch): ...new function.
17443 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
17444 subclass of gimple_opt_pass along with...
17445 (pass_data_tree_loop): ...new pass_data instance and...
17446 (make_pass_tree_loop): ...new function.
17447 (pass_tree_loop_init): Convert from a global struct to a subclass of
17448 gimple_opt_pass along with...
17449 (pass_data_tree_loop_init): ...new pass_data instance and...
17450 (make_pass_tree_loop_init): ...new function.
17451 (pass_lim): Convert from a global struct to a subclass of
17452 gimple_opt_pass along with...
17453 (pass_data_lim): ...new pass_data instance and...
17454 (make_pass_lim): ...new function.
17455 (pass_tree_unswitch): Convert from a global struct to a subclass of
17456 gimple_opt_pass along with...
17457 (pass_data_tree_unswitch): ...new pass_data instance and...
17458 (make_pass_tree_unswitch): ...new function.
17459 (pass_predcom): Convert from a global struct to a subclass of
17460 gimple_opt_pass along with...
17461 (pass_data_predcom): ...new pass_data instance and...
17462 (make_pass_predcom): ...new function.
17463 (pass_vectorize): Convert from a global struct to a subclass of
17464 gimple_opt_pass along with...
17465 (pass_data_vectorize): ...new pass_data instance and...
17466 (make_pass_vectorize): ...new function.
17467 (pass_graphite): Convert from a global struct to a subclass of
17468 gimple_opt_pass along with...
17469 (pass_data_graphite): ...new pass_data instance and...
17470 (make_pass_graphite): ...new function.
17471 (pass_graphite_transforms): Convert from a global struct to a subclass
17472 of gimple_opt_pass along with...
17473 (pass_data_graphite_transforms): ...new pass_data instance and...
17474 (make_pass_graphite_transforms): ...new function.
17475 (pass_check_data_deps): Convert from a global struct to a subclass of
17476 gimple_opt_pass along with...
17477 (pass_data_check_data_deps): ...new pass_data instance and...
17478 (make_pass_check_data_deps): ...new function.
17479 (pass_iv_canon): Convert from a global struct to a subclass of
17480 gimple_opt_pass along with...
17481 (pass_data_iv_canon): ...new pass_data instance and...
17482 (make_pass_iv_canon): ...new function.
17483 (pass_scev_cprop): Convert from a global struct to a subclass of
17484 gimple_opt_pass along with...
17485 (pass_data_scev_cprop): ...new pass_data instance and...
17486 (make_pass_scev_cprop): ...new function.
17487 (pass_record_bounds): Convert from a global struct to a subclass of
17488 gimple_opt_pass along with...
17489 (pass_data_record_bounds): ...new pass_data instance and...
17490 (make_pass_record_bounds): ...new function.
17491 (pass_complete_unroll): Convert from a global struct to a subclass of
17492 gimple_opt_pass along with...
17493 (pass_data_complete_unroll): ...new pass_data instance and...
17494 (make_pass_complete_unroll): ...new function.
17495 (pass_complete_unrolli): Convert from a global struct to a subclass of
17496 gimple_opt_pass along with...
17497 (pass_data_complete_unrolli): ...new pass_data instance and...
17498 (make_pass_complete_unrolli): ...new function.
17499 (pass_parallelize_loops): Convert from a global struct to a subclass
17500 of gimple_opt_pass along with...
17501 (pass_data_parallelize_loops): ...new pass_data instance and...
17502 (make_pass_parallelize_loops): ...new function.
17503 (pass_loop_prefetch): Convert from a global struct to a subclass of
17504 gimple_opt_pass along with...
17505 (pass_data_loop_prefetch): ...new pass_data instance and...
17506 (make_pass_loop_prefetch): ...new function.
17507 (pass_iv_optimize): Convert from a global struct to a subclass of
17508 gimple_opt_pass along with...
17509 (pass_data_iv_optimize): ...new pass_data instance and...
17510 (make_pass_iv_optimize): ...new function.
17511 (pass_tree_loop_done): Convert from a global struct to a subclass of
17512 gimple_opt_pass along with...
17513 (pass_data_tree_loop_done): ...new pass_data instance and...
17514 (make_pass_tree_loop_done): ...new function.
17515 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
17516 struct to a subclass of gimple_opt_pass along with...
17517 (pass_data_cse_reciprocals): ...new pass_data instance and...
17518 (make_pass_cse_reciprocals): ...new function.
17519 (pass_cse_sincos): Convert from a global struct to a subclass of
17520 gimple_opt_pass along with...
17521 (pass_data_cse_sincos): ...new pass_data instance and...
17522 (make_pass_cse_sincos): ...new function.
17523 (pass_optimize_bswap): Convert from a global struct to a subclass of
17524 gimple_opt_pass along with...
17525 (pass_data_optimize_bswap): ...new pass_data instance and...
17526 (make_pass_optimize_bswap): ...new function.
17527 (pass_optimize_widening_mul): Convert from a global struct to a
17528 subclass of gimple_opt_pass along with...
17529 (pass_data_optimize_widening_mul): ...new pass_data instance and...
17530 (make_pass_optimize_widening_mul): ...new function.
17531 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
17532 subclass of gimple_opt_pass along with...
17533 (pass_data_phiopt): ...new pass_data instance and...
17534 (make_pass_phiopt): ...new function.
17535 (pass_cselim): Convert from a global struct to a subclass of
17536 gimple_opt_pass along with...
17537 (pass_data_cselim): ...new pass_data instance and...
17538 (make_pass_cselim): ...new function.
17539 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
17540 subclass of gimple_opt_pass along with...
17541 (pass_data_phiprop): ...new pass_data instance and...
17542 (make_pass_phiprop): ...new function.
17543 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
17544 subclass of gimple_opt_pass along with...
17545 (pass_data_pre): ...new pass_data instance and...
17546 (make_pass_pre): ...new function.
17547 (pass_fre): Convert from a global struct to a subclass of
17548 gimple_opt_pass along with...
17549 (pass_data_fre): ...new pass_data instance and...
17550 (make_pass_fre): ...new function.
17551 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
17552 subclass of gimple_opt_pass along with...
17553 (pass_data_reassoc): ...new pass_data instance and...
17554 (make_pass_reassoc): ...new function.
17555 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
17556 subclass of gimple_opt_pass along with...
17557 (pass_data_sink_code): ...new pass_data instance and...
17558 (make_pass_sink_code): ...new function.
17559 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
17560 subclass of gimple_opt_pass along with...
17561 (pass_data_strlen): ...new pass_data instance and...
17562 (make_pass_strlen): ...new function.
17563 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
17564 struct to a subclass of gimple_opt_pass along with...
17565 (pass_data_build_alias): ...new pass_data instance and...
17566 (make_pass_build_alias): ...new function.
17567 (pass_build_ealias): Convert from a global struct to a subclass of
17568 gimple_opt_pass along with...
17569 (pass_data_build_ealias): ...new pass_data instance and...
17570 (make_pass_build_ealias): ...new function.
17571 (pass_ipa_pta): Convert from a global struct to a subclass of
17572 simple_ipa_opt_pass along with...
17573 (pass_data_ipa_pta): ...new pass_data instance and...
17574 (make_pass_ipa_pta): ...new function.
17575 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
17576 subclass of gimple_opt_pass along with...
17577 (pass_data_uncprop): ...new pass_data instance and...
17578 (make_pass_uncprop): ...new function.
17579 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
17580 global struct to a subclass of gimple_opt_pass along with...
17581 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
17582 (make_pass_late_warn_uninitialized): ...new function.
17583 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
17584 to a subclass of gimple_opt_pass along with...
17585 (pass_data_init_datastructures): ...new pass_data instance and...
17586 (make_pass_init_datastructures): ...new function.
17587 (pass_early_warn_uninitialized): Convert from a global struct to a
17588 subclass of gimple_opt_pass along with...
17589 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
17590 (make_pass_early_warn_uninitialized): ...new function.
17591 (pass_update_address_taken): Convert from a global struct to a
17592 subclass of gimple_opt_pass along with...
17593 (pass_data_update_address_taken): ...new pass_data instance and...
17594 (make_pass_update_address_taken): ...new function.
17595 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
17596 struct to a subclass of gimple_opt_pass along with...
17597 (pass_data_release_ssa_names): ...new pass_data instance and...
17598 (make_pass_release_ssa_names): ...new function.
17599 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
17600 subclass of gimple_opt_pass along with...
17601 (pass_data_stdarg): ...new pass_data instance and...
17602 (make_pass_stdarg): ...new function.
17603 * tree-switch-conversion.c (pass_convert_switch): Convert from a
17604 global struct to a subclass of gimple_opt_pass along with...
17605 (pass_data_convert_switch): ...new pass_data instance and...
17606 (make_pass_convert_switch): ...new function.
17607 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
17608 to a subclass of gimple_opt_pass along with...
17609 (pass_data_tail_recursion): ...new pass_data instance and...
17610 (make_pass_tail_recursion): ...new function.
17611 (pass_tail_calls): Convert from a global struct to a subclass of
17612 gimple_opt_pass along with...
17613 (pass_data_tail_calls): ...new pass_data instance and...
17614 (make_pass_tail_calls): ...new function.
17615 * tree-vect-generic.c (pass_lower_vector): Convert from a global
17616 struct to a subclass of gimple_opt_pass along with...
17617 (pass_data_lower_vector): ...new pass_data instance and...
17618 (make_pass_lower_vector): ...new function.
17619 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
17620 gimple_opt_pass along with...
17621 (pass_data_lower_vector_ssa): ...new pass_data instance and...
17622 (make_pass_lower_vector_ssa): ...new function.
17623 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
17624 to a subclass of gimple_opt_pass along with...
17625 (pass_data_slp_vectorize): ...new pass_data instance and...
17626 (make_pass_slp_vectorize): ...new function.
17627 (pass_ipa_increase_alignment): Convert from a global struct to a
17628 subclass of simple_ipa_opt_pass along with...
17629 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
17630 (make_pass_ipa_increase_alignment): ...new function.
17631 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
17632 gimple_opt_pass along with...
17633 (pass_data_vrp): ...new pass_data instance and...
17634 (make_pass_vrp): ...new function.
17635 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
17636 subclass of simple_ipa_opt_pass along with...
17637 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
17638 (make_pass_ipa_free_lang_data): ...new function.
17639 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
17640 gimple_opt_pass along with...
17641 (pass_data_tsan): ...new pass_data instance and...
17642 (make_pass_tsan): ...new function.
17643 (pass_tsan_O0): Convert from a global struct to a subclass of
17644 gimple_opt_pass along with...
17645 (pass_data_tsan_O0): ...new pass_data instance and...
17646 (make_pass_tsan_O0): ...new function.
17647 * var-tracking.c (pass_variable_tracking): Convert from a global
17648 struct to a subclass of rtl_opt_pass along with...
17649 (pass_data_variable_tracking): ...new pass_data instance and...
17650 (make_pass_variable_tracking): ...new function.
17651 * web.c (pass_web): Convert from a global struct to a subclass of
17652 rtl_opt_pass along with...
17653 (pass_data_web): ...new pass_data instance and...
17654 (make_pass_web): ...new function.
17655 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
17656 declaration with that of...
17657 (make_pass_mode_switch_use): ...new function.
17658 (pass_resolve_sw_modes): Replace declaration with that of...
17659 (make_pass_resolve_sw_modes): ...new function.
17660 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
17661 from a global struct to a subclass of rtl_opt_pass along with...
17662 (pass_data_mode_switch_use): ...new pass_data instance and...
17663 (make_pass_mode_switch_use): ...new function.
17664 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
17665 from a global struct to a subclass of rtl_opt_pass along with...
17666 (pass_data_resolve_sw_modes): ...new pass_data instance and...
17667 (make_pass_resolve_sw_modes): ...new function.
17668 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
17669 struct to a subclass of rtl_opt_pass along with...
17670 (pass_data_insert_vzeroupper): ...new pass_data instance and...
17671 (make_pass_insert_vzeroupper): ...new function.
17672 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
17673 global struct to a subclass of rtl_opt_pass along with...
17674 (pass_data_work_around_errata): ...new pass_data instance and...
17675 (make_pass_work_around_errata): ...new function.
17676 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
17677 struct to a subclass of rtl_opt_pass along with...
17678 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
17679 (make_pass_mips_machine_reorg2): ...new function.
17681 2013-08-05 David Malcolm <dmalcolm@redhat.com>
17683 * passes.c (pass_manager::operator new): New.
17685 2013-08-05 David Malcolm <dmalcolm@redhat.com>
17687 Handwritten part of conversion of passes to C++ classes.
17689 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
17690 (toplev.o): Add dep on PASS_MANAGER_H.
17691 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
17692 of early local pases to reflect this moving from a global to a
17693 member of gcc::pass_manager.
17694 (cgraph_add_new_function): Likewise.
17695 * lto-cgraph.c (lto_output_node): Update for conversion of
17696 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
17697 * passes.c (opt_pass::clone): New.
17698 (opt_pass::gate): New.
17699 (opt_pass::execute): New.
17700 (opt_pass::opt_pass): New.
17701 (pass_manager::execute_early_local_passes): New.
17702 (pass_manager::execute_pass_mode_switching): new.
17703 (finish_optimization_passes): Convert to...
17704 (pass_manager::finish_optimization_passes): ...this.
17705 (finish_optimization_passes): Update for conversion of passes to
17707 (register_dump_files_1): Use has_gate since we cannot portably
17708 check a vtable entry against NULL.
17709 (dump_one_pass): Likewise.
17710 (ipa_write_summaries_2): Likewise.
17711 (ipa_write_optimization_summaries_1): Likewise.
17712 (ipa_read_summaries_1): Likewise.
17713 (ipa_read_optimization_summaries_1): Likewise.
17714 (execute_ipa_stmt_fixups): Likewise.
17715 (pass_manager::pass_manager): Rewrite pass-creation, invoking
17716 pass-creation functions rather than wiring up globals, and
17717 storing the results in fields of pass_manager generated using
17718 pass-instances.def.
17719 (pass_manager::dump_profile_report): Update for conversion of
17720 passes to C++ classes.
17721 (pass_manager::execute_ipa_summary_passes): Likewise.
17722 (execute_one_ipa_transform_pass): Likewise.
17723 (execute_one_pass): Use has_gate and has_execute since we cannot
17724 portably check a vtable entry against NULL.
17725 * pass_manager.h (pass_manager::finish_optimization_passes): New.
17726 (pass_manager): Use pass-instances.def to add fields for the
17727 various pass instances.
17728 * toplev.c (finalize): Update for move of
17729 finish_optimization_passes to a method of gcc::pass_manager.
17730 * toplev.h (finish_optimization_passes): Move to method of class
17732 * tree-pass.h (struct pass_data): New.
17733 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
17734 (opt_pass::gate): Convert to virtual function.
17735 (opt_pass::~opt_pass): New.
17736 (opt_pass::clone): New.
17737 (opt_pass::execute): Convert to virtual function.
17738 (opt_pass::opt_pass): New.
17739 (opt_pass::ctxt_): new.
17740 (gimple_opt_pass): Convert to subclass of opt_pass.
17741 (gimple_opt_pass::gimple_opt_pass): New.
17742 (rtl_opt_pass): Convert to subclass of opt_pass.
17743 (rtl_opt_pass::rtl_opt_pass): New.
17744 (ipa_opt_pass_d): Convert to subclass of opt_pass.
17745 (ipa_opt_pass_d::ipa_opt_pass_d): New.
17746 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
17747 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
17748 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
17749 invocation of pass_mode_switching to reflect this moving from a
17750 global to a member of gcc::pass_manager.
17751 (ix86_option_override): Rework how pass_insert_vzeroupper is
17752 added to the pass_manager to reflect autogenerated changes.
17753 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
17755 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
17757 PR rtl-optimization/57708
17758 * recog.c (peep2_find_free_register): Validate all regs in a
17761 2013-08-05 Jan Hubicka <jh@suse.cz>
17764 * cgraph.c (verify_cgraph_node): Accept local flags from other
17766 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
17767 (function_and_variable_visibility): Likewise.
17768 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
17770 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
17772 * graph.c (init_graph_slim_pretty_print): Remove.
17773 (print_graph_cfg): Do not call it. Use local pretty printer.
17774 (start_graph_dump): Likewise.
17776 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
17778 * gimple-pretty-print.c (buffer): Remove.
17779 (initialized): Likewise.
17780 (maybe_init_pretty_print): Likewise.
17781 (print_gimple_stmt): Do not call it. Use non-static local
17782 pretty_printer variable.
17783 (print_gimple_expr): Likewise.
17784 (print_gimple_seq): Likewise.
17785 (gimple_dump_bb): Likewise.
17787 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
17789 * asan.c (asan_pp): Remove.
17790 (asan_pp_initialized): Likewise.
17791 (asan_pp_initialize): Likewise.
17792 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
17793 (asan_emit_stack_protection): Tidy. Use local pretty printer.
17794 (asan_add_global): Likewise.
17796 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
17798 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
17799 * diagnostic.h (diagnostic_flush_buffer): Adjust.
17800 * pretty-print.c (pp_formatted_text_data): Likewise.
17801 (pp_indent): Rename from pp_base_indent.
17802 (pp_format): Rename from pp_base_format.
17803 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
17804 (pp_format_verbatim): Rename from pp_base_format_verbatim.
17805 (pp_flush): Rename from pp_base_flush.
17806 (pp_set_line_maximum_length): Rename from
17807 pp_base_set_line_maximum_length.
17808 (pp_clear_output_area): Rename from pp_base_clear_output_area.
17809 (pp_set_prefix): Rename from pp_base_set_prefix.
17810 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
17811 (pp_emit_prefix): Rename from pp_base_emit_prefix.
17812 (pp_append_text): Rename from pp_base_append_text.
17813 (pp_formatted_text): Rename from pp_base_formatted_text.
17814 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
17815 (pp_remaining_character_count_for_line): Rename from
17816 pp_base_remaining_character_count_for_line.
17817 (pp_newline): Rename from pp_base_newline.
17818 (pp_character): Rename from pp_base_character.
17819 (pp_string): Rename from pp_base_string.
17820 (pp_maybe_space): Rename from pp_base_maybe_space.
17821 * asan.c (asan_pp_string): Adjust.
17822 (asan_emit_stack_protection): Likewise.
17823 (asan_add_global): Likewise.
17824 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
17825 * tree-mudflap.c (mf_varname_tree): Likewise.
17826 * tree-pretty-print.c (pp_tree_identifier): Rename from
17827 pp_base_tree_identifier.
17828 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
17829 Declare as function.
17831 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
17833 * pretty-print.h (pp_bar_bar): New.
17834 (pp_ampersand_ampersand): Likewise.
17835 (pp_less_equal): Likewise.
17836 (pp_greater_equal): Likewise.
17837 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
17838 printer functions instead of pp_string or operators and punctuators.
17839 (dump_gimple_call): Likewise.
17840 (dump_gimple_omp_for): Likewise.
17841 (dump_gimple_transaction): Likewise.
17842 (dump_gimple_phi): Likewise.
17843 (pp_gimple_stmt_1): Likewise.
17844 * sched-vis.c (print_insn): Likewise.
17845 * tree-mudflap.c (mf_varname_tree): Likewise.
17846 * tree-pretty-print.c (dump_block_node): Likewise.
17847 (dump_generic_node): Likewise.
17849 2013-08-02 Jan Hubicka <jh@suse.cz>
17851 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
17853 * lto-streamer-out.c (tree_is_indexable): Results decls and
17854 parm decls are not indexable.
17855 (DFS_write_tree_body): Do not follow args and results.
17856 (hash_tree): Likewise.
17857 (output_functions): Rearrange so struct function is needed
17858 only when real body is output; be able to also ouptut abstract
17859 functions; output DECL_ARGUMENTS and DECL_RESULT.
17860 (lto_output): When not in WPA, ale store abstract functions.
17861 (write_symbol): Do not care about RESULT_DECL.
17862 (output_symbol_p): Handle correctly sbtract decls.
17863 * lto-streamer-in.c (input_function): Rearrange so struct
17864 function can be NULL at entry; allow streaming of
17865 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
17866 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
17867 sanity check during LTO.
17868 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
17869 RESULT_DECl and DECL_ARGUMENTS.
17870 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
17873 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
17875 * pretty-print.h (pp_underscore): New.
17877 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
17878 printer functions instead of pp_character.
17879 (dump_binary_rhs): Likewise.
17880 (dump_ternary_rhs): Likewise.
17881 (dump_gimple_call_args): Likewise.
17882 (pp_points_to_solution): Likewise.
17883 (dump_gimple_call): Likewise.
17884 (dump_gimple_switch): Likewise.
17885 (dump_gimple_cond): Likewise.
17886 (dump_gimple_bind): Likewise.
17887 (dump_gimple_try): Likewise.
17888 (dump_gimple_omp_for): Likewise.
17889 (dump_gimple_omp_continue): Likewise.
17890 (dump_gimple_omp_single): Likewise.
17891 (dump_gimple_omp_sections): Likewise.
17892 (dump_gimple_omp_block): Likewise.
17893 (dump_gimple_omp_critical): Likewise.
17894 (dump_gimple_transaction): Likewise.
17895 (dump_gimple_asm): Likewise.
17896 (dump_gimple_phi): Likewise.
17897 (dump_gimple_omp_parallel): Likewise.
17898 (dump_gimple_omp_task): Likewise.
17899 (dump_gimple_omp_atomic_load): Likewise.
17900 (dump_gimple_omp_atomic_store): Likewise.
17901 (dump_gimple_mem_ops): Likewise.
17902 (pp_gimple_stmt_1): Likewise.
17903 (pp_cfg_jump): Likewise.
17904 (dump_implicit_edges): Likewise.
17905 (gimple_dump_bb_for_graph): Likewise.
17906 * graph.c (draw_cfg_node): Likewise.
17907 * langhooks.c (lhd_print_error_function): Likewise.
17908 * sched-vis.c (print_exp): Likewise.
17909 (print_value): Likewise.
17910 (print_pattern): Likewise.
17911 (print_insn): Likewise.
17912 (rtl_dump_bb_for_graph): Likewise.
17913 * tree-pretty-print.c (dump_function_declaration): Likewise.
17914 (dump_array_domain): Likewise.
17915 (dump_omp_clause): Likewise.
17916 (dump_location): Likewise.
17917 (dump_generic_node): Likewise.
17918 (print_struct_decl): Likewise.
17919 * diagnostic.c (diagnostic_show_locus): Use pp_space.
17921 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
17923 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
17924 candidate table when replacing a candidate statement.
17925 (replace_rhs_if_not_dup): Likewise.
17926 (replace_one_candidate): Likewise.
17928 2013-08-02 Jan Hubicka <jh@suse.cz>
17929 Martin Liska <marxin.liska@gmail.com>
17931 * cgraphunit.c (add_new_function): Fix logic when adding from
17933 (assemble_thunk): Rename to ...
17934 (expand_thunk); .. this one; export; get it working with
17935 general functions; make produced gimple valid.
17936 * cgraph.h (expand_thunk): Declare.
17938 2013-08-02 Jan Hubicka <jh@suse.cz>
17940 * ipa-cp.c (gather_context_independent_values): Use
17941 ipa_get_param_move_cost.
17942 (get_replacement_map): Remove PARAM; move parameter folding
17944 (create_specialized_node): Update.
17945 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
17946 assert that we have gimple body; update move_cost.
17947 (count_formal_params): Assert that we have gimple body.
17948 (ipa_dump_param): New function.
17949 (ipa_alloc_node_params): Break out from ...
17950 (ipa_initialize_node_params): ... here.
17951 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
17952 (ipa_write_node_info): Stream move costs.
17953 (ipa_read_node_info): Read move costs.
17954 (ipa_update_after_lto_read): Do not recompute node params.
17955 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
17956 (ipa_get_param): Check we are not in WPA.
17957 (ipa_get_param_move_cost): New.
17958 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
17959 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
17960 parm numbers to be present.
17962 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
17964 PR rtl-optimization/58048
17965 * lra-constraints.c (process_alt_operands): Don't check asm
17966 operand on register.
17968 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
17970 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
17971 the implied StoreLoad barrier for atomic operations if before.
17973 2013-08-02 Jan Hubicka <jh@suse.cz>
17974 Martin Liska <marxin.liska@gmail.com>
17976 * cgraph.c (cgraph_function_body_availability): Do not check
17978 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
17979 symtab_node_availability): Declare.
17980 * ipa.c (can_replace_by_local_alias): New.
17981 (function_and_variable_visibility): Use it.
17982 * symtab.c (symtab_for_node_and_aliases,
17983 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
17985 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
17987 PR rtl-optimization/57963
17988 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
17989 (lra_constraints): Use them.
17991 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
17993 * config/arm/types.md (define_attr "type"): Add "load_acq"
17995 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
17997 (cortex_a53_store1): Likewise.
17999 2013-08-01 Jan Hubicka <jh@suse.cz>
18001 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
18002 partitions are not needed.
18004 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
18006 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
18007 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
18008 MAYBE_NON_Q_CLASS_P where appropriate.
18010 2013-08-01 Jan Hubicka <jh@suse.cz>
18012 * cgraph.h (release_function_body): Declare.
18013 * tree.c (free_lang_data_in_decl): Free, parameters and return values
18014 of unused delcarations.
18016 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18018 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
18019 RTL form when subtracting a constant.
18021 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18023 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
18024 Generate canonical plus rtx with negated immediate instead of minus
18026 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
18028 2013-08-01 Jan Hubicka <jh@suse.cz>
18030 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
18031 (cgraph_release_function_body): Likewise.
18032 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
18033 * cgraph.h (cgrpah_node): Rename abstract_and_needed
18034 to used_as_abstract_origin.
18035 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
18036 symbols used as abstract origins.
18037 * cgraphunit.c (analyze_functions): Update.
18038 * ipa.c (symtab_remove_unreachable_nodes): Recompute
18039 used_as_abstract_origin.
18040 * tree-inline.c (tree_function_versioning): Update
18041 used_as_abstract_origin; be ready for DECL_RESULT and
18042 DECL_ARGUMENTS to be NULL.
18044 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
18045 for abstract functions.
18046 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
18049 2013-08-01 Jan Hubicka <jh@suse.cz>
18051 * profile.c (compute_value_histograms): Fix thinko.
18053 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
18055 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
18056 aarch-common-protos.h to extra_headers.
18057 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
18058 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
18059 * config/aarch64/t-aarch64 (aarch-common.o): Define.
18061 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
18063 * config/aarch64/aarch64.md (define_attr "type"): Delete.
18064 Include "../arm/types.md". Define "type" attribute for all patterns.
18065 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
18068 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
18070 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
18071 to support power8 load fusion.
18072 (fusion_gpr_mem_load): Likewise.
18074 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
18076 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
18077 declarations for power8 load fusion.
18078 (emit_fusion_gpr_load): Likewise.
18080 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
18081 tuning for power8, turn on fusion mode by default. Turn on sign
18082 extending fusion mode if normal fusion mode is on, and we are at
18084 (fusion_gpr_load_p): New function, return true if we can fuse an
18085 addis instruction with a dependent load to a GPR.
18086 (emit_fusion_gpr_load): Emit the instructions for power8 load
18089 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
18090 (VSX load fusion peepholes): New peepholes to fuse together an
18091 addi instruction with a VSX load instruction.
18093 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
18094 peepholes to fuse an addis instruction with a load to a GPR base
18095 register. If we are supporting sign extending fusions, convert
18096 sign extending loads to zero extending loads and add an explicit
18099 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
18101 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
18102 aarch-common-protos.h to extra_headers.
18103 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
18104 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
18105 (arm_early_store_addr_dep): Likewise.
18106 (arm_no_early_alu_shift_dep): Likewise.
18107 (arm_no_early_alu_shift_value_dep): Likewise.
18108 (arm_no_early_mul_dep): Likewise.
18109 (arm_no_early_store_addr_dep): Likewise.
18110 (arm_mac_accumulator_is_mul_result): Likewise.
18111 (arm_mac_accumulator_is_result): Likewise.
18112 * config/arm/aarch-common.c: ... here. New file.
18113 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
18115 (arm_early_store_addr_dep): Likewise.
18116 (arm_no_early_alu_shift_dep): Likewise.
18117 (arm_no_early_alu_shift_value_dep): Likewise.
18118 (arm_no_early_mul_dep): Likewise.
18119 (arm_no_early_store_addr_dep): Likewise.
18120 (arm_mac_accumulator_is_mul_result): Likewise.
18121 (arm_mac_accumulator_is_result): Likewise.
18122 * config/arm/aarch-common-protos.h: ... here. New file.
18123 * config/arm/t-arm (aarch-common.o): Define.
18125 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
18127 * config/arm/arm.md: Include new file "types.md".
18128 (define_attr "type"): Move from here to ...
18129 (define_attr "mul32"): Likewise.
18130 (define_attr "mul64"): Likewise.
18131 * config/arm/types.md: ... here. New file.
18133 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
18135 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
18136 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
18138 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18140 * gen-pass-instances.awk: Fix offset of substr().
18142 2013-07-31 David Malcolm <dmalcolm@redhat.com>
18144 * Makefile.in (pass-instances.def): New.
18145 (passes.o): Replace dependency on passes.def with one on
18148 * gen-pass-instances.awk: New.
18150 * passes.c (pass_manager::pass_manager): Use pass-instances.def
18151 rather than passes.def, updating local definition of NEXT_PASS
18152 macro to add an extra NUM parameter (currently unused).
18154 2013-07-30 David Malcolm <dmalcolm@redhat.com>
18156 * Makefile.in (PASS_MANAGER_H): New.
18157 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
18158 (passes.o): Likewise.
18159 (statistics.o): Likewise.
18160 (cgraphunit.o): Likewise.
18161 (context.o): Depend on PASS_MANAGER_H.
18163 * pass_manager.h: New.
18165 * cgraphunit.c (cgraph_add_new_function): Update for moves
18166 of globals to fields of pass_manager.
18167 (analyze_function): Likewise.
18168 (expand_function): Likewise.
18169 (ipa_passes): Likewise.
18170 (compile): Likewise.
18172 * context.c (context::context): New.
18173 * context.h (context::context): New.
18174 (context::get_passes): New.
18175 (context::passes_): New.
18177 * lto-cgraph.c (input_node): Update for moves of globals to
18178 fields of pass_manager.
18180 * passes.c (all_passes): Remove, in favor of a field of the
18181 same name within the new class pass_manager.
18182 (all_small_ipa_passes): Likewise.
18183 (all_lowering_passes): Likewise.
18184 (all_regular_ipa_passes): Likewise.
18185 (all_late_ipa_passes): Likewise.
18186 (all_lto_gen_passes): Likewise.
18187 (passes_by_id): Likewise.
18188 (passes_by_id_size): Likewise.
18189 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
18190 the new class pass_manager.
18191 (set_pass_for_id): Convert to...
18192 (pass_manager::set_pass_for_id): ...method.
18193 (get_pass_for_id): Convert to...
18194 (pass_manager::get_pass_for_id): ...method.
18195 (register_one_dump_file): Move body of implementation into...
18196 (pass_manager::register_one_dump_file): ...here.
18197 (register_dump_files_1): Convert to...
18198 (pass_manager::register_dump_files_1): ...method.
18199 (register_dump_files): Convert to...
18200 (pass_manager::register_dump_files): ...method.
18201 (create_pass_tab): Update for moves of globals to fields of
18203 (dump_passes): Move body of implementation into...
18204 (pass_manager::dump_passes): ...here.
18205 (register_pass): Move body of implementation into...
18206 (pass_manager::register_pass): ...here.
18207 (init_optimization_passes): Convert into...
18208 (pass_manager::pass_manager): ...constructor for new
18209 pass_manager class, and initialize the pass_lists array.
18210 (check_profile_consistency): Update for moves of globals to
18211 fields of pass_manager.
18212 (dump_profile_report): Move body of implementation into...
18213 (pass_manager::dump_profile_report): ...here.
18214 (ipa_write_summaries_1): Update for moves of pass lists from
18215 being globals to fields of pass_manager.
18216 (ipa_write_optimization_summaries): Likewise.
18217 (ipa_read_summaries): Likewise.
18218 (ipa_read_optimization_summaries): Likewise.
18219 (execute_all_ipa_stmt_fixups): Likewise.
18221 * statistics.c (statistics_fini): Update for moves of globals to
18222 fields of pass_manager.
18224 * toplev.c (general_init): Replace call to
18225 init_optimization_passes with construction of the pass_manager
18228 * tree-pass.h (all_passes): Remove, in favor of a field of the
18229 same name within the new class pass_manager.
18230 (all_small_ipa_passes): Likewise.
18231 (all_lowering_passes): Likewise.
18232 (all_regular_ipa_passes): Likewise.
18233 (all_lto_gen_passes): Likewise.
18234 (all_late_ipa_passes): Likewise.
18235 (passes_by_id): Likewise.
18236 (passes_by_id_size): Likewise.
18237 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
18238 the new class pass_manager.
18239 (get_pass_for_id): Remove.
18241 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
18243 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
18246 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
18248 * arm.md (mulhi3): New expand pattern.
18250 2013-07-30 Jan Hubicka <jh@suse.cz>
18251 Martin Liska <marxin.liska@gmail.com>
18253 * profile.c (compute_value_histograms): Do not ICE when
18254 there is mismatch only on some counters.
18256 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18258 PR rtl-optimization/57637
18259 * function.c (move_insn_for_shrink_wrap): Also check the
18260 GEN set of the LIVE problem for the liveness analysis
18261 if it exists, otherwise give up.
18263 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
18265 PR tree-optimization/57993
18266 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
18267 replaced statement in the candidate table.
18268 (phi_add_costs): Return infinite cost when the hidden basis does
18269 not dominate all phis on which the candidate is dependent.
18270 (replace_one_candidate): Record replaced statement in the
18273 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
18275 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
18276 (ashlv2si3): New expander.
18277 (*ashlv2si3_i): New define_insn_and_split.
18278 * predicates.md (float_operation): Allow patterns with three
18279 basic sub-patterns.
18281 PR rtl-optimization/58021
18282 * mode-switching.c (create_pre_exit): Always split off preceding
18283 insns if we are not at the basic block head.
18285 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
18287 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
18288 (UCLIBC_DYNAMIC_LINKER): New macro.
18289 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
18291 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
18292 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
18294 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
18295 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
18296 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
18297 for SF and DF modes. Use ieee_quad_format for TF mode.
18298 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
18299 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
18300 (mips_option_override): Handle `-mnan=legacy'.
18301 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
18302 `-mabs=2008' and `-mnan=2008'.
18303 (OPTION_DEFAULT_SPECS): Add "nan" default.
18304 (ASM_SPEC): Handle `-mnan='.
18305 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
18306 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
18307 comment accordingly.
18308 (neg<mode>2): Likewise.
18309 * config/mips/mips.opt (mabs, mnan): New options.
18310 * doc/install.texi (Configuration): Document `--with-nan=' option.
18311 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
18313 (MIPS Options): Document them.
18314 * config.gcc <mips*-*-*>: Handle `--with-nan='.
18315 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
18316 * configure: Regenerate.
18317 * config.in: Regenerate.
18319 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
18321 * config/i386/i386.md (float post-reload splitters): Do not check
18322 for subregs of SSE registers.
18324 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
18325 H.J. Lu <hongjiu.lu@intel.com>
18329 * config/i386/i386.md (post-reload splitter
18330 to avoid partial SSE reg dependency stalls): New pattern.
18332 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
18334 * config/s390/s390.md ("movcc"): Swap load and store instructions.
18336 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
18338 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
18339 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
18341 2013-07-26 Cary Coutant <ccoutant@google.com>
18343 * dwarf2out.c (die_checksum_ordered): Don't include template
18344 instantiations in signature.
18345 (is_template_parameter): New function.
18346 (is_template_instantiation): New function.
18347 (generate_skeleton_bottom_up): Don't include template instantiations
18349 (generate_skeleton): Likewise.
18350 (break_out_comdat_types): Move recursive call to break out nested
18352 (prune_unused_types_mark_generic_parms_dies): Call
18353 is_template_parameter.
18355 2013-07-26 Ian Bolton <ian.bolton@arm.com>
18357 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
18358 uses vector registers.
18359 * config/aarch64/iterators.md: Add attributes rtn and vas.
18361 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18362 Richard Earnshaw <richard.earnshaw@arm.com>
18364 * combine.c (simplify_comparison): Re-canonicalize operands
18366 * config/arm/arm.md (movcond_addsi): New splitter.
18368 2013-07-25 Sterling Augustine <saugustine@google.com>
18370 * dwarf2out.c (size_of_pubnames): Move code to...
18371 (include_pubname_in_output): ...here. New.
18372 (want_pubnames): Rearrange.
18373 (output_pubnames): Call include_pubname_in_output. Move assertion.
18375 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
18377 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
18379 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
18382 * doc/extend.texi: Remove obsolete builtins. Fix
18383 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
18385 2013-07-25 Jan Hubicka <jh@suse.cz>
18387 * cgraph.c (release_function_body): Break out from ...
18388 (cgraph_release_function_body): ... this one; also release DECL_RESULT
18389 and DECL_ARGUMENTS.
18390 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
18391 old_tree in the map.
18392 (create_specialized_node): Update.
18393 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
18395 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
18396 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
18397 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
18398 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
18401 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18403 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
18404 addsi3_carryin_alt2_<optab>): Correct output template.
18406 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18408 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
18409 Adjust for arm_restrict_it.
18410 Remove trailing whitespace.
18412 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
18414 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
18415 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
18417 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
18419 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
18421 PR rtl-optimization/57960
18422 * lra-constraints.c (process_alt_operands): Use the right mode
18423 when checking strict_low.
18425 2013-07-25 Jan Hubicka <jh@suse.cz>
18427 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
18428 * cgraph.c (cgraph_remove_node): Do not release function body
18429 when in cgraph streaming.
18430 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
18431 in other partitions are not considered reachable; fix handling of
18434 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18436 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
18438 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18443 * config/arm/arm.md ("*sibcall_insn): Replace use of
18444 Ss with US. Adjust output for v5 and v4t.
18445 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
18447 * config/arm/constraints.md ("Ss"): Rename to US.
18449 2013-07-25 Terry Guo <terry.guo@arm.com>
18451 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
18452 shift_add/shift_sub0/shift_sub1 RTXs.
18454 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
18455 Anton Blanchard <anton@au1.ibm.com>
18457 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
18458 (altivec_vpks<VI_char>ss): Likewise.
18459 (altivec_vpks<VI_char>us): Likewise.
18460 (altivec_vpku<VI_char>us): Likewise.
18461 (altivec_vpku<VI_char>um): Likewise.
18463 2013-07-24 David Malcolm <dmalcolm@redhat.com>
18465 Introduce context class.
18467 * Makefile.in (CONTEXT_H): New.
18468 (OBJS): Add context.o.
18469 (toplev.o): Add CONTEXT_H to dependencies.
18472 * toplev.c (general_init): Create the singleton gcc::context instance.
18478 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
18480 PR rtl-optimization/57968
18481 * mode-switching.c (create_pre_exit): Allow instructions that
18482 don't set a return register to need a non-exit mode.
18484 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
18485 Anton Blanchard <anton@au1.ibm.com>
18487 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
18488 operands to vperm for little endian.
18489 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
18490 of lvsl to create the control mask for a vperm for little endian.
18492 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18493 Anton Blanchard <anton@au1.ibm.com>
18495 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
18496 two operands for little-endian.
18498 2013-07-23 Steve Ellcey <sellcey@mips.com>
18500 * config/mips/mips.c (mips_case_values_threshold): New.
18501 (TARGET_CASE_VALUES_THRESHOLD): Define.
18503 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18504 Anton Blanchard <anton@au1.ibm.com>
18506 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
18507 selection of field for vector splat in little endian mode.
18509 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
18511 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
18512 expanders to rs6000.md.
18513 (ior<mode>3): Likewise.
18514 (and<mode>3): Likewise.
18515 (one_cmpl<mode>2): Likewise.
18516 (nor<mode>3): Likewise.
18517 (andc<mode>3): Likewise.
18518 (eqv<mode>3): Likewise.
18519 (nand<mode>3): Likewise.
18520 (orc<mode>3): Likewise.
18522 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
18525 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
18526 to split multi-word logical operations.
18527 (rs6000_split_logical_di): Likewise.
18528 (rs6000_split_logical): Likewise.
18530 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
18531 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
18532 and allow TImode operations in 32-bit.
18533 (vsx_and<mode>3_64bit): Likewise.
18534 (vsx_ior<mode>3_32bit): Likewise.
18535 (vsx_ior<mode>3_64bit): Likewise.
18536 (vsx_xor<mode>3_32bit): Likewise.
18537 (vsx_xor<mode>3_64bit): Likewise.
18538 (vsx_one_cmpl<mode>2_32bit): Likewise.
18539 (vsx_one_cmpl<mode>2_64bit): Likewise.
18540 (vsx_nor<mode>3_32bit): Likewise.
18541 (vsx_nor<mode>3_64bit): Likewise.
18542 (vsx_andc<mode>3_32bit): Likewise.
18543 (vsx_andc<mode>3_64bit): Likewise.
18544 (vsx_eqv<mode>3_32bit): Likewise.
18545 (vsx_eqv<mode>3_64bit): Likewise.
18546 (vsx_nand<mode>3_32bit): Likewise.
18547 (vsx_nand<mode>3_64bit): Likewise.
18548 (vsx_orc<mode>3_32bit): Likewise.
18549 (vsx_orc<mode>3_64bit): Likewise.
18551 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
18552 logical types in GPRs.
18554 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
18555 logical insns to rs6000.md, and allow TImode operations in
18557 (altivec_ior<mode>3): Likewise.
18558 (altivec_xor<mode>3): Likewise.
18559 (altivec_one_cmpl<mode>2): Likewise.
18560 (altivec_nor<mode>3): Likewise.
18561 (altivec_andc<mode>3): Likewise.
18563 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
18564 attributes for moving the 128-bit logical operations into
18566 (BOOL_REGS_OUTPUT): Likewise.
18567 (BOOL_REGS_OP1): Likewise.
18568 (BOOL_REGS_OP2): Likewise.
18569 (BOOL_REGS_UNARY): Likewise.
18570 (BOOL_REGS_AND_CR0): Likewise.
18571 (one_cmpl<mode>2): Add support for DI logical operations on
18572 32-bit, splitting the operations to 32-bit.
18573 (anddi3): Likewise.
18574 (iordi3): Likewise.
18575 (xordi3): Likewise.
18576 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
18577 changes to combine the 32/64-bit code, allow logical operations on
18578 TI mode in 32-bit, and to use similar match_operator patterns like
18579 scalar mode uses. Combine the Altivec and VSX code for logical
18580 operations, and move it here.
18581 (ior<mode>3, 128-bit types): Likewise.
18582 (xor<mode>3, 128-bit types): Likewise.
18583 (one_cmpl<mode>3, 128-bit types): Likewise.
18584 (nor<mode>3, 128-bit types): Likewise.
18585 (andc<mode>3, 128-bit types): Likewise.
18586 (eqv<mode>3, 128-bit types): Likewise.
18587 (nand<mode>3, 128-bit types): Likewise.
18588 (orc<mode>3, 128-bit types): Likewise.
18589 (and<mode>3_internal): Likewise.
18590 (bool<mode>3_internal): Likewise.
18591 (boolc<mode>3_internal1): Likewise.
18592 (boolc<mode>3_internal2): Likewise.
18593 (boolcc<mode>3_internal1): Likewise.
18594 (boolcc<mode>3_internal2): Likewise.
18595 (eqv<mode>3_internal1): Likewise.
18596 (eqv<mode>3_internal2): Likewise.
18597 (one_cmpl1<mode>3_internal): Likewise.
18599 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
18601 * config/microblaze/microblaze.c (microblaze_expand_prologue):
18602 Rename flag_stack_usage to flag_stack_usage_info.
18604 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
18606 * config/microblaze/sync.md: New file.
18607 * config/microblaze/microblaze.md: Include sync.md
18608 * config/microblaze/microblaze.c: Add print_operand 'y'.
18609 * config/microblaze/constraints.md: Add memory_contraint
18610 'Q' which is a single register.
18612 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
18614 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
18616 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
18618 * reload.c (find_reloads): Exit loop once we find this operand
18619 cannot be reloaded somehow for this alternative.
18621 * reload.c (find_reloads): Exit loop once we find a hard register.
18623 * rtlanal.c (computed_jump_p): Exit loop once we find label
18626 * i386.c (ix86_pad_returns): Exit loop after setting replace.
18628 * cfgloopmanip.c (remove_path): Exit loop after setting
18631 * gensupport.c (subst_dup): Avoid loop if code is not
18632 MATCH_DUP nor MATCH_OP_DUP.
18634 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
18636 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
18638 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
18640 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
18641 true for SP_REGNUM if mode == ptr_mode.
18642 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
18643 with value R0_REGNUM + 31.
18645 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
18647 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
18648 pad pointer-typed argument downward.
18650 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
18652 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
18653 and __ILP32__ when the ILP32 model is in use.
18655 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
18657 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
18658 (aarch64_load_symref_appropriately): In the case of
18659 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
18660 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
18661 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
18662 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
18663 if 'mode' doesn't equal to 'ptr_mode'.
18664 (aarch64_output_mi_thunk): Add an assertion on the alignment of
18665 'vcall_offset'; change to call aarch64_emit_move differently depending
18666 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
18667 to calculate the upper bound of 'vcall_offset'.
18668 (aarch64_cannot_force_const_mem): Change to also return true if
18670 (aarch64_legitimize_reload_address): In the case of large
18671 displacements, add new local variable 'xmode' and an assertion
18672 based on it; change to use 'xmode' to generate the new rtx and
18674 (aarch64_asm_trampoline_template): Change to generate the template
18675 differently depending on TARGET_ILP32 or not; change to use
18676 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
18677 (aarch64_trampoline_size): Removed.
18678 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
18679 and replace immediate literals with it. Change to use 'ptr_mode'
18680 instead of 'DImode' and call convert_memory_address if the mode
18681 of 'fnaddr' doesn't equal to 'ptr_mode'.
18682 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
18684 (aarch64_elf_asm_destructor): Likewise.
18685 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
18686 on TARGET_ILP32 instead of aarch64_trampoline_size.
18687 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
18688 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
18689 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
18690 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
18691 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
18692 (storewb_pair<GPI:mode>_<P:mode>): ... this.
18693 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
18694 depending on the value of 'mode'.
18695 (add_losym_<mode>): New.
18696 (ldr_got_small_<mode>): New, based on ldr_got_small.
18697 (ldr_got_small): Remove.
18698 (ldr_got_small_sidi): New.
18699 * config/aarch64/iterators.md (P): New.
18700 (PTR): Change to 'ptr_mode' in the condition.
18702 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
18704 * config.gcc (aarch64*-*-*): Support --with-abi.
18705 (aarch64*-*-elf): Support --with-multilib-list.
18706 (aarch64*-*-linux*): Likewise.
18707 (supported_defaults): Add abi to aarch64*-*-*.
18708 * configure.ac: Mention AArch64 for --with-multilib-list.
18709 * configure: Re-generated.
18710 * config/aarch64/biarchilp32.h: New file.
18711 * config/aarch64/biarchlp64.h: New file.
18712 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
18714 (MULTILIB_DEFAULTS): Ditto.
18715 (DRIVER_SELF_SPECS): Ditto.
18716 (ASM_SPEC): Update to also substitute -mabi.
18717 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
18718 file whose name depends on -mabi= and -mbig-endian.
18719 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
18721 (POINTER_SIZE): New define.
18722 (POINTERS_EXTEND_UNSIGNED): Ditto.
18723 (enum aarch64_abi_type): New enumeration tag.
18724 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
18725 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
18726 (TARGET_ILP32): New define.
18727 * config/aarch64/aarch64.opt (mabi): New.
18728 (aarch64_abi): New.
18729 (ilp32, lp64): New values for -mabi.
18730 * config/aarch64/t-aarch64 (comma): New define.
18731 (MULTILIB_OPTIONS): Ditto.
18732 (MULTILIB_DIRNAMES): Ditto.
18733 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
18734 * doc/invoke.texi: Document -mabi for AArch64.
18736 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
18738 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
18740 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
18741 Anton Blanchard <anton@au1.ibm.com>
18743 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
18744 endianness when selecting field to splat.
18746 2013-07-22 Eric Christopher <echristo@gmail.com>
18748 * dwarf2out.c (die_odr_checksum): New function to use
18749 CHECKSUM_ macros and ULEB128 for DIE tag.
18750 (generate_type_signature): Use.
18752 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
18754 * config.gcc (sparc*-*-*): Accept leon3 processor.
18755 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
18756 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
18757 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
18758 * config/sparc/sparc.opt (enum processor_type): Add leon3.
18759 (mfix-ut699): Adjust comment.
18760 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
18761 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
18762 (CPP_CPU_SPEC): Likewise.
18763 (ASM_CPU_SPEC): Likewise.
18764 * config/sparc/sparc.c (leon3_cost): New constant.
18765 (sparc_option_override): Add leon3 support.
18766 (mem_ref): New function.
18767 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
18768 (sparc_do_work_around_errata): Look into the instruction in the delay
18769 slot and adjust accordingly. Add fix for the data cache nullify issues
18770 of the UT699. Change insertion position for the NOP.
18771 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
18772 (leon3_load): New reservation.
18773 (leon_store): Bump latency to 2.
18774 (grfpu): New automaton.
18775 (grfpu_alu): New unit.
18776 (grfpu_ds): Likewise.
18777 (leon_fp_alu): Adjust.
18778 (leon_fp_mult): Delete.
18779 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
18780 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
18781 * config/sparc/sparc.md (cpu): Add leon3.
18782 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
18783 (swapsi): Likewise.
18784 (atomic_test_and_set): Likewise.
18785 (ldstub): Likewise.
18787 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
18789 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
18790 default for R5900 targets.
18791 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
18792 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
18793 * config/mips/mips.c (mips_option_override): Report an error for
18794 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
18795 for -march=r5900 -mhard-float.
18797 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
18799 * df-problems.c (can_move_insns_across): Exit loop once we
18800 find a non-fixed, non-global register.
18802 * ipa-pure-const.c (propagate_nothrow): Exit loop after
18805 * omega.c (omega_eliminate_red): Break after setting red_found.
18806 (omega_problem_has_red_equations): Similarly after setting found.
18807 (omega_query_variable): Similarly after setting coupled.
18809 2013-07-22 Marek Polacek <polacek@redhat.com>
18811 * gimplify.c: Don't include gimple.h twice.
18813 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18815 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
18816 instead of TARGET_THUMB1.
18817 (Pz): New constraint.
18818 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
18820 (compare_negsi_si): Likewise.
18821 (compare_addsi2_op0): Likewise.
18822 (compare_addsi2_op1): Likewise.
18823 (addsi3_carryin_<optab>): Likewise.
18824 (addsi3_carryin_alt2_<optab>): Likewise.
18825 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
18826 for arm_restrict_it.
18827 (subsi3_carryin): Likewise.
18828 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
18829 (minmax_arithsi): Disable for arm_restrict_it.
18830 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
18831 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
18832 (satsi_<SAT:code>_shift): Likewise.
18833 (arm_shiftsi3): Add alternative for 16-bit encoding.
18834 (arm32_movhf): Disable for arm_restrict_it.
18835 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
18836 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
18838 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
18840 * config/arm/arm.md (attribute "insn"): Delete.
18841 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
18842 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
18843 (not_shiftsi): Update for attribute change.
18844 (not_shiftsi_compare0): Likewise.
18845 (not_shiftsi_compare0_scratch): Likewise.
18846 (arm_one_cmplsi2): Likewise.
18847 (thumb1_one_cmplsi2): Likewise.
18848 (notsi_compare0): Likewise.
18849 (notsi_compare0_scratch): Likewise.
18850 (thumb1_movdi_insn): Likewise.
18851 (arm_movsi_insn): Likewise.
18852 (movhi_insn_arch4): Likewise.
18853 (movhi_bytes): Likewise.
18854 (arm_movqi_insn): Likewise.
18855 (thumb1_movqi_insn): Likewise.
18856 (arm32_movhf): Likewise.
18857 (thumb1_movhf): Likewise.
18858 (arm_movsf_soft_insn): Likewise.
18859 (thumb1_movsf_insn): Likewise.
18860 (thumb_movdf_insn): Likewise.
18861 (movsicc_insn): Likewise.
18862 (movsfcc_soft_insn): Likewise.
18863 (and_scc): Likewise.
18864 (cond_move): Likewise.
18865 (if_move_not): Likewise.
18866 (if_not_move): Likewise.
18867 (if_shift_move): Likewise.
18868 (if_move_shift): Likewise.
18869 (if_shift_shift): Likewise.
18870 (if_not_arith): Likewise.
18871 (if_arith_not): Likewise.
18872 (cond_move_not): Likewise.
18873 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
18874 (neon_mov<mode>): Likewise.
18875 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
18876 (thumb2_movsi_vfp): Likewise.
18877 (movsf_vfp): Likewise.
18878 (thumb2_movsf_vfp): Likewise.
18879 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
18881 (cortexa7_older_only): Likewise.
18882 (cortexa7_younger): Likewise.
18883 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
18884 (1020alu_shift_op): Likewise.
18885 (1020alu_shift_reg_op): Likewise.
18886 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
18887 (alu_shift_op): Likewise.
18888 (alu_shift_reg_op): Likewise.
18889 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
18890 (11_alu_shift_op): Likewise.
18891 (11_alu_shift_reg_op): Likewise.
18892 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
18893 (9_alu_shift_reg_op): Likewise.
18894 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
18896 (cortex_a15_alu_shift): Likewise.
18897 (cortex_a15_alu_shift_reg): Likewise.
18898 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
18899 (cortex_a5_alu_shift): Likewise.
18900 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
18902 (cortex_a53_alu_shift): Likewise.
18903 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
18905 (cortex_a7_alu_reg): Likewise.
18906 (cortex_a7_alu_shift): Likewise.
18907 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
18908 (cortex_a8_alu_shift): Likewise.
18909 (cortex_a8_alu_shift_reg): Likewise.
18910 (cortex_a8_mov): Likewise.
18911 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
18912 (cortex_a9_dp_shift): Likewise.
18913 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
18914 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
18915 (cortex_r4_mov): Likewise.
18916 (cortex_r4_alu_shift): Likewise.
18917 (cortex_r4_alu_shift_reg): Likewise.
18918 * config/arm/fa526.md (526_alu_op): Update for attribute change.
18919 (526_alu_shift_op): Likewise.
18920 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
18921 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
18922 (626te_alu_shift_op): Likewise.
18923 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
18924 (726te_alu_op): Likewise.
18925 (726te_alu_shift_op): Likewise.
18926 (726te_alu_shift_reg_op): Likewise.
18927 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
18928 (mp626_alu_shift_op): Likewise.
18929 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
18930 (pj4_alu_e1_conds): Likewise.
18931 (pj4_alu): Likewise.
18932 (pj4_alu_conds): Likewise.
18933 (pj4_shift): Likewise.
18934 (pj4_shift_conds): Likewise.
18935 (pj4_alu_shift): Likewise.
18936 (pj4_alu_shift_conds): Likewise.
18938 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18940 * config/arm/predicates.md (shiftable_operator_strict_it):
18942 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
18943 Disable cond_exec version for arm_restrict_it.
18944 (thumb2_smaxsi3): Convert to generate cond_exec.
18945 (thumb2_sminsi3): Likewise.
18946 (thumb32_umaxsi3): Likewise.
18947 (thumb2_uminsi3): Likewise.
18948 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
18949 (thumb2_neg_abssi2): Likewise.
18950 (thumb2_mov_scc): Add alternative for 16-bit encoding.
18951 (thumb2_movsicc_insn): Adjust alternatives.
18952 (thumb2_mov_negscc): Disable for arm_restrict_it.
18953 (thumb2_mov_negscc_strict_it): New pattern.
18954 (thumb2_mov_notscc_strict_it): New pattern.
18955 (thumb2_mov_notscc): Disable for arm_restrict_it.
18956 (thumb2_ior_scc): Likewise.
18957 (thumb2_ior_scc_strict_it): New pattern.
18958 (thumb2_cond_move): Adjust for arm_restrict_it.
18959 (thumb2_cond_arith): Disable for arm_restrict_it.
18960 (thumb2_cond_arith_strict_it): New pattern.
18961 (thumb2_cond_sub): Adjust for arm_restrict_it.
18962 (thumb2_movcond): Likewise.
18963 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
18964 (thumb2_zero_extendhisi2_v6): Likewise.
18965 (thumb2_zero_extendqisi2_v6): Likewise.
18966 (orsi_notsi_si): Likewise.
18967 (orsi_not_shiftsi_si): Likewise.
18969 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
18971 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
18972 instruction sequence is 1 byte shorter.
18974 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
18976 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
18977 it is not needed after split.
18979 2013-07-20 Iain Sandoe <iain@codesourcery.com>
18982 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
18983 second label for nonlocal goto receivers. Don't output pic base labels
18984 unless we're producing PIC; mark that action unreachable().
18985 (ix86_save_reg): If the function contains a nonlocal label, save the
18987 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
18988 * config/darwin.c (emitted_pic_label_num): New GTY.
18989 (update_pic_label_number_if_needed): New.
18990 (machopic_output_function_base_name): Adjust for nonlocal receiver
18992 (machopic_should_output_picbase_label): New.
18993 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
18994 (nonlocal_goto_receiver): New insn and split.
18996 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
18998 * config/aarch64/aarch64-builtins.c
18999 (aarch64_fold_builtin): Fold abs in all modes.
19000 * config/aarch64/aarch64-simd-builtins.def
19001 (abs): Enable for all modes.
19002 * config/aarch64/arm_neon.h
19003 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
19004 (vabs_f64): Add missing intrinsic.
19006 2013-07-19 Ian Bolton <ian.bolton@arm.com>
19008 * config/aarch64/arm_neon.h (vabs_s64): New function
19010 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
19013 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
19014 * config/avr/avr.md (adjust_len): Add `round'.
19015 * config/avr/avr-protos.h (avr_out_round): New prototype.
19016 (avr_out_plus): Add `out_label' argument.
19017 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
19018 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
19019 Handle the case where `insn' is just a pattern.
19020 (avr_out_bitop): Handle the case where `insn' is just a pattern.
19021 (avr_out_round): New function.
19022 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
19024 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
19026 * config/microblaze/microblaze.c (microblaze_expand_prologue):
19027 Add check for flag_stack_usage to handle -fstack-usage support
19029 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
19031 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
19032 interaction for new Power8 flags and VSX.
19034 2013-07-18 Sriraman Tallam <tmsriram@google.com>
19036 PR middle-end/57698
19037 * tree-inline.c (expand_call_inline): Emit errors during
19038 early_inlining only if optimization is not turned on.
19040 2013-07-18 David Malcolm <dmalcolm@redhat.com>
19044 * passes.c (init_optimization_passes): Move the construction of
19045 the pass hierarchy into a new passes.def file.
19047 * Makefile.in (passes.o): Add dependency on passes.def.
19049 2013-07-18 David Malcolm <dmalcolm@redhat.com>
19051 * passes.c (init_optimization_passes): Introduce macros for
19052 constructing the tree of passes (INSERT_PASSES_AFTER,
19053 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
19054 TERMINATE_PASS_LIST).
19056 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
19057 Wei Mi <wmi@google.com>
19059 PR rtl-optimization/57878
19060 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
19062 (reload_pseudo_compare_func): Check nregs first for reload
19065 2013-07-18 David Malcolm <dmalcolm@redhat.com>
19067 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
19069 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
19071 * read-rtl.c (validate_const_int): Once an invalid character is
19072 seen, quit the loop.
19074 * gengtype.c (write_roots): Similarly once we find the "deletable"
19075 or "if_marked" option.
19077 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
19079 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
19080 "xtab" and "sat". Move value "clz" from here to ...
19081 (attriubte "type"): ... here.
19082 (satsi_<SAT:code>): Delete "insn" attribute.
19083 (satsi_<SAT:code>_shift): Likewise.
19084 (arm_zero_extendqisi2addsi): Likewise.
19085 (arm_extendqisi2addsi): Likewise.
19086 (clzsi2): Update for attribute changes.
19087 (rbitsi2): Likewise.
19088 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
19090 (arm_usatsihi): Likewise.
19091 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19093 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
19095 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
19096 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
19097 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
19098 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
19099 in alphabetical order.
19100 (attribute "core_cycles"): Update for attribute changes.
19101 (arm_addsi3): Likewise.
19102 (addsi3_compare0): Likewise.
19103 (addsi3_compare0_scratch): Likewise.
19104 (addsi3_compare_op1): Likewise.
19105 (addsi3_compare_op2): Likewise.
19106 (compare_addsi2_op0): Likewise.
19107 (compare_addsi2_op1): Likewise.
19108 (addsi3_carryin_shift_<optab>): Likewise.
19109 (subsi3_carryin_shift): Likewise.
19110 (rsbsi3_carryin_shift): Likewise.
19111 (arm_subsi3_insn): Likewise.
19112 (subsi3_compare0): Likewise.
19113 (subsi3_compare): Likewise.
19114 (arm_andsi3_insn): Likewise.
19115 (thumb1_andsi3_insn): Likewise.
19116 (andsi3_compare0): Likewise.
19117 (andsi3_compare0_scratch): Likewise.
19118 (zeroextractsi_compare0_scratch
19119 (andsi_not_shiftsi_si): Likewise.
19120 (iorsi3_insn): Likewise.
19121 (iorsi3_compare0): Likewise.
19122 (iorsi3_compare0_scratch): Likewise.
19123 (arm_xorsi3): Likewise.
19124 (thumb1_xorsi3_insn): Likewise.
19125 (xorsi3_compare0): Likewise.
19126 (xorsi3_compare0_scratch): Likewise.
19127 (satsi_<SAT:code>_shift): Likewise.
19129 (arm_shiftsi3): Likewise.
19130 (shiftsi3_compare0): Likewise.
19131 (not_shiftsi): Likewise.
19132 (not_shiftsi_compare0): Likewise.
19133 (not_shiftsi_compare0_scratch): Likewise.
19134 (arm_one_cmplsi2): Likewise.
19135 (thumb_one_complsi2): Likewise.
19136 (notsi_compare0): Likewise.
19137 (notsi_compare0_scratch): Likewise.
19138 (thumb1_zero_extendhisi2): Likewise.
19139 (arm_zero_extendhisi2): Likewise.
19140 (arm_zero_extendhisi2_v6): Likewise.
19141 (arm_zero_extendhisi2addsi): Likewise.
19142 (thumb1_zero_extendqisi2): Likewise.
19143 (thumb1_zero_extendqisi2_v6): Likewise.
19144 (arm_zero_extendqisi2): Likewise.
19145 (arm_zero_extendqisi2_v6): Likewise.
19146 (arm_zero_extendqisi2addsi): Likewise.
19147 (thumb1_extendhisi2): Likewise.
19148 (arm_extendhisi2): Likewise.
19149 (arm_extendhisi2_v6): Likewise.
19150 (arm_extendqisi): Likewise.
19151 (arm_extendqisi_v6): Likewise.
19152 (arm_extendqisi2addsi): Likewise.
19153 (thumb1_extendqisi2): Likewise.
19154 (thumb1_movdi_insn): Likewise.
19155 (arm_movsi_insn): Likewise.
19156 (movsi_compare0): Likewise.
19157 (movhi_insn_arch4): Likewise.
19158 (movhi_bytes): Likewise.
19159 (arm_movqi_insn): Likewise.
19160 (thumb1_movqi_insn): Likewise.
19161 (arm32_movhf): Likewise.
19162 (thumb1_movhf): Likewise.
19163 (arm_movsf_soft_insn): Likewise.
19164 (thumb1_movsf_insn): Likewise.
19165 (movdf_soft_insn): Likewise.
19166 (thumb_movdf_insn): Likewise.
19167 (arm_cmpsi_insn): Likewise.
19168 (cmpsi_shiftsi): Likewise.
19169 (cmpsi_shiftsi_swp): Likewise.
19170 (arm_cmpsi_negshiftsi_si): Likewise.
19171 (movsicc_insn): Likewise.
19172 (movsfcc_soft_insn): Likewise.
19173 (arith_shiftsi): Likewise.
19174 (arith_shiftsi_compare0
19175 (arith_shiftsi_compare0_scratch
19176 (sub_shiftsi): Likewise.
19177 (sub_shiftsi_compare0
19178 (sub_shiftsi_compare0_scratch
19179 (and_scc): Likewise.
19180 (cond_move): Likewise.
19181 (if_plus_move): Likewise.
19182 (if_move_plus): Likewise.
19183 (if_move_not): Likewise.
19184 (if_not_move): Likewise.
19185 (if_shift_move): Likewise.
19186 (if_move_shift): Likewise.
19187 (if_shift_shift): Likewise.
19188 (if_not_arith): Likewise.
19189 (if_arith_not): Likewise.
19190 (cond_move_not): Likewise.
19191 (thumb1_ashlsi3): Set type attribute.
19192 (thumb1_ashrsi3): Likewise.
19193 (thumb1_lshrsi3): Likewise.
19194 (thumb1_rotrsi3): Likewise.
19195 (shiftsi3_compare0_scratch): Likewise.
19196 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
19197 (neon_mov<mode>): Likewise.
19198 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
19200 (thumb2_movsi_insn): Likewise.
19201 (thumb2_cmpsi_neg_shiftsi): Likewise.
19202 (thumb2_extendqisi_v6): Likewise.
19203 (thumb2_zero_extendhisi2_v6): Likewise.
19204 (thumb2_zero_extendqisi2_v6): Likewise.
19205 (thumb2_shiftsi3_short): Likewise.
19206 (thumb2_addsi3_compare0_scratch): Likewise.
19207 (orsi_not_shiftsi_si): Likewise.
19208 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
19209 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
19211 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
19212 (1020alu_shift_op): Likewise.
19213 (1020alu_shift_reg_op): Likewise.
19214 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
19215 (alu_shift_op): Likewise.
19216 (alu_shift_reg_op): Likewise.
19217 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
19218 (11_alu_shift_op): Likewise.
19219 (11_alu_shift_reg_op): Likewise.
19220 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
19221 (9_alu_shift_reg_op): Likewise.
19222 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19224 (cortex_a15_alu_shift): Likewise.
19225 (cortex_a15_alu_shift_reg): Likewise.
19226 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
19228 (cortex_a5_alu_shift): Likewise.
19229 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
19231 (cortex_a53_alu_shift): Likewise.
19232 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
19234 (cortex_a7_alu_reg): Likewise.
19235 (cortex_a7_alu_shift): Likewise.
19236 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
19238 (cortex_a8_alu_shift): Likewise.
19239 (cortex_a8_alu_shift_reg): Likewise.
19240 (cortex_a8_mov): Likewise.
19241 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
19242 (cortex_a9_dp_shift): Likewise.
19243 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
19245 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
19247 (cortex_r4_mov): Likewise.
19248 (cortex_r4_alu_shift): Likewise.
19249 (cortex_r4_alu_shift_reg): Likewise.
19250 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
19251 (526_alu_shift_op): Likewise.
19252 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
19253 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
19254 (626te_alu_shift_op): Likewise.
19255 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
19256 (726te_alu_op): Likewise.
19257 (726te_alu_shift_op): Likewise.
19258 (726te_alu_shift_reg_op): Likewise.
19259 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
19260 (mp626_alu_shift_op): Likewise.
19261 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
19262 (pj4_alu_e1_conds): Likewise.
19263 (pj4_alu): Likewise.
19264 (pj4_alu_conds): Likewise.
19265 (pj4_shift): Likewise.
19266 (pj4_shift_conds): Likewise.
19267 (pj4_alu_shift): Likewise.
19268 (pj4_alu_shift_conds): Likewise.
19269 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
19271 (cortexa7_older_only): Likewise.
19272 (cortexa7_younger): Likewise.
19274 2013-07-18 David Malcolm <dmalcolm@redhat.com>
19276 * ipa-pure-const.c (generate_summary): Rename to...
19277 (pure_const_generate_summary): ... this.
19279 2013-07-17 Iain Sandoe <iain@codesourcery.com>
19281 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
19283 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
19286 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
19289 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19291 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
19292 enabled without -march=zEC12.
19293 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
19296 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
19298 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
19299 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
19300 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
19301 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
19302 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
19303 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
19304 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
19306 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
19307 and ISA_HAS_NMADD3_NMSUB3.
19308 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
19309 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
19310 (nmsub4<mode>, nmsub3<mode>): Likewise.
19311 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
19313 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
19315 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
19316 TARGET_MIPS5400 checking.
19318 2013-07-16 Jakub Jelinek <jakub@redhat.com>
19319 Peter Bergner <bergner@vnet.ibm.com>
19321 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
19322 registers in the comment.
19323 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
19324 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
19325 rather than FIRST_PSEUDO_REGISTERS.
19327 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
19329 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
19330 enable extra ISA flags with TARGET_HTM.
19332 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
19334 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
19337 2013-07-15 Cong Hou <congh@google.com>
19339 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
19340 in compare function for sorting.
19342 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
19344 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
19345 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
19346 * config/rs6000/rs6000.opt: Add -mhtm option.
19347 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
19348 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
19349 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
19350 __HTM__ if the HTM instructions are available.
19351 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
19352 htm_spr_reg_operand): New define_predicates.
19353 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
19354 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
19356 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
19357 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
19358 HTM builtin functions.
19359 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
19360 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
19361 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
19362 (rs6000_builtin_mask_calculate): Likewise.
19363 (rs6000_option_override_internal): Likewise.
19364 (bdesc_htm): Add new HTM builtin support.
19365 (htm_spr_num): New function.
19366 (htm_spr_regno): Likewise.
19367 (rs6000_htm_spr_icode): Likewise.
19368 (htm_expand_builtin): Likewise.
19369 (htm_init_builtins): Likewise.
19370 (rs6000_expand_builtin): Add support for HTM builtin functions.
19371 (rs6000_init_builtins): Likewise.
19372 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
19374 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
19375 (TARGET_HTM, MASK_HTM): Define macros.
19376 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
19377 (FIXED_REGISTERS): Likewise.
19378 (CALL_USED_REGISTERS): Likewise.
19379 (CALL_REALLY_USED_REGISTERS): Likewise.
19380 (REG_ALLOC_ORDER): Likewise.
19381 (enum reg_class): Likewise.
19382 (REG_CLASS_NAMES): Likewise.
19383 (REG_CLASS_CONTENTS): Likewise.
19384 (REGISTER_NAMES): Likewise.
19385 (ADDITIONAL_REGISTER_NAMES): Likewise.
19386 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
19387 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
19388 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
19389 * config/rs6000/htm.md: New file.
19390 * config/rs6000/htmintrin.h: New file.
19391 * config/rs6000/htmxlintrin.h: New file.
19393 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
19395 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
19396 Define SYMBOL_TINY_GOT, update comment.
19397 * config/aarch64/aarch64.c
19398 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
19399 (aarch64_expand_mov_immediate): Likewise.
19400 (aarch64_print_operand): Likewise.
19401 (aarch64_classify_symbol): Likewise.
19402 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
19403 (ldr_got_tiny): Define.
19405 2013-07-13 Tobias Grosser <tobias@grosser.es>
19407 PR tree-optimization/54094
19408 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
19409 scheduling dimension for the parallelism check from the polyhedral
19410 information in the AST.
19411 * graphite-dependences.c (carries_deps): Do not assume the schedule is
19414 2013-07-13 Jason Merrill <jason@redhat.com>
19416 * print-tree.c (debug_vec_tree): Use debug_raw.
19417 (debug_raw (vec<tree, va_gc> &)): New.
19418 (debug_raw (vec<tree, va_gc> *)): New.
19419 * tree.h: Declare them.
19421 2013-07-13 Bin Cheng <bin.cheng@arm.com>
19423 * ifcvt.c (ifcvt_after_combine): New static variable.
19424 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
19426 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
19427 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
19428 rest_of_handle_if_after_reload): Pass new argument for if_convert.
19430 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
19432 * config/mips/mips.c (mips_expand_call): Remove empty statement.
19434 2013-07-12 Michael Matz <matz@suse.de>
19436 PR middle-end/55771
19437 * convert.c (convert_to_real): Reject non-float inner types.
19439 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
19441 * config/aarch64/aarch64-protos.h
19442 (aarch64_simd_immediate_valid_for_move): Remove.
19443 * config/aarch64/aarch64.c (simd_immediate_info): New member.
19444 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
19446 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
19448 2013-07-11 Steve Ellcey <sellcey@mips.com>
19450 * config/mips/mips.c (mips_conditional_register_usage): Do not
19451 use t[0-7] registers in MIPS16 mode when optimizing for size.
19453 2013-07-11 Sriraman Tallam <tmsriram@google.com>
19455 * config/i386/i386.c (dispatch_function_versions): Fix array
19456 indexing of function_version_info to match actual_versions.
19458 2013-07-11 Teresa Johnson <tejohnson@google.com>
19460 * vec.h (struct va_gc): Move release out-of-line.
19461 (va_gc::release): Call ggc_free on released vec.
19463 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19465 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
19466 Require GOT register as additional operand in UNSPEC.
19467 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
19468 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
19469 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
19470 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
19471 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
19472 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
19473 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
19475 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
19478 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
19479 name seen by assembler/linker rather if available.
19481 2013-07-11 Andreas Schwab <schwab@suse.de>
19483 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
19485 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
19487 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
19489 2013-07-10 Joseph Myers <joseph@codesourcery.com>
19491 * doc/tm.texi.in: Move hook documentation to ....
19492 * target.def: ... here.
19494 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
19495 text on @hook line.
19496 * doc/tm.texi: Regenerate.
19498 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
19501 * doc/invoke.texi: Document -Wconditionally-supported.
19503 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
19506 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
19509 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
19512 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
19513 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
19514 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
19515 Remove duplicate devices.
19516 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
19517 * config/avr/t-multilib: Regenerate.
19518 * config/avr/avr-tables.opt: Regenerate.
19519 * doc/avr-mmcu.texi: Regenerate.
19521 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
19524 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
19526 2013-07-10 Graham Stott <graham.stott@btinternet.com>
19528 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
19529 the cost of MULT when optimizing for size.
19531 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19533 * config/cr16/cr16-protos.h: Don't include target.h.
19535 2013-07-09 Joseph Myers <joseph@codesourcery.com>
19537 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
19538 adjust register size for TDmode and TFmode for VSX registers.
19540 2013-07-08 Kai Tietz <ktietz@redhat.com>
19543 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
19544 hook_bool_const_tree_true.
19546 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19548 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
19549 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
19550 * config/s390/s390.md: Define FPR*_REGNUM constants.
19551 Fix FPR2_REGNUM constant (18 -> 17).
19552 ("*trunc<BFP:mode><DFP_ALL:mode>2")
19553 ("*trunc<DFP_ALL:mode><BFP:mode>2")
19554 ("trunc<BFP:mode><DFP_ALL:mode>2")
19555 ("trunc<DFP_ALL:mode><BFP:mode>2")
19556 ("*extend<BFP:mode><DFP_ALL:mode>2")
19557 ("*extend<DFP_ALL:mode><BFP:mode>2")
19558 ("extend<BFP:mode><DFP_ALL:mode>2")
19559 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
19562 2013-07-08 Graham Stott <graham.stott@btinternet.com>
19564 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
19566 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19568 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
19569 and cfun_fpr_bit_p to cfun_fpr_save_p.
19570 (s390_frame_area, s390_register_info, s390_frame_info)
19571 (s390_emit_prologue, s390_emit_epilogue)
19572 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
19574 * config/s390/s390.h: Define *_REGNUM macros for floating point
19577 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
19579 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
19581 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
19583 PR rtl-optimization/57786
19584 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
19585 and break out of the loop when it is set to false.
19587 2013-07-08 Jakub Jelinek <jakub@redhat.com>
19590 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
19591 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
19592 (const_int 63)) 0)).
19593 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
19594 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
19595 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
19597 PR rtl-optimization/57829
19598 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
19599 mask bits outside of mode are just sign-extension from mode to HWI.
19601 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
19603 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
19604 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
19605 adjust_address instead of change_address to keep info about alignment.
19606 (emit_strmov): Remove.
19607 (emit_memmov): New function.
19608 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
19609 (expand_movmem_epilogue): Likewise and return updated rtx for
19611 (expand_constant_movmem_prologue): Likewise and return updated rtx for
19612 destination and source.
19613 (decide_alignment): Refactor, handle vector_loop.
19614 (ix86_expand_movmem): Likewise.
19615 (ix86_expand_setmem): Likewise.
19616 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
19618 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
19620 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
19621 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
19623 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
19625 * config/i386/sse.md (sse_movlhps): Change alternative 3
19626 of operand 2 to "m".
19628 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
19631 * config/i386/sse.md (iptr): New mode attribute.
19632 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
19633 (<sse>_vm<plusminus_insn><mode>3): Ditto.
19634 (<sse>_vmmul<mode>3): Ditto.
19635 (<sse>_vmdiv<mode>3): Ditto.
19636 (sse_vmrcpv4sf2): Ditto.
19637 (<sse>_vmsqrt<mode>2): Ditto.
19638 (sse_vmrsqrtv4sf2): Ditto.
19639 (<sse>_vm<code><mode>3): Ditto.
19640 (avx_vmcmp<mode>3): Ditto.
19641 (<sse>_vmmaskcmp<mode>3): Ditto.
19642 (<sse>_comi): Ditto.
19643 (<sse>_ucomi): Ditto.
19644 (*xop_vmfrcz_<mode>): Ditto.
19645 (*fmai_fmadd_<mode>): Ditto.
19646 (*fmai_fmsub_<mode>): Ditto.
19647 (*fmai_fnmadd_<mode>): Ditto.
19648 (*fmai_fnmsub_<mode>): Ditto.
19649 (*fma4i_vmfmadd_<mode>): Ditto.
19650 (*fma4i_vmfmsub_<mode>): Ditto.
19651 (*fma4i_vmfnmadd_<mode>): Ditto.
19652 (*fma4i_vmfnmsub_<mode>): Ditto.
19653 (*xop_vmfrcz_<mode>): Ditto.
19654 (sse_cvtps2pi): Ditto.
19655 (sse_cvttps2pi): Ditto.
19656 (sse_cvtss2si): Ditto.
19657 (sse_cvtss2si_2): Ditto.
19658 (sse_cvtss2siq_2): Ditto.
19659 (sse_cvttss2si): Ditto.
19660 (sse_cvttss2siq): Ditto.
19661 (sse_cvtsd2si): Ditto.
19662 (sse_cvtsd2si_2): Ditto.
19663 (sse_cvtsd2siq_2): Ditto.
19664 (sse_cvttsd2si): Ditto.
19665 (sse_cvttsd2siq): Ditto.
19666 (sse_cvtsd2ss): Ditto.
19667 (sse_cvtss2sd): Ditto.
19668 (avx2_pbroadcast<mode>): Ditto.
19669 (avx2_pbroadcast<mode>_1): Ditto.
19670 (*avx_vperm_broadcast_v4sf): Ditto.
19672 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
19673 (sse_movlhps): Ditto.
19674 (sse_storehps): Ditto.
19675 (sse_loadhps): Ditto.
19676 (sse_storelps): Ditto.
19677 (sse_loadlps): Ditto.
19678 (*vec_concatv4sf): Ditto.
19679 (*vec_interleave_highv2df): Ditto.
19680 (*vec_interleave_lowv2df): Ditto.
19681 (*vec_extractv2df_1_sse): Ditto.
19682 (*vec_extractv2df_0_sse): Ditto.
19683 (sse2_storelpd): Ditto.
19684 (sse2_loadlpd): Ditto.
19685 (sse2_movsd): Ditto.
19686 (*vec_concatv4si): Ditto.
19687 (vec_concatv2di): Ditto.
19689 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
19690 for Intel asm dialect.
19691 (mmx_punpcklwd): Ditto.
19692 (mmx_punpckldq): Ditto.
19694 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
19695 for intel assembler dialect.
19697 2013-07-06 Jakub Jelinek <jakub@redhat.com>
19700 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
19701 for BUILT_IN_C{LZ,LRSB}*.
19702 * tree.h (CASE_INT_FN): Add FN##IMAX case.
19703 * tree-vrp.c (extract_range_basic): Handle
19704 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
19705 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
19706 fall thru to code calling set_value*.
19707 * builtins.c (expand_builtin): Remove *IMAX cases.
19708 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
19709 if width is bigger than 2*HWI.
19711 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
19713 PR rtl-optimization/55342
19714 * lra-int.h (lra_subreg_reload_pseudos): New.
19715 * lra.c: Add undoing optional reloads to the block diagram.
19716 (lra_subreg_reload_pseudos): New.
19717 (lra_optional_reload_pseudos): Change comments.
19718 (lra): Init and clear lra_subreg_reload_pseudos. Clear
19719 lra_optional_reload_pseudos after undo transformations.
19720 * lra-assigns.c (pseudo_prefix_title): New.
19721 (lra_setup_reg_renumber): Use it.
19722 (spill_for): Ditto. Check subreg reload pseudos too.
19723 (assign_by_spills): Consider subreg reload pseudos too.
19724 * lra-constraints.c (simplify_operand_subreg): Use
19725 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
19726 (curr_insn_transform): Recognize and do optional reloads.
19727 (undo_optional_reloads): New.
19728 (lra_undo_inheritance): Call undo_optional_reloads.
19730 2013-07-05 Thomas Quinot <quinot@adacore.com>
19732 * tree-complex.c (expand_complex_operations_1): Fix typo.
19734 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
19736 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
19737 (tune_params): New member 'const vec_costs'.
19738 * config/aarch64/aarch64.c (generic_vector_cost): New.
19739 (generic_tunings): New member 'generic_vector_cost'.
19740 (aarch64_builtin_vectorization_cost): New.
19741 (aarch64_add_stmt_cost): New.
19742 (TARGET_VECTORIZE_ADD_STMT_COST): New.
19743 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
19745 2013-07-03 Jakub Jelinek <jakub@redhat.com>
19748 * config/i386/predicates.md (vsib_address_operand): Disallow
19749 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
19751 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
19753 PR middle-end/55030
19754 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
19755 expand_builtin_setjmp_receiver.
19756 (expand_label): Adjust, call expand_builtin_setjmp_receiver
19757 with NULL for the label parameter.
19758 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
19759 the frame-pointer. Adjust comments.
19760 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
19761 only if LABEL is non-NULL.
19763 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
19765 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
19766 (ARM_ABI_AAPCS64): Ditto.
19768 (ARM_DEFAULT_ABI): Ditto.
19770 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
19772 * config/aarch64/aarch64-builtins.c
19773 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
19774 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
19776 * config/aarch64/aarch64-simd.md
19777 (aarch64_ld1<VALL:mode>): New.
19778 (aarch64_st1<VALL:mode>): Likewise.
19779 * config/aarch64/arm_neon.h
19780 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
19782 2013-07-02 Sriraman Tallam <tmsriram@google.com>
19784 * config/i386/i386.c (gate_insert_vzeroupper): Check if
19786 (ix86_option_override_internal):Turn on all -mavx target flags by
19787 default as they are dependent on AVX anyway.
19789 2013-07-02 Cary Coutant <ccoutant@google.com>
19791 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
19792 deterministic hash.
19793 (loc_checksum_ordered): Likewise.
19794 (hash_loc_operands): Remove inline keyword.
19796 2013-07-02 Jakub Jelinek <jakub@redhat.com>
19798 PR tree-optimization/57741
19799 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
19800 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
19801 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
19802 Allow REAL_CST step_exprs if flag_associative_math.
19803 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
19805 2013-07-02 Ian Bolton <ian.bolton@arm.com>
19807 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
19809 2013-07-02 Ian Bolton <ian.bolton@arm.com>
19811 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
19813 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19815 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
19817 (iorsi3_insn): Likewise.
19818 (arm_xorsi3): Likewise.
19820 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
19822 * arm.md (attribute "wtype"): Delete. Move attribute values from here
19824 (attribute "type"): ... here, and prefix with "wmmx_".
19825 (attribute "core_cycles"): Update for attribute changes.
19826 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
19827 (tbcstv4hi): Likewise.
19828 (tbcstv2si): Likewise.
19829 (iwmmxt_iordi3): Likewise.
19830 (iwmmxt_xordi3): Likewise.
19831 (iwmmxt_anddi3): Likewise.
19832 (iwmmxt_nanddi3): Likewise.
19833 (iwmmxt_arm_movdi): Likewise.
19834 (iwmmxt_movsi_insn): Likewise.
19835 (mov<mode>_internal): Likewise.
19836 (and<mode>3_iwmmxt): Likewise.
19837 (ior<mode>3_iwmmxt): Likewise.
19838 (xor<mode>3_iwmmxt): Likewise.
19839 (add<mode>3_iwmmxt): Likewise.
19840 (ssaddv8qi3): Likewise.
19841 (ssaddv4hi3): Likewise.
19842 (ssaddv2si3): Likewise.
19843 (usaddv8qi3): Likewise.
19844 (usaddv4hi3): Likewise.
19845 (usaddv2si3): Likewise.
19846 (sub<mode>3_iwmmxt): Likewise.
19847 (sssubv8qi3): Likewise.
19848 (sssubv4hi3): Likewise.
19849 (sssubv2si3): Likewise.
19850 (ussubv8qi3): Likewise.
19851 (ussubv4hi3): Likewise.
19852 (ussubv2si3): Likewise.
19853 (mulv4hi3_iwmmxt): Likewise.
19854 (smulv4hi3_highpart): Likewise.
19855 (umulv4hi3_highpart): Likewise.
19856 (iwmmxt_wmacs): Likewise.
19857 (iwmmxt_wmacsz): Likewise.
19858 (iwmmxt_wmacu): Likewise.
19859 (iwmmxt_wmacuz): Likewise.
19860 (iwmmxt_clrdi): Likewise.
19861 (iwmmxt_clrv8qi): Likewise.
19862 (iwmmxt_clr4hi): Likewise.
19863 (iwmmxt_clr2si): Likewise.
19864 (iwmmxt_uavgrndv8qi3): Likewise.
19865 (iwmmxt_uavgrndv4hi3): Likewise.
19866 (iwmmxt_uavgv8qi3): Likewise.
19867 (iwmmxt_uavgv4hi3): Likewise.
19868 (iwmmxt_tinsrb): Likewise.
19869 (iwmmxt_tinsrh): Likewise.
19870 (iwmmxt_tinsrw): Likewise.
19871 (iwmmxt_textrmub): Likewise.
19872 (iwmmxt_textrmsb): Likewise.
19873 (iwmmxt_textrmuh): Likewise.
19874 (iwmmxt_textrmsh): Likewise.
19875 (iwmmxt_textrmw): Likewise.
19876 (iwmxxt_wshufh): Likewise.
19877 (eqv8qi3): Likewise.
19878 (eqv4hi3): Likewise.
19879 (eqv2si3): Likewise.
19880 (gtuv8qi3): Likewise.
19881 (gtuv4hi3): Likewise.
19882 (gtuv2si3): Likewise.
19883 (gtv8qi3): Likewise.
19884 (gtv4hi3): Likewise.
19885 (gtv2si3): Likewise.
19886 (smax<mode>3_iwmmxt): Likewise.
19887 (umax<mode>3_iwmmxt): Likewise.
19888 (smin<mode>3_iwmmxt): Likewise.
19889 (umin<mode>3_iwmmxt): Likewise.
19890 (iwmmxt_wpackhss): Likewise.
19891 (iwmmxt_wpackwss): Likewise.
19892 (iwmmxt_wpackdss): Likewise.
19893 (iwmmxt_wpackhus): Likewise.
19894 (iwmmxt_wpackwus): Likewise.
19895 (iwmmxt_wpackdus): Likewise.
19896 (iwmmxt_wunpckihb): Likewise.
19897 (iwmmxt_wunpckihh): Likewise.
19898 (iwmmxt_wunpckihw): Likewise.
19899 (iwmmxt_wunpckilb): Likewise.
19900 (iwmmxt_wunpckilh): Likewise.
19901 (iwmmxt_wunpckilw): Likewise.
19902 (iwmmxt_wunpckehub): Likewise.
19903 (iwmmxt_wunpckehuh): Likewise.
19904 (iwmmxt_wunpckehuw): Likewise.
19905 (iwmmxt_wunpckehsb): Likewise.
19906 (iwmmxt_wunpckehsh): Likewise.
19907 (iwmmxt_wunpckehsw): Likewise.
19908 (iwmmxt_wunpckelub): Likewise.
19909 (iwmmxt_wunpckeluh): Likewise.
19910 (iwmmxt_wunpckeluw): Likewise.
19911 (iwmmxt_wunpckelsb): Likewise.
19912 (iwmmxt_wunpckelsh): Likewise.
19913 (iwmmxt_wunpckelsw): Likewise.
19914 (ror<mode>3): Likewise.
19915 (ashr<mode>3_iwmmxt): Likewise.
19916 (lshr<mode>3_iwmmxt): Likewise.
19917 (ashl<mode>3_iwmmxt): Likewise.
19918 (ror<mode>3_di): Likewise.
19919 (ashr<mode>3_di): Likewise.
19920 (lshr<mode>3_di): Likewise.
19921 (ashl<mode>3_di): Likewise.
19922 (iwmmxt_wmadds): Likewise.
19923 (iwmmxt_wmaddu): Likewise.
19924 (iwmmxt_tmia): Likewise.
19925 (iwmmxt_tmiaph): Likewise.
19926 (iwmmxt_tmiabb): Likewise.
19927 (iwmmxt_tmiatb): Likewise.
19928 (iwmmxt_tmiabt): Likewise.
19929 (iwmmxt_tmiatt): Likewise.
19930 (iwmmxt_tmovmskb): Likewise.
19931 (iwmmxt_tmovmskh): Likewise.
19932 (iwmmxt_tmovmskw): Likewise.
19933 (iwmmxt_waccb): Likewise.
19934 (iwmmxt_wacch): Likewise.
19935 (iwmmxt_waccw): Likewise.
19936 (iwmmxt_waligni): Likewise.
19937 (iwmmxt_walignr): Likewise.
19938 (iwmmxt_walignr0): Likewise.
19939 (iwmmxt_walignr1): Likewise.
19940 (iwmmxt_walignr2): Likewise.
19941 (iwmmxt_walignr3): Likewise.
19942 (iwmmxt_wsadb): Likewise.
19943 (iwmmxt_wsadh): Likewise.
19944 (iwmmxt_wsadbz): Likewise.
19945 (iwmmxt_wsadhz): Likewise.
19946 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
19947 (iwmmxt_wabsdiffb): Likewise.
19948 (iwmmxt_wabsdiffh): Likewise.
19949 (iwmmxt_wabsdiffw): Likewise.
19950 (iwmmxt_waddsubhx): Likewise
19951 (iwmmxt_wsubaddhx): Likewise.
19952 (addc<mode>3): Likewise.
19953 (iwmmxt_avg4): Likewise.
19954 (iwmmxt_avg4r): Likewise.
19955 (iwmmxt_wmaddsx): Likewise.
19956 (iwmmxt_wmaddux): Likewise.
19957 (iwmmxt_wmaddsn): Likewise.
19958 (iwmmxt_wmaddun): Likewise.
19959 (iwmmxt_wmulwsm): Likewise.
19960 (iwmmxt_wmulwum): Likewise.
19961 (iwmmxt_wmulsmr): Likewise.
19962 (iwmmxt_wmulumr): Likewise.
19963 (iwmmxt_wmulwsmr): Likewise.
19964 (iwmmxt_wmulwumr): Likewise.
19965 (iwmmxt_wmulwl): Likewise.
19966 (iwmmxt_wqmulm): Likewise.
19967 (iwmmxt_wqmulwm): Likewise.
19968 (iwmmxt_wqmulmr): Likewise.
19969 (iwmmxt_wqmulwmr): Likewise.
19970 (iwmmxt_waddbhusm): Likewise.
19971 (iwmmxt_waddbhusl): Likewise.
19972 (iwmmxt_wqmiabb): Likewise.
19973 (iwmmxt_wqmiabt): Likewise.
19974 (iwmmxt_wqmiatb): Likewise.
19975 (iwmmxt_wqmiatt): Likewise.
19976 (iwmmxt_wqmiabbn): Likewise.
19977 (iwmmxt_wqmiabtn): Likewise.
19978 (iwmmxt_wqmiatbn): Likewise.
19979 (iwmmxt_wqmiattn): Likewise.
19980 (iwmmxt_wmiabb): Likewise.
19981 (iwmmxt_wmiabt): Likewise.
19982 (iwmmxt_wmiatb): Likewise.
19983 (iwmmxt_wmiatt): Likewise.
19984 (iwmmxt_wmiabbn): Likewise.
19985 (iwmmxt_wmiabtn): Likewise.
19986 (iwmmxt_wmiatbn): Likewise.
19987 (iwmmxt_wmiattn): Likewise.
19988 (iwmmxt_wmiawbb): Likewise.
19989 (iwmmxt_wmiawbt): Likewise.
19990 (iwmmxt_wmiawtb): Likewise.
19991 (iwmmxt_wmiawtt): Likewise.
19992 (iwmmxt_wmiawbbn): Likewise.
19993 (iwmmxt_wmiawbtn): Likewise.
19994 (iwmmxt_wmiawtbn): Likewise.
19995 (iwmmxt_wmiawttn): Likewise.
19996 (iwmmxt_wmerge): Likewise.
19997 (iwmmxt_tandc<mode>3): Likewise.
19998 (iwmmxt_torc<mode>3): Likewise.
19999 (iwmmxt_torvsc<mode>3): Likewise.
20000 (iwmmxt_textrc<mode>3): Likewise.
20001 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
20002 (wmmxt_pack): Likewise.
20003 (wmmxt_mult_c1): Likewise.
20004 (wmmxt_mult_c2): Likewise.
20005 (wmmxt_alu_c1): Likewise.
20006 (wmmxt_alu_c2): Likewise.
20007 (wmmxt_alu_c3): Likewise.
20008 (wmmxt_transfer_c1): Likewise.
20009 (wmmxt_transfer_c2): Likewise.
20010 (wmmxt_transfer_c3): Likewise.
20011 (marvell_f_iwmmxt_wstr): Likewise.
20012 (marvell_f_iwmmxt_wldr): Likewise.
20014 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
20016 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
20018 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
20021 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
20022 * lra-constraints.c (need_for_split_p): Check call used hard regs
20023 living through calls.
20025 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
20026 call used regs for call insn.
20028 2013-06-28 Jakub Jelinek <jakub@redhat.com>
20031 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
20032 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
20034 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
20036 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
20038 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
20040 * lra-constraints.c (need_for_split_p): Check call used hard regs
20041 living through calls.
20043 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
20046 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
20047 to tie with any other modes. Eliminate Altivec vector mode tests,
20048 since these are a subset of ALTIVEC or VSX vector modes. Simplify
20049 code, to return 0 if testing MODE2 for a condition, if we've
20050 already tested MODE1 for the same condition.
20052 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
20054 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
20057 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
20059 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
20060 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
20062 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
20064 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
20066 (aarch64_symbolic_constant_p): Remove.
20067 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
20068 static. Fix line length and white space.
20069 (aarch64_symbolic_constant_p): Remove.
20070 * config/aarch64/predicates.md (aarch64_valid_symref):
20071 Use aarch64_classify_symbol_expression.
20073 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20075 * config/arm/constraints.md (Ts): New constraint.
20076 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
20078 (compare_scc): Use "Ts" constraint for operand 0.
20079 (ior_scc_scc): Likewise.
20080 (and_scc_scc): Likewise.
20081 (and_scc_scc_nodom): Likewise.
20082 (ior_scc_scc_cmp): Likewise for operand 7.
20083 (and_scc_scc_cmp): Likewise.
20084 * config/arm/thumb2.md (thumb2_movsi_insn):
20085 Add alternatives for 16-bit encodings.
20086 (thumb2_movhi_insn): Likewise.
20087 (thumb2_movsicc_insn): Likewise.
20088 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
20089 (thumb2_negscc): Use "Ts" constraint.
20090 Move mvn instruction outside cond_exec block.
20091 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
20092 for 16-bit encodings.
20094 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20096 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
20098 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
20099 (mulsi3subsi): Likewise.
20100 (mulsidi3adddi): Likewise.
20101 (mulsidi3_v6): Likewise.
20102 (umulsidi3_v6): Likewise.
20103 (umulsidi3adddi_v6): Likewise.
20104 (smulsi3_highpart_v6): Likewise.
20105 (umulsi3_highpart_v6): Likewise.
20106 (mulhisi3tb): Likewise.
20107 (mulhisi3bt): Likewise.
20108 (mulhisi3tt): Likewise.
20109 (maddhisi4): Likewise.
20110 (maddhisi4tb): Likewise.
20111 (maddhisi4tt): Likewise.
20112 (maddhidi4): Likewise.
20113 (maddhidi4tb): Likewise.
20114 (maddhidi4tt): Likewise.
20115 (zeroextractsi_compare0_scratch): Likewise.
20116 (insv_zero): Likewise.
20117 (insv_t2): Likewise.
20118 (anddi_notzesidi_di): Likewise.
20119 (anddi_notsesidi_di): Likewise.
20120 (andsi_notsi_si): Likewise.
20121 (iordi_zesidi_di): Likewise.
20122 (xordi_zesidi_di): Likewise.
20123 (andsi_iorsi3_notsi): Likewise.
20124 (smax_0): Likewise.
20125 (smax_m1): Likewise.
20126 (smin_0): Likewise.
20127 (not_shiftsi): Likewise.
20128 (unaligned_loadsi): Likewise.
20129 (unaligned_loadhis): Likewise.
20130 (unaligned_loadhiu): Likewise.
20131 (unaligned_storesi): Likewise.
20132 (unaligned_storehi): Likewise.
20133 (extv_reg): Likewise.
20134 (extzv_t2): Likewise.
20135 (divsi3): Likewise.
20136 (udivsi3): Likewise.
20137 (arm_zero_extendhisi2addsi): Likewise.
20138 (arm_zero_extendqisi2addsi): Likewise.
20139 (compareqi_eq0): Likewise.
20140 (arm_extendhisi2_v6): Likewise.
20141 (arm_extendqisi2addsi): Likewise.
20142 (arm_movt): Likewise.
20143 (thumb2_ldrd): Likewise.
20144 (thumb2_ldrd_base): Likewise.
20145 (thumb2_ldrd_base_neg): Likewise.
20146 (thumb2_strd): Likewise.
20147 (thumb2_strd_base): Likewise.
20148 (thumb2_strd_base_neg): Likewise.
20149 (arm_negsi2): Add alternative for 16-bit encoding.
20150 (arm_one_cmplsi2): Likewise.
20152 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20154 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
20155 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
20156 (movdfcc): Likewise.
20157 * config/arm/vfp.md (*thumb2_movsf_vfp):
20158 Disable predication for arm_restrict_it.
20159 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
20160 (*thumb2_movdfcc_vfp): Likewise.
20161 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
20162 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
20163 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
20164 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
20165 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
20166 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
20167 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
20168 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
20169 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
20170 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
20171 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
20172 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
20173 Disable predication for arm_restrict_it.
20175 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
20177 * config/i386/bmiintrin.h (_bextr_u32): New.
20178 (_bextr_u64): Ditto.
20180 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
20182 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
20183 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
20184 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
20185 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
20186 * config/mips/n32-elf.h: ...this new file.
20188 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
20191 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
20192 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
20194 2013-06-27 Catherine Moore <clm@codesourcery.com>
20196 * config/mips/mips-tables.opt: Regenerate.
20197 * config/mips/mips-cpus.def: Add m14ke and m14kec.
20198 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
20199 * doc/invoke.texi: Add -m14kc.
20201 2013-06-27 Jakub Jelinek <jakub@redhat.com>
20204 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
20205 constraints of operand 1 and 2.
20208 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
20209 to match RTL canonicalization. Swap predicates and
20210 constraints of operand 1 and 2.
20212 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
20214 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
20215 Process OP_INOUT regs for splitting too.
20217 2013-06-27 Jakub Jelinek <jakub@redhat.com>
20219 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
20220 decl before the loop, initialize to NULL.
20221 (vectorizable_load): Initialize ptr_incr to NULL.
20223 2013-06-27 Martin Jambor <mjambor@suse.cz>
20226 * ipa-ref.h (ipa_maybe_record_reference): Declare.
20227 * ipa-ref.c (ipa_maybe_record_reference): New function.
20228 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
20229 * ipa-cp.c (create_specialized_node): Record potential references from
20231 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
20233 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
20235 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
20236 parameter 'mode' of type 'enum machine_mode mode'; change to pass
20237 'mode' to force_reg.
20238 (aarch64_add_offset): Update calls to aarch64_force_temporary.
20239 (aarch64_expand_mov_immediate): Likewise.
20241 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
20243 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
20244 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
20246 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20248 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
20249 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
20250 (struct machine_function): Add tbegin_p.
20251 (s390_canonicalize_comparison): Fold CC mode compares to
20252 conditional jump if possible.
20253 (s390_emit_jump): Return the emitted jump.
20254 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
20255 Handle CCRAWmode compares.
20256 (s390_option_override): Default to -mhtm if available.
20257 (s390_reg_clobbered_rtx): Handle floating point regs as well.
20258 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
20259 FPRs instead of df_regs_ever_live_p.
20260 (s390_optimize_nonescaping_tx): New function.
20261 (s390_init_frame_layout): Extend clobbered_regs array to cover
20263 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
20264 (s390_expand_tbegin): New function.
20265 (enum s390_builtin): New enum definition.
20266 (code_for_builtin): New array definition.
20267 (s390_init_builtins): New function.
20268 (s390_expand_builtin): New function.
20269 (TARGET_INIT_BUILTINS): Define.
20270 (TARGET_EXPAND_BUILTIN): Define.
20271 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
20272 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
20273 (s390_alc_comparison): Likewise.
20274 * config/s390/s390-modes.def: Add CCRAWmode.
20275 * config/s390/s390.h (processor_flags): Add PF_TX.
20276 (TARGET_CPU_HTM): Define macro.
20277 (TARGET_HTM): Define macro.
20278 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
20279 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
20280 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
20281 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
20282 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
20283 (TBEGIN_MASK, TBEGINC_MASK): New constants.
20284 ("*cc_to_int"): Move up.
20285 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
20286 constants other than 0.
20287 ("*ccraw_to_int"): New insn and splitter definition.
20288 ("tbegin", "tbegin_nofloat", "tbegin_retry")
20289 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
20290 ("tx_assist"): New expander.
20291 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
20292 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
20293 * config/s390/s390.opt: Add -mhtm option.
20294 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
20295 * config/s390/htmxlintrin.h: New file.
20296 * config/s390/htmintrin.h: New file.
20297 * config/s390/s390intrin.h: New file.
20298 * doc/extend.texi: Document htm builtins.
20299 * config.gcc: Add the new header files to extra_headers.
20301 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
20303 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
20304 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
20306 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
20307 Pat Haugen <pthaugen@us.ibm.com>
20308 Peter Bergner <bergner@vnet.ibm.com>
20310 * config/rs6000/power8.md: New.
20311 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
20312 setting for power8 entry.
20313 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
20314 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
20315 test for Power4/Power5 only.
20316 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
20318 (force_new_group): Adjust comment.
20319 * config/rs6000/rs6000.md: Include power8.md.
20321 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
20323 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
20324 * config/arm/arm-protos.h (arm_max_conditional_execute): New
20326 (tune_params): Update comment.
20327 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
20328 (arm_max_conditional_execute): New function.
20329 (thumb2_final_prescan_insn): Use max_insn_skipped and
20330 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
20332 2013-06-25 Jakub Jelinek <jakub@redhat.com>
20334 PR tree-optimization/57705
20335 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
20336 SSA_NAME step, provided that it is not defined inside the loop.
20337 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
20338 (get_initial_def_for_induction): Handle SSA_NAME IV step.
20340 2013-06-25 Martin Jambor <mjambor@suse.cz>
20342 PR middle-end/57670
20343 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
20344 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
20346 (ipa_note_param_call): Initialize member_ptr flag.
20347 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
20348 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
20349 (ipa_write_indirect_edge_info): Stream member_ptr flag.
20350 (ipa_read_indirect_edge_info): Likewise.
20352 2013-06-25 Richard Biener <rguenther@suse.de>
20354 PR middle-end/56977
20355 * passes.c (init_optimization_passes): Move pass_fold_builtins
20356 and pass_dce earlier with -Og.
20358 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
20360 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
20361 <BIT_FIELD_REF>: Remove trailing TAB.
20362 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
20365 2013-06-24 Martin Jambor <mjambor@suse.cz>
20367 PR tree-optimization/57358
20368 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
20369 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
20370 (ipa_analyze_params_uses): Generate pessimistic info when true.
20372 2013-06-24 Martin Jambor <mjambor@suse.cz>
20374 PR tree-optimization/57539
20375 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
20376 global.inlined_to of the new node to it. All callers changed.
20377 * ipa-inline-transform.c (clone_inlined_nodes): New variable
20378 inlining_into, pass it to cgraph_clone_node.
20379 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
20380 ipa_free_edge_args_substructures.
20381 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
20382 rdesc linked list. Do not assert rdesc edges have inlined caller.
20383 Assert we have found an rdesc in the rdesc list.
20385 2013-06-24 Richard Biener <rguenther@suse.de>
20387 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
20388 (pointer_set_lookup): Declare.
20389 (class pointer_map): New template class implementing a
20390 generic pointer to T map.
20391 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
20392 pointer_map<T>::contains, pointer_map<T>::insert,
20393 pointer_map<T>::traverse): New functions.
20394 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
20395 (pointer_set_lookup): New function.
20396 (pointer_set_contains): Use pointer_set_lookup.
20397 (pointer_set_insert): Likewise.
20398 (insert_aux): Remove.
20399 (struct pointer_map_t): Embed a pointer_set_t.
20400 (pointer_map_create): Adjust.
20401 (pointer_map_destroy): Likewise.
20402 (pointer_map_contains): Likewise.
20403 (pointer_map_insert): Likewise.
20404 (pointer_map_traverse): Likewise.
20405 * tree-streamer.h (struct streamer_tree_cache_d): Use a
20406 pointer_map<unsigned> instead of a pointer_map_t.
20407 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
20408 (streamer_tree_cache_lookup): Likewise.
20409 (streamer_tree_cache_create): Likewise.
20410 (streamer_tree_cache_delete): Likewise.
20411 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
20412 pointer_map<unsigned> instead of a pointer_map_t.
20413 (lto_init_tree_ref_encoder): Adjust.
20414 (lto_destroy_tree_ref_encoder): Likewise.
20415 * lto-section-out.c (lto_output_decl_index): Likewise.
20416 (lto_record_function_out_decl_state): Likewise.
20417 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
20419 2013-06-24 Richard Biener <rguenther@suse.de>
20421 PR tree-optimization/57488
20422 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
20424 2013-06-24 Alan Modra <amodra@gmail.com>
20426 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
20427 (gen_easy_altivec_constant): Likewise.
20428 * config/rs6000/predicates.md (easy_vector_constant_add_self,
20429 easy_vector_constant_msb): Likewise.
20431 2013-06-23 Jakub Jelinek <jakub@redhat.com>
20434 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
20435 add missing return true.
20437 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
20440 * config/sh/predicates.md (general_extend_operand): Invoke
20441 general_movsrc_operand for memory operands.
20442 (general_movsrc_operand): Allow reg+reg addressing, do not use
20443 general_operand for memory operands.
20445 2013-06-23 Sriraman Tallam <tmsriram@google.com>
20447 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
20448 when current target options does not apply.
20449 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
20450 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
20451 * config/i386/bmiintrin.h: Pass appropriate target
20452 attributes to header.
20453 * config/i386/mmintrin.h: Ditto.
20454 * config/i386/nmmintrin.h: Ditto.
20455 * config/i386/avx2intrin.h: Ditto.
20456 * config/i386/fxsrintrin.h: Ditto.
20457 * config/i386/tbmintrin.h: Ditto.
20458 * config/i386/xsaveintrin.h: Ditto.
20459 * config/i386/f16cintrin.h: Ditto.
20460 * config/i386/xtestintrin.h: Ditto.
20461 * config/i386/xsaveoptintrin.h: Ditto.
20462 * config/i386/bmi2intrin.h: Ditto.
20463 * config/i386/lzcntintrin.h: Ditto.
20464 * config/i386/smmintrin.h: Ditto.
20465 * config/i386/wmmintrin.h: Ditto.
20466 * config/i386/x86intrin.h: Remove all header include guards.
20467 * config/i386/prfchwintrin.h: Ditto.
20468 * config/i386/pmmintrin.h: Ditto.
20469 * config/i386/tmmintrin.h: Ditto.
20470 * config/i386/xmmintrin.h: Ditto.
20471 * config/i386/popcntintrin.h: Ditto.
20472 * config/i386/rdseedintrin.h: Ditto.
20473 * config/i386/ammintrin.h: Ditto.
20474 * config/i386/emmintrin.h: Ditto.
20475 * config/i386/immintrin.h: Remove all header include guards.
20476 * config/i386/fma4intrin.h: Ditto.
20477 * config/i386/lwpintrin.h: Ditto.
20478 * config/i386/xopintrin.h: Ditto.
20479 * config/i386/ia32intrin.h: Ditto.
20480 * config/i386/avxintrin.h: Ditto.
20481 * config/i386/rtmintrin.h: Ditto.
20482 * config/i386/fmaintrin.h: Ditto.
20483 * config/i386/mm3dnow.h: Ditto.
20485 2013-06-22 Sriraman Tallam <tmsriram@google.com>
20487 * common/config/i386/i386-common.c: Handle LZCNT.
20489 2013-06-22 Andi Kleen <ak@linux.intel.com>
20491 * doc/extend.texi: Use __atomic_store_n instead of
20492 __atomic_store in HLE example.
20494 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
20496 * config/sh/sh.c: Remove <cstdlib> workaround.
20498 2013-06-21 Andi Kleen <ak@linux.intel.com>
20500 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
20502 2013-06-21 Andi Kleen <ak@linux.intel.com>
20504 * doc/extend.texi: Document that __atomic_clear and
20505 __atomic_test_and_set should only be used with bool.
20507 2013-06-20 Jan Hubicka <jh@suse.cz>
20509 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
20510 types_same_for_odr.
20511 * tree.c (decls_same_for_odr): New function.
20512 (same_for_edr): New function.
20513 (types_same_for_odr): New function.
20514 (get_binfo_at_offset): Use it.
20515 * tree.h (types_same_for_odr): Declare.
20517 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
20518 Jason Merrill <jason@redhat.com>
20520 * system.h: Include <cstdlib> as well as <stdlib.h>.
20522 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
20525 * config/i386/i386.c (construct_container): Report error if
20526 long double is used with disabled x87 float returns.
20528 2013-06-20 Jan Hubicka <jh@suse.cz>
20530 * lto-cgraph.c (input_symtab): Do not set cgraph state.
20532 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
20534 PR rtl-optimization/57425
20535 PR rtl-optimization/57569
20536 * alias.c (write_dependence_p): Remove parameters mem_mode and
20537 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
20538 Changed all callers.
20539 (canon_anti_dependence): Get comments and semantics in sync.
20540 Add parameter mem_canonicalized. Changed all callers.
20541 * rtl.h (canon_anti_dependence): Update prototype.
20543 2013-06-20 Richard Biener <rguenther@suse.de>
20545 * data-streamer-in.c (streamer_read_uhwi): Optimize single
20546 byte case, inline streamer_read_uchar and defer section
20549 2013-06-20 Richard Biener <rguenther@suse.de>
20551 PR tree-optimization/57584
20552 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
20553 SSA names into the expanded expression that take part in
20554 abnormal coalescing.
20556 2013-06-19 Sharad Singhai <singhai@google.com>
20558 * gcov.c (print_usage): Handle new option.
20559 (process_args): Ditto.
20560 (get_gcov_intermediate_filename): New function.
20561 (output_intermediate_file): New function.
20562 (output_gcov_file): New function
20563 (generate_results): Handle new option.
20564 (release_function): Relase demangled name.
20565 (read_graph_file): Handle demangled name.
20566 (output_lines): Ditto.
20567 * doc/gcov.texi: Document gcov intermediate format.
20569 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
20572 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
20573 (lra_emit_add): Use the functions. Add comment about Y as an
20576 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
20579 * collect2.c (collect_atexit): New.
20580 (collect_exit): Delete.
20581 (main): Register collect_atexit with atexit.
20582 (collect_wait): Change collect_exit to exit.
20584 * collect2.h (collect_exit): Delete.
20585 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
20587 2013-06-19 Wei Mi <wmi@google.com>
20589 PR rtl-optimization/57518
20590 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
20591 if regno is used in paradoxical subreg.
20592 (update_equiv_regs): Check pdx_subregs[regno] before
20593 set a reg to be equivalent with a mem.
20595 2013-06-19 Matthias Klose <doko@ubuntu.com>
20598 * file-find.h (find_a_file): Add a mode parameter.
20599 * file-find.c (find_a_file): Likewise.
20600 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
20601 with X_OK for the executables.
20602 * collect2.c (main): Call find_a_file with X_OK.
20604 2013-06-19 Steve Ellcey <sellcey@mips.com>
20607 * config/mips/mips.md (casesi_internal_mips16_<mode>):
20608 Use NEXT_INSN instead of next_real_insn.
20610 2013-06-19 Jan Hubicka <jh@suse.cz>
20612 * cgraph.h (const_value_known_p): Replace by ...
20613 (ctor_for_folding): .. this one.
20614 * cgraphunit.c (process_function_and_variable_attributes): Use it.
20615 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
20616 * expr.c (expand_expr_real_1): Likewise.
20617 (string_constant): Likewise.
20618 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
20619 * ipa.c (process_references): Likewise.
20620 (symtab_remove_unreachable_nodes): Likewise.
20621 * ipa-inline-analysis.c (param_change_prob): Likewise.
20622 * gimple-fold.c (canonicalize_constructor_val): Likewise.
20623 (get_base_constructor): Likwise.
20624 * varpool.c (varpool_remove_node): Likewise.
20625 (varpool_remove_initializer): LIkewise.
20626 (dump_varpool_node): LIkwise.
20627 (const_value_known_p): Rewrite to ...
20628 (ctor_for_folding): ... this one.
20630 2013-06-19 Jakub Jelinek <jakub@redhat.com>
20633 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
20634 PERSONALITY in $PATH derived prefixes.
20636 2013-06-19 Jeff Law <law@redhat.com>
20638 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
20641 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
20642 (simplify_bitwise_binary): Use it to simpify certain binary ops on
20645 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
20647 * config/arm/vfp.md: Move VFP instruction classification documentation
20649 * config/arm/arm.md: ... here. Update instruction classification
20652 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
20654 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
20655 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
20656 pattern. Use more efficient sequences on ARMv5 and Thumb2.
20658 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
20661 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
20662 with NEXT_INSN. Use tablejump_p to check for jump table data
20665 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
20668 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
20669 that now in C++ the value is correct per the C++ standards.
20671 2013-06-19 Richard Biener <rguenther@suse.de>
20673 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
20674 for global context.
20676 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20679 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20682 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
20683 with next_active_insn.
20685 2013-06-18 Sriraman Tallam <tmsriram@google.com>
20687 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
20688 functions are inlined during failures to flag an error.
20689 * tree-inline.c (expand_call_inline): Allow the error to be flagged
20690 in early inline pass.
20692 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
20694 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
20697 2013-06-18 Julian Brown <julian@codesourcery.com>
20699 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
20700 Permit virtual register pre-reload if !strict.
20701 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
20703 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
20705 * config/arm/neon.md (movmisalign<mode>): Use
20706 neon_perm_struct_or_reg_operand instead of
20707 neon_struct_or_register_operand.
20708 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
20709 neon_permissive_struct_operand instead of neon_struct_operand.
20710 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
20711 neon_vector_mem_operand.
20712 * config/arm/predicates.md (neon_struct_operand): Adjust call to
20713 neon_vector_mem_operand.
20714 (neon_permissive_struct_operand): New.
20715 (neon_struct_or_register_operand): Rename to...
20716 (neon_perm_struct_or_reg_operand): This. Adjust call to
20717 neon_vector_mem_operand.
20719 2013-06-18 Richard Biener <rguenther@suse.de>
20721 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
20722 * lto-streamer.h: Include pointer-set.h.
20723 (struct lto_decl_slot): Remove.
20724 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
20725 Remove next_index entry.
20726 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
20727 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
20728 (lto_init_tree_ref_encoder): Adjust.
20729 (lto_destroy_tree_ref_encoder): Likewise.
20730 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
20731 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
20732 (lto_output_decl_index): Adjust.
20733 (lto_new_out_decl_state): Likewise.
20734 (lto_record_function_out_decl_state): Likewise.
20735 * lto-streamer-out.c (copy_function): Likewise.
20737 2013-06-18 Richard Biener <rguenther@suse.de>
20739 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
20740 * cgraphunit.c: Include cfgloop.h.
20741 (init_lowered_empty_function): Initialize the loop tree.
20742 (assemble_thunk): Insert new BBs into loops.
20744 2013-06-18 Richard Biener <rguenther@suse.de>
20746 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
20747 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
20748 the map from cache entry to cache index optional.
20749 (streamer_tree_cache_replace_tree): Adjust accordingly.
20750 (streamer_tree_cache_append): Likewise.
20751 (streamer_tree_cache_delete): Likewise.
20752 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
20753 streamer cache map from cache entry to cache index.
20754 * lto-streamer-out.c (create_output_block): Adjust.
20756 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
20758 * config/arm/arm.md (attribute "insn"): Move multiplication and
20759 division attributes to...
20760 (attribute "type"): ... here. Remove mult.
20761 (attribute "mul32"): New attribute.
20762 (attribute "mul64"): Add umaal.
20763 (*arm_mulsi3): Update attributes.
20764 (*arm_mulsi3_v6): Likewise.
20765 (*thumb_mulsi3): Likewise.
20766 (*thumb_mulsi3_v6): Likewise.
20767 (*mulsi3_compare0): Likewise.
20768 (*mulsi3_compare0_v6): Likewise.
20769 (*mulsi_compare0_scratch): Likewise.
20770 (*mulsi_compare0_scratch_v6): Likewise.
20771 (*mulsi3addsi): Likewise.
20772 (*mulsi3addsi_v6): Likewise.
20773 (*mulsi3addsi_compare0): Likewise.
20774 (*mulsi3addsi_compare0_v6): Likewise.
20775 (*mulsi3addsi_compare0_scratch): Likewise.
20776 (*mulsi3addsi_compare0_scratch_v6): Likewise.
20777 (*mulsi3subsi): Likewise.
20778 (*mulsidi3adddi): Likewise.
20779 (*mulsi3addsi_v6): Likewise.
20780 (*mulsidi3adddi_v6): Likewise.
20781 (*mulsidi3_nov6): Likewise.
20782 (*mulsidi3_v6): Likewise.
20783 (*umulsidi3_nov6): Likewise.
20784 (*umulsidi3_v6): Likewise.
20785 (*umulsidi3adddi): Likewise.
20786 (*umulsidi3adddi_v6): Likewise.
20787 (*smulsi3_highpart_nov6): Likewise.
20788 (*smulsi3_highpart_v6): Likewise.
20789 (*umulsi3_highpart_nov6): Likewise.
20790 (*umulsi3_highpart_v6): Likewise.
20791 (mulhisi3): Likewise.
20792 (*mulhisi3tb): Likewise.
20793 (*mulhisi3bt): Likewise.
20794 (*mulhisi3tt): Likewise.
20795 (maddhisi4): Likewise.
20796 (*maddhisi4tb): Likewise.
20797 (*maddhisi4tt): Likewise.
20798 (maddhidi4): Likewise.
20799 (*maddhidi4tb): Likewise.
20800 (*maddhidi4tt): Likewise.
20801 (divsi3): Likewise.
20802 (udivsi3): Likewise.
20803 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
20804 (thumb2_mulsi_short_compare0): Likewise.
20805 (thumb2_mulsi_short_compare0_scratch): Likewise.
20806 * config/arm/arm1020e.md (1020mult1): Update attribute change.
20807 (1020mult2): Likewise.
20808 (1020mult3): Likewise.
20809 (1020mult4): Likewise.
20810 (1020mult5): Likewise.
20811 (1020mult6): Likewise.
20812 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
20814 (cortex_a15_mult64): Likewise.
20815 (cortex_a15_sdiv): Likewise.
20816 (cortex_a15_udiv): Likewise.
20817 * config/arm/arm1026ejs.md (mult1): Update attribute change.
20823 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
20824 (pj4_ir_div): Likewise.
20825 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
20826 (11_mult2): Likewise.
20827 (11_mult3): Likewise.
20828 (11_mult4): Likewise.
20829 (11_mult5): Likewise.
20830 (11_mult6): Likewise.
20831 (11_mult7): Likewise.
20832 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
20833 (cortex_a8_mla): Likewise.
20834 (cortex_a8_mull): Likewise.
20835 (cortex_a8_smulwy): Likewise.
20836 (cortex_a8_smlald): Likewise.
20837 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
20838 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
20839 (cortex_r4_mul_3): Likewise.
20840 (cortex_r4_mla_4): Likewise.
20841 (cortex_r4_mla_3): Likewise.
20842 (cortex_r4_smlald): Likewise.
20843 (cortex_r4_mull): Likewise.
20844 (cortex_r4_sdiv): Likewise.
20845 (cortex_r4_udiv): Likewise.
20846 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
20847 (cortex_a7_idiv): Likewise.
20848 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
20849 (9_mult2): Likewise.
20850 (9_mult3): Likewise.
20851 (9_mult4): Likewise.
20852 (9_mult5): Likewise.
20853 (9_mult6): Likewise.
20854 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
20855 (cortex_a53_sdiv): Likewise.
20856 (cortex_a53_udiv): Likewise.
20857 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
20858 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
20859 (mp626_mult2): Likewise.
20860 (mp626_mult3): Likewise.
20861 (mp626_mult4): Likewise.
20862 * config/arm/fa526.md (526_mult1): Update attribute change.
20863 (526_mult2): Likewise.
20864 * config/arm/arm-generic.md (mult): Update attribute change.
20865 (mult_ldsched_strongarm): Likewise.
20866 (mult_ldsched): Likewise.
20867 (multi_cycle): Likewise.
20868 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
20869 * config/arm/fa606te.md (606te_mult1): Update attribute change.
20870 (606te_mult2): Likewise.
20871 (606te_mult3): Likewise.
20872 (606te_mult4): Likewise.
20873 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
20874 (cortex_a9_mac16): Likewise.
20875 (cortex_a9_multiply): Likewise.
20876 (cortex_a9_mac): Likewise.
20877 (cortex_a9_multiply_long): Likewise.
20878 * config/arm/fa626te.md (626te_mult1): Update attribute change.
20879 (626te_mult2): Likewise.
20880 (626te_mult3): Likewise.
20881 (626te_mult4): Likewise.
20883 2013-06-18 Richard Biener <rguenther@suse.de>
20886 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
20888 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20891 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
20892 with next_active_insn.
20894 2013-06-18 Alan Modra <amodra@gmail.com>
20896 * config/rs6000/rs6000.h (enum data_align): New.
20897 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
20898 (DATA_ABI_ALIGNMENT): Define.
20899 (CONSTANT_ALIGNMENT): Correct comment.
20900 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
20901 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
20903 2013-06-17 David Malcolm <dmalcolm@redhat.com>
20905 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
20906 ATTRIBUTE_UNUSED marking.
20908 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
20910 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
20911 alternative and update.
20912 (aarch64_dup_lanedi): Delete.
20913 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
20914 * config/aarch64/aarch64-simd-builtins.def: Update.
20916 2013-06-17 Richard Biener <rguenther@suse.de>
20918 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
20919 (lto_input_scc): Declare.
20920 (lto_input_tree_1): Likewise.
20921 (struct lto_stats_d): Add num_tree_bodies_output and
20922 num_pickle_refs_output.
20923 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
20924 (lto_read_tree_1): Split out from ...
20925 (lto_read_tree): ... this.
20926 (lto_input_scc): New function.
20927 (lto_input_tree_1): Split out from ...
20928 (lto_input_tree): ... this. Handle LTO_tree_scc.
20929 (lto_data_in_create): Create the streamer cache without hashes.
20930 * lto-streamer-out.c (create_output_block): Create the streamer
20931 cache with hashes when not doing WPA.
20932 (lto_write_tree_1): Split out from ...
20933 (lto_write_tree): ... this.
20934 (get_symbol_initial_value): New function.
20935 (lto_output_tree_1): Split out from ...
20936 (lto_output_tree): ... this. Write trees as series of SCCs
20937 using a DFS walk via DFS_write_tree.
20938 (struct sccs, struct scc_entry): New types.
20939 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
20940 (DFS_write_tree_body): New function.
20941 (DFS_write_tree): Likewise.
20942 (hash_tree): Likewise.
20943 (scc_entry_compare): Likewise.
20944 (hash_scc): Likewise.
20945 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
20946 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
20947 TREE_CHAIN as regular reference.
20948 (streamer_read_integer_cst): Remove.
20949 (streamer_get_pickled_tree): Adjust.
20950 * tree-streamer-out.c (streamer_write_chain): Disable streaming
20951 of DECL_EXTERNALs in BLOCK_VARS for now.
20952 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
20954 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
20955 Add hash value argument and record that if hashes are recorded
20957 (streamer_tree_cache_insert_1): Adjust.
20958 (streamer_tree_cache_insert): Likewise.
20959 (streamer_tree_cache_insert_at): Rename to ...
20960 (streamer_tree_cache_replace_tree): ... this and adjust.
20961 (streamer_tree_cache_append): Adjust.
20962 (record_common_node): Likewise.
20963 (streamer_tree_cache_create): Add argument whether to
20964 record hash values together with trees.
20965 (streamer_tree_cache_delete): Adjust.
20966 * tree-streamer.h (struct streamer_tree_cache_d): Add
20968 (streamer_read_integer_cst): Remove.
20969 (streamer_tree_cache_insert): Adjust.
20970 (streamer_tree_cache_append): Likewise.
20971 (streamer_tree_cache_insert_at): Rename to ...
20972 (streamer_tree_cache_replace_tree): ... this and adjust.
20973 (streamer_tree_cache_create): Add argument whether to record hashes.
20974 (streamer_tree_cache_get): Rename to ...
20975 (streamer_tree_cache_get_tree): ... this.
20976 (streamer_tree_cache_get_hash): New function.
20977 * tree.c (cache_integer_cst): New function.
20978 * tree.h (cache_integer_cst): Declare.
20979 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
20980 * lto-symtab.c (lto_varpool_replace_node): Only release
20981 DECL_INITIAL of non-prevailing decls.
20982 * varpool.c (varpool_remove_initializer): Do not release
20983 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
20985 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
20987 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
20988 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
20989 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
20990 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
20991 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
20992 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
20993 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
20994 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
20995 instead of TARGET_64BIT.
20996 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
20997 Require ISA_HAS_<D>DIV.
20999 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
21001 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
21002 (mips*-*-linux*): Move default with_llsc setting to where other
21004 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
21006 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
21007 Likewise. Remove default with_tune setting. Move default float
21008 setting to its own block. Handle with_llsc in the same block as above.
21010 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
21012 PR rtl-optimization/57425
21013 PR rtl-optimization/57569
21014 * alias.c (write_dependence_p): Add new parameters mem_mode,
21015 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
21016 Changed all callers.
21017 (canon_anti_dependence): New function.
21018 * cse.c (check_dependence): Use canon_anti_dependence.
21019 * cselib.c (cselib_invalidate_mem): Likewise.
21020 * rtl.h (canon_anti_dependence): Declare.
21022 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
21024 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
21025 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
21026 ".set mips3" for 64-bit targets.
21028 2013-06-15 Dehao Chen <dehao@google.com>
21030 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
21031 * gimple-low.c (gimple_check_call_matching_types): Likewise.
21032 (gimple_check_call_args): Likewise.
21033 * value-prof.c (check_ic_target): Likewise.
21034 * ipa-inline.c (early_inliner): Likewise.
21035 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
21036 * cgraph.c (cgraph_create_edge_1): Likewise.
21037 (cgraph_make_edge_direct): Likewise.
21039 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21042 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
21043 rs6000_output_move_128bit to handle emitting quad memory
21044 operations. Set attribute length to 8 bytes.
21046 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
21048 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
21050 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
21051 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
21052 (aarch64_<su>mlsl<mode>): Likewise.
21054 2013-06-14 Mike Stump <mikestump@comcast.net>
21056 * Makefile.in (TARGET_H): Add insn-codes.h.
21058 2013-06-14 Alan Modra <amodra@gmail.com>
21060 PR middle-end/57134
21061 PR middle-end/57586
21062 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
21063 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
21064 bitfield expansion when EXPAND_MEMORY.
21065 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
21067 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
21069 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
21070 test for clearing quad memory on 32-bit later.
21072 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
21074 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
21075 (fold_negate_expr): Likewise.
21076 (fold_real_zero_addition_p): Handle vectors.
21077 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
21079 2013-06-14 Alan Modra <amodra@gmail.com>
21081 * varasm.c (force_const_mem): Revert 2013-06-07 change.
21083 2013-06-13 Jan Hubicka <jh@suse.cz>
21085 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
21086 Local comdats are not externally visible.
21087 * symtab.c (dump_symtab_base): Dump externally visible.
21088 (verify_symtab_base): Verify back links in the symtab hash.
21090 2013-06-13 Bin Cheng <bin.cheng@arm.com>
21092 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
21093 CONVERT_EXPR as equal nodes.
21095 2013-06-13 Bin Cheng <bin.cheng@arm.com>
21097 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
21099 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
21101 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
21102 Generalize to complex and vector.
21103 * tree.c (build_all_ones_cst): New function.
21104 * tree.h (build_all_ones_cst): Declare it.
21106 2013-06-13 Alan Modra <amodra@gmail.com>
21108 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
21109 * config/rs6000/rs6000.md (signbittf2): New insn.
21110 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
21111 (abstf2_internal, cmptf_internal2): Likewise.
21112 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
21114 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21115 Pat Haugen <pthaugen@us.ibm.com>
21116 Peter Bergner <bergner@vnet.ibm.com>
21118 * config/rs6000/rs6000.c (emit_load_locked): Add support for
21119 power8 byte, half-word, and quad-word atomic instructions.
21120 (emit_store_conditional): Likewise.
21121 (rs6000_expand_atomic_compare_and_swap): Likewise.
21122 (rs6000_expand_atomic_op): Likewise.
21124 * config/rs6000/sync.md (larx): Add new modes for power8.
21126 (AINT): New mode iterator to include TImode as well as normal
21127 integer modes on power8.
21128 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
21129 that VSX registers are not considered. Use AINT mode iterator
21130 instead of INT1 to allow inclusion of quad word atomic operations
21132 (load_locked<mode>): Likewise.
21133 (store_conditional<mode>): Likewise.
21134 (atomic_compare_and_swap<mode>): Likewise.
21135 (atomic_exchange<mode>): Likewise.
21136 (atomic_nand<mode>): Likewise.
21137 (atomic_fetch_<fetchop_name><mode>): Likewise.
21138 (atomic_nand_fetch<mode>): Likewise.
21139 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
21141 (ATOMIC): On power8, add QImode, HImode modes.
21142 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
21143 modes that promote to SImode.
21144 (load_lockedti): Convert TImode arguments to PTImode, so that we
21145 get a guaranteed even/odd register pair.
21146 (load_lockedpti): Likewise.
21147 (store_conditionalti): Likewise.
21148 (store_conditionalpti): Likewise.
21150 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
21151 atomic load/store instructions.
21154 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
21156 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
21158 (insn_count): New attribute, with most cases extracted from...
21159 (length): ...here. Redefine most cases in terms of insn_count.
21160 (single_insn): Delete.
21161 (can_delay): Use insn_count to check for single instructions.
21162 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
21163 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
21164 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
21165 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
21166 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
21167 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
21168 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
21169 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
21170 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
21171 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
21172 rather than "length".
21173 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
21174 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
21175 Use "insn_count" rather than "length".
21176 * config/mips/mips-dsp.md
21177 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
21178 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
21181 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
21183 PR tree-optimization/57361
21184 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
21186 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
21188 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
21190 (aarch64_simd_combine<mode>): New instruction expansion.
21191 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
21192 function prototype.
21193 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
21194 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
21196 2013-06-12 Jan Hubicka <jh@suse.cz>
21198 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
21199 decl has when in streaming stage.
21200 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
21201 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
21203 2013-06-12 Roland Stigge <stigge@antcom.de>
21206 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
21208 2013-06-12 Jakub Jelinek <jakub@redhat.com>
21210 PR tree-optimization/57537
21211 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
21212 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
21214 2013-06-12 Richard Biener <rguenther@suse.de>
21216 * data-streamer.h (streamer_write_char_stream): CSE
21217 obs->current_pointer.
21218 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
21219 streamer_write_char_stream manually and optimize the resulting loop.
21220 (streamer_write_hwi_stream): Likewise.
21222 2013-06-12 Jan Hubicka <jh@suse.cz>
21224 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
21225 * cgraph.h (varpool_create_empty_node): Declare.
21226 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
21228 * symtab.c (symtab_unregister_node): Be lax about missin entries
21230 (symtab_get_node): Update comment.
21231 * varpool.c (varpool_create_empty_node): Break out from ...
21232 (varpool_node_for_decl): ... here.
21233 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
21235 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
21237 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
21238 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
21239 part. Use straight-line flow at the end.
21240 <COMPONENT_REF>: Remove superfluous else.
21241 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
21243 2013-06-12 Jakub Jelinek <jakub@redhat.com>
21246 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
21247 target hook even for !TREE_PUBLIC decls. If no resolution info
21248 is available, return false for common and external decls.
21250 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
21252 * config/rl78/constraints.md (U): New constraint.
21253 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
21256 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
21259 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
21260 to allow returning address to AT_PLATFORM name.
21262 2013-06-11 Jan Hubicka <jh@suse.cz>
21264 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
21265 * cgraph.h (symtab_node_base): Add weakref flag.
21266 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
21267 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
21268 (output_weakrefs): Use weakref flag.
21269 * fold-const.c (simple_operand_p): Handle WEAK.
21270 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
21271 * ipa.c (varpool_externally_visible_p): Drop weakref.
21272 (function_and_variable_visibility): Update comment; fix weakref
21273 sanity checks; do not clear DECL_WEAK on them.
21274 * lto-cgraph.c (lto_output_node): update.
21275 (lto_output_varpool_node): Update.
21276 (input_overwrite_node): Update.
21277 (input_node): Update.
21278 (input_varpool_node): Update.
21279 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
21280 (lto_symtab_merge_symbols): Add sanity check.
21281 (lto_symtab_prevailing_decl): Do not special case weakrefs.
21282 * passes.c (rest_of_decl_compilation): Set static flag, too.
21283 * symtab.c (dump_symtab_base): Dump weakref.
21284 (verify_symtab_base): Sanity check weakrefs.
21285 (symtab_make_decl_local): Remove duplicated code.
21286 (symtab_alias_ultimate_target): Simplify.
21287 * varpool.c (varpool_create_variable_alias): Set weakref flag.
21289 2013-06-11 Tom de Vries <tom@codesourcery.com>
21291 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
21292 sequence_vect == NULL.
21294 2013-06-11 DJ Delorie <dj@redhat.com>
21296 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
21297 (rl78_unwind_word_mode): New.
21299 2013-06-11 David Malcolm <dmalcolm@redhat.com>
21301 * final.c (debug_prefix_maps): Make static.
21303 2013-06-11 David Malcolm <dmalcolm@redhat.com>
21305 * function.c (initial_trampoline): Remove stray copy.
21307 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
21309 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
21311 2013-06-11 Martin Jambor <mjambor@suse.cz>
21313 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
21314 within bounds at the beginning of the function.
21316 2013-06-11 Alan Modra <amodra@gmail.com>
21318 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
21320 (get_named_section): Don't NULL !DECL_P decl.
21322 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
21324 * doc/invoke.texi (core-avx2): Document.
21326 (atom): Updated with MOVBE.
21328 2013-06-11 Richard Biener <rguenther@suse.de>
21330 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
21332 2013-06-11 Anton Blanchard <anton@samba.org>
21334 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
21335 correct shift value in little-endian mode.
21337 2013-06-11 Jakub Jelinek <jakub@redhat.com>
21340 * varasm.c (get_variable_align): Move #endif to the right place.
21342 2013-06-10 Cary Coutant <ccoutant@google.com>
21344 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
21345 for hash so that hash table traversal order is deterministic.
21347 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
21348 Pat Haugen <pthaugen@us.ibm.com>
21349 Peter Bergner <bergner@vnet.ibm.com>
21351 * config/rs6000/vector.md (GPR move splitter): Do not split moves
21352 of vectors in GPRS if they are direct moves or quad word load or
21355 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
21357 (direct_move_p): Likewise.
21358 (quad_load_store_p): Likewise.
21360 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
21361 classes into bins based on the physical register type.
21362 (reg_class_to_reg_type): Likewise.
21363 (IS_STD_REG_TYPE): Likewise.
21364 (IS_FP_VECT_REG_TYPE): Likewise.
21365 (reload_fpr_gpr): Arrays to determine what insn to use if we can
21366 use direct move instructions.
21367 (reload_gpr_vsx): Likewise.
21368 (reload_vsx_gpr): Likewise.
21369 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
21370 information that is a simplification of register classes. Also
21371 precalculate direct move reload helpers.
21372 (direct_move_p): New function to return true if the operation can
21373 be done as a direct move instruciton.
21374 (quad_load_store_p): New function to return true if the operation
21375 is a quad memory operation.
21376 (rs6000_legitimize_address): If quad memory, only allow register
21377 indirect for TImode addresses.
21378 (rs6000_legitimate_address_p): Likewise.
21379 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
21380 (rs6000_reload_register_type): Likewise.
21381 (register_to_reg_type): Return register type.
21382 (rs6000_secondary_reload_simple_move): New helper function for
21383 secondary reload and secondary memory needed to identify anything
21384 that is a simple move, and does not need reloading.
21385 (rs6000_secondary_reload_direct_move): New helper function for
21386 secondary reload to identify cases that can be done with several
21387 instructions via the direct move instructions.
21388 (rs6000_secondary_reload_move): New helper function for secondary
21389 reload to identify moves between register types that can be done.
21390 (rs6000_secondary_reload): Add support for quad memory operations
21391 and for direct move.
21392 (rs6000_secondary_memory_needed): Likewise.
21393 (rs6000_debug_secondary_memory_needed): Change argument names.
21394 (rs6000_output_move_128bit): New function to return the move to
21395 use for 128-bit moves, including knowing about the various
21396 limitations of quad memory operations.
21398 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
21399 memory operations. call rs6000_output_move_128bit for the actual
21400 instruciton(s) to generate.
21401 (vsx_movti_64bit): Likewise.
21403 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
21404 (UNSPEC_P8V_MTVSRWZ): Likewise.
21405 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
21406 (UNSPEC_P8V_MTVSRD): Likewise.
21407 (UNSPEC_P8V_XXPERMDI): Likewise.
21408 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
21409 (UNSPEC_FUSION_GPR): Likewise.
21410 (FMOVE128_GPR): New iterator for direct move.
21411 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
21412 (f32_sv): Likewise.
21413 (f32_dm): Likewise.
21414 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
21415 loads and direct move instructions.
21416 (zero_extendsidi2_lfiwzx): Likewise.
21417 (extendsidi2_lfiwax): Likewise.
21418 (extendsidi2_nocell): Likewise.
21419 (floatsi<mode>2_lfiwax): Likewise.
21420 (lfiwax): Likewise.
21421 (floatunssi<mode>2_lfiwzx): Likewise.
21422 (lfiwzx): Likewise.
21423 (fix_trunc<mode>_stfiwx): Likewise.
21424 (fixuns_trunc<mode>_stfiwx): Likewise.
21425 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
21426 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
21427 (parity<mode>2_cmpb): Set length/type attr.
21428 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
21429 for 'mr.' to fast_compare.
21430 (bpermd_<mode>): Change type attr to popcnt.
21431 (p8_fmrgow_<mode>): New insns for power8 direct move support.
21432 (p8_mtvsrwz_1): Likewise.
21433 (p8_mtvsrwz_2): Likewise.
21434 (reload_fpr_from_gpr<mode>): Likewise.
21435 (p8_mtvsrd_1): Likewise.
21436 (p8_mtvsrd_2): Likewise.
21437 (p8_xxpermdi_<mode>): Likewise.
21438 (reload_vsx_from_gpr<mode>): Likewise.
21439 (reload_vsx_from_gprsf): Likewise.
21440 (p8_mfvsrd_3_<mode>): LIkewise.
21441 (reload_gpr_from_vsx<mode>): Likewise.
21442 (reload_gpr_from_vsxsf): Likewise.
21443 (p8_mfvsrd_4_disf): Likewise.
21444 (multi-word GPR splits): Do not split direct moves or quad memory
21447 2013-06-10 David Malcolm <dmalcolm@redhat.com>
21449 * tree-into-ssa.c (interesting_blocks): Make static.
21451 2013-06-10 Jakub Jelinek <jakub@redhat.com>
21454 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
21455 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
21456 Use DATA_ABI_ALIGNMENT for that case instead if defined.
21457 (get_variable_align): New function.
21458 (get_variable_section, emit_bss, emit_common,
21459 assemble_variable_contents, place_block_symbol): Use
21460 get_variable_align instead of DECL_ALIGN.
21461 (assemble_noswitch_variable): Add align argument, use it
21462 instead of DECL_ALIGN.
21463 (assemble_variable): Adjust caller. Use get_variable_align
21464 instead of DECL_ALIGN.
21465 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
21467 (DATA_ABI_ALIGNMENT): Define.
21468 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
21469 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
21470 opt is false, only return the psABI mandated alignment increase.
21471 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
21472 (DATA_ABI_ALIGNMENT): ... this.
21473 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
21474 (DATA_ABI_ALIGNMENT): ... this.
21475 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
21476 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
21477 (DATA_ABI_ALIGNMENT): ... this.
21478 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
21479 * doc/tm.texi: Regenerated.
21481 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
21483 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
21484 cmp_code to construct REG_EQUAL note.
21486 2013-06-09 Jakub Jelinek <jakub@redhat.com>
21489 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
21490 that operands[2] doesn't overlap with operands[0].
21492 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
21493 Jan Hubicka <jh@suse.cz>
21495 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
21496 hack to mark symbols as used.
21498 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
21500 PR rtl-optimization/57559
21501 * lra-constraints.c (process_alt_operands): Don't discourage
21502 memory with known offset for offsetable memory constraint.
21503 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
21505 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
21507 * varasm.c (struct oc_local_state): Reorder fields.
21508 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
21509 and adjust accordingly.
21510 (output_constructor): Reorder initialization code and adjust call to
21511 output_constructor_bitfield.
21513 2013-06-07 Jan Hubicka <jh@suse.cz>
21515 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
21517 2013-06-07 David Malcolm <dmalcolm@redhat.com>
21519 * tree-object-size.c (unknown): Make const.
21521 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21523 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
21524 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
21525 for last alternative in the cpu_facility attribute.
21527 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21530 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
21531 (xordi3): Change operand 2 constraint to arm_xordi_operand.
21532 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
21533 * config/arm/constraints.md (Dg): New constraint.
21534 * config/arm/neon.md (xordi3_neon): Remove.
21535 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
21536 * config/arm/predicates.md (arm_xordi_operand): New predicate.
21538 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21540 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
21541 Clean up alternatives.
21543 2013-06-07 Alan Modra <amodra@gmail.com>
21545 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
21548 2013-06-07 Alan Modra <amodra@gmail.com>
21550 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
21552 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21554 * config/arm/constraints.md (Df): New constraint.
21555 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
21556 Correct length attribute for last two alternatives.
21558 2013-06-07 Alan Modra <amodra@gmail.com>
21560 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
21561 override user -mfp-in-toc.
21562 (offsettable_ok_by_alignment): Consider just the current access
21563 rather than the whole object, unless BLKmode. Handle
21564 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
21565 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
21566 for -mcmodel=medium.
21567 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
21568 override user -mfp-in-toc or -msum-in-toc. Default to
21569 -mno-fp-in-toc for -mcmodel=medium.
21571 2013-06-06 DJ Delorie <dj@redhat.com>
21573 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
21574 TARGET_VALID_POINTER_MODE.
21576 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21577 Pat Haugen <pthaugen@us.ibm.com>
21578 Peter Bergner <bergner@vnet.ibm.com>
21580 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21581 Document new power8 builtins.
21583 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
21584 condition code register, to allow 128-bit logical operations to be
21585 done in the VSX or GPR registers.
21586 (nor<mode>3): Use the canonical form for nor.
21587 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
21588 vclz*, and vpopcnt* vector instructions.
21589 (nand<mode>3): Likewise.
21590 (orc<mode>3): Likewise.
21591 (clz<mode>2): LIkewise.
21592 (popcount<mode>2): Likewise.
21594 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
21595 that only the GPRs are recognized.
21597 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21598 support for new power8 builtins.
21600 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
21602 (xscvdpspn): Likewise.
21608 (vpopcnt): Likewise.
21609 (vpopcntb): Likewise.
21610 (vpopcnth): Likewise.
21611 (vpopcntw): Likewise.
21612 (vpopcntd): Likewise.
21614 (vmrgew): Likewise.
21615 (vmrgow): Likewise.
21617 (eqv_v16qi3): Likewise.
21618 (eqv_v8hi3): Likewise.
21619 (eqv_v4si3): Likewise.
21620 (eqv_v2di3): Likewise.
21621 (eqv_v4sf3): Likewise.
21622 (eqv_v2df3): Likewise.
21624 (nand_v16qi3): Likewise.
21625 (nand_v8hi3): Likewise.
21626 (nand_v4si3): Likewise.
21627 (nand_v2di3): Likewise.
21628 (nand_v4sf3): Likewise.
21629 (nand_v2df3): Likewise.
21631 (orc_v16qi3): Likewise.
21632 (orc_v8hi3): Likewise.
21633 (orc_v4si3): Likewise.
21634 (orc_v2di3): Likewise.
21635 (orc_v4sf3): Likewise.
21636 (orc_v2df3): Likewise.
21638 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
21639 allow power8 quad mode in 64-bit.
21640 (rs6000_builtin_vectorized_function): Add support to vectorize
21641 ISA 2.07 count leading zeros, population count builtins.
21642 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
21643 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
21644 (builtin_function_type): Add vgbbd builtin function which takes an
21646 (altivec_expand_vec_perm_const): Add support for new power8 merge
21649 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
21650 that does not include TImdoe for use with 32-bit.
21651 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
21653 (UNSPEC_VSX_CVDPSPN): Likewise.
21654 (vsx_xscvdpspn): Likewise.
21655 (vsx_xscvspdpn): Likewise.
21656 (vsx_xscvdpspn_scalar): Likewise.
21657 (vsx_xscvspdpn_directmove): Likewise.
21658 (vsx_and<mode>3): Split logical operations into 32-bit and
21659 64-bit. Add support to do logical operations on TImode as well as
21660 VSX vector types. Allow logical operations to be done in either
21661 VSX registers or in general purpose registers in 64-bit mode. Add
21662 splitters if GPRs were used. For AND, add clobber of CCmode to
21663 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
21665 (vsx_and<mode>3_32bit): Likewise.
21666 (vsx_and<mode>3_64bit): Likewise.
21667 (vsx_ior<mode>3): Likewise.
21668 (vsx_ior<mode>3_32bit): Likewise.
21669 (vsx_ior<mode>3_64bit): Likewise.
21670 (vsx_xor<mode>3): Likewise.
21671 (vsx_xor<mode>3_32bit): Likewise.
21672 (vsx_xor<mode>3_64bit): Likewise.
21673 (vsx_one_cmpl<mode>2): Likewise.
21674 (vsx_one_cmpl<mode>2_32bit): Likewise.
21675 (vsx_one_cmpl<mode>2_64bit): Likewise.
21676 (vsx_nor<mode>3): Likewise.
21677 (vsx_nor<mode>3_32bit): Likewise.
21678 (vsx_nor<mode>3_64bit): Likewise.
21679 (vsx_andc<mode>3): Likewise.
21680 (vsx_andc<mode>3_32bit): Likewise.
21681 (vsx_andc<mode>3_64bit): Likewise.
21682 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
21683 and xxlorc instructions.
21684 (vsx_eqv<mode>3_64bit): Likewise.
21685 (vsx_nand<mode>3_32bit): Likewise.
21686 (vsx_nand<mode>3_64bit): Likewise.
21687 (vsx_orc<mode>3_32bit): Likewise.
21688 (vsx_orc<mode>3_64bit): Likewise.
21690 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
21692 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
21694 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
21695 (p8_vmrgow): Likewise.
21696 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
21697 GPRs to be split under VSX.
21698 (p8v_clz<mode>2): Add power8 count leading zero support.
21699 (p8v_popcount<mode>2): Add power8 population count support.
21700 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
21703 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
21706 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
21708 (vec_nand): Likewise.
21709 (vec_vclz): Likewise.
21710 (vec_vclzb): Likewise.
21711 (vec_vclzd): Likewise.
21712 (vec_vclzh): Likewise.
21713 (vec_vclzw): Likewise.
21714 (vec_vgbbd): Likewise.
21715 (vec_vmrgew): Likewise.
21716 (vec_vmrgow): Likewise.
21717 (vec_vpopcnt): Likewise.
21718 (vec_vpopcntb): Likewise.
21719 (vec_vpopcntd): Likewise.
21720 (vec_vpopcnth): Likewise.
21721 (vec_vpopcntw): Likewise.
21723 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
21725 PR rtl-optimization/57468
21726 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
21729 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
21731 PR rtl-optimization/57459
21732 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
21733 type when setting live regs.
21735 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
21737 * config/s390/s390.opt (mlra): New option.
21738 * config/s390/s390.c (s390_decompose_address): Check displacement
21739 for all registers for LRA.
21740 (s390_secondary_reload): Don't used secondary reloads for LRA.
21741 (s390_lra_p): New function.
21742 (TARGET_LRA_P): Define.
21743 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
21744 of attribute cpu_facility to zarch for the last alternative.
21745 (*cmpmem_short): Ditto.
21747 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
21749 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
21750 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
21751 (arm_expand_prologue): Likewise.
21753 2013-06-06 Teresa Johnson <tejohnson@google.com>
21756 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
21757 as this is now done by redirect_edge_and_branch_force.
21758 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
21759 barriers, and fix interaction with splitting.
21760 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
21761 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
21762 reflect changes made in the routine.
21763 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
21764 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
21765 since this is called in cfglayout mode, and replace partition fixup
21766 with assert as that is now done by force_nonfallthru_and_redirect.
21767 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
21768 already be marked with region crossing note.
21769 (insert_section_boundary_note): Make non-static, gate on flag
21770 has_bb_partition, rewrite to also check for multiple partitions.
21771 (rest_of_handle_reorder_blocks): Remove call to
21772 insert_section_boundary_note, now done later during free_cfg.
21773 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
21774 * bb-reorder.h (insert_section_boundary_note): Declare.
21775 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
21776 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
21777 invoke insert_section_boundary_note.
21778 (try_redirect_by_replacing_jump): Remove unnecessary
21779 check for region crossing note.
21780 (fixup_partition_crossing): New function.
21781 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
21782 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
21783 in non-cfglayout mode.
21784 (force_nonfallthru_and_redirect): Fixup partition boundaries,
21785 remove old code that tried to do this. Emit barrier correctly
21786 when we are in cfglayout mode.
21787 (last_bb_in_partition): New function.
21788 (rtl_split_edge): Correctly fixup partition boundaries.
21789 (commit_one_edge_insertion): Remove old code that tried to
21790 fixup region crossing edge since this is now handled in
21791 split_block, and set up insertion point correctly since
21792 block may now end in a jump.
21793 (verify_hot_cold_block_grouping): Guard against checking when not in
21794 linearized RTL mode.
21795 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
21797 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
21798 rtl_verify_flow_info, so not called in cfglayout mode.
21799 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
21800 (fixup_reorder_chain): Remove old code that attempted to fixup region
21801 crossing note as this is now handled in force_nonfallthru_and_redirect.
21802 (duplicate_insn_chain): Don't duplicate switch section notes.
21803 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
21805 * basic-block.h (emit_barrier_after_bb): Declare.
21807 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21809 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
21810 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
21811 arm_usatsihi): Adjust alternatives for arm_restrict_it.
21813 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21815 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
21817 * config/arm/ldmstm.md: Regenerate.
21819 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21821 * config/arm/sync.md (atomic_loaddi_1):
21822 Disable predication for arm_restrict_it.
21823 (arm_load_exclusive<mode>): Likewise.
21824 (arm_load_exclusivesi): Likewise.
21825 (arm_load_exclusivedi): Likewise.
21826 (arm_load_acquire_exclusive<mode>): Likewise.
21827 (arm_load_acquire_exclusivesi): Likewise.
21828 (arm_load_acquire_exclusivedi): Likewise.
21829 (arm_store_exclusive<mode>): Likewise.
21830 (arm_store_exclusive<mode>): Likewise.
21831 (arm_store_release_exclusivedi): Likewise.
21832 (arm_store_release_exclusive<mode>): Likewise.
21834 2013-06-06 Richard Biener <rguenther@suse.de>
21836 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
21838 (lto_tag_is_tree_code_p): Adjust.
21839 (lto_tag_is_gimple_code_p): Likewise.
21840 (lto_gimple_code_to_tag): Likewise.
21841 (lto_tag_to_gimple_code): Likewise.
21842 (lto_tree_code_to_tag): Likewise.
21843 (lto_tag_to_tree_code): Likewise.
21844 * data-streamer.h (streamer_write_hwi_in_range): Use
21845 uhwi streaming to stream the normalized range.
21846 (streamer_read_hwi_in_range): Likewise.
21848 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21850 * config/arm/arm.md (enabled_for_depr_it): New attribute.
21851 (predicable_short_it): Likewise.
21852 (predicated): Likewise.
21853 (enabled): Handle above.
21854 (define_cond_exec): Set predicated attribute to yes.
21856 2013-06-05 Mike Stump <mikestump@comcast.net>
21858 * gdbinit.in (__FUNCTION__): Add.
21860 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
21862 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
21863 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
21865 2013-06-05 Jan Hubicka <jh@suse.cz>
21867 * varasm.c (mark_decl_referenced): Revert the removal until targets
21870 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
21872 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
21873 instead of mark_decl_referenced.
21875 2013-06-05 Jan Hubicka <jh@suse.cz>
21877 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
21878 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
21879 and symtab_used_from_object_file_p.
21880 (cgraph_make_node_local_1): Clear forced_by_abi.
21881 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
21882 * cgraph.h (symtab_node_base): Add forced_by_abi.
21883 (decide_is_variable_needed): Remove.
21884 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
21885 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
21886 (decide_is_symbol_needed): ... this one; handle symbols in general;
21887 always analyze virtuals; honnor forced_by_abi.
21888 (cgraph_finalize_function): Update.
21889 (varpool_finalize_decl): Update.
21890 (symbol_defined_and_needed): Remove.
21891 (analyze_functions): Update.
21892 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
21893 output_refs, input_overwrite_node): Handle forced_by_abi.
21894 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
21895 (address_taken_from_non_vtable_p): ... this one.
21896 (comdat_can_be_unshared_p_1): New function.
21897 (cgraph_comdat_can_be_unshared_p): Rename to ...
21898 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
21899 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
21900 (function_and_variable_visibility): Clear forced_by_abi as needed.
21901 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
21902 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
21903 * symtab.c (dump_symtab_base): Dump forced_by_abi.
21904 * varpool.c (decide_is_variable_needed): Remove.
21906 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21908 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
21909 (arm_option_override): Override arm_restrict_it where appropriate.
21910 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
21911 * config/arm/arm.opt (mrestrict-it): New command-line option.
21912 * doc/invoke.texi: Document -mrestrict-it.
21914 2013-06-05 David Malcolm <dmalcolm@redhat.com>
21916 * tsan.c (tsan_atomic_table): Make const.
21918 2013-06-05 Richard Biener <rguenther@suse.de>
21920 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
21921 index associated with the tree we are supposed to replace.
21922 * tree-streamer-out.c (pack_ts_base_value_fields): Output
21923 TREE_ASM_WRITTEN as zero for everything but SSA names.
21925 2013-06-05 David Malcolm <dmalcolm@redhat.com>
21927 * tree-ssa-structalias.c (call_stmt_vars): Make static.
21929 2013-06-04 Jan Hubicka <jh@suse.cz>
21931 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
21932 (input_node, input_varpool_node): Handle correctly external same
21934 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
21935 nodes at ltrans stage.
21937 2013-06-04 Jan Hubicka <jh@suse.cz>
21939 * ipa-inline.c (update_caller_keys): Fix availability test.
21940 (update_callee_keys): Likewise.
21941 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
21942 to follow ELF standard.
21944 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
21946 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
21947 (mips64r5900el-*-elf*): New configurations.
21948 * config/mips/mips-cpus.def (r5900): New processor.
21949 * config/mips/mips-tables.opt: Regenerate.
21950 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
21951 (mips_issue_rate): Handle PROCESSOR_R5900.
21952 (mips_reorg_process_insns): Force reorder mode for the R5900.
21953 * config/mips/mips.h (TARGET_MIPS5900): Define.
21954 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
21956 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
21958 * config/mips/mips.md (processor): Add r5900.
21959 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
21961 2013-06-04 Ian Bolton <ian.bolton@arm.com>
21963 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
21964 into function to generate MOVI instruction.
21965 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
21966 (aarch64_preferred_simd_mode): Turn into wrapper.
21967 (aarch64_output_scalar_simd_mov_immediate): New function.
21968 * config/aarch64/aarch64-protos.h: Add prototype for above.
21970 2013-06-04 Ian Bolton <ian.bolton@arm.com>
21972 * config/aarch64/aarch64.c (simd_immediate_info): Remove
21973 element_char member.
21974 (sizetochar): Return signed char.
21975 (aarch64_simd_valid_immediate): Remove elchar and other
21976 unnecessary variables.
21977 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
21978 Calculate element_char as required.
21979 * config/aarch64/aarch64-protos.h: Update and move prototype
21980 for aarch64_output_simd_mov_immediate.
21981 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
21984 2013-06-04 Ian Bolton <ian.bolton@arm.com>
21986 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
21987 information completed by aarch64_simd_valid_immediate.
21988 (aarch64_legitimate_constant_p): Update arguments.
21989 (aarch64_simd_valid_immediate): Work with struct rather than many
21991 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
21992 (aarch64_simd_make_constant): Update arguments.
21993 (aarch64_output_simd_mov_immediate): Work with struct rather than
21994 many pointers. Output immediate directly rather than as operand.
21995 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
21997 * config/aarch64/constraints.md (Dn): Update arguments.
21999 2013-06-04 Ian Bolton <ian.bolton@arm.com>
22001 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
22003 (aarch64_simd_immediate_valid_for_move): Remove.
22004 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
22005 (aarch64_simd_make_constant): Update call.
22006 (aarch64_output_simd_mov_immediate): Update call.
22007 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
22009 * config/aarch64/constraints.md (Dn): Update call.
22011 2013-06-04 Ian Bolton <ian.bolton@arm.com>
22013 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
22014 return type to bool for prototype.
22015 (aarch64_legitimate_constant_p): Check for true instead of not -1.
22016 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
22017 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
22019 2013-06-04 Catherine Moore <clm@codesourcery.com>
22021 * config/mips/mips.opt (meva): New.
22022 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
22023 (ASM_SPEC): Handle -meva.
22024 * doc/invoke.texi (meva): Document.
22026 2013-06-04 Alan Modra <amodra@gmail.com>
22028 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
22031 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22033 * rtl.def: Add extra fourth optional field to define_cond_exec.
22034 * gensupport.c (process_one_cond_exec): Process attributes from
22036 * doc/md.texi: Document fourth field in define_cond_exec.
22038 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
22040 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
22041 out the processing order as in store_bit_field_1.
22043 2013-06-04 Jan Hubicka <jh@suse.cz>
22045 PR middle-end/57500
22046 * cgraphunit.c (cgraph_process_same_body_aliases): Create
22047 non-VAR_DECL node if it does not exist yet.
22049 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
22051 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
22052 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
22053 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
22054 target_cpu_default setting.
22056 2013-06-03 Teresa Johnson <tejohnson@google.com>
22058 * dumpfile.c (opt_info_switch_p): Change -fopt-info
22059 default to -fopt-info=optimized instead of all.
22060 * doc/invoke.texi: Ditto.
22061 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
22062 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
22063 (execute_vect_slp): Emit BB vectorization success under
22064 MSG_OPTIMIZED_LOCATIONS.
22065 * tree-vect-slp.c (vect_slp_transform_bb): Change
22066 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
22067 * tree-vect-loop.c (vect_transform_loop): Ditto.
22069 2013-06-03 Jason Merrill <jason@redhat.com>
22072 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22073 Use TARGET_EXPR for C++.
22075 2013-06-03 Jakub Jelinek <jakub@redhat.com>
22077 PR rtl-optimization/57268
22078 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
22079 if DEBUG_INSN_P (insn).
22082 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
22084 PR rtl-optimization/57268
22085 * sched-deps.c (sched_analyze_2): Flush dependence lists if
22086 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
22088 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
22090 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
22091 (ix86_avoid_lea_for_addr): Likewise.
22092 (exact_dependency_1): Likewise.
22093 (ix86_adjust_cost): Likewise.
22094 (swap_top_of_ready_list): Fix formatting and !reload_completed check
22096 (do_reorder_for_imul): Fix typo, formatting and
22097 !reload_completed check removed.
22098 (ix86_sched_reorder): Fix typo and formatting.
22099 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
22102 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
22104 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
22106 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
22108 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
22109 <STRING_CST>: Likewise.
22110 <VECTOR_CST>: Likewise.
22112 2013-06-01 Janus Weil <janus@gcc.gnu.org>
22113 Mikael Morin <mikael@gcc.gnu.org>
22115 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
22116 * config.in: Regenerated.
22117 * configure: Regenerated.
22119 2013-06-01 Jan Hubicka <jh@suse.cz>
22121 PR middle-end/57366
22122 * cgraphunit.c (compile): When weakref is not supported,
22123 set up transparent aliases before final output pass.
22124 * varasm.c (assemble_alias): Do not try to do it here.
22126 2013-06-01 Jan Hubicka <jh@suse.cz>
22128 PR middle-end/57467
22129 * passes.c (for_per_function): Skip unanalyzed functions.
22131 2013-06-01 Jan Hubicka <jh@suse.cz>
22133 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
22134 (lto_symtab_merge_symbols_1): ... this one.
22135 (lto_symtab_merge_cgraph_nodes): Rename to ...
22136 (lto_symtab_merge_symbols): ... this one; simplify.
22137 * cgraph.c (same_body_aliases_done): Rename to ...
22138 (cpp_implicit_aliases_done): ... this one.
22139 (cgraph_create_function_alias): Update.
22140 (cgraph_same_body_alias): Update.
22141 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
22142 (verify_edge_corresponds_to_fndecl): Simplify.
22143 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
22144 (cgraph_node): Remove same_body_alias.
22145 (varpool_node): Remove alias_of and extra_name_alias.
22146 (same_body_aliases_done): Rename to ..
22147 (cpp_implicit_aliases_done): ... this one.
22148 (symtab_alias_ultimate_target): Add default parameter.
22149 (symtab_resolve_alias): New function.
22150 (fixup_same_cpp_alias_visibility): Declare.
22151 (cgraph_function_node): Add default parameter.
22152 (cgraph_node_asm_name): Likewise.
22153 (cgraph_function_or_thunk_node): Add default parameter; do
22154 not ICE when it is NULL.
22155 (varpool_variable_node): Likewise.
22156 * tree-emutls.c (create_emultls_var): Update.
22157 (ipa_lower_emutls): Update.
22158 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
22159 (cgraph_reset_node): Reset alias info.
22160 (cgraph_finalize_function): Update.
22161 (fixup_same_cpp_alias_visibility): Move to symtab.c.
22162 (analyze_function): Simplify.
22163 (cgraph_process_same_body_aliases): Simplify.
22164 (analyze_functions): Fixup same body aliases.
22165 (handle_alias_pairs): Simplify.
22166 (assemble_thunk): Update.
22167 (assemble_thunks_and_aliases): Update.
22168 (output_weakrefs): Rewrite.
22169 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
22170 (lto_output_varpool_node): Likewise.
22171 (compute_ltrans_boundary): Remve assert.
22172 (get_alias_symbol): New functoin.
22173 (input_node): Rewrite alias handling.
22174 (input_varpool_node): Likewise.
22175 * ipa-pure-const.c (propagate_pure_const): Fix formating.
22176 * ipa.c (process_references): Handle weakrefs correctly.
22177 (symtab_remove_unreachable_nodes): Likewise.
22178 * trans-mem.c (get_cg_data): Update.
22179 (ipa_tm_create_version_alias): Update.
22180 (ipa_tm_execute): Update.
22181 * symtab.c (dump_symtab_base): Dump aliases.
22182 (verify_symtab_base): Verify aliases.
22183 (symtab_node_availability): New function.
22184 (symtab_alias_ultimate_target): Simplify.
22185 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
22186 handle all the fixup cases.
22187 (symtab_resolve_alias): New function.
22188 * passes.c (ipa_write_summaries): Handle weakrefs.
22189 * varpool.c (varpool_analyze_node): Simplify.
22190 (assemble_aliases): Update.
22191 (varpool_create_variable_alias): Simplify.
22192 (varpool_extra_name_alias): Simplify.
22193 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
22194 (lto_symtab_merge_symbols): ... this one.
22196 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
22199 PR rtl-optimization/57268
22200 * sched-deps.c (sched_analyze_2): Flush dependence lists if
22201 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
22203 2013-06-01 Tobias Burnus <burnus@net-b.de>
22205 Partially reverted:
22206 2013-05-31 Tobias Burnus <burnus@net-b.de>
22208 PR middle-end/57073
22209 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
22212 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
22214 PR rtl-optimization/57268
22215 * sched-deps.c (sched_analyze_2): Flush dependence lists if
22216 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
22218 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
22220 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
22221 unordered comparison operators when -fno-trapping-math is in effect
22223 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
22224 and implement unordered comparison operators properly on the e500.
22226 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
22228 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
22229 for constant scalar integers.
22230 (simplify_relational_operation_1): Likewise.
22232 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
22234 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
22235 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
22238 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
22239 Igor Zamyatin <igor.zamyatin@intel.com>
22241 Silvermont (SLM) architecture performance tuning.
22242 * config/i386/i386.h (enum ix86_tune_indices): Add
22243 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
22244 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
22246 * config/i386/i386.c (initial_ix86_tune_features)
22247 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
22248 (ix86_lea_outperforms): Handle Silvermont tuning.
22249 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
22251 (ix86_use_lea_for_mov): Likewise.
22252 (ix86_avoid_lea_for_addr): Likewise.
22253 (ix86_lea_for_add_ok): Likewise.
22254 (exact_dependency_1): New function.
22255 (exact_store_load_dependency): Likewise.
22256 (ix86_adjust_cost): Handle Silvermont tuning.
22257 (do_reoder_for_imul): Likewise.
22258 (swap_top_of_ready_list): New function.
22259 (ix86_sched_reorder): Changed to handle Silvermont tuning.
22261 * config/i386/i386.md (peepholes that split memory operand in fp
22264 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
22266 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22267 Remove un-necessary braces.
22269 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
22271 * config/aarch64/aarch64.c (aarch64_classify_symbol):
22272 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
22274 2013-05-31 Tobias Burnus <burnus@net-b.de>
22276 PR middle-end/57073
22277 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
22279 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22282 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
22283 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
22284 * config/arm/neon.md (iordi3_neon): Remove.
22285 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
22286 * config/arm/predicates.md (imm_for_neon_logic_operand):
22287 Move to earlier in the file.
22288 (neon_logic_op2): Likewise.
22289 (arm_iordi_operand_neon): New predicate.
22291 2013-05-31 Richard Biener <rguenther@suse.de>
22293 PR tree-optimization/57478
22294 PR tree-optimization/57453
22295 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
22298 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
22300 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
22301 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
22303 2013-05-30 Tobias Burnus <burnus@net-b.de>
22304 Thomas Koenig <tkoenig@gcc.gnu.org>
22306 PR middle-end/57073
22307 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
22308 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
22310 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
22312 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
22314 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
22316 * target.def (register_usage_leveling_p): New hook.
22317 * targhooks.c (default_register_usage_leveling_p): New.
22318 * targhooks.h (default_register_usage_leveling_p): New prototype.
22319 * lra-assigns.c (register_usage_leveling_p): Use the hook.
22320 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
22321 * doc/tm.texi: Update.
22322 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
22324 2013-05-30 Ian Bolton <ian.bolton@arm.com>
22326 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
22327 (*insv_reg<mode>): New define_insn.
22329 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
22331 PR rtl-optimization/57439
22332 * postreload.c (move2add_valid_value_p): Check that we have
22333 a zero subreg_regno_offset when accessing the register in
22334 the requested mode.
22336 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
22337 Igor Zamyatin <igor.zamyatin@intel.com>
22339 Silvermont (SLM) architecture pipeline model, tuning and
22341 * config.gcc: Add slm config options and target.
22343 * config/i386/slm.md: New.
22345 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
22347 * config/i386/i386-c.c (ix86_target_macros_internal): New case
22349 (ix86_target_macros_internal): Likewise.
22351 * config/i386/i386.c (slm_cost): New cost.
22352 (m_SLM): New macro flag.
22353 (initial_ix86_tune_features): Set m_SLM.
22354 (x86_accumulate_outgoing_args): Likewise.
22355 (x86_arch_always_fancy_math_387): Likewise.
22356 (processor_target_table): Add slm cost.
22357 (cpu_names): Add slm cpu name.
22358 (x86_option_override_internal): Set SLM ISA.
22359 (ix86_issue_rate): New case PROCESSOR_SLM.
22360 (ia32_multipass_dfa_lookahead): Likewise.
22361 (fold_builtin_cpu): Add slm.
22363 * config/i386/i386.h (TARGET_SLM): New target macro.
22364 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
22365 (processor_type): Add PROCESSOR_SLM.
22367 * config/i386/i386.md (cpu): Add new value "slm".
22368 (slm.md): Include slm.md.
22370 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
22371 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22373 * config/arm/arm-protos.h: Add and update function protos.
22374 * config/arm/arm.c (use_simple_return_p): New added.
22375 (thumb2_expand_return): Check simple_return flag.
22376 * config/arm/arm.md: Add simple_return and conditional simple_return.
22377 * config/arm/iterators.md: Add iterator for return and simple_return.
22379 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22381 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
22382 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
22383 (arm_emit_vfp_multi_reg_pop): Likewise.
22384 (thumb2_emit_ldrd_pop): Likewise.
22385 (arm_expand_epilogue): Add misc REG_CFA notes.
22386 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
22388 2013-05-29 Lawrence Crowl <crowl@google.com>
22390 * config/arm/t-arm: Update for below.
22392 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
22393 Change type to hash_table. Update dependent calls and types.
22395 * config/i386/t-cygming: Update for below.
22397 * config/i386/t-interix: Update for below.
22399 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
22400 Change type to hash_table. Update dependent calls and types.
22401 (i386_find_on_wrapper_list::wrappers): Likewise.
22403 * config/ia64/t-ia64: Update for below.
22405 * config/ia64/ia64.c (bundle_state_table):
22406 Change type to hash_table. Update dependent calls and types.
22408 * config/mips/mips.c (mips_reorg_process_insns::htab):
22409 Change type to hash_table. Update dependent calls and types.
22411 * config/sol2.c (solaris_comdat_htab):
22412 Change type to hash_table. Update dependent calls and types.
22414 * config/t-sol2: Update for above.
22416 2013-05-29 Teresa Johnson <tejohnson@google.com>
22418 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
22419 functions are not yet marked as defined.
22421 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
22422 Pat Haugen <pthaugen@us.ibm.com>
22423 Peter Bergner <bergner@vnet.ibm.com>
22425 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
22429 (vrotl<mode>3): Likewise.
22430 (vashl<mode>3): Likewise.
22431 (vlshr<mode>3): Likewise.
22432 (vashr<mode>3): Likewise.
22434 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22435 support for power8 V2DI builtins.
22437 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
22438 power8 V2DI builtins.
22439 (vupkhsw): Likewise.
22440 (vupklsw): Likewise.
22441 (vaddudm): Likewise.
22442 (vminsd): Likewise.
22443 (vmaxsd): Likewise.
22444 (vminud): Likewise.
22445 (vmaxud): Likewise.
22446 (vpkudum): Likewise.
22447 (vpksdss): Likewise.
22448 (vpkudus): Likewise.
22449 (vpksdus): Likewise.
22454 (vsubudm): Likewise.
22455 (vcmpequd): Likewise.
22456 (vcmpgtsd): Likewise.
22457 (vcmpgtud): Likewise.
22458 (vcmpequd_p): Likewise.
22459 (vcmpgtsd_p): Likewise.
22460 (vcmpgtud_p): Likewise.
22461 (vupkhsw): Likewise.
22462 (vupklsw): Likewise.
22463 (vaddudm): Likewise.
22464 (vmaxsd): Likewise.
22465 (vmaxud): Likewise.
22466 (vminsd): Likewise.
22467 (vminud): Likewise.
22468 (vpksdss): Likewise.
22469 (vpksdus): Likewise.
22470 (vpkudum): Likewise.
22471 (vpkudus): Likewise.
22476 (vsubudm): Likewise.
22478 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
22479 support for power8 V2DI instructions.
22481 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
22482 power8 V2DI instructions. Combine pack and unpack insns to use an
22483 iterator for each mode. Check whether a particular mode supports
22484 Altivec instructions instead of just checking TARGET_ALTIVEC.
22485 (UNSPEC_VPKUWUM): Likewise.
22486 (UNSPEC_VPKSHSS): Likewise.
22487 (UNSPEC_VPKSWSS): Likewise.
22488 (UNSPEC_VPKUHUS): Likewise.
22489 (UNSPEC_VPKSHUS): Likewise.
22490 (UNSPEC_VPKUWUS): Likewise.
22491 (UNSPEC_VPKSWUS): Likewise.
22492 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
22493 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
22494 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
22495 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
22496 (UNSPEC_VUPKHSB): Likewise.
22497 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
22498 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
22499 (UNSPEC_VUPKHSH): Likewise.
22500 (UNSPEC_VUPKLSB): Likewise.
22501 (UNSPEC_VUPKLSH): Likewise.
22503 (VI_char): Likewise.
22504 (VI_scalar): Likewise.
22505 (VI_unit): Likewise.
22507 (VP_small): Likewise.
22508 (VP_small_lc): Likewise.
22509 (VU_char): Likewise.
22510 (add<mode>3): Likewise.
22511 (altivec_vaddcuw): Likewise.
22512 (altivec_vaddu<VI_char>s): Likewise.
22513 (altivec_vadds<VI_char>s): Likewise.
22514 (sub<mode>3): Likewise.
22515 (altivec_vsubcuw): Likewise.
22516 (altivec_vsubu<VI_char>s): Likewise.
22517 (altivec_vsubs<VI_char>s): Likewise.
22518 (altivec_vavgs<VI_char>): Likewise.
22519 (altivec_vcmpbfp): Likewise.
22520 (altivec_eq<mode>): Likewise.
22521 (altivec_gt<mode>): Likewise.
22522 (altivec_gtu<mode>): Likewise.
22523 (umax<mode>3): Likewise.
22524 (smax<mode>3): Likewise.
22525 (umin<mode>3): Likewise.
22526 (smin<mode>3): Likewise.
22527 (altivec_vpkuhum): Likewise.
22528 (altivec_vpkuwum): Likewise.
22529 (altivec_vpkshss): Likewise.
22530 (altivec_vpkswss): Likewise.
22531 (altivec_vpkuhus): Likewise.
22532 (altivec_vpkshus): Likewise.
22533 (altivec_vpkuwus): Likewise.
22534 (altivec_vpkswus): Likewise.
22535 (altivec_vpks<VI_char>ss): Likewise.
22536 (altivec_vpks<VI_char>us): Likewise.
22537 (altivec_vpku<VI_char>us): Likewise.
22538 (altivec_vpku<VI_char>um): Likewise.
22539 (altivec_vrl<VI_char>): Likewise.
22540 (altivec_vsl<VI_char>): Likewise.
22541 (altivec_vsr<VI_char>): Likewise.
22542 (altivec_vsra<VI_char>): Likewise.
22543 (altivec_vsldoi_<mode>): Likewise.
22544 (altivec_vupkhsb): Likewise.
22545 (altivec_vupkhs<VU_char>): Likewise.
22546 (altivec_vupkls<VU_char>): Likewise.
22547 (altivec_vupkhsh): Likewise.
22548 (altivec_vupklsb): Likewise.
22549 (altivec_vupklsh): Likewise.
22550 (altivec_vcmpequ<VI_char>_p): Likewise.
22551 (altivec_vcmpgts<VI_char>_p): Likewise.
22552 (altivec_vcmpgtu<VI_char>_p): Likewise.
22553 (abs<mode>2): Likewise.
22554 (vec_unpacks_hi_v16qi): Likewise.
22555 (vec_unpacks_hi_v8hi): Likewise.
22556 (vec_unpacks_lo_v16qi): Likewise.
22557 (vec_unpacks_hi_<VP_small_lc>): Likewise.
22558 (vec_unpacks_lo_v8hi): Likewise.
22559 (vec_unpacks_lo_<VP_small_lc>): Likewise.
22560 (vec_pack_trunc_v8h): Likewise.
22561 (vec_pack_trunc_v4si): Likewise.
22562 (vec_pack_trunc_<mode>): Likewise.
22564 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
22566 (vec_vmaxsd): Likewise.
22567 (vec_vmaxud): Likewise.
22568 (vec_vminsd): Likewise.
22569 (vec_vminud): Likewise.
22570 (vec_vpksdss): Likewise.
22571 (vec_vpksdus): Likewise.
22572 (vec_vpkudum): Likewise.
22573 (vec_vpkudus): Likewise.
22574 (vec_vrld): Likewise.
22575 (vec_vsld): Likewise.
22576 (vec_vsrad): Likewise.
22577 (vec_vsrd): Likewise.
22578 (vec_vsubudm): Likewise.
22579 (vec_vupkhsw): Likewise.
22580 (vec_vupklsw): Likewise.
22582 2013-05-29 Jan Hubicka <jh@suse.cz>
22584 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
22585 flags; reorder rest of fields in more consistent way.
22586 (varpool_node): Remove analyzed, finalized and alias.
22587 (cgraph_ndoe): Likewise.
22588 (symtab_alias_ultimate_target): New function.
22589 (cgraph_function_node): Move offline.
22590 (cgraph_reset_node): Declare.
22591 (cgraph_comdat_can_be_unshared_p): Remove.
22592 (varpool_remove_initializer): Declare.
22593 (varpool_first_defined_variable, varpool_next_defined_variable
22594 cgraph_first_defined_function, cgraph_next_defined_function): Update.
22595 (cgraph_function_with_gimple_body_p): Update.
22596 (varpool_all_refs_explicit_p): Update.
22597 (symtab_alias_target): New function.
22598 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
22599 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
22600 (cgraph_function_or_thunk_node): Simplify using
22601 symtab_alias_ultimate_target.
22602 (varpool_variable_node): Likewise.
22603 * cgraph.c (cgraph_create_function_alias): Update.
22604 (cgraph_add_thunk): Update.
22605 (cgraph_remove_node): Update.
22606 (dump_cgraph_node): Do not dump removed flags.
22607 (cgraph_function_body_availability): Update.
22608 (cgraph_propagate_frequency): Update.
22609 (verify_cgraph_node): Check sanity of local flag.
22610 (cgraph_function_node): Move here from cgraph.h; revamp for
22611 cgraph_function_or_thunk_node.
22612 * lto-symtab.c (lto_varpool_replace_node): Update.
22613 (lto_symtab_resolve_can_prevail_p): Update.
22614 (lto_symtab_merge_cgraph_nodes): Update.
22615 * ipa-cp.c (determine_versionability, initialize_node_lattices,
22616 propagate_constants_accross_call, devirtualization_time_bonus,
22617 ipcp_propagate_stage): Update.
22618 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
22619 * ipa-inline-transform.c (clone_inlined_nodes,
22620 preserve_function_body_p): Update.
22621 * ipa-reference.c (propagate): Update.
22622 (write_node_summary_p): Update.
22623 * toplev.c (wrapup_global_declaration_2): Update.
22624 * cgraphunit.c (cgraph_analyze_function): Rename to ...
22625 (analyze_function) ... this one.
22626 (cgraph_process_new_functions): Update.
22627 (cgraph_reset_node): Export.
22628 (cgraph_finalize_function): Update.
22629 (cgraph_add_new_function): Update.
22630 (process_function_and_variable_attributes): Update.
22631 (varpool_finalize_decl): Update.
22632 (symbol_finalized): Remove.
22633 (symbol_finalized_and_needed): Rename to ...
22634 (symbol_defined_and_needed): ... update.
22635 (cgraph_analyze_functions): Update.
22636 (handle_alias_pairs): Update.
22637 (mark_functions_to_output): Update.
22638 (assemble_thunk): Update.
22639 (output_in_order): Update.
22640 (output_weakrefs): Update.
22641 (finalize_compilation_unit): Update.
22642 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
22643 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
22644 input_node, input_varpool_node): Update.
22645 * dbxout.c (dbxout_expand_expr): Update.
22646 * cgraphclones.c (cgraph_clone_node): Update.
22647 (cgraph_copy_node_for_versioning): Update.
22648 (cgraph_materialize_clone): Update.
22649 (cgraph_materialize_all_clones): Update.
22650 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
22651 propagate_pure_const, propagate_nothrow): Update.
22652 * lto-streamer-out.c (lto_output, write_symbol): Update.
22653 * ipa-utils.c (ipa_reverse_postorder): Update.
22654 * ipa-inline.c (can_inline_edge_p): Update.
22655 (update_caller_keys, ipa_inline): Update.
22656 * dwarf2out.c (reference_to_unused,
22657 premark_types_used_by_global_vars_helper): Update.
22658 * tree-eh.c (tree_could_trap_p): Update.
22659 * ipa-split.c (consider_split, execute_split_functions): Update.
22660 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
22661 has_addr_references_p): Update; move ahead in file for better
22663 (process_references): Simplify.
22664 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
22665 bodies are removed.
22666 (cgraph_comdat_can_be_unshared_p): Make static.
22667 (cgraph_externally_visible_p): Update.
22668 (varpool_externally_visible_p): Update.
22669 (function_and_variable_visibility): Update.
22670 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
22671 ipa_tm_mark_force_output_node): Update.
22672 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
22673 estimate_edge_devirt_benefit, inline_generate_summary,
22674 inline_write_summary): Update.
22675 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
22676 * ipa-prop.c (ipa_compute_jump_functions): Update.
22677 (ipa_print_node_params, ipa_prop_read_section,
22678 ipa_update_after_lto_read, read_replacements_section): Update.
22679 * varasm.c (mark_decl_referenced): Update.
22680 (assemble_alias, dump_tm_clone_pairs): Update.
22681 * tree-inline.c (copy_bb): Update.
22682 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
22684 * symtab.c (dump_symtab_base): Print new flags.
22685 (verify_symtab_base): Verify new flags.
22686 (symtab_alias_ultimate_target): New function.
22687 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
22688 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
22690 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
22692 * i386.c (ix86_get_function_versions_dispatcher,
22693 ix86_generate_version_dispatcher_body): Update.
22694 (fold_builtin_cpu): Use varpool_add_new_variable.
22695 * varpool.c (varpool_remove_initializer): Break out from ...
22696 (varpool_remove_node): ... this one.
22697 (dump_varpool_node, varpool_node_for_asm,
22698 cgraph_variable_initializer_availability, varpool_analyze_node,
22699 varpool_assemble_decl, varpool_remove_unreferenced_decls,
22700 varpool_finalize_named_section_flags, varpool_create_variable_alias):
22703 2013-05-29 Jan Hubicka <jh@suse.cz>
22705 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
22707 2013-05-29 Easwaran Raman <eraman@google.com>
22709 PR tree-optimization/57442
22710 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
22711 when control exits the main loop.
22713 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
22715 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
22717 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
22718 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
22719 * rx/t-rx: Add rx100 under multi library matches option for nofpu
22722 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22724 PR tree-optimization/57441
22725 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
22726 Don't limit size of incr_vec to number of candidates.
22728 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
22730 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
22731 and mips16 directories.
22732 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
22733 (MULTILIB_DIRNAMES): Ditto.
22734 (MULTILIB_EXCEPTIONS): Add new exceptions.
22735 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
22736 (MULTILIB_DIRNAMES): Ditto.
22737 (MULTILIB_EXCEPTIONS): Add new exceptions.
22739 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
22740 Marcus Shawcroft <marcus.shawcroft@arm.com>
22742 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
22743 SYMBOL_TINY_ABSOLUTE.
22744 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
22745 SYMBOL_TINY_ABSOLUTE.
22746 (aarch64_expand_mov_immediate): Likewise.
22747 (aarch64_classify_symbol): Likewise.
22748 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
22749 Permit SYMBOL_TINY_ABSOLUTE.
22750 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
22752 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
22753 Marcus Shawcroft <marcus.shawcroft@arm.com>
22755 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
22756 Refactor if/switch. Replace gcc_assert with if.
22758 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
22760 * config/i386/i386.c (initial_ix86_tune_features): Enable
22761 FP Reassociation for AMD bdver1 and bdver2.
22763 2013-05-29 Martin Jambor <mjambor@suse.cz>
22765 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
22766 and IMAGPART_EXPR do not occur within other handled_components.
22768 2013-05-29 Richard Biener <rguenther@suse.de>
22770 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
22771 access on whether the use is in the BB we currently try to
22773 (vect_bb_vectorization_profitable_p): Pass the BB we currently
22774 vectorize to vect_bb_slp_scalar_cost.
22776 2013-05-29 Richard Biener <rguenther@suse.de>
22778 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
22779 computing scalar cost offsetted by stmts that are kept live
22781 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
22782 for computation of scalar cost.
22784 2013-05-28 Steve Ellcey <sellcey@mips.com>
22786 * config/mips/mips-cpus.def (mips32r2): Change processor type.
22788 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
22790 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
22791 array notation built-in reduction functions.
22792 * doc/passes.texi (Passes): Added documentation about changes done
22794 * doc/invoke.texi (C Dialect Options): Added documentation about
22795 the -fcilkplus flag.
22796 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
22797 (BUILTINS_DEF): Depend on cilkplus.def.
22798 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
22799 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
22800 * cilkplus.def: New file.
22802 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
22804 PR rtl-optimization/57439
22805 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
22807 2013-05-28 Easwaran Raman <eraman@google.com>
22809 PR tree-optimization/57337
22810 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
22811 (find_insert_point): Correctly identify the insertion point
22812 when two statements with the same UID is compared.
22814 2013-05-28 Richard Biener <rguenther@suse.de>
22816 PR tree-optimization/56787
22817 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
22818 from the list of data references.
22819 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
22821 (vect_analyze_loop_operations): Likewise.
22822 (vect_transform_loop): Remove clobbers.
22824 2013-05-28 Martin Jambor <mjambor@suse.cz>
22826 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
22827 and REALPART_EXPRs have scalar type.
22829 2013-05-28 Richard Biener <rguenther@suse.de>
22831 PR tree-optimization/57411
22832 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
22834 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
22835 virtual operand propagation.
22837 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
22839 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
22840 destination register for bmasksi_vis.
22841 (vector_init_bshuffle): Likewise.
22842 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
22844 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
22846 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
22847 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
22848 mode if the instruction isn't available in the original mode.
22849 * config/sparc/sparc.opt (mfix-ut699): New option.
22850 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
22851 (divdf3): Turn into expander.
22852 (divdf3_nofix): New insn.
22853 (divdf3_fix): Likewise.
22854 (divsf3): Disable if -mfix-ut699.
22855 (sqrtdf2): Turn into expander.
22856 (sqrtdf2_nofix): New insn.
22857 (sqrtdf2_fix): Likewise.
22858 (sqrtsf2): Disable if -mfix-ut699.
22860 2013-05-27 Richard Biener <rguenther@suse.de>
22862 PR middle-end/57412
22863 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
22864 block for the new loop.
22866 2013-05-27 Richard Biener <rguenther@suse.de>
22868 PR tree-optimization/57343
22869 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
22870 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
22871 (number_of_iterations_cond): Do not build the folded tree.
22873 2013-05-27 Richard Biener <rguenther@suse.de>
22876 PR middle-end/57381
22877 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
22878 OEP_CONSTANT_ADDRESS_OF retained.
22880 PR tree-optimization/57417
22881 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
22882 for unchanged base.
22883 (set_ssa_val_to): Compare addresses using
22884 get_addr_base_and_unit_offset.
22886 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
22888 PR rtl-optimization/56833
22889 * postreload.c (move2add_record_mode): New function.
22890 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
22891 (move2add_use_add2_insn): Use move2add_record_sym_value.
22892 (move2add_use_add3_insn): Likewise.
22893 (reload_cse_move2add): Use move2add_valid_value_p and
22894 move2add_record_mode. Invalidate call-clobbered and REG_INC
22895 affected regs by setting reg_mode to VOIDmode.
22896 (move2add_note_store): Don't pretend the inside of a SUBREG is
22897 the actual destination. Invalidate single/leading registers by
22898 setting reg_mode to VOIDmode.
22899 Use move2add_record_sym_value, move2add_valid_value_p and
22900 move2add_record_mode.
22902 2013-05-27 Richard Biener <rguenther@suse.de>
22904 PR tree-optimization/57396
22905 * tree-affine.c (double_int_constant_multiple_p): Properly
22906 return false for val == 0 and div != 0.
22908 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
22910 * config/mips/mips.h: Use #elif in preprocessor conditions.
22912 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
22915 * config/mips/constraints.md (kl): New constraint.
22916 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
22917 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
22918 constraint for operand 0. Split after CSE for MIPS16. Emit a move
22919 from LO for MIPS16.
22920 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
22922 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
22925 * config/mips/mips.c (mips_can_inline_p): New function.
22926 (TARGET_CAN_INLINE_P): Define.
22928 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
22930 * sched-int.h (ds_t, dw_t): Make unsigned int.
22931 Fix documentation that describes how all the ds_t bits are used.
22932 Reserve the last bit for delayed-branch scheduling.
22933 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
22934 (BITS_PER_DEP_WEAK): Fix definition and documentation.
22935 (gen_dep_weak_1): Remove prototype.
22936 * sched-deps.c (get_dep_weak_1): Make static.
22937 * target.def (speculate_insn, needs_block_p, gen_spec_check,
22938 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
22939 * doc/tm.texi: Regenerate.
22940 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
22942 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
22945 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
22947 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
22948 Sandra Loosemore <sandra@codesourcery.com>
22950 * config.gcc (powerpc-*): Allow native for with-cpu.
22952 2013-05-24 Jeff Law <law@redhat.com>
22954 PR tree-optimization/57124
22955 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
22956 conversion feeding a condition if the range has an overflow
22957 if -fstrict-overflow. Add warnings for when we do make the
22960 2013-05-24 Dehao Chen <dehao@google.com>
22962 * tree-cfg.c (locus_discrim_map): Fix the typo.
22963 (locus_discrim_hasher): Likewise.
22964 (locus_discrim_hasher::hash): Likewise.
22965 (locus_discrim_hasher::equal): Likewise.
22967 2013-05-24 Martin Jambor <mjambor@suse.cz>
22969 PR tree-optimization/57294
22970 * cgraph.h (ipa_record_stmt_references): Declare.
22971 * cgraphbuild.c (ipa_record_stmt_references): New function.
22972 (build_cgraph_edges): Use ipa_record_stmt_references.
22973 (rebuild_cgraph_edges): Likewise.
22974 (cgraph_rebuild_references): Likewise.
22975 * ipa-prop.c (ipa_modify_call_arguments): Discard references
22976 associated with the old statement and build references from the
22977 newly built statements.
22978 * ipa-ref.c (ipa_remove_stmt_references): New function.
22979 * ipa-ref.h (ipa_remove_stmt_references): Declare.
22981 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
22983 * lra-constraints.c (emit_spill_move): Use smaller mode for
22985 (check_and_process_move): Consider mem-reg moves for secondary
22987 (curr_insn_transform): Don't lose insns emitted before for
22988 secondary memory moves.
22989 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
22990 reg set up in the current insn.
22992 2013-05-24 Dehao Chen <dehao@google.com>
22994 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
22996 (locus_descrim_hasher::equal): Likewise.
22997 (build_gimple_cfg): New discriminator assignment algorithm.
22998 (make_edges): Likewise.
22999 (next_discriminator_for_locus): Likewise.
23000 (same_line_p): Likewise.
23001 (assign_discriminators): Likewise.
23002 (make_cond_expr_edges): Likewise.
23003 (make_gimple_switch_edges): Likewise.
23004 (make_goto_expr_edges): Likewise.
23005 (make_gimple_asm_edges): Likewise.
23007 2013-05-24 Ian Bolton <ian.bolton@arm.com>
23009 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
23010 X format specifier to only display bottom 16 bits.
23011 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
23012 immediate to match for operand 2, since it will be masked.
23014 2013-05-24 Richard Biener <rguenther@suse.de>
23016 PR tree-optimization/57287
23017 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
23018 all SSA names that occur in abnormal PHIs.
23020 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
23023 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
23024 that index is not negative.
23026 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
23028 PR rtl-optimization/55177
23029 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
23030 (simplify_byte_swapping_operation): New.
23031 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
23032 (simplify_relational_operation_1): Deal with BSWAP.
23034 2013-05-23 Richard Henderson <rth@redhat.com>
23037 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
23038 (ix86_reorg): Call it.
23040 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
23043 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
23044 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
23045 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
23047 2013-05-23 Christian Bruel <christian.bruel@st.com>
23050 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
23052 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
23053 Marcus Shawcroft <marcus.shawcroft@arm.com>
23055 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
23056 * config/aarch64/constraints.md (Usa): Remove.
23057 * doc/md.texi (AArch64 Usa): Remove.
23059 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
23060 Marcus Shawcroft <marcus.shawcroft@arm.com>
23062 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
23063 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
23064 * config/aarch64/predicates.md (aarch64_const_address): Remove.
23065 (aarch64_mov_operand): Use aarch64_mov_operand_p.
23067 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
23069 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
23070 instruction (AdvSIMD).
23071 * config/aarch64/aarch64-builtins.c
23072 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
23073 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
23075 2013-05-23 Martin Jambor <mjambor@suse.cz>
23077 PR middle-end/57347
23078 * tree.h (contains_bitfld_component_ref_p): Declare.
23079 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
23080 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
23082 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
23083 not access a bit-field. Assert all final offsets are byte-aligned.
23085 2013-05-23 Richard Biener <rguenther@suse.de>
23087 PR tree-optimization/57380
23088 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
23089 least one invariant or re-used load.
23090 * passes.c (init_optimization_passes): Move pass_phiprop before
23093 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
23095 * config/aarch64/aarch64-simd.md
23096 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
23098 2013-05-23 Richard Biener <rguenther@suse.de>
23100 PR middle-end/57381
23101 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
23102 OEP_CONSTANT_ADDRESS_OF retained.
23104 2013-05-23 Jakub Jelinek <jakub@redhat.com>
23106 PR middle-end/57344
23107 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
23108 don't lower unit. Handle unit not being always BITS_PER_WORD.
23110 2013-05-23 Richard Biener <rguenther@suse.de>
23112 PR rtl-optimization/57341
23113 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
23114 instead of true_dependence.
23116 2013-05-22 David Malcolm <dmalcolm@redhat.com>
23118 * bb-reorder.c (branch_threshold): Make const.
23119 (exec_threshold): Ditto.
23121 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
23122 Pat Haugen <pthaugen@us.ibm.com>
23123 Peter Bergner <bergner@vnet.ibm.com>
23125 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
23126 documentation for the power8 crypto builtins.
23128 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
23130 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
23131 macros for defining power8 builtin functions.
23132 (BU_P8V_AV_2): Likewise.
23133 (BU_P8V_AV_P): Likewise.
23134 (BU_P8V_VSX_1): Likewise.
23135 (BU_P8V_OVERLOAD_1): Likewise.
23136 (BU_P8V_OVERLOAD_2): Likewise.
23137 (BU_CRYPTO_1): Likewise.
23138 (BU_CRYPTO_2): Likewise.
23139 (BU_CRYPTO_3): Likewise.
23140 (BU_CRYPTO_OVERLOAD_1): Likewise.
23141 (BU_CRYPTO_OVERLOAD_2): Likewise.
23142 (XSCVSPDP): Fix typo, point to the correct instruction.
23143 (VCIPHER): Add power8 crypto builtins.
23144 (VCIPHERLAST): Likewise.
23145 (VNCIPHER): Likewise.
23146 (VNCIPHERLAST): Likewise.
23147 (VPMSUMB): Likewise.
23148 (VPMSUMH): Likewise.
23149 (VPMSUMW): Likewise.
23150 (VPERMXOR_V2DI): Likewise.
23151 (VPERMXOR_V4SI: Likewise.
23152 (VPERMXOR_V8HI: Likewise.
23153 (VPERMXOR_V16QI: Likewise.
23154 (VSHASIGMAW): Likewise.
23155 (VSHASIGMAD): Likewise.
23156 (VPMSUM): Likewise.
23157 (VPERMXOR): Likewise.
23158 (VSHASIGMA): Likewise.
23160 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
23161 __CRYPTO__ if the crypto instructions are available.
23162 (altivec_overloaded_builtins): Add support for overloaded power8
23165 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
23166 support for power8 crypto builtins.
23167 (builtin_function_type): Likewise.
23168 (altivec_init_builtins): Add support for builtins that take vector
23169 long long (V2DI) arguments.
23171 * config/rs6000/crypto.md: New file, define power8 crypto
23174 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
23175 Pat Haugen <pthaugen@us.ibm.com>
23176 Peter Bergner <bergner@vnet.ibm.com>
23178 * doc/invoke.texi (Option Summary): Add power8 options.
23179 (RS/6000 and PowerPC Options): Likewise.
23181 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
23182 constraints.md instead of rs6000.h. Reorder w* constraints. Add
23183 wm, wn, wr documentation.
23185 * config/rs6000/constraints.md (wm): New constraint for VSX
23186 registers if direct move instructions are enabled.
23187 (wn): New constraint for no registers.
23188 (wq): New constraint for quad word even GPR registers.
23189 (wr): New constraint if 64-bit instructions are enabled.
23190 (wv): New constraint if power8 vector instructions are enabled.
23191 (wQ): New constraint for quad word memory locations.
23193 * config/rs6000/predicates.md (const_0_to_15_operand): New
23194 constraint for 0..15 for crypto instructions.
23195 (gpc_reg_operand): If VSX allow registers in VSX registers as well
23196 as GPR and floating point registers.
23197 (int_reg_operand): New predicate to match only GPR registers.
23198 (base_reg_operand): New predicate to match base registers.
23199 (quad_int_reg_operand): New predicate to match even GPR registers
23200 for quad memory operations.
23201 (vsx_reg_or_cint_operand): New predicate to allow vector logical
23202 operations in both GPR and VSX registers.
23203 (quad_memory_operand): New predicate for quad memory operations.
23204 (reg_or_indexed_operand): New predicate for direct move support.
23206 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
23207 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
23208 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
23209 (POWERPC_MASKS): Add power8 options.
23210 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
23213 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
23214 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
23216 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
23217 (-mpower8-fusion): New power8 options.
23218 (-mpower8-fusion-sign): Likewise.
23219 (-mpower8-vector): Likewise.
23220 (-mcrypto): Likewise.
23221 (-mdirect-move): Likewise.
23222 (-mquad-memory): Likewise.
23224 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
23225 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
23227 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
23228 (rs6000_debug_vector_unit): Add p8_vector.
23229 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
23230 definitions. Also print fusion state.
23231 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
23232 (rs6000_builtin_mask_calculate): Add power8 builtin support.
23233 (rs6000_option_override_internal): Add support for power8.
23234 (rs6000_common_init_builtins): Add debugging for skipped builtins
23235 if -mdebug=builtin.
23236 (rs6000_adjust_cost): Add power8 support.
23237 (rs6000_issue_rate): Likewise.
23238 (insn_must_be_first_in_group): Likewise.
23239 (insn_must_be_last_in_group): Likewise.
23240 (force_new_group): Likewise.
23241 (rs6000_register_move_cost): Likewise.
23242 (rs6000_opt_masks): Likewise.
23244 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
23245 power8 capable assembler, default to power7 options.
23246 (TARGET_DIRECT_MOVE): Likewise.
23247 (TARGET_CRYPTO): Likewise.
23248 (TARGET_P8_VECTOR): Likewise.
23249 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
23250 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
23251 (VECTOR_MEM_P8_VECTOR_P): Likewise.
23252 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
23253 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
23254 (TARGET_XSCVDPSPN): Likewise.
23255 (TARGET_XSCVSPDPN): Likewsie.
23256 (TARGET_SYNC_HI_QI): Likewise.
23257 (TARGET_SYNC_TI): Likewise.
23258 (MASK_CRYPTO): Likewise.
23259 (MASK_DIRECT_MOVE): Likewise.
23260 (MASK_P8_FUSION): Likewise.
23261 (MASK_P8_VECTOR): Likewise.
23262 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
23263 temporary used by some of the direct move instructions to get two FP
23264 temporary registers does not force creation of a stack frame.
23265 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
23266 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
23267 that any VSX registers are tieable, even if they are also an
23268 Altivec vector mode.
23269 (r6000_reg_class_enum): Add wm, wr, wv constraints.
23270 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
23271 (RS6000_BTM_CRYPTO): Likewise.
23272 (RS6000_BTM_COMMON): Likewise.
23274 * config/rs6000/rs6000.md (cpu attribute): Add power8.
23275 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
23276 (enum rs6000_vector): Add power8 vector support.
23278 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23282 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
23283 (any_sibcall_could_use_r3): this and handle indirect calls.
23284 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
23286 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23288 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
23290 2013-05-22 Richard Biener <rguenther@suse.de>
23292 PR middle-end/57349
23293 * profile.c (branch_prob): Do not split blocks that are
23294 abnormally receiving from ECF_RETURNS_TWICE functions.
23296 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23298 * recog.c (offsettable_address_addr_space_p): Fix calculation of
23299 address mode. Move pointer mode initialization to the same place.
23301 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23303 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
23304 while it has any effect.
23306 2013-05-21 Easwaran Raman <eraman@google.com>
23308 PR tree-optimization/57322
23309 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
23310 UID of the statement added to the BB to be 1.
23312 2013-05-21 Jakub Jelinek <jakub@redhat.com>
23314 PR tree-optimization/57331
23315 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
23316 of conversion from pointer type to integral type with integer.
23318 2013-05-21 Martin Jambor <mjambor@suse.cz>
23321 * ipa-prop.c (ipa_read_node_info): Process param_used and
23322 controlled_uses in the same order as when writing.
23324 2013-05-21 Magnus Granberg <baldrick@free.fr>
23327 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
23329 2013-05-21 Richard Biener <rguenther@suse.de>
23331 PR tree-optimization/57318
23332 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
23333 estimate stmts with side-effects as likely eliminated.
23335 2013-05-21 Richard Biener <rguenther@suse.de>
23337 PR tree-optimization/57330
23338 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
23339 preserve the call stmts fntype.
23341 2013-05-21 Richard Biener <rguenther@suse.de>
23343 PR tree-optimization/57303
23344 * tree-ssa-sink.c (statement_sink_location): Improve killing
23345 stmt detection and properly handle self-assignments.
23347 2013-05-21 Christian Bruel <christian.bruel@st.com>
23349 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
23350 spanning registers. LEAF_REG_REMAP is supported only for contiguous
23351 registers. Set register size out of the PARALLEL loop.
23353 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
23356 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
23357 (*fmasf4, *fmasf4_media): New insns.
23359 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
23361 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
23362 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
23363 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
23364 (mips_idiv_insns): Update the comments to say that the returned
23365 instruction counts are in units of BASE_INSN_LENGTH.
23366 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
23367 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
23368 using 2 rather than 4 as the length of indirect MIPS16 and
23369 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
23370 length of a NOP. Don't divide MIPS16 lengths by 2.
23371 (mips16_split_long_branches): Assume a branch is long if the
23372 length is greater than 4 rather than 8.
23373 * config/mips/mips.md (length): Give MIPS16 lengths directly,
23374 rather than multiplying them by 2. Multiply instruction counts
23375 by BASE_INSN_LENGTH rather than 4.
23376 (*jump_mips16, tls_get_tp_mips16_<mode>)
23377 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
23379 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
23381 * config/mips/mips.md (extended_mips16): Remove branch case.
23382 (length): Remove duplicated extended_mips16 test.
23384 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
23386 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
23388 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
23390 * recog.h (Recog_data): Rename to...
23391 (recog_data_d): ...this.
23392 (recog_data): Update accordingly.
23393 * recog.c (recog_data): Likewise.
23394 * reload.c (save_recog_data): Likewise.
23395 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
23396 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
23398 2013-05-17 Julian Brown <julian@codesourcery.com>
23400 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
23401 found in a REG_EQUAL note, invalidate it.
23403 2013-05-17 Easwaran Raman <eraman@google.com>
23405 * tree-ssa-reassoc.c (find_insert_point): New function.
23406 (insert_stmt_after): Likewise.
23407 (get_def_stmt): Likewise.
23408 (ensure_ops_are_available): Likewise.
23409 (not_dominated_by): Likewise.
23410 (rewrite_expr_tree): Do not move statements beyond what is
23411 necessary. Remove call to swap_ops_for_binary_stmt...
23412 (reassociate_bb): ... and move it here.
23413 (build_and_add_sum): Assign UIDs for new statements.
23414 (linearize_expr): Likewise.
23415 (do_reassoc): Renumber gimple statement UIDs.
23417 2013-05-17 Jan Hubicka <jh@suse.cz>
23419 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
23421 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
23422 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
23424 (output_weakrefs): Update.
23426 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
23427 Martin Jambor <mjambor@suse.cz>
23429 PR middle-end/57276
23430 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
23431 value that corresponds to the given aggval is found in values vector.
23433 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
23435 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
23436 sse, sse2, sse3, ssse3 and sse4a flags to options.
23438 2013-05-17 David Malcolm <dmalcolm@redhat.com>
23440 * gengtype-state.c: (s_expr_writer): New class, to handle
23441 prettifying of output layout of s-expressions.
23442 (state_writer): New class, to write out gtype.state.
23443 (state_written_type_count): Move this variable into member data of
23445 (s_expr_writer::s_expr_writer): New code: constructor for new class
23446 (state_writer::state_writer(): ditto
23447 (s_expr_writer::write_new_line): New function
23448 (s_expr_writer::write_any_indent): ditto
23449 (s_expr_writer::begin_s_expr): ditto
23450 (s_expr_writer::end_s_expr): ditto
23451 (write_state_fileloc): convert to method of state_writer...
23452 (state_writer:: write_state_fileloc): ...and use methods of
23453 s_expr_writer to write indentation into the gtype.state output file
23454 to visually represent the hierarchical structure of the list
23456 (write_state_fields): ditto, renaming to...
23457 (state_writer::write_state_fields)
23458 (write_state_a_string): ditto, renaming to...
23459 (state_writer::write_state_a_string)
23460 (write_state_string_option): ditto, renaming to...
23461 (state_writer::write_state_string_option)
23462 (write_state_type_option): ditto, renaming to...
23463 (state_writer::write_state_type_option)
23464 (write_state_nested_option): ditto, renaming to...
23465 (state_writer::write_state_nested_option)
23466 (write_state_option): ditto, renaming to...
23467 (state_writer::write_state_option)
23468 (write_state_options): ditto, renaming to...
23469 (state_writer::write_state_options)
23470 (write_state_lang_bitmap): ditto, renaming to...
23471 (state_writer::write_state_lang_bitmap)
23472 (write_state_version): ditto, renaming to...
23473 (state_writer::write_state_version)
23474 (write_state_scalar_type): ditto, renaming to...
23475 (state_writer::write_state_scalar_type)
23476 (write_state_string_type): ditto, renaming to...
23477 (state_writer::write_state_string_type)
23478 (write_state_undefined_type): ditto, renaming to...
23479 (state_writer::write_state_undefined_type)
23480 (write_state_struct_union_type): ditto, renaming to...
23481 (state_writer::write_state_struct_union_type)
23482 (write_state_struct_type): ditto, renaming to...
23483 (state_writer::write_state_struct_type)
23484 (write_state_user_struct_type): ditto, renaming to...
23485 (state_writer::write_state_user_struct_type)
23486 (write_state_lang_struct_type): ditto, renaming to...
23487 (state_writer::write_state_lang_struct_type)
23488 (write_state_param_struct_type): ditto, renaming to...
23489 (state_writer::write_state_param_struct_type)
23490 (write_state_pointer_type): ditto, renaming to...
23491 (state_writer::write_state_pointer_type)
23492 (write_state_array_type): ditto, renaming to...
23493 (state_writer::write_state_array_type)
23494 (write_state_gc_used): ditto, renaming to...
23495 (state_writer::write_state_gc_used)
23496 (write_state_common_type_content): ditto, renaming to...
23497 (state_writer::write_state_common_type_content)
23498 (write_state_type): ditto, renaming to...
23499 (state_writer::write_state_type)
23500 (write_state_pair_list): ditto, renaming to...
23501 (state_writer::write_state_pair_list)
23502 (write_state_pair): ditto, renaming to...
23503 (state_writer::write_state_pair)
23504 (write_state_typedefs): ditto, renaming to...
23505 (state_writer::write_state_typedefs)
23506 (write_state_structures): ditto, renaming to...
23507 (state_writer::write_state_structures)
23508 (write_state_param_structs): ditto, renaming to...
23509 (state_writer::write_state_param_structs)
23510 (write_state_variables): ditto, renaming to...
23511 (state_writer::write_state_variables)
23512 (write_state_srcdir): ditto, renaming to...
23513 (state_writer::write_state_srcdir)
23514 (write_state_files_list): ditto, renaming to...
23515 (state_writer::write_state_files_list)
23516 (write_state_languages): ditto, renaming to...
23517 (state_writer::write_state_languages)
23518 (write_state): create a state_writer instance and use it when
23519 writing out the state file
23521 2013-05-17 Mike Stump <mikestump@comcast.net>
23523 PR rtl-optimization/57304
23524 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
23525 accessing DF_REF_REAL_LOC.
23527 2013-05-17 Jakub Jelinek <jakub@redhat.com>
23529 PR rtl-optimization/57281
23530 PR rtl-optimization/57300
23531 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
23532 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
23533 what the other splitter did if the registers are dead.
23535 2013-05-17 Richard Biener <rguenther@suse.de>
23537 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
23540 2013-05-17 Jakub Jelinek <jakub@redhat.com>
23542 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
23545 2013-05-17 Marek Polacek <polacek@redhat.com>
23547 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
23548 length when doing non-zero store of storing '\0' to '\0'.
23550 2013-05-17 Jakub Jelinek <jakub@redhat.com>
23552 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
23553 vect_external_def oprnd1 with loop_vinfo, try to emit
23554 optional cast, negation and and stmts on the loop preheader
23555 edge instead of into the pattern def seq.
23557 PR tree-optimization/57051
23558 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
23559 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
23561 2013-05-16 Nick Clifton <nickc@redhat.com>
23563 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
23564 (rl78_is_naked_func): New function.
23565 (rl78_expand_prologue): Skip prologue generation for naked functions.
23566 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
23567 * doc/extend.texi (naked): Add RL78 to the list of processors
23568 that supports this attribute.
23570 2013-05-16 Jeff Law <law@redhat.com>
23572 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
23574 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
23576 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
23577 cache parameters using detect_caches_amd also for CYRIX,
23578 NSC and TM2 signatures.
23580 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
23581 Dzianis Kahanovich <mahatma@eu.by>
23585 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23586 VIA/Centaur processors and determine their cache parameters
23587 using detect_caches_amd.
23589 2013-05-16 Teresa Johnson <tejohnson@google.com>
23591 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
23592 (rtl_verify_edges): New function.
23593 (rtl_verify_bb_insns): Ditto.
23594 (rtl_verify_bb_pointers): Ditto.
23595 (rtl_verify_bb_insn_chain): Ditto.
23596 (rtl_verify_fallthru): Ditto.
23597 (rtl_verify_bb_layout): Ditto.
23598 (rtl_verify_flow_info_1): Outline checks into new functions.
23599 (rtl_verify_flow_info): Ditto.
23601 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
23603 * cfghooks.c (copy_bbs): Add update_dominance argument.
23604 * cfghooks.h (copy_bbs): Update prototype.
23605 * tree-cfg.c (gimple_duplicate_sese_region):
23606 Add update_dominance argument.
23607 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
23608 * tree-ssa-loop-ch.c (copy_loop_headers): Update
23609 gimple_duplicate_sese_region call.
23610 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
23611 Update copy_bbs call.
23612 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
23613 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
23615 2013-05-16 Jakub Jelinek <jakub@redhat.com>
23617 * tree-vectorizer.h (NUM_PATTERNS): Increment.
23618 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
23619 vect_recog_rotate_pattern.
23620 (vect_recog_rotate_pattern): New function.
23622 2013-05-16 Jason Merrill <jason@redhat.com>
23624 * Makefile.in (LLINKER): New variable.
23625 (mostlyclean): Remove link mutex.
23626 * configure.ac: Handle --enable-link-mutex.
23627 * lock-and-run.sh: New script.
23629 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23632 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
23635 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23637 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
23639 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
23641 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
23642 * config/arm/arm.c (next_consecutive_mem): New function.
23643 (gen_movmem_ldrd_strd): Likewise.
23644 * config/arm/arm.md (movmemqi): Update condition and code.
23645 (unaligned_loaddi, unaligned_storedi): New patterns.
23647 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23649 * config.gcc: Obsolete *-*-solaris2.9*.
23650 * doc/install.texi (Specific, *-*-solaris2*): Document it.
23652 2013-05-16 Richard Biener <rguenther@suse.de>
23654 * passes.c (init_optimization_passes): Move pass_parallelize_loops
23655 earlier, after GRAPHITE transforms and IV canonicalization.
23657 2013-05-16 Jakub Jelinek <jakub@redhat.com>
23659 * omp-low.c (extract_omp_for_data): For collapsed loops,
23660 if at least one of the loops is known at compile time to
23661 iterate zero times, set count to 0.
23662 (expand_omp_regimplify_p): New function.
23663 (expand_omp_for_generic): For collapsed loops, if at least
23664 one of the loops isn't known to iterate at least once,
23665 add runtime check with setting count to 0.
23666 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
23667 For unsigned types if it isn't known at compile time that
23668 the loop will iterate at least once, add runtime check to bypass
23669 the whole loop if initial condition isn't true.
23671 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
23673 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
23675 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
23677 PR middle-end/57286
23678 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
23679 transformations to avoid an infinite loop.
23681 2013-05-16 Marek Polacek <polacek@redhat.com>
23683 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
23685 2013-05-15 Leif Ekblad <leif@rdos.net>
23687 * config/i386/i386.c (ix86_decompose_address): Use
23688 DEFAULT_TLS_SEG_REG to access TLS segment register.
23689 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
23690 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
23691 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
23693 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
23696 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
23697 sibling calls to functions that would normally be lazily bound,
23698 unless $gp is call-clobbered.
23700 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
23702 * config/i386/i386.c (ix86_option_override_internal): Update
23703 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
23704 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
23705 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
23706 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
23708 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
23710 2013-05-15 Andreas Schwab <schwab@suse.de>
23712 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
23713 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
23716 2013-05-15 Teresa Johnson <tejohnson@google.com>
23718 * loop-unroll.c (report_unroll_peel): Check decision before
23719 emitting unroll/peel message.
23721 2013-05-15 Teresa Johnson <tejohnson@google.com>
23723 * function.h (has_bb_partition): New rtl_data flag.
23724 (bb_reorder_complete): Ditto.
23725 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
23726 instead of flag_reorder_blocks_and_partition.
23727 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
23728 with some enhancements.
23729 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
23730 * bb-reorder.c (connect_traces): Check for has_bb_partition
23731 instead of flag_reorder_blocks_and_partition.
23732 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
23733 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
23734 verify_hot_cold_block_grouping.
23735 (partition_hot_cold_basic_blocks): Set has_bb_partition.
23737 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23740 * config/arm/predicates.md (call_insn_operand): New predicate.
23741 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
23742 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
23743 if insn is not a tail call.
23744 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
23746 * config/arm/arm.h (enum reg_class): New caller save register class.
23747 (REG_CLASS_NAMES): Likewise.
23748 (REG_CLASS_CONTENTS): Likewise.
23749 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
23752 2013-05-15 Richard Biener <rguenther@suse.de>
23754 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
23755 of MSG_OPTIMIZED_LOCATIONS.
23756 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
23757 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
23759 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
23760 of MSG_OPTIMIZED_LOCATIONS.
23761 (execute_vect_slp): Likewise.
23762 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
23763 (vect_create_cond_for_alias_checks): Likewise.
23764 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
23765 (vect_recog_widen_mult_pattern): Likewise.
23766 (vect_recog_widen_sum_pattern): Likewise.
23767 (vect_recog_over_widening_pattern): Likewise.
23768 (vect_recog_widen_shift_pattern): Likewise.
23769 (vect_recog_vector_vector_shift_pattern): Likewise.
23770 (vect_recog_divmod_pattern): Likewise.
23771 (vect_recog_mixed_size_cond_pattern): Likewise.
23772 (vect_recog_bool_pattern): Likewise.
23773 (vect_pattern_recog_1): Likewise.
23775 2013-05-15 Martin Jambor <mjambor@suse.cz>
23777 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
23778 non-functions to builtin_unreachable.
23779 * ipa-inline-transform.c (inline_call): Do not assert estimates were
23780 correct when new direct edges were discovered.
23782 2013-05-15 Martin Jambor <mjambor@suse.cz>
23784 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
23785 header, print symbol order instead of node uid, print more information
23786 about indirect edge targets.
23787 (ipa_make_edge_direct_to_target): Print symbol order instead of node
23789 (ipa_make_edge_direct_to_target): Likewise.
23790 (remove_described_reference): Likewise.
23791 (propagate_controlled_uses): Likewise.
23792 (ipa_print_node_params): Also print symbol order.
23793 (ipcp_transform_function): Print symbol order instead of node uids.
23794 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
23795 (cgraph_get_create_real_symbol_node): Likewise.
23796 * ipa-cp.c (print_lattice): Likewise.
23797 (print_all_lattices): Likewise.
23798 (determine_versionability): Likewise.
23799 (initialize_node_lattices): Likewise.
23800 (estimate_local_effects): Likewise.
23801 (update_profiling_info): Likewise.
23802 (create_specialized_node): Likewise.
23803 (perhaps_add_new_callers): Likewise.
23804 (decide_about_value): Likewise.
23805 (decide_whether_version_node): Likewise.
23806 (identify_dead_nodes): Likewise.
23807 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
23808 (dump_inline_summary): Likewise.
23809 (estimate_node_size_and_time): Likewise.
23810 (inline_analyze_function): Likewise.
23811 * ipa-inline.c (report_inline_failed_reason): Likewise.
23812 (want_early_inline_function_p): Likewise.
23813 (edge_badness): Likewise.
23814 (update_edge_key): Likewise.
23815 (inline_small_functions): Likewise. Add dumping of order to two other
23817 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
23818 instead of node uids.
23819 (propagate_pure_const): Likewise.
23820 (propagate_pure_const): Likewise.
23821 * ipa-utils.c (dump_cgraph_node_set): Likewise.
23822 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
23823 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
23825 * tree-pretty-print.c (dump_function_header): Likewise.
23826 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
23827 Print symbol order instead of node uids.
23829 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23831 * config/s390/s390.c (s390_register_move_cost): Don't impose the
23832 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
23834 2013-05-15 Richard Biener <rguenther@suse.de>
23836 PR tree-optimization/57275
23837 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
23838 return value for fail to do runtime alias checks for gather loads.
23840 2013-05-15 Jan Hubicka <jh@suse.cz>
23844 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
23845 weakrefs are not external.
23846 (lto_symtab_merge_decls): Fix thinko when dealing with
23847 non-lto_symtab decls.
23848 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
23849 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
23850 * varpool.c (dump_varpool_node): Dump more flags.
23852 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
23854 * config/i386/i386.c (processor_alias_table): Add instruction
23855 FSGSBASE for AMD bdver3 architecture.
23857 2013-05-14 Jakub Jelinek <jakub@redhat.com>
23859 * tree.c (warn_deprecated_use): Print file:line using locus color.
23860 * diagnostic.c (diagnostic_report_current_module): Print file:line
23861 and file:line:column using locus color.
23863 2013-05-14 Mike Stump <mikestump@comcast.net>
23865 * gdbinit.in: Add __null.
23867 2013-05-14 Mike Stump <mikestump@comcast.net>
23869 * recog.h: Rename struct recog_data to Recog_data.
23870 * recog.c: Likewise.
23871 * reload.c (can_reload_into): Likewise.
23872 * config/picochip/picochip.c: Likewise.
23874 2013-05-14 Mike Stump <mikestump@comcast.net>
23876 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
23878 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
23880 * resource.h (struct resources): Remove unch_memory member.
23881 (CLEAR_RESOURCE): Don't clear unch_memory.
23882 * resource.c (mark_referenced_resources): Don't set it.
23883 (mark_set_resources): Likewise.
23884 (mark_target_live_regs): Don't clear it.
23885 (init_resource_info): Likewise.
23886 * reorg.c (resource_conflicts_p): Don't compare it.
23887 (redundant_insn): Don't set it.
23889 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
23891 * emit-rtl.c (next_label): Remove unused function.
23892 (skip_consecutive_labels, link_cc0_insns): Move to ...
23893 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
23894 only place where these functions are used, and make them static.
23896 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
23898 * fold-const.c (fold_negate_expr): Handle vectors.
23899 (fold_truth_not_expr): Make it static.
23900 (fold_invert_truthvalue): New static function.
23901 (invert_truthvalue_loc): Handle vectors. Do not call
23902 fold_truth_not_expr directly.
23903 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
23904 <TRUTH_NOT_EXPR>: Do not cast to boolean.
23905 (fold_comparison): Handle vector constants.
23906 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
23907 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
23908 * tree.h (fold_truth_not_expr): Remove declaration.
23910 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
23912 * config/aarch64/aarch64-simd.md
23913 (aarch64_vcond_internal<mode>): Rename to...
23914 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
23915 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
23916 float modes. Clarify all iterator modes.
23917 (vcond<mode><mode>): Use new name for vcond expanders.
23918 (vcond<v_cmp_result><mode>): Likewise.
23919 (vcondu<mode><mode>: Likewise.
23920 * config/aarch64/iterators.md (VDQF_COND): New.
23922 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
23925 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
23926 variable for the shift amount. Check that we shift by non-negative
23929 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
23932 * config/arm/arm.h (EPILOGUE_USES): Only return true
23933 for LR_REGNUM after epilogue_completed.
23935 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
23937 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
23938 is error_mark_node.
23940 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23943 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
23944 and Solaris 11+/x86 with gld.
23945 * configure: Regenerate.
23947 2013-05-14 Jakub Jelinek <jakub@redhat.com>
23949 * expmed.c (expand_shift_1): Canonicalize rotates by
23950 constant bitsize / 2 to bitsize - 1.
23951 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
23952 case ROTATERT>: Likewise.
23955 2013-05-10 Jakub Jelinek <jakub@redhat.com>
23957 * config/i386/i386.md (rotateinv): New code attr.
23958 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
23959 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
23960 roll $31, %eax, etc.
23962 2013-05-14 Richard Biener <rguenther@suse.de>
23964 PR middle-end/57235
23965 * tree-eh.c (sink_clobbers): Give up for successors with
23966 multiple predecessors and no virtual uses.
23968 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
23970 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
23971 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
23973 2013-05-14 Jakub Jelinek <jakub@redhat.com>
23975 PR middle-end/57251
23976 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
23977 the case when both op0 and op1 have VOIDmode.
23979 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
23981 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
23982 in multiply-accumulate mode.
23984 2013-05-13 Guozhi Wei <carrot@google.com>
23986 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
23988 2013-05-13 Kai Tietz <ktietz@redhat.com>
23991 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
23992 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
23993 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
23994 * config/i386/i386.c (ix86_option_override_internal): Likewise.
23995 (ix86_expand_prologue): Likewise.
23996 (ix86_expand_split_stack_prologue): Likewise.
23997 (legitimate_pic_address_disp_p): Likewise.
23998 (legitimize_pic_address): Likewise.
23999 (legitimize_tls_address): Likewise.
24000 (legitimize_pe_coff_symbol): Likewise.
24001 (output_pic_addr_const): Likewise.
24002 (construct_plt_address): Likewise.
24003 (ix86_expand_call): Likewise.
24004 (x86_output_mi_thunk): Likewise.
24005 (x86_function_profiler): Likewise.
24007 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
24009 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
24010 similar switch cases.
24011 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
24012 (aarch64_simd_mov_to_<mode>low): Delete.
24013 (aarch64_simd_mov_to_<mode>high): Delete.
24014 (move_lo_quad_<mode>): Add w<-r alternative.
24015 (aarch64_simd_move_hi_quad_<mode>): Likewise.
24016 (aarch64_simd_mov_from_*): Update type attribute.
24017 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
24020 2013-05-13 Jan Hubicka <jh@suse.cz>
24022 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
24023 * config/i386/i386.c (ix86_compute_frame_layout,
24024 ix86_expand_epilogue, emit_i387_cw_initialization,
24025 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
24026 ix86_local_alignment): Fix use of size/speed predicates.
24028 2013-05-13 Jakub Jelinek <jakub@redhat.com>
24030 PR tree-optimization/45216
24031 PR tree-optimization/57157
24032 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
24033 the (-Y) & (B - 1) variant if OP is |.
24034 * expmed.c (expand_shift_1): For rotations by const0_rtx just
24035 return shifted. Use (-op1) & (prec - 1) as other_amount
24036 instead of prec - op1.
24038 2013-05-13 Martin Jambor <mjambor@suse.cz>
24040 PR middle-end/42371
24041 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
24042 (ipa_constant_data): New type.
24043 (ipa_jump_func): Use ipa_constant_data to hold information about
24044 constant jump functions.
24045 (ipa_get_jf_constant): Adjust to jump function type changes.
24046 (ipa_get_jf_constant_rdesc): New function.
24047 (ipa_param_descriptor): New field controlled_uses.
24048 (ipa_get_controlled_uses): New function.
24049 (ipa_set_controlled_uses): Likewise.
24050 * ipa-ref.h (ipa_find_reference): Declare.
24051 * ipa-prop.c (ipa_cst_ref_desc): New type.
24052 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
24054 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
24055 New parameter cs. Adjust all callers.
24056 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
24057 (remove_described_reference): New function.
24058 (jfunc_rdesc_usable): Likewise.
24059 (try_make_edge_direct_simple_call): Decrement controlled use count,
24060 attempt to remove reference if it hits zero.
24061 (combine_controlled_uses_counters): New function.
24062 (propagate_controlled_uses): Likewise.
24063 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
24064 (ipa_edge_duplication_hook): Duplicate reference descriptions.
24065 (ipa_print_node_params): Print described use counter.
24066 (ipa_write_jump_function): Adjust to jump function type changes.
24067 (ipa_read_jump_function): New parameter CS, pass it to
24068 ipa_set_jf_constant. Adjust caller.
24069 (ipa_write_node_info): Stream controlled use count
24070 (ipa_read_node_info): Likewise.
24071 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
24073 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
24074 count. Remove cloning-added reference if it reaches zero.
24075 * ipa-ref.c (ipa_find_reference): New function.
24077 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
24079 * config/i386/i386.c (processor_target_table): Modified default
24080 alignment values for AMD BD and BT architectures.
24082 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
24084 * tree-vect-generic.c (uniform_vector_p): Move ...
24085 * tree.c (uniform_vector_p): ... here.
24086 * tree.h (uniform_vector_p): Declare it.
24087 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
24090 2013-05-13 Jakub Jelinek <jakub@redhat.com>
24092 PR tree-optimization/57230
24093 * tree-ssa-strlen.c (handle_char_store): Record length for
24094 array store from STRING_CST.
24096 PR tree-optimization/57230
24097 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
24100 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
24102 * config/epiphany/epiphany.c (epiphany_init): Check size of
24103 NUM_MODES_FOR_MODE_SWITCHING.
24104 (epiphany_expand_prologue):
24105 Remove CONFIG_REGNUM initial value handling code.
24106 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
24107 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
24108 (emit_set_fp_mode, epiphany_mode_after): Likewise.
24109 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
24110 Don't return 1 for FP_MODE_NONE.
24111 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
24112 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
24113 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
24114 * config/epiphany/epiphany.md (save_config): New pattern.
24116 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
24118 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
24120 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
24122 * config/i386/i386.md (memory): Handle sseishft1.
24123 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
24124 (*vec_extractv2di_1): Ditto.
24126 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
24128 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
24131 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
24133 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
24134 Add mthumb/march=armv7-a multilib.
24135 Add mthumb/march=armv7-r multilib.
24136 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
24138 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
24140 * config/v850/t-rtems: Add more multilibs.
24142 2013-05-10 Richard Biener <rguenther@suse.de>
24144 PR tree-optimization/57214
24145 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
24146 not propagate from SSA names that occur in abnormal PHI nodes.
24148 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
24150 * stor-layout.c (element_precision): New function.
24151 * machmode.h (element_precision): Declare it.
24152 * tree.c (build_minus_one_cst): New function.
24153 (element_precision): Likewise.
24154 * tree.h (build_minus_one_cst): Declare new function.
24155 (element_precision): Likewise.
24156 * fold-const.c (operand_equal_p): Use element_precision.
24157 (fold_binary_loc): Handle vector types.
24158 * convert.c (convert_to_integer): Use element_precision.
24159 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
24162 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
24164 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
24165 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
24166 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
24167 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
24168 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
24169 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
24170 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
24171 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
24172 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
24173 (Uuw8): New constraints.
24174 (Usb4): Move into alphabetical order.
24175 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
24176 (sd8_operand, ub8_operand, uw8_operand): New predicates.
24177 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
24178 previously unnamed patterns.
24179 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
24180 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
24181 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
24182 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
24183 of set_attr_alternative/if_then_else. Use extended_mips16 instead
24184 of specific lengths.
24186 2013-05-10 Jakub Jelinek <jakub@redhat.com>
24188 * config/i386/i386.md (rotateinv): New code attr.
24189 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
24190 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
24191 roll $31, %eax, etc.
24193 PR tree-optimization/45216
24194 PR tree-optimization/57157
24195 * tree-ssa-forwprop.c (simplify_rotate): New function.
24196 (ssa_forward_propagate_and_combine): Call it.
24198 2013-05-10 Richard Biener <rguenther@suse.de>
24200 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
24201 disable peeling when we version for aliasing.
24202 (vector_alignment_reachable_p): Honor explicit user alignment.
24203 (vect_supportable_dr_alignment): Likewise.
24204 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
24205 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
24206 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
24207 then peeling to arrange for the cost-model check to come first.
24209 2013-05-10 Alan Modra <amodra@gmail.com>
24211 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
24212 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
24213 * configure: Regenerate.
24215 2013-05-10 Alan Modra <amodra@gmail.com>
24218 * varasm.c (default_elf_select_section): Move !DECL_P check..
24219 (get_named_section): ..to here before calling get_section_name.
24221 (default_section_type_flags): Add DECL_P check.
24222 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
24223 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
24225 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
24227 * config/epiphany/epiphany.c (epiphany_expand_prologue):
24228 When using gen_stack_adjust_str with a register offset, add a
24229 REG_FRAME_RELATED_EXPR note.
24231 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
24233 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
24234 (*vec_extractv4si_zext_mem): Ditto.
24235 (*vec_extractv2di): Add 0->x and x->x alternatives.
24236 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
24237 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
24239 2013-05-09 Jason Merrill <jason@redhat.com>
24241 N3639 C++1y VLA support
24242 * gimplify.c (gimplify_vla_decl): Don't touch an existing
24245 * tree.c (build_constructor_va): New.
24246 * tree.h: Declare it.
24248 2013-05-09 Martin Jambor <mjambor@suse.cz>
24251 * gimple-fold.c (canonicalize_constructor_val): Call
24252 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
24254 2013-05-09 Jan Hubicka <jh@suse.cz>
24255 Richard Biener <rguenther@suse.de>
24258 * symtab.c (symtab_make_decl_local): Do not add private names.
24260 2013-05-09 Jan Hubicka <jh@suse.cz>
24263 * symtab.c (insert_to_assembler_name_hash): Handle clones.
24264 (unlink_from_assembler_name_hash): Likewise.
24265 (symtab_prevail_in_asm_name_hash, symtab_register_node,
24266 symtab_unregister_node, symtab_initialize_asm_name_hash,
24267 change_decl_assembler_name): Update.
24269 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
24271 * config/aarch64/aarch64.md: New movtf split.
24272 (*movtf_aarch64): Update.
24273 (aarch64_movdi_tilow): Handle TF modes and rename to
24274 aarch64_movdi_<mode>low.
24275 (aarch64_movdi_tihigh): Handle TF modes and rename to
24276 aarch64_movdi_<mode>high
24277 (aarch64_movtihigh_di): Handle TF modes and rename to
24278 aarch64_mov<mode>high_di
24279 (aarch64_movtilow_di): Handle TF modes and rename to
24280 aarch64_mov<mode>low_di
24281 (aarch64_movtilow_tilow): Remove spurious whitespace.
24282 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
24284 (aarch64_print_operand): Update.
24286 2013-05-09 Alan Modra <amodra@gmail.com>
24288 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
24290 * configure: Regenerate.
24292 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
24294 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
24295 splitter preparation statements.
24296 * config/i386/sse.md (*vec_extract* splitters): Ditto.
24297 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
24300 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24302 * gimple-ssa-strength-reduction.c (count_candidates): Change
24303 return value to int.
24304 (analyze_candidates_and_replace): Change type of length to int.
24306 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
24308 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
24309 (*vec_extract<mode>): Use VI12_128 mode iterator.
24310 (*vec_extract<mode>_mem): Ditto.
24311 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
24314 2013-05-08 Diego Novillo <dnovillo@google.com>
24319 2012-08-17 Diego Novillo <dnovillo@google.com>
24322 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
24323 * config.in: Regenerate.
24324 * configure: Regenerate.
24325 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
24327 2013-05-08 Jan Hubicka <jh@suse.cz>
24330 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
24331 * cgraph.h (symtab_node_base): Add unique_name.
24332 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
24333 input_overwrite_node, input_varpool_node): Stream unique_name.
24334 * cgraphclones.c (cgraph_create_virtual_clone,
24335 cgraph_function_versioning): Set unique_name.
24336 * ipa.c (function_and_variable_visibility): Set unique_name.
24338 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24340 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
24341 (alloc_cand_and_find_basis): Restrict conditional candidate
24342 processing to CAND_MULTs.
24344 2013-05-08 Jan Hubicka <jh@suse.cz>
24347 lto-symtab.c (lto_symtab_symbol_p): New function.
24348 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
24349 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
24350 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
24351 Skip static symbols.
24353 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
24355 PR tree-optimization/57200
24356 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
24357 Only call inform if the preceding warning_at returns true.
24359 2013-05-07 Han Shen <shenhan@google.com>
24361 * cfgexpand.c (record_or_union_type_has_array_p): New function.
24362 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
24363 * common.opt (fstack-protector-strong): New option.
24364 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
24365 * doc/invoke.texi (Optimization Options): Document
24366 "-fstack-protector-strong".
24367 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
24369 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
24371 * config/mips/mips.c (mips_machine_reorg2): Return 0.
24373 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
24375 * ira.c (update_equiv_regs): Add insn having equiv memory even if
24376 it is not lhs of the insn.
24377 (setup_reg_equiv): Remove insn having equiv memory which it is not
24379 * lra-constraints.c (process_address): Try to improve generation
24380 code for address base + disp.
24381 (lra_constraints): Make correct the code for checking insn setting
24382 up backward equivalence. Remove insn only if it is in the init
24384 * lra-eliminations.c (update_reg_eliminate): Change return value.
24385 (lra_eliminate): Use the result.
24387 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
24389 * config/i386/sse.md (ssescalarnummask): New mode attribute.
24390 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
24391 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
24392 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
24393 register target operands.
24394 (*vec_extractv8hi_sse2): New pattern.
24395 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
24396 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
24397 (*vec_extract<mode>_mem): New insn and split pattern.
24399 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
24401 * config/arm/arm.c (arm_asan_shadow_offset): New function.
24402 (TARGET_ASAN_SHADOW_OFFSET): Define.
24403 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
24404 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
24406 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24408 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
24409 (incr_vec_index): Return -1 if increment not found.
24410 (create_add_on_incoming_edge): Assert if increment not found.
24411 (record_increment): Limit number of increments recorded.
24412 (all_phi_incrs_profitable): Return false if an increment not found.
24413 (replace_profitable_candidates): Don't process increments that were
24415 (analyze_candidates_and_replace): Limit size of incr_vec.
24417 2013-05-07 Richard Biener <rguenther@suse.de>
24419 * calls.c (special_function_p): setjmp-like functions are leaf.
24420 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
24421 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
24423 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
24425 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
24426 (aarch64_simd_mov<mode>): New expander.
24427 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
24428 (aarch64_simd_mov_to_<mode>high): Likewise.
24429 (aarch64_simd_mov_from_<mode>low): Likewise.
24430 (aarch64_simd_mov_from_<mode>high): Likewise.
24431 (aarch64_dup_lane<mode>): Update.
24432 (aarch64_dup_lanedi): New instruction pattern.
24433 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
24434 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
24436 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24438 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
24439 (replace_mult_candidate): Remove unnecessary argument; remove
24440 unnecessary parameter from call to introduce_cast_before_cand.
24441 (replace_unconditional_candidate): Remove unnecessary parameter
24442 from call to replace_mult_candidate.
24443 (replace_conditional_candidate): Likewise.
24444 (insert_initializers): Use make_temp_ssa_name.
24445 (introduce_cast_before_cand): Remove unnecessary argument; use
24446 make_temp_ssa_name.
24447 (replace_one_candidate): Remove unnecessary argument; remove
24448 unnecessary parameter from calls to introduce_cast_before_cand.
24449 (replace_profitable_candidates): Remove unnecessary parameters
24450 from calls to replace_one_candidate.
24452 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24454 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
24455 phi def as possibly hiding a basis for a CAND_ADD whose operands
24456 have been commuted in the analysis.
24457 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
24459 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24461 * config/aarch64/aarch64.md
24462 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
24463 shift value between 0-4.
24465 2013-05-07 Richard Biener <rguenther@suse.de>
24467 * double-int.h (rshift): New overload.
24468 * double-int.c (rshift): New function.
24469 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
24470 (create_reference_ops_from_ref): Remove.
24471 (vn_reference_insert): Use shared ops for constructing the
24472 reference and copy it.
24474 2013-05-07 Richard Biener <rguenther@suse.de>
24476 PR middle-end/57190
24477 * tree-eh.c (sink_clobbers): Properly propagate
24478 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
24480 2013-05-07 Jakub Jelinek <jakub@redhat.com>
24482 PR tree-optimization/57149
24483 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
24484 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
24485 collect_phi_def_edges, execute_late_warn_uninitialized): Use
24486 uninit_undefined_value_p instead of ssa_undefined_value_p.
24489 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
24490 for modifier == EXPAND_INITIALIZER.
24492 2013-05-07 Anton Blanchard <anton@samba.org>
24494 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
24495 for powerpc64 little endian.
24496 * configure: Regenerate.
24498 2013-05-06 Graham Stott <grahams@btinternet.com>
24500 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
24501 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
24502 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
24503 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
24505 2013-05-06 Graham Stott <grahams@btinternet.com>
24507 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
24508 codes which allow non-lvalues.
24510 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
24512 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
24513 components are all 1s.
24514 (integer_minus_onep): New function.
24515 * tree.h (integer_minus_onep): Declare it.
24516 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
24517 integer_minus_onep instead of integer_all_onesp.
24519 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24522 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
24523 variations of these patterns.
24525 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
24527 * config/i386/i386.md (isa): Add x64_sse4 member.
24528 (enabled): Handle x64_sse4.
24529 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
24530 instruction for 64bit SSE4_1 targets. Update insn attributes.
24531 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
24532 instruction for SSE4_1 targets. Update insn attributes.
24533 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
24534 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
24535 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
24537 (*vec_extractv4si): Rename from *sse4_1_pextrd.
24538 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
24539 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
24541 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24544 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
24546 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
24548 * final.c (do_assembler_dialects): Don't handle curly braces and
24549 vertical bar escaped by % as dialect delimiters.
24550 (output_asm_insn): Print curly braces and vertical bar if escaped
24551 by % and ASSEMBLER_DIALECT defined.
24552 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
24553 * doc/tm.texi: Regenerated.
24555 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
24557 * config/mips/mips.c: Include tree-pass.h.
24558 (mips_reorg): Split in pre- and post-dbr_schedule parts.
24559 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
24560 (pass_mips_machine_reorg2): New machine specific pass.
24561 (insert_pass_mips_machine_reorg2): New pass plugin definition.
24562 (mips_option_override): Register the new pass.
24563 * rtl.h (cleanup_barriers): Remove prototype.
24564 (dbr_schedule): Likewise.
24565 * jump.c (cleanup_barriers): Make static.
24566 * reorg.c (dbr_schedule): Likewise.
24568 2013-05-06 Richard Biener <rguenther@suse.de>
24570 PR tree-optimization/57185
24571 * tree-parloops.c (add_field_for_reduction): Handle anonymous
24572 SSA names properly.
24574 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
24577 * config/i386/i386.c (add_parameter_dependencies): Add dependence
24578 between "first_arg" and "insn", not "last" and "insn".
24580 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24582 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
24583 (find_candidates_in_block): Re-enable slsr_process_phi.
24584 (create_phi_basis): Fix double counting of candidate adjustment.
24586 2013-05-06 Richard Biener <rguenther@suse.de>
24588 PR middle-end/57147
24589 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
24590 the edge is also fallthru, preserve it and just clear the
24592 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
24593 also complex, preserve that and just clear the fallthru flag.
24594 * tree-inline.c (update_ssa_across_abnormal_edges): Also
24595 update virtual operands.
24597 2013-05-06 Alan Modra <amodra@gmail.com>
24599 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
24600 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
24601 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
24602 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
24603 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
24604 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
24606 2013-05-06 Alan Modra <amodra@gmail.com>
24608 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
24609 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
24610 (DEFAULT_ASM_ENDIAN): Define.
24611 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
24612 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
24613 Update -K PIC clause from sysv4.h.
24614 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
24615 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
24617 2013-05-06 Alan Modra <amodra@gmail.com>
24619 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
24620 twice for little-endian.
24621 (ashrdi3_no_power, ashrdi3): Support little-endian.
24623 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24626 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
24627 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
24629 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
24630 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
24631 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
24634 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
24635 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24637 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
24638 * config/pa/pa.opt: Make mbig-switch a no-op.
24639 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
24640 (CASE_VECTOR_MODE): Always return SImode.
24641 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
24642 for the !TARGET_BIG_SWITCH case.
24643 * config/pa/pa-linux.h: Likewise.
24644 * config/pa/pa-openbsd.h: Likewise.
24645 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
24646 * config/pa/pa.md (short_jump): Remove define_insn.
24647 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
24648 (casesi0): Remove define_insn.
24649 (type): Remove btable_branch.
24650 (pa_combine_type): Likewise.
24651 (in_nullified_branch_delay): Likewise.
24652 (in_call_delay): Likewise.
24653 (define_delay): Likewise.
24654 (define_insn_reservation "Z3"): Likewise.
24655 (define_insn_reservation "Z4"): Likewise.
24656 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
24657 (pa_adjust_insn_length): Remove adjustment for btable branches.
24658 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
24661 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
24663 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
24664 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
24665 Add m->r,x alternatives.
24666 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
24667 splitters using SWI48x mode iterator.
24668 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
24669 TARGET_64BIT. Add m->x alternative.
24670 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
24671 Add o->x alternative. Enable for TARGET_SSE.
24672 (sse_storeq): Remove expander.
24673 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
24674 with memory input operand.
24675 (*vec_extractv2di_1 splitter): New.
24676 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
24677 * config/i386/i386.md (ssevecmodelower): New mode attribute.
24679 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24681 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
24682 (INT_LOWPART): Delete.
24683 (extract_MB): Adjust.
24684 (extract_ME): Adjust.
24685 (print_operand): Adjust.
24687 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24689 * config/rs6000/predicates.md (reg_or_add_cint_operand,
24690 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
24691 (reg_or_logical_cint_operand, easy_fp_constant,
24692 logical_const_operand): Delete "CONST_DOUBLE" case.
24693 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
24694 "HOST_BITS_PER_WIDE_INT == 64" test.
24695 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
24696 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
24697 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
24698 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
24700 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
24701 CONST_DOUBLE DImode/VOIDmode case.
24702 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
24703 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
24704 CONST_DOUBLE VOIDmode case.
24705 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
24706 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
24707 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
24708 Delete CONST_DOUBLE case.
24709 (splitters for mov FMOVE64 const_double): Delete
24710 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
24711 "HOST_BITS_PER_WIDE_INT >= 64" test.
24712 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
24714 (mov DI const_double): Delete.
24716 2013-05-04 Jakub Jelinek <jakub@redhat.com>
24718 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
24719 on op shows all bits zero in mode of a lowpart subreg, return zero.
24721 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
24724 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
24725 to save TFmode registers and DImode to save TImode registers for
24726 caller save operations.
24727 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
24728 mark being partially clobbered since they only use the first
24731 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
24732 and TDmode only use the upper 64-bits of each VSX register.
24734 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24736 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
24737 (find_candidates_in_block): Disable slsr_process_phi.
24739 2013-05-03 Guozhi Wei <carrot@google.com>
24741 * coverage.c (coverage_obj_init): Move the construction of gcov
24743 (build_init_ctor): ... here.
24745 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24747 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
24748 (slsr_cand_d): Redefine def_phi.
24749 (stride_status, phi_adjust_status, count_phis_status): New enums.
24750 (find_phi_def): New.
24751 (find_basis_for_base_expr): New.
24752 (find_basis_for_candidate): Handle hidden bases.
24753 (alloc_cand_and_find_basis): Handle phi candidates.
24754 (slsr_process_phi): New.
24755 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
24756 (create_mul_imm_cand): Likewise.
24757 (create_add_ssa_cand): Exclude phi base candidates.
24758 (create_add_imm_cand): Likewise.
24759 (slsr_process_cast): Likewise.
24760 (slsr_process_copy): Likewise.
24761 (find_candidates_in_block): Handle phi candidates.
24762 (dump_candidate): Likewise.
24763 (unconditional_cands): Delete.
24764 (unconditional_cands_with_known_stride_p): Delete.
24765 (phi_dependent_cand_p): New.
24766 (cand_increment): Handle phi-dependent candidates.
24767 (replace_dependent): Delete.
24768 (replace_mult_candidate): New.
24769 (replace_unconditional_candidate): New.
24770 (incr_vec_index): Move to avoid forward reference.
24771 (create_add_on_incoming_edge): New.
24772 (create_phi_basis): New.
24773 (replace_dependents): Delete.
24774 (replace_conditional_candidate): New.
24775 (phi_add_costs): New.
24776 (replace_uncond_cands_and_profitable_phis): New.
24777 (record_increment): Handle phi adjustments.
24778 (record_phi_increments): New.
24779 (record_increments): Handle phi adjustments.
24780 (phi_incr_cost): New.
24781 (lowest_cost_path): Handle phis.
24782 (total_savings): Likewise.
24783 (analyze_increments): Likewise.
24784 (ncd_with_phi): New.
24785 (ncd_of_cand_and_phis): New.
24786 (nearest_common_dominator_for_cands): Handle phi increments.
24787 (all_phi_incrs_profitable): New.
24788 (replace_profitable_candidates): Handle phi-dependent candidates.
24789 (analyze_candidates_and_replace): Likewise.
24791 2013-05-03 Teresa Johnson <tejohnson@google.com>
24794 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
24795 do not exceed REG_BR_PROB_BASE.
24797 2013-05-03 Jeff Law <law@redhat.com>
24799 PR tree-optimization/57144
24800 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
24801 operand of the condition will bit into the new type when eliminating
24802 a cast feeding a condition.
24804 2013-05-03 Jakub Jelinek <jakub@redhat.com>
24806 PR rtl-optimization/57130
24807 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
24808 of COMPARE as in_code to the recursive call if needed.
24810 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
24812 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
24813 (enabled): Handle new members.
24814 * config/i386/sse.md (*vec_concatv2si): Merge from
24815 *vec_concatv2si_sse2 and vec_concatv2si_sse.
24816 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
24818 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
24820 PR tree-optimization/57027
24821 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
24822 for fnms opportunity, check we got the prerequisite kind
24823 of tree / gimple before using accessor functions.
24825 2013-05-03 Richard Biener <rguenther@suse.de>
24827 * double-int.h (lshift): New overload without precision
24828 and arith argument.
24829 (operator *=, operator +=, operator -=): Move ...
24830 * double-int.c (operator *=, operator +=, operator -=): ... here
24831 and implement more efficiently.
24832 (mul_double_with_sign): Remove.
24833 (lshift_double): Adjust to take unsinged shift argument, push
24834 dispatching code to callers.
24835 (mul_double_wide_with_sign): Add early out for callers that
24836 are not interested in high parts or overflow.
24837 (lshift): New function.
24838 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
24839 dispatch code here.
24840 (lrotate, rrotate): Use logical shifts.
24841 * expr.c (get_inner_reference): Use lshift.
24842 * fixed-value.c (do_fixed_divide): Likewise.
24843 * tree-dfa.c (get_ref_base_and_extent): Likewise.
24844 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
24845 (indirect_refs_may_alias_p): Likewise.
24846 (stmt_kills_ref_p_1): Likewise.
24848 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
24850 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
24852 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
24854 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
24855 scalar form of FABD instruction.
24857 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
24859 * lra-constraints.c (process_alt_operands): Add checking alt
24860 number to choose the best alternative.
24862 2013-05-02 Richard Biener <rguenther@suse.de>
24864 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
24865 bitmap and its handling.
24866 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
24868 2013-05-02 Richard Biener <rguenther@suse.de>
24870 PR middle-end/57140
24871 * tree-inline.c (copy_loops): Properly handle removed loops.
24872 (copy_cfg_body): Mark destination loops for fixup if source
24873 loops needed fixup.
24875 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
24878 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
24879 generating simple_return for naked functions.
24881 2013-05-02 Martin Jambor <mjambor@suse.cz>
24883 PR middle-end/56988
24884 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
24885 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
24887 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
24888 ipa_agg_replacement_value structures.
24889 (known_aggs_to_agg_replacement_list): Likewise.
24890 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
24891 (read_agg_replacement_chain): Likewise.
24892 (ipcp_transform_function): Also check that by_ref flags match.
24894 2013-05-02 Richard Biener <rguenther@suse.de>
24896 * graphds.h (struct graph): Add obstack member.
24897 * graphds.c (new_graph): Initialize obstack and allocate
24899 (add_edge): Allocate edge from the obstack.
24900 (free_graph): Free the obstack instead of all edges and vertices.
24902 2013-05-02 Teresa Johnson <tejohnson@google.com>
24904 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
24906 * cfg.c (update_bb_profile_for_threading): Ditto.
24907 * tree-inline.c (copy_bb): Ditto.
24908 (copy_edges_for_bb): Ditto.
24909 (initialize_cfun): Ditto.
24910 (copy_cfg_body): Ditto.
24911 (expand_call_inline): Ditto.
24912 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
24913 (estimate_node_size_and_time): Ditto.
24914 (inline_merge_summary): Ditto.
24915 * cgraphclones.c (cgraph_clone_edge): Ditto.
24916 (cgraph_clone_node): Ditto.
24917 * sched-rgn.c (compute_dom_prob_ps): Ditto.
24918 (compute_trg_info): Ditto.
24920 2013-05-02 Ian Bolton <ian.bolton@arm.com>
24922 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
24923 S reg when fp attribute set.
24924 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
24926 2013-05-02 Ian Bolton <ian.bolton@arm.com>
24928 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
24930 (*and_one_cmplsi3_compare0_uxtw): Likewise.
24931 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
24932 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
24934 2013-05-02 Richard Biener <rguenther@suse.de>
24936 * tree-scalar-evolution.c (scev_info_hasher): Remove.
24937 (struct instantiate_cache_entry): New type.
24938 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
24939 (struct instantiate_cache_type): New type.
24940 (set_instantiated_value, get_instantiated_value): Remove.
24941 (get_instantiated_value_entry): New function.
24942 (instantiate_scev_name): Use the new cache and adjust.
24943 (instantiate_scev_poly): Adjust.
24944 (instantiate_scev_binary): Likewise.
24945 (instantiate_array_ref): Likewise.
24946 (instantiate_scev_convert): Likewise.
24947 (instantiate_scev_not): Likewise.
24948 (instantiate_scev_3): Likewise.
24949 (instantiate_scev_2): Likewise.
24950 (instantiate_scev_r): Likewise.
24951 (instantiate_scev): Likewise.
24952 (resolve_mixers): Likewise.
24954 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
24957 * lra-constraints.c (best_small_class_operands_num): Remove.
24958 (process_alt_operands): Remove small_class_operands_num. Take
24959 small classes operands into losers and only if the operand is not
24960 matched. Modify debugging output.
24961 (curr_insn_transform): Remove best_small_class_operands_num.
24964 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
24966 * config/aarch64/aarch64-builtins.c
24967 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
24968 * config/aarch64/aarch64-simd-builtins.def
24969 (reduc_splus_): Add new modes.
24970 (reduc_uplus_): New.
24971 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
24972 (reduc_uplus_v4sf): Likewise.
24973 (reduc_splus_v4sf): Likewise.
24974 (aarch64_addv<mode>): Likewise.
24975 (reduc_uplus_<mode>): Likewise.
24976 (reduc_splus_<mode>): Likewise.
24977 (aarch64_addvv2di): Likewise.
24978 (reduc_uplus_v2di): Likewise.
24979 (reduc_splus_v2di): Likewise.
24980 (aarch64_addvv2si): Likewise.
24981 (reduc_uplus_v2si): Likewise.
24982 (reduc_splus_v2si): Likewise.
24983 (reduc_<sur>plus_<mode>): New.
24984 (reduc_<sur>plus_v2di): Likewise.
24985 (reduc_<sur>plus_v2si): Likewise.
24986 (reduc_<sur>plus_v4sf): Likewise.
24987 (aarch64_addpv4sf): Likewise.
24988 * config/aarch64/arm_neon.h
24989 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
24990 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
24991 add UNSPEC_SADDV, UNSPEC_UADDV.
24993 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
24995 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
24997 * config/aarch64/arm_neon.h
24998 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
25000 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25002 * config/aarch64/aarch64-builtins
25003 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
25005 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25007 * config/aarch64/aarch64-simd-builtins.def
25008 (reduc_smax_): New.
25009 (reduc_smin_): Likewise.
25010 (reduc_umax_): Likewise.
25011 (reduc_umin_): Likewise.
25012 (reduc_smax_nan_): Likewise.
25013 (reduc_smin_nan_): Likewise.
25016 (smax): Update for V2SF, V4SF and V2DF modes.
25019 (smin_nan): Likewise.
25020 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
25021 (<su><maxmin><mode>3): ...This, refactor.
25022 (s<maxmin><mode>3): New.
25023 (<maxmin_uns><mode>3): Likewise.
25024 (reduc_<maxmin_uns>_<mode>): Refactor.
25025 (reduc_<maxmin_uns>_v4sf): Likewise.
25026 (reduc_<maxmin_uns>_v2si): Likewise.
25027 (aarch64_<fmaxmin><mode>: Remove.
25028 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
25030 (vmin<q>_f<32,64>): Likewise.
25031 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
25033 (su): Add mappings for smax, smin, umax, umin.
25035 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
25036 (FMAXMIN): Rename as...
25037 (FMAXMIN_UNS): ...This.
25039 (fmaxminv): Likewise.
25040 (fmaxmin): Likewise.
25042 (maxmin_uns_op): Likewise.
25044 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25046 * config/aarch64/arm_neon.h
25047 (vac<ge, gt><sd>_f<32, 64>): Rename to...
25048 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
25049 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
25051 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25053 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
25054 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
25056 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25058 * config/aarch64/aarch64-simd.md
25059 (vcond<mode>_internal): Handle special cases for constant masks.
25060 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
25061 (vcondu<mode><mode>): Likewise.
25062 (vcond<v_cmp_result><mode>): New.
25064 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25066 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
25067 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
25068 * config/aarch64/aarch64-simd-builtins.def
25069 (cmeq): Update to BUILTIN_VALLDI.
25074 * config/aarch64/arm_neon.h
25075 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
25076 to builtins or C as appropriate.
25078 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25080 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
25082 (cmhi): Rename to...
25084 * config/aarch64/aarch64-simd.md
25085 (simd_mode): Add SF.
25086 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
25087 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
25088 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
25089 (cstore<mode>_neg): ...This.
25090 * config/aarch64/iterators.md
25092 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
25093 (COMPARISONS): New.
25094 (UCOMPARISONS): Likewise.
25095 (optab): Add missing comparisons.
25101 (VCMP_S): Likewise.
25102 (VCMP_U): Likewise.
25103 (V_cmp_result): Add DF, SF modes.
25104 (v_cmp_result): Likewise.
25106 (vmtype): Likewise.
25107 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
25109 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
25111 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
25112 define_insn to define_insn_and_split.
25113 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
25114 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
25115 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
25116 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
25117 (thumb2_negscc): Likewise.
25119 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
25121 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
25123 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
25125 * config/arm/thumb2.md: Remove trailing whitespaces.
25127 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25129 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
25130 Use gen_int_mode rather than GEN_INT.
25132 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
25134 * value-prof.c (stream_in_histogram_value): Remove the strayed
25137 2013-04-30 Richard Biener <rguenther@suse.de>
25139 PR middle-end/57122
25140 * cfghooks.c (split_edge): Properly check for the loop latch edge.
25142 2013-04-30 Richard Biener <rguenther@suse.de>
25144 PR middle-end/57107
25145 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
25147 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
25149 PR rtl-optimization/56957
25150 PR rtl-optimization/57105
25151 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
25152 variable. Use just INSN_UID for determining whether an insn
25153 should be only disconnected from the insn stream.
25154 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
25156 2013-04-30 Jakub Jelinek <jakub@redhat.com>
25158 PR tree-optimization/57104
25159 * tsan.c (instrument_expr): Don't instrument accesses to
25160 DECL_HARD_REGISTER VAR_DECLs.
25162 2013-04-30 Richard Biener <rguenther@suse.de>
25164 * function.h (loops_for_fn): New inline function.
25165 (set_loops_for_fn): Likewise.
25166 * cfgloop.h (place_new_loop): Add struct function parameter.
25167 (get_loop): Likewise.
25168 (get_loops): Likewise.
25169 (number_of_loops): Likewise.
25170 (fel_next): Adjust.
25171 (fel_init): Likewise.
25172 * cfg.c (get_loop_copy): Adjust.
25173 * cfgloop.c (flow_loops_dump): Likewise.
25174 (record_loop_exits): Likewise.
25175 (verify_loop_structure): Likewise.
25176 * cfgloopanal.c (mark_irreducible_loops): Likewise.
25177 (estimate_reg_pressure_cost): Likewise.
25178 (mark_loop_exit_edges): Likewise.
25179 * cfgloopmanip.c (place_new_loop): Likewise.
25180 (add_loop): Likewise.
25181 (duplicate_loop): Likewise.
25182 * graph.c (draw_cfg_nodes): Likewise.
25183 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
25184 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
25185 (extract_affine_chrec): Likewise.
25186 (build_scop_iteration_domain): Likewise.
25187 * graphite.c (graphite_initialize): Likewise.
25188 * ira-build.c (create_loop_tree_nodes): Likewise.
25189 (more_one_region_p): Likewise.
25190 (rebuild_regno_allocno_maps): Likewise.
25191 (mark_loops_for_removal): Likewise.
25192 (mark_all_loops_for_removal): Likewise.
25193 (remove_unnecessary_regions): Likewise.
25194 (ira_build): Likewise.
25195 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
25196 * loop-init.c (fix_loop_structure): Likewise.
25197 (gate_rtl_move_loop_invariants): Likewise.
25198 (gate_rtl_unswitch): Likewise.
25199 (gate_rtl_unroll_and_peel_loops): Likewise.
25200 (rtl_doloop): Likewise.
25201 * lto-streamer-in.c (input_cfg): Likewise.
25202 * lto-streamer-out.c (output_cfg): Likewise.
25203 * modulo-sched.c (sms_schedule): Likewise.
25204 * predict.c (tree_estimate_probability): Likewise.
25205 (tree_estimate_probability_driver): Likewise.
25206 (estimate_loops): Likewise.
25207 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
25208 (move_sese_region_to_fn): Likewise.
25209 (debug_loop_num): Likewise.
25210 * tree-chrec.c (chrec_evaluate): Likewise.
25211 (hide_evolution_in_other_loops_than_loop): Likewise.
25212 (chrec_component_in_loop_num): Likewise.
25213 (reset_evolution_in_loop): Likewise.
25214 (evolution_function_is_invariant_rec_p): Likewise.
25215 * tree-if-conv.c (main_tree_if_conversion): Likewise.
25216 * tree-inline.c (copy_loops): Likewise.
25217 (copy_cfg_body): Likewise.
25218 (tree_function_versioning): Likewise.
25219 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
25220 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25222 (add_to_evolution_1): Likewise.
25223 (scev_const_prop): Likewise.
25224 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
25225 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
25226 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
25227 (tree_ssa_lim_initialize): Likewise.
25228 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
25229 (verify_loop_closed_ssa): Likewise.
25230 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
25231 (tree_ssa_loop_im): Likewise.
25232 (tree_ssa_loop_unswitch): Likewise.
25233 (tree_vectorize): Likewise.
25234 (check_data_deps): Likewise.
25235 (tree_ssa_loop_ivcanon): Likewise.
25236 (tree_ssa_loop_bounds): Likewise.
25237 (tree_complete_unroll): Likewise.
25238 (tree_complete_unroll_inner): Likewise.
25239 (tree_parallelize_loops): Likewise.
25240 (tree_ssa_loop_prefetch): Likewise.
25241 (tree_ssa_loop_ivopts): Likewise.
25242 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
25243 * tree-vectorizer.c (vectorize_loops): Likewise.
25245 2013-04-29 Mike Frysinger <vapier@gentoo.org>
25247 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
25248 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
25249 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
25250 with EABI_LINK_SPEC.
25252 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
25255 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
25258 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
25261 * lra-constraints.c (process_alt_operands): Discourage a bit more
25262 using memory for pseudos. Print cost dump for alternatives.
25263 Modify cost values for conflicts with early clobbers.
25264 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
25266 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
25269 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
25271 2013-04-29 Ian Bolton <ian.bolton@arm.com>
25273 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
25274 from/to S register.
25275 (movdi_aarch64): Support LDR/STR from/to D register.
25277 2013-04-29 Ian Bolton <ian.bolton@arm.com>
25279 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
25280 or higher by default.
25282 2013-04-29 Richard Biener <rguenther@suse.de>
25284 PR middle-end/57075
25285 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
25286 even if not adding abnormal edges for calls that can make
25289 2013-04-29 Richard Biener <rguenther@suse.de>
25291 PR middle-end/57103
25292 * tree-cfg.c (move_stmt_op): Fix condition under which to update
25294 (move_stmt_r): Remove redundant checking.
25296 2013-04-29 Teresa Johnson <tejohnson@google.com>
25299 * basic-block.h (apply_scale): New function.
25300 (apply_probability): Use apply_scale.
25301 * gimple-streamer-in.c (input_bb): Ditto.
25302 * lto-streamer-in.c (input_cfg): Ditto.
25303 * lto-cgraph.c (merge_profile_summaries): Ditto.
25304 * tree-optimize.c (execute_fixup_cfg): Ditto.
25305 * tree-inline.c (copy_bb): Update comment to use apply_scale.
25306 (copy_edges_for_bb): Ditto.
25307 (copy_cfg_body): Ditto.
25309 2013-04-29 Tom de Vries <tom@codesourcery.com>
25311 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
25312 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
25313 (tail_merge_optimize): Handle current_loops == NULL.
25315 2013-04-26 Jeff Law <law@redhat.com>
25317 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
25318 (simplify_cond_using_ranges): Generalize code to simplify
25319 COND_EXPRs where one argument is a constant and the other
25320 is an SSA_NAME created by an integral type conversion.
25322 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25324 * config/arm/arm.md (store_minmaxsi): Use only when
25325 optimize_insn_for_size_p.
25327 2013-04-29 Christian Bruel <christian.bruel@st.com>
25330 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
25332 2013-04-29 Richard Biener <rguenther@suse.de>
25334 PR middle-end/57089
25335 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
25336 loop tree make sure to schedule a fixup for the child as well.
25337 (expand_omp_for_generic): Properly add loops.
25338 (expand_omp_for_static_nochunk): Likewise.
25339 (expand_omp_for_static_chunk): Likewise.
25340 (expand_omp_for): For the degenerate case fixup loops.
25341 (expand_omp_sections): Fix default bb placement in loops.
25342 (expand_omp_atomic_pipeline): Properly add loops.
25344 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25346 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
25348 2013-04-29 Tom de Vries <tom@codesourcery.com>
25350 * tree-ssa-tail-merge.c: Update header comment.
25352 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25354 * config/aarch64/arm_neon.h
25355 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
25356 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
25357 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
25358 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
25359 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
25360 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
25361 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
25362 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
25364 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25366 * config/aarch64/aarch64-simd.md
25367 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
25368 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
25369 fix_trunc, fixuns_trunc.
25370 (ftrunc<VDQF:mode>2): New.
25371 * config/aarch64/iterators.md (optab): Add fix, fixuns.
25372 (fix_trunc_optab): New.
25374 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25376 * config/aarch64/aarch64-builtins.c
25377 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
25378 iceilf, lround, iroundf.
25380 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
25383 * config/i386/i386.h (enum ix86_tune_indices)
25384 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
25385 New, split from X86_TUNE_INTER_UNIT_MOVES.
25386 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
25387 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
25388 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
25389 (TARGET_INTER_UNIT_MOVES): Remove.
25390 * config/i386/i386.c (initial_ix86_tune_features): Update.
25391 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
25392 (ix86_expand_convert_uns_didf_sse): Use
25393 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
25394 (ix86_expand_vector_init_one_nonzero): Ditto.
25395 (ix86_expand_vector_init_interleave): Ditto.
25396 (inline_secondary_memory_needed): Return true for moves from SSE class
25397 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
25398 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
25399 * config/i386/constraints.md (Yi, Ym): Depend on
25400 TARGET_INTER_UNIT_MOVES_TO_VEC.
25401 (Yj, Yn): New constraints.
25402 * config/i386/i386.md (*movdi_internal): Change constraints of
25403 operand 1 from Yi to Yj and from Ym to Yn.
25404 (*movsi_internal): Ditto.
25405 (*movdf_internal): Ditto.
25406 (*movsf_internal): Ditto.
25407 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
25408 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
25409 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
25410 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
25411 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
25412 * config/i386/sse.md (movdi_to_sse): Ditto.
25413 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
25414 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
25415 TARGET_INTER_UNIT_MOVES.
25416 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
25417 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
25418 instead of TARGET_INTER_UNIT_MOVES.
25419 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
25420 operand 1 from Yi to Yj and from Ym to Yn.
25422 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25424 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
25425 (float_truncate_hi_): Likewise.
25426 (float_extend_lo_): Likewise.
25427 (float_truncate_lo_): Likewise.
25428 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
25429 (aarch64_float_extend_lo_v2df): Likewise.
25430 (vec_unpacks_hi_v4sf): Likewise.
25431 (aarch64_float_truncate_lo_v2sf): Likewise.
25432 (aarch64_float_truncate_hi_v4sf): Likewise.
25433 (vec_pack_trunc_v2df): Likewise.
25434 (vec_pack_trunc_df): Likewise.
25436 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25438 * config/aarch64/aarch64-builtins.c
25439 (aarch64_fold_builtin): Fold float conversions.
25440 * config/aarch64/aarch64-simd-builtins.def
25441 (floatv2si, floatv4si, floatv2di): New.
25442 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
25443 * config/aarch64/aarch64-simd.md
25444 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
25445 * config/aarch64/iterators.md (FLOATUORS): New.
25446 (optab): Add float, floatuns.
25447 (su_optab): Likewise.
25449 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25451 * config/aarch64/aarch64-builtins.c
25452 (aarch64_builtin_vectorized_function): Use new names for
25454 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
25455 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
25456 (fcvtzu): Split as...
25457 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
25458 (fcvtas): Split as...
25459 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
25460 (fcvtau): Split as...
25461 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
25462 (fcvtps): Split as...
25463 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
25464 (fcvtpu): Split as...
25465 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
25466 (fcvtms): Split as...
25467 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
25468 (fcvtmu): Split as...
25469 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
25470 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
25471 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
25472 (lfrintnusf, lfrintnudf): Likewise.
25473 * config/aarch64/aarch64-simd.md
25474 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
25476 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
25477 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
25478 (fcvt_pattern): Likewise.
25480 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25482 * config/aarch64/aarch64-simd.md
25483 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
25484 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
25486 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25488 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
25489 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
25490 (vrnd<a,m,n,p>_f32): Implement using builtins.
25491 (vrnd<i,x><q>_f<32, 64>): New.
25493 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25495 * config/aarch64/aarch64-builtins.c
25496 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
25497 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
25498 (frintz): Rename to...
25500 (frintp): Rename to...
25502 (frintm): Rename to...
25504 (frinti): Rename to...
25505 (nearbyint): ...this.
25506 (frintx): Rename to...
25508 (frinta): Rename to...
25510 * config/aarch64/aarch64-simd.md
25511 (aarch64_frint<frint_suffix><mode>): Delete.
25512 (<frint_pattern><mode>2): Convert to insn.
25513 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
25514 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
25515 (frint_pattern): Likewise.
25516 (frint_suffix): Likewise.
25518 2013-04-29 Richard Biener <rguenther@suse.de>
25520 PR tree-optimization/57081
25521 * loop-init.c: Include tree-flow.h.
25522 (loop_optimizer_finalize): Free number of iteration estimates.
25523 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
25525 2013-04-29 Jakub Jelinek <jakub@redhat.com>
25527 PR tree-optimization/57083
25528 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
25529 non-singleton shift count range, zero extend low_bound for uns case.
25531 * config/i386/predicates.md (general_vector_operand): New predicate.
25532 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
25533 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
25534 if they aren't nonimmediate operands. If their original values
25535 satisfy const_vector_equal_evenodd_p, don't shift them.
25536 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
25537 predicates. For the SSE4.1 case force operands[{1,2}] into registers
25538 if not nonimmediate_operand.
25539 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
25540 instead of register_operand.
25541 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
25543 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
25545 * stor-layout.c (finalize_size_functions): Allocate a structure and
25546 reset cfun before dumping the functions.
25548 2013-04-27 Jakub Jelinek <jakub@redhat.com>
25550 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
25553 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
25554 use xop_pmacsdqh if uns_p.
25555 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
25556 the immediate rotate count.
25558 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
25560 * rtl.h (struct rtx_def): Add comment for field jump.
25561 (LRA_SUBREG_P): New macro.
25562 * recog.c (register_operand): Check LRA_SUBREG_P.
25563 * lra.c (lra): Add note at the end of RTL code. Align non-empty
25565 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
25566 (lra_final_code_change): Skip subreg change for operators.
25567 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
25568 if there are no operand changes.
25569 * lra-constraints.c (curr_insn_set): New.
25570 (match_reload): Set LRA_SUBREG_P.
25571 (emit_spill_move): Ditto.
25572 (check_and_process_move): Use curr_insn_set. Process only single
25573 set insns. Don't initialize sec_mem_p and change_p.
25574 (simplify_operand_subreg): Use LRA_SUBREG_P.
25575 (reg_in_class_p): New function.
25576 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
25577 of #ifdef. Add code to remove cycling.
25578 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
25579 non-null disp. Reload inner instead of disp when base and index
25580 are null. Try to put lo_sum into register.
25581 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
25582 (check_and_process_move): Move code for move cost check to
25583 simple_move_p. Remove equiv_substitution.
25584 (simple_move_p): New function.
25585 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
25586 curr_insn_set. Call check_and_process_move only for single set
25587 insns. Use the new function. Move call of check_and_process_move
25588 after operand equiv substitution and address process.
25590 2013-04-26 Jakub Jelinek <jakub@redhat.com>
25593 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
25594 with nonlocal goto receivers or returns twice calls, ignore
25595 unininitialized values from abnormal edges to nl goto receiver
25596 or returns twice call.
25598 2013-04-26 Jakub Jelinek <jakub@redhat.com>
25600 PR tree-optimization/57051
25601 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
25602 and VEC_RSHIFT_EXPR if shift count is a multiple of element
25605 2013-04-26 Richard Biener <rguenther@suse.de>
25607 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
25608 (expand_omp_taskreg): Likewise. Mark loops for fixup.
25609 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
25610 (fixup_loop_arrays_after_move): New function.
25611 (move_sese_region_to_fn): Properly outline the loop tree parts
25612 of the SESE region.
25614 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
25616 * config/i386/i386.md (type, unit): Fix long lines.
25618 2013-04-26 Richard Biener <rguenther@suse.de>
25620 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
25621 (lto-streamer-out.o): Likewise.
25622 * cfgloop.c (init_loops_structure): Export, add struct function
25623 argument and adjust.
25624 (flow_loops_find): Adjust.
25625 * cfgloop.h (enum loop_estimation): Add EST_LAST.
25626 (init_loops_structure): Declare.
25627 * lto-streamer-in.c: Include cfgloop.h.
25628 (input_cfg): Input the loop tree.
25629 * lto-streamer-out.c: Include cfgloop.h.
25630 (output_cfg): Output the loop tree.
25631 (output_struct_function_base): Do not drop PROP_loops.
25633 2013-03-26 Richard Biener <rguenther@suse.de>
25635 * tree-cfg.c (execute_build_cfg): Build the loop tree.
25636 (pass_build_cfg): Provide PROP_loops.
25637 (move_sese_region_to_fn): Remove loops that are outlined into fn
25639 * tree-inline.c: Include cfgloop.h.
25640 (initialize_cfun): Do not drop PROP_loops.
25641 (copy_loops): New function.
25642 (copy_cfg_body): Copy loop structure.
25643 (tree_function_versioning): Initialize destination loop tree.
25644 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
25645 (pass_parallelize_loops): Do IL verification.
25646 * loop-init.c (loop_optimizer_init): Fixup loops if required.
25647 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
25648 the CFG make sure we fixup loops as well.
25649 * tree-ssa-tail-merge.c: Include cfgloop.h.
25650 (replace_block_by): When merging loop latches mark loops for fixup.
25651 * lto-streamer-out.c (output_struct_function_base): Drop
25652 PROP_loops for now.
25653 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
25654 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
25655 * ipa-split.c: Include cfgloop.h.
25656 (split_function): Add the new return block to the loop tree root.
25657 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
25658 whether we have removed the forwarder block.
25659 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
25660 * cfgloop.h (place_new_loop): Declare.
25661 * cfgloopmanip.c (place_new_loop): Export.
25662 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
25663 (tree-switch-conversion.o): Likewise.
25664 (tree-complex.o): Likewise.
25665 (tree-inline.o): Likewise.
25666 (tree-ssa-tailmerge.o): Likewise.
25667 (ipa-split.o): Likewise.
25668 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
25669 (tree-ssa-copy.o): Likewise.
25670 * tree-switch-conversion.c: Include cfgloop.h
25671 (process_switch): If we emit a bit-test cascade, schedule loops
25673 * tree-complex.c: Include cfgloop.h.
25674 (expand_complex_div_wide): Properly add new basic-blocks to loops.
25675 * asan.c: Include cfgloop.h.
25676 (create_cond_insert_point): Properly add new basic-blocks to
25677 loops, schedule loop fixup.
25678 * cfgloop.c (verify_loop_structure): Check that looks are not
25680 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
25682 (expand_omp_for_generic): Likewise.
25683 (expand_omp_sections): Likewise.
25684 (expand_omp_atomic_pipeline): Schedule loops for fixup.
25685 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
25686 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
25687 is initialized, not when loops are present.
25688 * tree-parloops.c (parallelize_loops): Remove checking here.
25689 * passes.c (init_optimization_passes): Schedule a copy-propagation
25690 pass before complete unrolling of inner loops.
25692 2013-04-26 Jakub Jelinek <jakub@redhat.com>
25694 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
25695 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
25696 (colorize_init): Add argument to _WIN32 version.
25697 * toplev.c: Include diagnostic-color.h.
25698 (process_options): Default to -fdiagnostics-color=auto if
25699 GCC_COLORS env var is in the environment.
25700 * common.opt (fdiagnostics-color=): Add Var and Init.
25701 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
25702 env var is in the environment, the default is auto rather than never.
25704 * diagnostic.h (file_name_as_prefix): Add context argument.
25705 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
25706 the string as locus.
25707 * langhooks.c (lhd_print_error_function): Adjust caller.
25709 2013-04-25 Lawrence Crowl <crowl@google.com>
25711 * var-tracking.c (shared_hash_def::htab):
25712 Change type to hash_table. Update dependent calls and types.
25714 2013-04-25 Lawrence Crowl <crowl@google.com>
25716 * Makefile.in: Update as needed below.
25718 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
25719 Move declaration to after the type's method definitons.
25721 * attribs.c (htab_t scoped_attributes::attribute_hash):
25722 Change type to hash_table. Update dependent calls and types.
25724 * bitmap.c (htab_t bitmap_desc_hash):
25725 Change type to hash_table. Update dependent calls and types.
25727 * cselib.c (htab_t cselib_hash_table):
25728 Change type to hash_table. Update dependent calls and types.
25730 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
25731 (hash_string_slot_node): Move implementation into lto-streamer.h
25732 struct string_slot_hasher.
25733 (eq_string_slot_node): Likewise.
25735 * data-streamer-out.c: Update output_block::string_hash_table
25736 dependent calls and types.
25738 * dwarf2cfi.c (htab_t trace_index):
25739 Change type to hash_table. Update dependent calls and types.
25741 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
25742 Change type to hash_table. Update dependent calls and types.
25743 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
25744 (htab_t optimize_external_refs::map): Likewise.
25745 (htab_t output_comp_unit::extern_map): Likewise.
25746 (htab_t output_comdat_type_unit::extern_map): Likewise.
25747 (htab_t output_macinfo::macinfo_htab): Likewise.
25748 (htab_t optimize_location_lists::htab): Likewise.
25749 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
25751 * except.c (htab_t ehspec_hash_type):
25752 Change type to hash_table. Update dependent calls and types.
25753 (assign_filter_values::ttypes): Likewise.
25754 (assign_filter_values::ehspec): Likewise.
25755 (sjlj_assign_call_site_values::ar_hash): Likewise.
25756 (convert_to_eh_region_ranges::ar_hash): Likewise.
25758 * gcse.c (htab_t pre_ldst_table):
25759 Change type to hash_table. Update dependent calls and types.
25761 * ggc-common.c (htab_t saving_htab):
25762 Change type to hash_table. Update dependent calls and types.
25763 (htab_t loc_hash): Likewise.
25764 (htab_t ptr_hash): Likewise.
25765 (call_count): Rename ggc_call_count.
25766 (call_alloc): Rename ggc_call_alloc.
25767 (loc_descriptor): Rename make_loc_descriptor.
25768 (add_statistics): Rename ggc_add_statistics.
25770 * ggc-common.c (saving_htab):
25771 Change type to hash_table. Update dependent calls and types.
25773 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
25774 (push_gimplify_context): Likewise.
25775 (pop_gimplify_context): Likewise.
25776 (struct gimple_temp_hash_elt): Added.
25777 (struct gimplify_hasher): Likewise.
25778 (struct gimplify_ctx.temp_htab):
25779 Change type to hash_table. Update dependent calls and types.
25781 * gimple-fold.c: Include gimplify-ctx.h.
25783 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
25784 Change type to hash_table. Update dependent calls and types.
25785 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
25786 avoid potential global name collision.
25788 * gimplify.c: Include gimplify-ctx.h.
25789 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
25790 (htab_t gimplify_ctx::temp_htab):
25791 Update dependent calls and types for new type hash_table.
25792 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
25793 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
25795 * gimplify-ctx.h: New.
25796 (struct gimple_temp_hash_elt): Move from gimplify.c.
25797 (class gimplify_hasher): New.
25798 (struct gimplify_ctx): Move from gimple.h.
25799 (htab_t gimplify_ctx::temp_htab):
25800 Change type to hash_table. Update dependent calls and types.
25802 * graphite-clast-to-gimple.c: Include graphite-htab.h.
25803 (htab_t ivs_params::newivs_index):
25804 Change type to hash_table. Update dependent calls and types.
25805 (htab_t ivs_params::params_index): Likewise.
25806 (htab_t print_generated_program::params_index): Likewise.
25807 (htab_t gloog::newivs_index): Likewise.
25808 (htab_t gloog::params_index): Likewise.
25810 * graphite.c: Include graphite-htab.h.
25811 4htab_t graphite_transform_loops::bb_pbb_mapping):
25812 Change type to hash_table. Update dependent calls and types.
25814 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
25815 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
25816 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
25818 * graphite-dependences.c: Include graphite-htab.h.
25819 (loop_is_parallel_p): Change hash table type of parameter.
25821 * graphite-htab.h: New.
25822 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
25823 (extern find_pbb_via_hash): Move from graphite-poly.h.
25824 (extern loop_is_parallel_p): Move from graphite-poly.h.
25825 (extern get_loop_body_pbbs): Move from graphite-poly.h.
25827 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
25828 (extern loop_is_parallel_p): Move to graphite-htab.h.
25829 (extern get_loop_body_pbbs): Move to graphite-htab.h.
25831 * haifa-sched.c (htab_t delay_htab):
25832 Change type to hash_table. Update dependent calls and types.
25833 (htab_t delay_htab_i2): Likewise.
25835 * ira-color.c (htab_t allocno_hard_regs_htab):
25836 Change type to hash_table. Update dependent calls and types.
25838 * ira-costs.c (htab_t cost_classes_htab):
25839 Change type to hash_table. Update dependent calls and types.
25841 * loop-invariant.c (htab_t merge_identical_invariants::eq):
25842 Change type to hash_table. Update dependent calls and types.
25844 * loop-iv.c (htab_t bivs):
25845 Change type to hash_table. Update dependent calls and types.
25847 * loop-unroll.c (htab_t opt_info::insns_to_split):
25848 Change type to hash_table. Update dependent calls and types.
25849 (htab_t opt_info::insns_with_var_to_expand): Likewise.
25851 * lto-streamer.h (struct string_slot): Move from data-streamer.h
25852 (struct string_slot_hasher): New.
25853 (htab_t output_block::string_hash_table):
25854 Change type to hash_table. Update dependent calls and types.
25856 * lto-streamer-in.c (freeing_string_slot_hasher): New.
25857 (htab_t file_name_hash_table):
25858 Change type to hash_table. Update dependent calls and types.
25860 * lto-streamer-out.c: Update output_block::string_hash_table dependent
25863 * lto-streamer.c (htab_t tree_htab):
25864 Change type to hash_table. Update dependent calls and types.
25866 * omp-low.c: Include gimplify-ctx.h.
25868 * passes.c (htab_t name_to_pass_map):
25869 Change type to hash_table. Update dependent calls and types.
25870 (pass_traverse): Rename to passes_pass_traverse.
25872 * plugin.c (htab_t event_tab):
25873 Change type to hash_table. Update dependent calls and types.
25875 * postreload-gcse.c (htab_t expr_table):
25876 Change type to hash_table. Update dependent calls and types.
25877 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
25879 * sese.c (debug_rename_map_1): Make extern.
25880 (htab_t copy_bb_and_scalar_dependences::rename_map):
25881 Change type to hash_table. Update dependent calls and types.
25883 * sese.h (extern debug_rename_map): Move to .c file.
25885 * store-motion.c (htab_t store_motion_mems_table):
25886 Change type to hash_table. Update dependent calls and types.
25888 * trans-mem.c (htab_t tm_new_mem_hash):
25889 Change type to hash_table. Update dependent calls and types.
25891 * tree-browser.c (htab_t TB_up_ht):
25892 Change type to hash_table. Update dependent calls and types.
25894 * tree-cfg.c (htab_t discriminator_per_locus):
25895 Change type to hash_table. Update dependent calls and types.
25897 * tree-complex.c: Include tree-hasher.h
25898 (htab_t complex_variable_components):
25899 Change type to hash_table. Update dependent calls and types.
25901 * tree-eh.c (htab_t finally_tree):
25902 Change type to hash_table. Update dependent calls and types.
25904 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
25905 struct int_tree_hasher.
25906 (extern int_tree_map_eq): Likewise.
25907 (uid_decl_map_hash): Removed.
25908 (extern decl_tree_map_eq): Likewise.
25910 * tree-hasher.h: New.
25911 (struct int_tree_hasher): New.
25912 (typedef int_tree_htab_type): New.
25914 * tree-inline.c: Include gimplify-ctx.h.
25916 * tree-mudflap.c: Include gimplify-ctx.h.
25918 * tree-parloops.c: Include tree-hasher.h.
25919 (htab_t eliminate_local_variables_stmt::decl_address):
25920 Change type to hash_table. Update dependent calls and types.
25921 (htab_t separate_decls_in_region::decl_copies): Likewise.
25923 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
25924 Change type to hash_table. Update dependent calls and types.
25926 * tree-sra.c (candidates):
25927 Change type to hash_table. Update dependent calls and types.
25929 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
25931 (int_tree_map_hash): Likewise.
25933 * tree-ssa-dom.c (htab_t avail_exprs):
25934 Change type to hash_table. Update dependent calls and types.
25936 * tree-ssa-live.c (var_map_base_init::tree_to_index):
25937 Change type to hash_table. Update dependent calls and types.
25939 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
25940 Change type to hash_table. Update dependent calls and types.
25942 * tree-ssa-phiopt.c (seen_ssa_names):
25943 Change type to hash_table. Update dependent calls and types.
25945 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
25946 Change type to hash_table. Update dependent calls and types.
25948 * tree-ssa-uncprop.c (equiv):
25949 Change type to hash_table. Update dependent calls and types.
25951 2013-04-25 Jakub Jelinek <jakub@redhat.com>
25953 PR rtl-optimization/57003
25954 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
25955 call note_stores with kill_clobbered_value callback again after
25956 killing regs_invalidated_by_call.
25958 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
25960 * config/aarch64/aarch64-simd.md
25961 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
25962 (aarch64_simd_bsl<mode>): Likewise.
25963 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
25965 2013-04-25 Marek Polacek <polacek@redhat.com>
25967 PR tree-optimization/57066
25968 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
25970 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
25972 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
25974 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
25976 * config/aarch64/aarch64-builtins.c
25977 (aarch64_fold_builtin): New.
25978 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
25979 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
25980 * config/aarch64/aarch64-simd-builtins.def (abs): New.
25981 * config/aarch64/arm_neon.h
25982 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
25984 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
25985 Tejas Belagod <tejas.belagod@arm.com>
25987 * config/aarch64/aarch64-builtins.c
25988 (aarch64_gimple_fold_builtin): New.
25989 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
25990 * config/aarch64/aarch64-simd-builtins.def (addv): New.
25991 * config/aarch64/aarch64-simd.md (addpv4sf): New.
25992 (addvv4sf): Update.
25993 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
25995 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25997 * config/aarch64/aarch64.md
25998 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
26000 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26002 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
26003 (*ngcsi_uxtw): New pattern.
26005 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26006 Julian Brown <julian@codesourcery.com>
26008 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
26009 (TB_DREG): Add T_V4HF.
26010 (v4hf_UP): New macro.
26011 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
26012 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
26013 Handle initialisation of V4HF. Adjust initialisation of reinterpret
26015 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
26016 (arm_vector_mode_supported_p): Handle V4HF.
26017 (arm_mangle_map): Handle V4HFmode.
26018 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
26019 * config/arm/arm_neon_builtins.def: Add entries for
26020 vcvtv4hfv4sf, vcvtv4sfv4hf.
26021 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
26022 (neon_vcvtv4hfv4sf): Likewise.
26023 * config/arm/neon-gen.ml: Handle half-precision floating point
26025 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
26026 * config/arm/arm_neon.h: Regenerate.
26027 * config/arm/neon.ml (type elts): Add F16.
26028 (type vectype): Add T_float16x4, T_floatHF.
26029 (type vecmode): Add V4HF.
26030 (type features): Add Requires_FP_bit feature.
26031 (elt_width): Handle F16.
26032 (elt_class): Likewise.
26033 (elt_of_class_width): Likewise.
26034 (mode_of_elt): Refactor.
26035 (type_for_elt): Handle F16, fix error messages.
26036 (vectype_size): Handle T_float16x4.
26037 (vcvt_sh): New function.
26038 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
26039 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
26040 (string_of_mode): Handle V4HF.
26041 * doc/arm-neon-intrinsics.texi: Regenerate.
26043 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
26045 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
26046 format specifier in 'X' case.
26048 2013-04-25 Alan Modra <amodra@gmail.com>
26051 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
26052 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
26053 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
26054 Repeat for many other rotate/shift and mask patterns using subregs.
26055 Name lshiftrt insns.
26056 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
26057 on WORDS_BIG_ENDIAN.
26059 2013-04-25 Alan Modra <amodra@gmail.com>
26061 * config.gcc: Support little-endian powerpc-linux targets.
26062 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
26063 (LINK_OS_LINUX_SPEC): Define.
26064 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
26065 Preserve MASK_LITTLE_ENDIAN.
26066 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
26067 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
26068 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
26069 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
26070 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
26071 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
26072 Correct fp word order for little-endian. Don't shift toc entries
26073 smaller than a word for little-endian.
26074 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
26075 (bswapdi2 splits): Correct low-part subreg for little-endian.
26076 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
26077 low/high where such is correct only for be.
26078 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
26079 little-endian for -mcall-aixdesc.
26081 2013-04-25 Alan Modra <amodra@gmail.com>
26083 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
26084 replace_equiv_address_nv.
26086 2013-04-25 Alan Modra <amodra@gmail.com>
26088 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
26090 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
26093 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
26094 * rtl.h (struct rtx_def): ...
26096 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
26098 PR rtl-optimizations/57046
26099 * lra-constraints (split_reg): Set up lra_risky_transformations_p
26100 for multi-reg splits.
26102 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
26104 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
26106 2013-04-24 Sterling Augustine <saugustine@google.com>
26108 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
26109 (comp_dir_string, debug_str_dwo_section): New.
26110 (DEBUG_STR_DWO_SECTION): Rename to ...
26111 (DEBUG_DWO_STR_SECTION): ... this.
26112 (DEBUG_NORM_STR_SECTION): Delete.
26113 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
26114 (DEBUG_STR_DWO_SECTION_FLAGS): New.
26115 (find_AT_string): Move most logic to ...
26116 (find_AT_string_in_table): ... here. New.
26117 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
26118 add_skeleton_AT_string. Delete logic.
26119 (output_skeleton_debug_sections): Remove call to
26120 add_top_level_skeleton_die_attrs.
26121 (add_comp_dir_attribute): Move logic to comp_dir_string.
26122 (dwarf2out_init): Initialize debug_str_dwo_section.
26123 (output_indirect_string): Call find_string_form.
26124 (output_indirect_strings): Rewrite.
26125 (prune_unused_types): Empty skeleton_debug_str_hash.
26126 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
26127 (dwarf2out_finish): Call output_indirect_strings.
26129 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
26131 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
26133 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
26135 * rtl.h (struct rtx_def): Add comment for field jump.
26136 (LRA_SUBREG_P): New macro.
26137 * recog.c (register_operand): Check LRA_SUBREG_P.
26138 * lra.c (lra): Add note at the end of RTL code. Align non-empty
26140 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
26141 (lra_final_code_change): Skip subreg change for operators.
26142 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
26143 if there are no operand changes.
26144 * lra-constraints.c (curr_insn_set): New.
26145 (match_reload): Set LRA_SUBREG_P.
26146 (emit_spill_move): Ditto.
26147 (check_and_process_move): Use curr_insn_set. Process only single
26148 set insns. Don't initialize sec_mem_p and change_p.
26149 (simplify_operand_subreg): Use LRA_SUBREG_P.
26150 (reg_in_class_p): New function.
26151 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
26152 of #ifdef. Add code to remove cycling.
26153 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
26154 non-null disp. Reload inner instead of disp when base and index
26155 are null. Try to put lo_sum into register.
26156 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
26157 (check_and_process_move): Move code for move cost check to
26158 simple_move_p. Remove equiv_substitution.
26159 (simple_move_p): New function.
26160 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
26161 curr_insn_set. Call check_and_process_move only for single set
26162 insns. Use the new function. Move call of check_and_process_move
26163 after operand equiv substitution and address process.
26165 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
26167 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
26168 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
26169 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
26171 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
26173 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
26175 2013-04-24 Marek Polacek <polacek@redhat.com>
26177 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
26178 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
26179 (select_loops_exit_conditions): Likewise.
26180 (number_of_iterations_for_all_loops): Likewise.
26181 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
26182 (scev_analysis): Likewise.
26184 2013-04-02 Catherine Moore <clm@codesourcery.com>
26185 Chao-ying Fu <fu@mips.com>
26187 * config/mips/micromips.md (jraddiusp): New pattern.
26188 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
26189 instruction if possible.
26191 2013-04-24 Alan Modra <amodra@gmail.com>
26193 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
26195 2013-04-24 Julian Brown <julian@codesourcery.com>
26196 Chung-Lin Tang <cltang@codesourcery.com>
26198 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
26199 dependency behavior in enumeration type DIE generation. Add TODO note
26200 to comments about future DW_FORM_sdata/udata re-work of related code.
26202 2013-04-23 Lawrence Crowl <crowl@google.com>
26204 * Makefile.in: Update as needed below.
26206 * hash-table.h (class hash_table):
26207 Correct many methods with parameter types compare_type to the correct
26208 value_type. (Correct code was unlikely to notice the change.)
26209 (hash_table::elements_with_deleted) New.
26210 (class hashtable::iterator): New.
26211 (hashtable::begin()): New.
26212 (hashtable::end()): New.
26213 (FOR_EACH_HASH_TABLE_ELEMENT): New.
26215 * statistics.c (statistics_hashes):
26216 Change type to hash_table. Update dependent calls and types.
26218 * tree-into-ssa.c (var_infos):
26219 Change type to hash_table. Update dependent calls and types.
26221 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
26222 Change type to hash_table. Update dependent calls and types.
26224 * tree-ssa-loop-im.c (struct mem_ref.refs):
26225 Change type to hash_table. Update dependent calls and types.
26227 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
26228 Change type to hash_table. Update dependent calls and types.
26230 * tree-ssa-sccvn.c (vn_tables_s::nary):
26231 Change type to hash_table. Update dependent calls and types.
26232 (vn_tables_s::phis): Likewise.
26233 (vn_tables_s::references): Likewise.
26235 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
26236 (vn_reference_eq): Update parameter and return types.
26238 * tree-ssa-structalias.c (pointer_equiv_class_table):
26239 Change type to hash_table. Update dependent calls and types.
26240 (location_equiv_class_table): Likewise.
26242 * tree-vect-data-refs.c: Consequential changes for making
26243 peeling a hash_table.
26245 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
26246 (destroy_loop_vec_info): Dependent hash_table update.
26248 * tree-vectorizer.h (peeling_htab):
26249 Change type to hash_table. Update dependent calls and types.
26251 2013-04-23 Shiva Chen <shiva0217@gmail.com>
26253 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
26254 to check the register content is equal or not.
26255 * lra-constraints.c (match_reload): Use lra_assign_reg_val
26256 to assign register content record.
26257 * lra-eliminations.c (update_reg_eliminate): Use
26258 lra_update_reg_val_offset to update register content offset.
26259 * lra-int.h (struct lra_reg): Add offset member.
26260 (lra_reg_val_equal_p): New static inline function.
26261 (lra_update_reg_val_offset): New static inline function.
26262 (lra_assign_reg_val): New static inline function.
26263 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
26264 to assign register content record.
26265 (initialize_lra_reg_info_element): Initial offset to zero.
26267 2013-04-23 Catherine Moore <clm@codesourcery.com>
26269 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
26270 operands. Record compression.
26272 2013-04-23 Xinliang David Li <davidxl@google.com>
26274 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
26276 2013-04-23 Richard Biener <rguenther@suse.de>
26278 PR middle-end/57036
26279 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
26280 parameter, only add abnormal goto edges from the copied body
26281 if the call could perform abnormal gotos.
26282 (copy_cfg_body): Adjust.
26284 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
26286 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
26288 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
26290 * coretypes.h (gimple_stmt_iterator): Add struct to make
26293 2013-04-23 Richard Biener <rguenther@suse.de>
26295 PR tree-optimization/57026
26296 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
26297 from SSA names occuring in abnormal PHI nodes.
26299 2013-04-22 Andi Kleen <ak@linux.intel.com>
26301 * lto/lto.c (print_lto_report_1): Fix LTO report names.
26303 2013-04-22 Andi Kleen <ak@linux.intel.com>
26305 * lto/lto.c (print_lto_report_1): Declare early.
26306 (read_cgraph_and_symbols): Call print_lto_report_1 early.
26308 2013-04-22 Andi Kleen <ak@linux.intel.com>
26310 * common.opt (-flto-report-wpa): Add.
26311 * doc/invoke.texi (-flto-report-wpa): Add.
26312 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
26315 2013-04-22 Xinliang David Li <davidxl@google.com>
26317 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
26318 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
26319 * Makefile.in: New dependency
26321 David Daney <ddaney.cavm@gmail.com>
26323 * configure.ac (gcc_cv_as_micromips_support): Use the
26324 --fatal-warnings option.
26325 * configure: Regenerate.
26327 2013-04-22 Marek Polacek <polacek@redhat.com>
26330 * tsan.c (instrument_expr): Don't instrument expression
26331 in case its size is zero.
26333 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
26337 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
26339 * config/alpha/alpha.c (TARGET_LRA_P): New define.
26341 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
26343 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
26344 (gimple_stmt_iterator): New typedef.
26345 * gimple.h (gimple_stmt_iterator): Rename to...
26346 (gimple_stmt_iterator_d): ... This.
26347 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
26348 trees be valid for GIMPLE and GENERIC.
26349 (TARGET_GIMPLE_FOLD_BUILTIN): New.
26350 * gimple-fold.c (gimple_fold_call): Call target hook
26351 gimple_fold_builtin.
26352 * hooks.c (hook_bool_gsiptr_false): New.
26353 * hooks.h (hook_bool_gsiptr_false): New.
26354 * target.def (fold_stmt): New.
26355 * doc/tm.texi: Regenerate.
26357 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
26360 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
26361 a set sp if no stack realignment.
26363 2013-04-22 Nick Clifton <nickc@redhat.com>
26365 * config.gcc (tilegx-linux): Extend extra_objs rather than
26367 (tilepro-linux): Likewise.
26369 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
26371 * config/aarch64/aarch64-builtins.c
26373 (CF0, CF1, CF2, CF3, CF4, CF10): New.
26374 (VAR<1-12>): Add MAP parameter.
26375 (BUILTIN_*): Likewise.
26376 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
26377 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
26378 (aarch64_ushl_n<mode>): Likewise.
26379 (aarch64_sshr_n<mode>): Likewise.
26380 (aarch64_ushr_n<mode>): Likewise.
26381 (aarch64_<maxmin><mode>): Likewise.
26382 (aarch64_sqrt<mode>): Likewise.
26383 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
26384 (vshr<q>_n_*): Likewise.
26386 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
26388 * config/aarch64/aarch64-builtins.c
26389 (aarch64_simd_builtin_type_mode): Handle SF types.
26391 (BUILTIN_GPF): Define.
26392 (aarch64_init_simd_builtins): Handle SF types.
26393 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
26394 (frecps): Likewise.
26395 (frecpx): Likewise.
26396 * config/aarch64/aarch64-simd.md
26397 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
26398 (aarch64_frecpe<mode>): New.
26399 (aarch64_frecps<mode>): Likewise.
26400 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
26401 (v8type): Add frecp<esx>.
26402 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
26403 (aarch64_frecps<mode>): Likewise.
26404 * config/aarch64/iterators.md (FRECP): New.
26405 (frecp_suffix): Likewise.
26406 * config/aarch64/arm_neon.h
26407 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
26409 2013-04-22 Christian Bruel <christian.bruel@st.com>
26412 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
26413 (REG_CLASS_NAMES): Idem.
26414 (REG_CLASS_CONTENTS): Idem.
26415 (REGCLASS_HAS_FP_REG): Idem.
26416 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
26417 (sh_conditional_register_usage): Idem.
26419 2013-04-21 Jeff Law <law@redhat.com>
26421 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
26422 (ssa_forward_propagate_and_combine): Use it.
26424 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
26426 * lra.c: Update the flow chart diagram.
26428 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
26430 PR rtl-optimization/56847
26431 * lra-constraints.c (process_alt_operands): Discourage alternative
26432 with non-matche doffsettable memory constraint fro memory with
26435 2013-04-19 Richard Biener <rguenther@suse.de>
26437 PR tree-optimization/56982
26438 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
26440 * gimplify.c (gimplify_call_expr): Notice special calls.
26441 (gimplify_modify_expr): Likewise.
26442 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
26443 abnormal control flow receivers.
26444 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
26445 in the same way as cfun->has_nonlocal_labels.
26446 (gimple_purge_dead_abnormal_call_edges): Likewise.
26447 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
26448 receivers start a basic-block.
26450 2013-04-19 Richard Biener <rguenther@suse.de>
26452 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
26454 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
26455 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
26456 (SLP_TREE_LOAD_PERMUTATION): Add.
26457 (vect_transform_slp_perm_load): Adjust prototype.
26458 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
26459 (vect_free_slp_instance): Likewise.
26460 (vect_create_new_slp_node): Likewise.
26461 (vect_supported_slp_permutation_p): Remove.
26462 (vect_slp_rearrange_stmts): Adjust.
26463 (vect_supported_load_permutation_p): Likewise. Inline
26464 vect_supported_slp_permutation_p here.
26465 (vect_analyze_slp_instance): Compute load permutations per
26466 slp node instead of per instance.
26467 (vect_get_slp_defs): Adjust.
26468 (vect_transform_slp_perm_load): Likewise.
26469 (vect_schedule_slp_instance): Remove redundant code.
26470 (vect_schedule_slp): Remove hack for PR56270, add it ...
26471 * tree-vect-stmts.c (vectorizable_load): ... here, do not
26472 CSE loads for SLP. Adjust.
26474 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
26476 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
26477 spelling in two comments.
26479 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
26482 * config/arm/arm.c (load_multiple_sequence): Require SP
26483 as base register for loads if SP is in the register list.
26485 2013-04-19 Martin Jambor <mjambor@suse.cz>
26487 PR tree-optimization/56718
26488 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
26489 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
26490 and made public. Adjusted all callers.
26491 (ipa_intraprocedural_devirtualization): New function.
26492 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
26493 (ipa_intraprocedural_devirtualization): Likewise.
26494 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
26496 2013-04-19 Richard Biener <rguenther@suse.de>
26498 PR tree-optimization/57000
26499 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
26501 2013-04-19 Terry Guo <terry.guo@arm.com>
26503 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
26505 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
26506 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
26507 (cortex_m4_fmacs): Use new reservations.
26508 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
26510 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
26512 PR rtl-optimization/56999
26513 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
26515 (lra_coalesce): Remove split_origin_bitmap and related code.
26516 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
26517 ranges if necessary.
26519 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
26521 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
26523 (ix86_expand_call): Remove clobbered_registers array and use
26524 x86_64_ms_sysv_extra_clobbered_registers instead.
26525 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
26527 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
26529 * config/i386/i386.md (*call_rex64_ms_sysv): Use
26530 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
26531 (*call_value_rex64_ms_sysv): Ditto.
26533 2013-04-18 Cary Coutant <ccoutant@google.com>
26535 * dwarf2out.c (output_pubnames): Check die_perennial_p of
26536 parent instead of die_mark.
26538 2013-04-18 Diego Novillo <dnovillo@google.com>
26540 * gimple.c (create_gimple_tmp): New.
26541 (get_expr_type): New.
26542 (build_assign): New.
26543 (build_type_cast): New.
26544 * gimple.h (enum ssa_mode): Define.
26545 (gimple_seq_set_location): New.
26546 * asan.c (build_check_stmt): Change some gimple_build_* calls
26547 to use build_assign and build_type_cast.
26549 2013-04-18 Richard Biener <rguenther@suse.de>
26551 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
26552 handle negative step. Remove redundant checks.
26553 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
26554 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
26555 for negative step and grouped loads fail to vectorize.
26557 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
26559 * emit-rtl.c (reset_insn_used_flags): New function.
26560 (reset_all_used_flags): Use it.
26561 (verify_insn_sharing): New function.
26562 (verify_rtl_sharing): Fix verification for SEQUENCEs.
26564 2013-04-18 Jakub Jelinek <jakub@redhat.com>
26566 PR tree-optimization/56984
26567 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
26568 and (x >> M) >= N don't register any assertion if N << M is the
26571 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
26573 * lower-subreg.c (resolve_simple_move): If called self-recursive,
26574 do not delete_insn insns that have not yet been emitted, only
26575 unlink them with remove_insn.
26576 * df-scan.c (df_insn_delete): Revert r197492.
26578 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
26580 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
26581 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
26583 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
26585 * config/arm/arm.md (movsicc_insn): Convert define_insn into
26586 define_insn_and_split.
26587 (and_scc,ior_scc,negscc): Likewise.
26588 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
26590 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
26592 * config/arm/arm.c (use_return_insn): Return 0 for targets that
26593 can benefit from using a sequence of LDRD instructions in epilogue
26594 instead of a single LDM instruction.
26596 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
26599 * doc/extend.texi: Fix typo.
26601 2013-04-17 Richard Biener <rguenther@suse.de>
26603 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
26604 (vect_build_slp_tree): ... here.
26605 (vect_build_slp_tree_1): Compute which stmts of the SLP group
26606 match. Remove special-casing of mismatched complex loads.
26607 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
26608 re-try the match with swapped commutative operands.
26609 (vect_supported_load_permutation_p): Remove special-casing of
26610 mismatched complex loads.
26611 (vect_analyze_slp_instance): Adjust.
26613 2013-04-17 Richard Biener <rguenther@suse.de>
26615 PR rtl-optimization/56921
26616 * cfgloop.h (struct loop): Add simple_loop_desc member.
26617 (struct niter_desc): Mark with GTY(()).
26618 (simple_loop_desc): Do not use aux field but simple_loop_desc.
26619 * loop-iv.c (get_simple_loop_desc): Likewise.
26620 (free_simple_loop_desc): Likewise.
26623 2013-04-16 Richard Biener <rguenther@suse.de>
26625 PR rtl-optimization/56921
26626 * loop-init.c (pass_rtl_move_loop_invariants): Add
26627 TODO_do_not_ggc_collect to todo_flags_finish.
26628 (pass_rtl_unswitch): Same.
26629 (pass_rtl_unroll_and_peel_loops): Same.
26630 (pass_rtl_doloop): Same.
26632 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
26634 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
26635 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
26636 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
26638 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
26639 * tree-streamer.c (record_common_node): Adjust reference in comment.
26641 2013-04-17 Terry Guo <terry.guo@arm.com>
26643 * config/arm/cortex-m4.md: Add a new bypass.
26645 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26647 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
26649 (*subs_<optab><mode>_multp2): New pattern.
26650 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
26651 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
26653 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26655 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
26656 (*subs_mul_imm_<mode>): New pattern.
26658 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
26661 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
26662 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
26663 (vsx_movti_32bit): Change j->wa to O->wa.
26665 2013-04-16 Richard Biener <rguenther@suse.de>
26667 PR rtl-optimization/56921
26668 * loop-init.c (pass_rtl_move_loop_invariants): Add
26669 TODO_do_not_ggc_collect to todo_flags_finish.
26670 (pass_rtl_unswitch): Same.
26671 (pass_rtl_unroll_and_peel_loops): Same.
26672 (pass_rtl_doloop): Same.
26674 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
26676 * config/arm/arm.c (emit_multi_reg_push): New declaration
26677 for an existing function.
26678 (arm_emit_strd_push): New function.
26679 (arm_expand_prologue): Used here.
26680 (arm_emit_ldrd_pop): New function.
26681 (arm_expand_epilogue): Used here.
26682 (arm_get_frame_offsets): Update condition.
26683 (arm_emit_multi_reg_pop): Add a special case for load of a single
26684 register with writeback.
26686 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
26688 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
26691 2013-04-16 Richard Biener <rguenther@suse.de>
26693 PR tree-optimization/56756
26694 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
26695 (first_mem_ref_loc): New.
26696 (execute_sm): Place the load temporarily before a previous
26697 access instead of in the latch edge to ensure its SSA dependencies
26698 are defined at points dominating the load.
26700 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
26702 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
26703 correct fix by moving header and footer insn to the footer of
26704 the merged basic block. Clear BB_END of the merged-away block.
26706 PR middle-end/43631
26707 * emit-rtl.c (make_note_raw): New function.
26708 (link_insn_into_chain): New static inline function.
26709 (add_insn): Use it.
26710 (add_insn_before, add_insn_after): Factor insn chain linking code...
26711 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
26712 using link_insn_into_chain.
26713 (note_outside_basic_block_p): New helper function for emit_note_after
26714 and emit_note_before.
26715 (emit_note_after): Use nobb variant of add_insn_after if the note
26716 should not be contained in a basic block.
26717 (emit_note_before): Use nobb variant of add_insn_before if the note
26718 should not be contained in a basic block.
26719 (emit_note_copy): Use make_note_raw.
26720 (emit_note): Likewise.
26721 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
26722 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
26723 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
26724 the moved barrier the tail of the basic block it follows.
26725 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
26727 2013-04-15 Jakub Jelinek <jakub@redhat.com>
26729 PR tree-optimization/56962
26730 * gimple-ssa-strength-reduction.c (record_increment): Only set
26731 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
26732 either rhs1 or rhs2 is equal to c->base_expr.
26734 2013-04-15 Richard Biener <rguenther@suse.de>
26736 PR tree-optimization/56933
26737 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
26739 (GROUP_READ_WRITE_DEPENDENCE): Remove.
26740 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
26741 * tree-vect-data-refs.c (vect_analyze_group_access): Move
26742 dependence check ...
26743 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
26745 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
26746 GROUP_READ_WRITE_DEPENDENCE.
26748 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26750 * emit-rtl.c (reset_all_used_flags): New function.
26751 (verify_rtl_sharing): Call reset_all_used_flags before and after
26752 performing the checks.
26754 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26756 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
26757 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
26758 * config/arm/constraints.md (De): New constraint.
26759 * config/arm/neon.md (anddi3_neon): Delete.
26760 (neon_vand<mode>): Expand to standard anddi3 pattern.
26761 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
26762 Move earlier in the file.
26763 (neon_inv_logic_op2): Likewise.
26764 (arm_anddi_operand_neon): New predicate.
26766 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26768 * configure.ac (gcc_cv_ld_as_needed): Set
26769 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
26770 Use -z ignore, -z record on *-*-solaris2*.
26771 (HAVE_LD_AS_NEEDED): Update comment.
26772 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
26773 * configure: Regenerate.
26774 * config.in: Regenerate.
26775 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
26776 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
26777 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
26778 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
26779 equivalents. Fix markup.
26780 * doc/tm.texi: Regenerate.
26782 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
26784 * config/i386/i386.opt: New option mstack-protector-guard=.
26785 * config/i386/i386-opts.h: Add enum stack_protector_guard.
26786 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
26787 TARGET_SSP_TLS_GUARD.
26788 * config/i386/i386.c (ix86_option_override_internal): Set
26789 ix86_stack_protector_guard.
26790 * config/i386/i386.md (stack_protect_set): Enable for
26791 TARGET_SSP_TLS_GUARD only.
26792 (stack_protect_set_<mode>): Ditto.
26793 (stack_protect_test): Ditto.
26794 (stack_protect_test_<mode>): Ditto.
26795 * doc/invoke.texi (i386 Option): Document.
26797 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
26800 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
26801 (S_MODES): Set H_MODE bit.
26802 (SF_MODES): Set only S_MODE and SF_MODE bits.
26803 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
26804 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
26805 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
26806 <MODE_FLOAT>: Likewise.
26808 2013-04-15 Joey Ye <joey.ye@arm.com>
26810 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
26812 2013-04-15 Joey Ye <joey.ye@arm.com>
26814 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
26816 (thumb_far_jump_used_p): Count instruction size and set
26819 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
26821 * reorg.c (fill_simple_delay_slots): Reindent block of code.
26822 * resource.c (mark_target_live_regs): Reformat conditional block.
26824 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
26826 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
26827 notes, they are emitted only just before final.
26828 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
26830 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
26832 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
26833 * cfgrtl.c (delete_insn): Call it here instead.
26834 * lra-spills.c (lra_final_code_change): Use delete_insn.
26835 * haifa-sched.c (sched_remove_insn): Likewise.
26836 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
26837 returning to the nop pool.
26838 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
26839 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
26841 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
26843 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
26844 * doc/tm.texi: Regenerated.
26846 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
26848 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
26851 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
26853 * df-core.c (df_find_def): Compare register numbers.
26854 (df_find_use): Likewise.
26856 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
26859 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
26860 lra_in_progress for return.
26862 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
26864 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
26865 define_insn into define_insn_and_split and emit movsicc patterns.
26867 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
26869 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
26871 2013-04-12 Richard Biener <rguenther@suse.de>
26873 * tree-pass.h (TODO_do_not_ggc_collect): New.
26874 * passes.c (execute_one_ipa_transform_pass): Honor
26875 TODO_do_not_ggc_collect.
26876 (execute_one_pass): Likewise.
26879 2013-04-10 Richard Biener <rguenther@suse.de>
26881 * passes.c (init_optimization_passes): Remove reload pass.
26882 * ira.c (do_reload): Merge into ...
26884 (rest_of_handle_reload): Remove.
26885 (pass_reload): Likewise.
26886 * config/i386/i386.c (ix86_option_override): Refer to ira instead
26887 of reload for vzeroupper pass placement.
26889 2013-04-12 Jakub Jelinek <jakub@redhat.com>
26891 PR tree-optimization/56918
26892 PR tree-optimization/56920
26893 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
26894 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
26895 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
26896 use wide_mul_with_sign method.
26898 2013-04-12 Richard Biener <rguenther@suse.de>
26900 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
26901 not be considered a gimple constant.
26903 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
26905 * fold-const.c (const_binop): Handle vector shifts by a scalar.
26906 (fold_binary_loc): Call const_binop also for mixed vector-scalar
26909 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
26910 Jakub Jelinek <jakub@redhat.com>
26912 * opts.c: Include diagnostic-color.h.
26913 (common_handle_option): Handle OPT_fdiagnostics_color_.
26914 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
26915 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
26916 (diagnostic-color.o): New.
26917 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
26918 (diagnostic_color_rule): New enum.
26919 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
26920 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
26921 the location string.
26922 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
26923 either NULL, or color kind.
26924 * diagnostic-color.c: New file.
26925 * diagnostic-color.h: New file.
26926 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
26928 * doc/invoke.texi (-fdiagnostics-color): Document.
26929 * pretty-print.h (pp_show_color): Define.
26930 (struct pretty_print_info): Add show_color field.
26931 * diagnostic.c: Include diagnostic-color.h.
26932 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
26933 macros. Colorize error:, warning: etc. strings and also the location
26935 (diagnostic_show_locus): Colorize the caret line.
26936 * pretty-print.c: Include diagnostic-color.h.
26937 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
26938 inside of %< %> quotes or quoted through q format modifier.
26940 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26942 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
26944 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26946 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
26947 code in CC_NZ mode.
26948 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
26951 2013-04-11 Marek Polacek <polacek@redhat.com>
26953 PR tree-optimization/48184
26954 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
26956 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
26958 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
26959 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
26960 (skip_simple_arithmetic): Tidy up.
26961 * tree.h (skip_simple_constant_arithmetic): Declare.
26963 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
26965 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
26967 2013-04-11 Richard Biener <rguenther@suse.de>
26969 * tree-vect-loop.c (get_initial_def_for_induction): Properly
26970 generate vector constants.
26972 2013-04-11 Richard Biener <rguenther@suse.de>
26974 PR tree-optimization/56878
26975 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
26976 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
26978 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26979 Prefer to align the DR with the most invariant base address.
26981 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26983 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
26986 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
26988 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
26989 floating-point vector comparisons against 0.
26991 2013-04-11 Jakub Jelinek <jakub@redhat.com>
26993 PR tree-optimization/56899
26994 * fold-const.c (extract_muldiv_1): Apply distributive law
26995 only if TYPE_OVERFLOW_WRAPS (ctype).
26997 2013-04-11 Bin Cheng <bin.cheng@arm.com>
27000 * ira-costs.c (scan_one_insn): Check whether the source rtx of
27001 loading has side effect.
27003 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
27005 * config/sparc/sparc.c: Include tree-pass.h.
27006 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
27007 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
27008 head of file. Change return type. Split off gate function.
27009 (sparc_gate_work_around_errata): New function.
27010 (pass_work_around_errata): New pass definition.
27011 (insert_pass_work_around_errata) New pass insert definition to
27012 insert pass_work_around_errata just after delayed-branch scheduling.
27013 (sparc_option_override): Insert the pass.
27014 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
27016 2013-04-10 David S. Miller <davem@davemloft.net>
27018 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
27019 or -mcpu=hypersparc.
27021 * target.def (cstore_mode): New hook.
27022 * target.h: Include insn-codes.h
27023 * targhooks.c: Likewise.
27024 (default_cstore_mode): New function.
27025 * targhooks.h: Declare it.
27026 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
27027 * doc/tm.texi: Rebuild.
27028 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
27029 target hook, rather than inspecting the insn_data.
27030 * config/sparc/sparc.c (sparc_cstore_mode): New function.
27031 (TARGET_CSTORE_MODE): Redefine.
27032 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
27034 * config/sparc/predicates.md (cstore_result_operand): New special
27036 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
27037 Use it for operand 0.
27038 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
27039 (*snesi_special): Likewise.
27040 (*snesi_zero): Likewise.
27041 (*seqsi_zero): Likewise.
27042 (*sltu_insn): Likewise.
27043 (*sgeu_insn): Likewise.
27044 (*seqdi_special): Make operand 0 and comparison operation be of
27046 (*snedi_special): Likewise.
27047 (*snedi_special_vis3): Likewise.
27048 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
27049 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
27050 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
27051 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
27052 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
27053 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
27054 (*sltu_extend_sp64): Likewise.
27055 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
27056 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
27057 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
27058 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
27059 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
27061 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
27063 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
27064 (aarch64_start_file): Use the new function.
27066 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27067 Jason Merrill <jason@redhat.com>
27069 * common.opt: Add -gdwarf.
27070 * opts.c (common_handle_option): Handle it.
27071 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
27073 2013-04-10 Richard Biener <rguenther@suse.de>
27075 * passes.c (execute_todo): Do not call ggc_collect conditional here.
27076 (execute_one_ipa_transform_pass): But unconditionally here.
27077 (execute_one_pass): And here.
27078 (init_optimization_passes): Remove reload pass.
27079 * tree-pass.h (TODO_ggc_collect): Remove.
27080 (pass_reload): Likewise.
27081 * ira.c (do_reload): Merge into ...
27083 (rest_of_handle_reload): Remove.
27084 (pass_reload): Likewise.
27085 * config/i386/i386.c (ix86_option_override): Refer to ira instead
27086 of reload for vzeroupper pass placement.
27087 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
27088 and todo_flags_finish of all passes.
27090 2013-04-10 Richard Biener <rguenther@suse.de>
27092 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
27093 first_const_oprnd field, rename first_def_type to first_op_type.
27094 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
27095 (vect_get_and_check_slp_defs): Always use the type of the
27096 operand. Allow mixed vect_external_def, vect_constant_def types.
27097 (vect_get_constant_vectors): Handle mixed vect_external_def,
27098 vect_constant_def types.
27100 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
27102 PR tree-optimization/55524
27103 * tree-ssa-math-opts.c
27104 (convert_mult_to_fma): Don't use an fms construct
27105 when we don't have an fms operation, but fnma, and it looks
27106 likely that we'll be able to use the latter.
27108 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27110 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
27112 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
27113 inline fail caused by overwritable functions.
27115 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
27117 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
27118 unnecessary bits in the constant power of two case.
27120 2013-04-10 Richard Biener <rguenther@suse.de>
27122 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
27123 broken code swapping operands.
27124 (vect_build_slp_tree): Do not compute load permutations here.
27125 (vect_analyze_slp_instance): Compute load permutations here,
27126 after building the SLP tree.
27128 2013-04-09 Christian Bruel <christian.bruel@st.com>
27130 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
27131 of next/prev_real_insn.
27133 2013-04-09 Jan Hubicka <jh@suse.cz>
27135 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
27136 Drop aliased parameter.
27137 (function_and_variable_visibility): Do not handle alias pairs.
27138 * cgraph.c (varpool_externally_visible_p): Update prototype.
27139 * varpool.c (varpool_add_new_variable): Update.
27141 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27143 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
27145 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
27147 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
27149 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
27151 2013-04-09 Marek Polacek <polacek@redhat.com>
27153 PR tree-optimization/48762
27154 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
27156 2013-04-09 Richard Biener <rguenther@suse.de>
27158 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
27160 (vect_build_slp_tree): Likewise.
27161 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
27162 calculating the cost of a SLP instance.
27163 (vect_analyze_slp_instance): Use it from here, after building
27166 2013-04-09 Jakub Jelinek <jakub@redhat.com>
27168 PR middle-end/56883
27169 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
27170 expand_omp_for_static_chunk): Use simple_p = true in
27171 force_gimple_operand_gsi calls when assigning to addressable decls.
27173 2013-04-09 Jeff Law <law@redhat.com>
27175 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
27176 when the boolean was created by converting a wider object which
27177 had a boolean range.
27179 2013-04-09 Richard Biener <rguenther@suse.de>
27181 * tree-vectorizer.h (slp_void_p): Remove.
27182 (slp_tree): Typedef before _slp_tree declaration.
27183 (struct _slp_tree): Use a vector of slp_tree as children.
27184 (vect_get_place_in_interleaving_chain): Remove.
27185 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
27187 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
27189 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
27190 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
27191 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
27192 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
27193 Use slp_node instead of slp_void_p and adjust.
27195 2013-04-09 Richard Biener <rguenther@suse.de>
27197 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
27198 work that is not necessary.
27200 2013-04-09 Jakub Jelinek <jakub@redhat.com>
27202 PR tree-optimization/56854
27203 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
27204 forward into clobber stmts if it would change MEM_REF lhs into
27207 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
27209 * tree.c (type_hash_lookup, type_hash_add): Make static.
27210 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
27212 2013-04-09 Richard Biener <rguenther@suse.de>
27214 * tree.h (unsave_expr_now): Remove.
27215 * tree-inline.c (mark_local_for_remap_r): Remove.
27216 (unsave_expr_1): Likewise.
27217 (unsave_r): Likewise.
27218 (unsave_expr_now): Likewise.
27219 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
27220 (propagate_tree_value): Likewise.
27222 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
27224 * doc/rtl.texi (sequence): Rewrite documentation to match the
27225 current use of SEQUENCE rtl objects.
27226 * rtl.def (SEQUENCE): Likewise.
27228 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
27229 Update documentation.
27230 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
27231 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
27233 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
27235 2013-04-08 Teresa Johnson <tejohnson@google.com>
27237 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
27238 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
27240 (estimate_edge_size_and_time): Add comment to suggest using rounding
27242 (estimate_node_size_and_time): Ditto.
27243 (remap_edge_change_prob): Use helper rounding divide methods.
27244 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
27245 (gimple_mod_pow2_value_transform): Ditto.
27246 (gimple_mod_subtract_transform): Ditto.
27247 (gimple_ic_transform): Ditto.
27248 (gimple_stringops_transform): Ditto.
27249 * stmt.c (conditional_probability): Ditto.
27250 (emit_case_dispatch_table): Ditto.
27251 * lto-cgraph.c (merge_profile_summaries): Ditto.
27252 * tree-optimize.c (execute_fixup_cfg): Ditto.
27253 * cfgcleanup.c (try_forward_edges): Ditto.
27254 * cfgloopmanip.c (scale_loop_profile): Ditto.
27256 (duplicate_loop_to_header_edge): Ditto.
27257 (lv_adjust_loop_entry_edge): Ditto.
27258 * tree-vect-loop.c (vect_transform_loop): Ditto.
27259 * profile.c (compute_branch_probabilities): Ditto.
27260 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
27261 * lto-streamer-in.c (input_cfg): Ditto.
27262 * gimple-streamer-in.c (input_bb): Ditto.
27263 * ipa-cp.c (update_profiling_info): Ditto.
27264 (update_specialized_profile): Ditto.
27265 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
27266 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
27268 * sched-rgn.c (compute_dom_prob_ps): Ditto.
27269 (compute_trg_info): Ditto.
27270 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
27271 (purge_dead_edges): Ditto.
27272 * loop-unswitch.c (unswitch_loop): Ditto.
27273 * cgraphclones.c (cgraph_clone_edge): Ditto.
27274 (cgraph_clone_node): Ditto.
27275 * tree-inline.c (copy_bb): Ditto.
27276 (copy_edges_for_bb): Ditto.
27277 (initialize_cfun): Ditto.
27278 (copy_cfg_body): Ditto.
27279 (expand_call_inline): Ditto.
27281 2013-04-08 Kai Tietz <ktietz@redhat.com>
27283 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
27284 TARGET_CYGWIN64 by TARGET_64BIT.
27286 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
27288 * config/epiphany/epiphany.md (GPR_1): New constant.
27289 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
27290 * config/epiphany/epiphany.c (gen_compare_reg):
27291 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
27292 is already in place.
27293 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
27294 Don't require being called during rtl expansion; If y operlaps r0,
27296 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
27297 (epiphany_expand_epilogue): Likewise.
27299 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
27300 Don't use CC_FPmode for ORDERED / UNORDERED.
27301 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
27303 * config/epiphany/constraints.md (CnL): New constraint.
27304 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
27305 * config/epiphany/predicates.md (add_operand): Allow 1024.
27307 * config/epiphany/epiphany.md (logical_op): New code iterator.
27308 (op_mnc): New code attribute.
27309 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
27310 (mov_f+1, mov_f+2): New peephole2 patterns.
27312 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
27313 (cstoresi4): Also allow re-use of zero result when doing a NE
27314 comparison to a non-zero operand.
27315 Use (clobber (scratch)) for first insn if the gpr output is not needed.
27317 * config/epiphany/epiphany.md (<insn_opname>v2si3):
27318 Use gen_addsi3_i / gen_subsi3_i.
27320 2013-04-08 Jakub Jelinek <jakub@redhat.com>
27324 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
27325 contain anything but clobbers, at most one __builtin_stack_restore,
27326 optionally debug stmts and final resx, and if it has at least one
27327 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
27328 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
27329 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
27330 which isn't defaut definition, remove them.
27331 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
27332 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
27333 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
27334 with MEM_REF LHS with SSA_NAME address.
27336 2013-04-08 Jeff Law <law@redhat.com>
27338 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
27340 2013-04-08 Richard Biener <rguenther@suse.de>
27342 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
27344 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
27345 determined vector type.
27346 (vect_analyze_data_refs): Likewise.
27347 (vect_get_new_vect_var): Adjust.
27348 (vect_create_destination_var): Preserve SSA name versions.
27349 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
27350 not dump anything here.
27352 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
27354 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
27355 Add member lr_slot_known.
27356 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
27358 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
27359 Remove code that sets lr_slot_offset according to what a previous
27360 version of epiphany_emit_save_restore used to do.
27361 (epiphany_emit_save_restore): When doing an lr save or restore,
27362 set/verify lr_slot_known and lr_slot_offset.
27364 2013-04-08 Xinyu Qi <xyqi@marvell.com>
27367 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
27370 2013-04-08 Richard Biener <rguenther@suse.de>
27372 * alias.c (find_base_term): Fix thinko in previous change.
27374 2013-04-08 Jakub Jelinek <jakub@redhat.com>
27376 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
27377 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
27378 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
27379 if possible to compute val.
27380 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
27381 For QImode integers don't require anything about precision. Use
27382 const_with_all_bytes_same to find out if the constant doesn't have
27383 repeated bytes in it.
27385 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27387 * config/s390/s390.c (s390_expand_insv): Only accept insertions
27390 2013-04-08 Marek Polacek <polacek@redhat.com>
27392 PR rtl-optimization/48182
27393 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
27396 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27399 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
27400 nuses, make sure we have a label.
27402 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27405 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
27406 (rs6000_emit_swdiv_low_precision): Remove.
27407 (rs6000_emit_swdiv): Rewrite to handle between one and four
27408 iterations of Newton-Raphson generally; modify required number of
27409 iterations for some cases.
27410 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
27412 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
27414 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
27415 set-but-unused variable.
27417 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
27418 basic blocks of released function bodies garbage-collectable.
27420 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
27421 (struct rtl_opt_pass): Add TODO_df_finish.
27423 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
27425 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27427 * config/arm/constraints.md (q): New constraint.
27428 * config/arm/ldrdstrd.md: New file.
27429 * config/arm/arm.md (ldrdstrd.md) New include.
27430 (arm_movdi): Use "q" instead of "r" constraint
27431 for double-word memory access.
27432 (movdf_soft_insn): Likewise.
27433 * config/arm/vfp.md (movdi_vfp): Likewise.
27434 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
27435 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
27436 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
27437 (mem_ok_for_ldrd_strd): Likewise.
27438 (output_move_double): Update assertion.
27440 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27442 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
27444 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27446 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
27447 define_insn_and_split.
27448 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
27450 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27452 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
27453 define_insn_and_split.
27454 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
27455 (shiftsi3_compare): New pattern.
27456 (rrx): New pattern.
27457 * config/arm/unspecs.md (UNSPEC_RRX): New.
27459 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27461 * config/arm/arm.md (negdi_extendsidi): New pattern.
27462 (negdi_zero_extendsidi): Likewise.
27464 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27466 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
27467 define_insn_and_split.
27468 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
27469 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
27471 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27473 * config/arm/arm.md (arm_subdi3): Convert define_insn into
27474 define_insn_and_split.
27475 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
27476 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
27478 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27480 * config/arm/arm.md (subsi3_carryin): New pattern.
27481 (subsi3_carryin_const): Likewise.
27482 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
27483 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
27485 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27487 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
27489 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
27491 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
27492 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
27494 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27496 * config/arm/arm.c (arm_expand_builtin): Change fcode
27497 type to unsigned int.
27499 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27501 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
27503 2013-04-04 Ian Lance Taylor <iant@google.com>
27505 * doc/standards.texi (Standards): The Go frontend supports the Go 1
27508 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
27510 PR middle-end/56729
27511 * df-scan.c (df_insn_delete): Disable failing assert.
27513 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27515 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
27516 New function prototype.
27517 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
27518 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
27519 (arm_builtin_vectorized_function): New function.
27521 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27523 * config/arm/arm_neon_builtins.def: New file.
27524 * config/arm/arm.c (neon_builtin_data): Move contents to
27525 arm_neon_builtins.def.
27526 (enum arm_builtins): Include neon builtin definitions.
27527 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
27528 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
27530 2013-04-04 Marek Polacek <polacek@redhat.com>
27532 PR tree-optimization/48186
27533 * predict.c (maybe_hot_frequency_p): Return false if
27534 HOT_BB_FREQUENCY_FRACTION is 0.
27535 (cgraph_maybe_hot_edge_p): Likewise.
27537 2013-04-04 Richard Biener <rguenther@suse.de>
27539 PR tree-optimization/56826
27540 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
27543 2013-04-04 Richard Biener <rguenther@suse.de>
27545 PR tree-optimization/56213
27546 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
27547 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
27549 2013-04-04 Richard Biener <rguenther@suse.de>
27551 PR tree-optimization/56837
27552 * tree-loop-distribution.c (classify_partition): For non-zero
27553 values require that the value has the same precision as its
27554 mode to be useful as memset value.
27556 2013-04-03 Nick Clifton <nickc@redhat.com>
27558 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
27559 (fmssf4): Use fmsf.s on E3V5 architectures.
27560 (fnmasf4): Use fnmaf.s on E3V5 architectures.
27561 (fnmssf4): Use fnmsf.s on E3V5 architectures.
27563 2013-04-03 Jeff Law <law@redhat.com>
27565 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
27566 (lra-eliminations.o): Likewise.
27568 2013-04-03 Teresa Johnson <tejohnson@google.com>
27570 * gcov-io.c (compute_working_sets): Moved most of body of old
27571 compute_working_sets here from profile.c.
27572 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
27573 (gcov_working_set_t): Moved typedef here from basic-block.h
27574 (compute_working_set): Declare.
27575 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
27576 (get_working_sets): Renamed from compute_working_set,
27577 replace most of body with call to new compute_working_sets.
27578 (get_exec_counts): Replace call to compute_working_sets
27579 to get_working_sets.
27580 * profile.h (get_working_sets): Renamed from compute_working_set.
27581 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
27582 to get_working_sets.
27583 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
27584 * gcov-dump.c (dump_working_sets): New function.
27586 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
27588 * hwint.c (sext_hwi, zext_hwi): New functions.
27589 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
27590 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
27591 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
27592 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
27593 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
27594 (sext_hwi, zext_hwi): New functions.
27596 2013-04-03 Jeff Law <law@redhat.com>
27598 PR tree-optimization/56799
27599 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
27600 back test for widening conversion erroneously dropped in prior change.
27602 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27605 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
27606 instead of next_real_insn.
27608 2013-04-03 Marek Polacek <polacek@redhat.com>
27611 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
27613 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27616 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
27618 (thumb1_output_casesi): Likewise.
27619 (thumb2_output_casesi): Likewise.
27621 2013-04-03 Richard Biener <rguenther@suse.de>
27623 PR tree-optimization/56817
27624 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
27626 (tree_unroll_loops_completely_1): ... new function to manually
27627 walk the loop tree, properly defering outer loops of unrolled
27628 loops to later iterations.
27630 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
27632 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
27633 (vectorizable_load): Likewise.
27634 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
27635 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
27637 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
27639 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
27642 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27644 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
27646 2013-04-03 Bin Cheng <bin.cheng@arm.com>
27648 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
27650 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
27652 PR tree-optimization/56790
27653 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
27656 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
27658 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
27660 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
27661 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
27664 2013-04-03 Jakub Jelinek <jakub@redhat.com>
27667 * tree.h (force_folding_builtin_constant_p): New decl.
27668 * builtins.c (force_folding_builtin_constant_p): New variable.
27669 (fold_builtin_constant_p): Fold immediately also if
27670 force_folding_builtin_constant_p.
27672 2013-04-03 Richard Biener <rguenther@suse.de>
27674 PR tree-optimization/56812
27675 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
27676 DRs of the same interleaving chain are independent.
27678 2013-04-02 Jason Merrill <jason@redhat.com>
27680 * gdbinit.in (pbb): Use debug fn.
27682 2013-04-02 Lawrence Crowl <crowl@google.com>
27684 * sese.h (struct ivtype_map_elt_s): Remove unused.
27685 (extern debug_ivtype_map): Remove unused.
27686 (extern eq_ivtype_map_elts): Remove unused.
27687 * sese.c (debug_ivtype_map): Removed unused.
27688 (debug_ivtype_map_1): Removed unused.
27689 (debug_ivtype_elt): Remove unused.
27690 (eq_ivtype_map_elts): Remove unused.
27692 2013-04-02 Kai Tietz <ktietz@redhat.com>
27695 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
27696 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
27697 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
27699 (legitimize_pe_coff_symbol): Likewise.
27700 (is_imported_p): New helper-function.
27701 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
27702 for Windows x64 targets.
27703 (ix86_expand_prologue): Optimize for pe-coff targets.
27704 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
27705 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
27706 medium/large code-model.
27707 (legitimize_pic_address): Likewise.
27708 (legitimize_tls_address): Likewise.
27709 (ix86_expand_call): Likewise.
27710 (x86_output_mi_thunk): Likewise.
27711 (get_dllimport_decl): Add new beimport argument.
27712 (construct_plt_address): Don't assert for x64 pe-coff targets.
27713 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
27715 (SYMBOL_FLAG_STUBVAR): New macro.
27716 (SYMBOL_REF_STUBVAR_P): Likewise.
27717 * config/i386/winnt.c (stub_list): New structure.
27718 (stub_head): New local variable.
27719 (i386_pe_record_stub): New function.
27720 (i386_pe_file_end): Emit refptr-stubs.
27722 2013-04-02 Jakub Jelinek <jakub@redhat.com>
27724 PR rtl-optimization/56745
27725 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
27726 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
27729 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
27730 and both of them are MEM_REFs, just compare first argument for
27731 equality and attempt to deal even with differing offsets.
27734 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
27735 of gimple_clobber_p to be MEM_REF.
27736 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
27737 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
27738 after gimplification.
27739 * asan.c (get_mem_ref_of_assignment): Don't instrument
27740 gimple_clobber_p stmts.
27741 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
27742 gimple_clobber_p stmt if they have MEM_REF lhs and
27743 are dead because of another gimple_clobber_p stmt.
27744 * tree-ssa-live.c (clear_unused_block_pointer): Treat
27745 gimple_clobber_p stmts like debug stmts.
27746 (remove_unused_locals): Remove clobbers with MEM_REF lhs
27747 that refer to unused VAR_DECLs or uninitialized values.
27748 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
27749 gimple_clobber_p stmts if they refer to removed parameters.
27750 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
27753 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
27755 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
27756 using SWI48 mode attribute.
27758 2013-04-02 Wei Mi <wmi@google.com>
27760 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
27761 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
27762 *<rotate_insn><mode>3_mask in i386.md.
27764 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
27766 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
27768 2013-04-02 Richard Biener <rguenther@suse.de>
27770 PR tree-optimization/56778
27771 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
27772 Runtime alias tests are not supported for gather loads.
27773 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
27774 stmts referenced from SSA operands before updating SSA form.
27776 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
27777 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27779 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
27780 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
27781 * config/arm/cortex-a53.md: New file.
27782 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
27783 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
27784 * config/arm/arm.c (arm_issue_rate): Likewise.
27785 * config/arm/arm-tune.md: Regenerate
27786 * config/arm/arm-tables.opt: Regenerate.
27787 * config/arm/arm-cores.def: Add cortex-a53.
27789 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
27791 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
27794 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
27796 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
27797 scalar load/store operations using B/H registers.
27798 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
27800 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
27802 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
27804 * config/aarch64/aarch64.c
27805 (aarch64_simd_scalar_immediate_valid_for_move): New.
27806 * config/aarch64/aarch64-protos.h
27807 (aarch64_simd_scalar_immediate_valid_for_move): New.
27808 * config/aarch64/constraints.md (Dh, Dq): New.
27809 * config/aarch64/iterators.md (hq): New.
27811 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
27813 * reorg.c (get_branch_condition): Deal with conditional returns.
27814 (fill_simple_delay_slots): Remove dead code dealing with jumps.
27816 2013-04-01 Wei Mi <wmi@google.com>
27818 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
27819 Truncate operand 2 using %b asm operand modifier.
27820 (*<shift_insn><mode>3_mask): Ditto.
27821 (*<rotate_insn><mode>3_mask): Ditto.
27823 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
27825 PR middle-end/56798
27826 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
27828 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
27830 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
27832 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
27834 2013-03-30 Lawrence Crowl <crowl@google.com>
27836 * dse.c (clear_alias_sets): Remove never set.
27837 (disqualified_clear_alias_sets): Remove never set.
27838 (clear_alias_mode_pool): Remove never set.
27839 (dse_step0): Remove condition that is never true.
27840 (canon_address): Remove condition that is never true.
27841 (dse_step7): Remove condition that is never true.
27842 (rest_of_handle_dse): Remove condition that is never true.
27843 (rest_of_handle_dse::did_global): Remove never read from above.
27844 (dse_step2_spill): Remove never called from above.
27845 (dse_step5_spill): Remove never called from above.
27847 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
27849 * doc/md.texi (Standard Names) <casesi>: Update documentation for
27850 JUMP_TABLE_DATA changes.
27851 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
27852 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
27853 (Insns) <jump_table_data>: New entry.
27854 * doc/tm.texi: Regenerate.
27856 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
27858 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
27859 for table jump at the end of a basic block using tablejump_p.
27860 * targhooks.c (default_invalid_within_doloop): Likewise.
27861 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
27862 target hook implementation that is identical to the default hook.
27863 (rs6000_invalid_within_doloop): Remove.
27865 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
27866 unused variable from tablejump_p call.
27868 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
27869 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
27870 (INSN_DELETED_P): Likewise.
27871 (emit_jump_table_data): New prototype.
27872 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
27873 after 4th as unused.
27874 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
27875 * sched-vis.c (print_insn): Likewise.
27876 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
27877 insn for compatibility with back ends that use next_active_insn to
27878 identify jump table data.
27879 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
27880 (remove_insn): Likewise.
27881 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
27883 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
27884 (emit_jump_table_data): New function.
27886 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
27887 basic block, a JUMP_TABLE_DATA never is.
27888 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
27889 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
27890 off from code handling real insns.
27891 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
27892 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
27893 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
27894 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
27895 is not a NONDEBUG_INSN_P.
27896 * ira-costs.c (scan_one_insn): Likewise.
27897 * jump.c (mark_all_labels): Likewise.
27898 (mark_jump_label_1): Likewise.
27899 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
27900 * lra.c (get_insn_freq): Expect all insns reaching here to be in
27902 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
27903 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
27904 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
27905 JUMP_TABLE_DATA_P insns.
27906 (calculate_elim_costs_all_insns): Likewise.
27907 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
27908 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
27909 (delete_output_reload): Code style fixups.
27910 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
27911 insn flags on this non-insn.
27912 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
27913 as scheduling barriers, for pre-change compatibility.
27914 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
27915 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
27917 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
27918 redundant JUMP_TABLE_DATA_P test.
27919 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
27920 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
27921 (frv_for_each_packet): Likewise.
27922 * config/i386/i386.c (min_insn_size): Likewise.
27923 (ix86_avoid_jump_mispredicts): Likewise.
27924 * config/m32r/m32r.c (m32r_is_insn): Likewise.
27925 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
27926 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
27927 (mips16_insn_length): Robustify.
27928 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
27929 (mips16_split_long_branches): Likewise.
27930 * config/pa/pa.c (pa_combine_instructions): Likewise.
27931 * config/rs6000/rs6000.c (get_next_active_insn): Treat
27932 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
27933 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
27934 as contributing to pool range lengths.
27935 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
27936 Remove redundant JUMP_TABLE_DATA_P test.
27937 (sh_loop_align): Likewise.
27938 (split_branches): Likewise.
27939 (sh_insn_length_adjustment): Likewise.
27940 * config/spu/spu.c (get_branch_target): Likewise.
27942 2013-03-29 Jan Hubicka <jh@suse.cz>
27944 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
27945 gcov streaming; stream hot bb threshold to ltrans.
27946 * predict.c (get_hot_bb_threshold): Break out from ....
27947 (maybe_hot_count_p): ... here.
27948 (set_hot_bb_threshold): New function.
27949 * lto-section-in.c (lto_section_name): Add profile.
27950 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
27951 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
27952 and data-streamer.h
27953 (histogram_entry): New structure.
27954 (histogram, histogram_pool): New global vars.
27955 (histogram_hash): New structure.
27956 (histogram_hash::hash): New method.
27957 (histogram_hash::equal): Likewise.
27958 (account_time_size): New function.
27959 (cmp_counts): New function.
27960 (dump_histogram): New function.
27961 (ipa_profile_generate_summary): New function.
27962 (ipa_profile_write_summary): New function.
27963 (ipa_profile_read_summary): New function.
27964 (ipa_profile): Decide on threshold.
27965 (pass_ipa_profile): Add ipa_profile_write_summary and
27966 ipa_profile_read_summary.
27967 * Makefile.in (ipa.o): Update dependencies.
27968 * lto-streamer.h (LTO_section_ipa_profile): New section.
27970 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
27972 * tree.h (VAR_P): New.
27974 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
27977 * doc/invoke.texi ([-fwhole-program]): Fix typo.
27979 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
27981 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
27982 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
27983 (control_flow_insn_p): Likewise.
27984 * cfgrtl.c (duplicate_insn_chain): Likewise.
27985 * final.c (get_attr_length_1): Likewise.
27986 (shorten_branches): Likewise.
27987 (final_scan_insn): Likewise.
27988 * function.c (instantiate_virtual_regs): Likewise.
27989 * gcse.c (insert_insn_end_basic_block): Likewise.
27990 * ira-costs.c (scan_one_insn): Likewise.
27991 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
27992 * lra.c (check_rtl): Likewise.
27993 * reload1.c (elimination_costs_in_insn): Likewise.
27994 * reorg.c (follow_jumps): Likewise.
27996 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
27997 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
27998 (thumb_far_jump_used_p): Likewise.
27999 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
28000 (workaround_speculation): Likewise.
28001 (add_sched_insns_for_speculation): Likewise.
28002 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
28003 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
28004 (frv_for_each_packet): Likewise.
28005 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
28006 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
28007 (final_emit_insn_group_barriers): Likewise.
28008 * config/m32r/m32r.c (m32r_is_insn): Likewise.
28009 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
28010 (mips16_insn_length): Likewise.
28011 * config/pa/pa.c (pa_reorg): Likewise.
28012 (pa_combine_instructions): Likewise.
28013 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
28014 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
28015 (sh_reorg): Likewise.
28016 (split_branches): Likewise.
28017 * config/spu/spu.c (get_branch_target): Likewise.
28019 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
28022 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
28024 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
28025 Fix declaration name.
28027 2013-03-28 Lawrence Crowl <crowl@google.com>
28029 * graphds.h (struct graph.indicies): Remove unused.
28030 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
28031 (SCOP_ORIGINAL_PDDRS): Remove unused.
28032 * sese.h (extern insert_loop_close_phis): Removed unused.
28033 (extern insert_guard_phis): Removed unused.
28034 (extern ivtype_map_elt_info): Removed unused.
28035 (new_ivtype_map_elt): Removed unused.
28036 * sese.c (ivtype_map_elt_info): Removed unused.
28038 2013-03-28 Lawrence Crowl <crowl@google.com>
28040 * Makefile.in: Add several missing include dependences.
28042 (test-dump.o): New. This object is not added to any executable,
28043 but is present for ad-hoc testing.
28045 (debug (const bitmap_head_def &)): New.
28046 (debug (const bitmap_head_def *)): New.
28048 (extern debug (const bitmap_head_def &)): New.
28049 (extern debug (const bitmap_head_def *)): New.
28051 (debug (edge_def &)): New.
28052 (debug (edge_def *)): New.
28054 (debug (basic_block_def &)): New.
28055 (debug (basic_block_def *)): New.
28057 (dump_node (const_tree, int, FILE *)): Correct source file.
28059 (debug (die_struct &)): New.
28060 (debug (die_struct *)): New.
28062 (extern debug (die_struct &)): New.
28063 (extern debug (die_struct *)): New.
28064 * gimple-pretty-print.c
28065 (debug (gimple_statement_d &)): New.
28066 (debug (gimple_statement_d *)): New.
28067 * gimple-pretty-print.h
28068 (extern debug (gimple_statement_d &)): New.
28069 (extern debug (gimple_statement_d *)): New.
28071 (debug (ira_allocno_copy &)): New.
28072 (debug (ira_allocno_copy *)): New.
28073 (debug (ira_allocno &)): New.
28074 (debug (ira_allocno *)): New.
28076 (extern debug (ira_allocno_copy &)): New.
28077 (extern debug (ira_allocno_copy *)): New.
28078 (extern debug (ira_allocno &)): New.
28079 (extern debug (ira_allocno *)): New.
28081 (debug (live_range &)): New.
28082 (debug (live_range *)): New.
28084 (debug (lra_live_range &)): New.
28085 (debug (lra_live_range *)): New.
28087 (debug (lra_live_range &)): New.
28088 (debug (lra_live_range *)): New.
28090 (debug (omega_pb_d &)): New.
28091 (debug (omega_pb_d *)): New.
28093 (extern debug (omega_pb_d &)): New.
28094 (extern debug (omega_pb_d *)): New.
28096 (debug (const rtx_def &)): New.
28097 (debug (const rtx_def *)): New.
28099 (debug_tree (tree): Move within file.
28100 (debug_raw (const tree_node &)): New.
28101 (debug_raw (const tree_node *)): New.
28102 (dump_tree_via_hooks (const tree_node *, int)): New.
28103 (debug (const tree_node &)): New.
28104 (debug (const tree_node *)): New.
28105 (debug_verbose (const tree_node &)): New.
28106 (debug_verbose (const tree_node *)): New.
28107 (debug_head (const tree_node &)): New.
28108 (debug_head (const tree_node *)): New.
28109 (debug_body (const tree_node &)): New.
28110 (debug_body (const tree_node *)): New.
28111 (debug_vec_tree (tree): Move and reimplement in terms of dump.
28112 (debug (vec<tree, va_gc> &)): New.
28113 (debug (vec<tree, va_gc> *)): New.
28115 (extern debug (const rtx_def &)): New.
28116 (extern debug (const rtx_def *)): New.
28118 (debug_raw (simple_bitmap_def &)): New.
28119 (debug_raw (simple_bitmap_def *)): New.
28120 (debug (simple_bitmap_def &)): New.
28121 (debug (simple_bitmap_def *)): New.
28123 (extern debug (simple_bitmap_def &)): New.
28124 (extern debug (simple_bitmap_def *)): New.
28125 (extern debug_raw (simple_bitmap_def &)): New.
28126 (extern debug_raw (simple_bitmap_def *)): New.
28128 (debug (vinsn_def &)): New.
28129 (debug (vinsn_def *)): New.
28130 (debug_verbose (vinsn_def &)): New.
28131 (debug_verbose (vinsn_def *)): New.
28132 (debug (expr_def &)): New.
28133 (debug (expr_def *)): New.
28134 (debug_verbose (expr_def &)): New.
28135 (debug_verbose (expr_def *)): New.
28136 (debug (vec<rtx> &)): New.
28137 (debug (vec<rtx> *)): New.
28139 (extern debug (vinsn_def &)): New.
28140 (extern debug (vinsn_def *)): New.
28141 (extern debug_verbose (vinsn_def &)): New.
28142 (extern debug_verbose (vinsn_def *)): New.
28143 (extern debug (expr_def &)): New.
28144 (extern debug (expr_def *)): New.
28145 (extern debug_verbose (expr_def &)): New.
28146 (extern debug_verbose (expr_def *)): New.
28147 (extern debug (vec<rtx> &)): New.
28148 (extern debug (vec<rtx> *)): New.
28150 (_list_iter_cond_expr): Make inline instead of static.
28152 (debug (sreal &)): New.
28153 (debug (sreal *)): New.
28155 (extern debug (sreal &)): New.
28156 (extern debug (sreal *)): New.
28158 (extern debug_raw (const tree_node &)): New.
28159 (extern debug_raw (const tree_node *)): New.
28160 (extern debug (const tree_node &)): New.
28161 (extern debug (const tree_node *)): New.
28162 (extern debug_verbose (const tree_node &)): New.
28163 (extern debug_verbose (const tree_node *)): New.
28164 (extern debug_head (const tree_node &)): New.
28165 (extern debug_head (const tree_node *)): New.
28166 (extern debug_body (const tree_node &)): New.
28167 (extern debug_body (const tree_node *)): New.
28168 (extern debug (vec<tree, va_gc> &)): New.
28169 (extern debug (vec<tree, va_gc> *)): New.
28171 (debug (struct loop &)): New.
28172 (debug (struct loop *)): New.
28173 (debug_verbose (struct loop &)): New.
28174 (debug_verbose (struct loop *)): New.
28175 * tree-dump.c: Add header dependence.
28177 (extern debug (struct loop &)): New.
28178 (extern debug (struct loop *)): New.
28179 (extern debug_verbose (struct loop &)): New.
28180 (extern debug_verbose (struct loop *)): New.
28182 (debug (data_reference &)): New.
28183 (debug (data_reference *)): New.
28184 (debug (vec<data_reference_p> &)): New.
28185 (debug (vec<data_reference_p> *)): New.
28186 (debug (vec<ddr_p> &)): New.
28187 (debug (vec<ddr_p> *)): New.
28189 (extern debug (data_reference &)): New.
28190 (extern debug (data_reference *)): New.
28191 (extern debug (vec<data_reference_p> &)): New.
28192 (extern debug (vec<data_reference_p> *)): New.
28193 (extern debug (vec<ddr_p> &)): New.
28194 (extern debug (vec<ddr_p> *)): New.
28196 (debug (pt_solution &)): New.
28197 (debug (pt_solution *)): New.
28199 (extern debug (pt_solution &)): New.
28200 (extern debug (pt_solution *)): New.
28202 (debug (_var_map &)): New.
28203 (debug (_var_map *)): New.
28204 (debug (tree_live_info_d &)): New.
28205 (debug (tree_live_info_d *)): New.
28207 (extern debug (_var_map &)): New.
28208 (extern debug (_var_map *)): New.
28209 (extern debug (tree_live_info_d &)): New.
28210 (extern debug (tree_live_info_d *)): New.
28212 2013-03-28 Jan Hubicka <jh@suse.cz>
28214 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
28216 2013-03-28 Ian Bolton <ian.bolton@arm.com>
28218 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
28219 record only when desired or required.
28221 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
28223 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
28224 *vec_extractv2di_1_rex64. Use x64 isa attribute.
28226 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28228 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
28229 (*andsi3_compare0_uxtw): New pattern.
28230 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
28231 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
28233 2013-03-28 Jan Hubicka <jh@suse.cz>
28235 * data-streamer-in.c (streamer_read_gcov_count): New function.
28236 * gimple-streamer-out.c: Include value-prof.h.
28237 (output_gimple_stmt): Output histogram.
28238 (output_bb): Use streamer_write_gcov_count.
28239 * value-prof.c: Include data-streamer.h
28240 (dump_histogram_value): Add HIST_TYPE_MAX.
28241 (stream_out_histogram_value): New function.
28242 (stream_in_histogram_value): New function.
28243 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
28244 (stream_out_histogram_value, stream_in_histogram_value): Declare.
28245 * data-streamer-out.c (streamer_write_gcov_count): New function.
28246 (streamer_write_gcov_count_stream): New function.
28247 * lto-cgraph.c (lto_output_edge): Update counter streaming.
28248 (lto_output_node): Likewise.
28249 (input_node, input_edge): Likewise.
28250 * lto-streamer-out.c (output_cfg): Update streaming.
28251 * lto-streamer-in.c (input_cfg): Likewise.
28252 * data-streamer.h (streamer_write_gcov_count,
28253 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
28254 * gimple-streamer-in.c: Include value-prof.h
28255 (input_gimple_stmt): Input histograms.
28256 (input_bb): Update profile streaming.
28258 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
28260 * genmodes.c (emit_max_int): New function.
28261 (emit_insn_modes_h): Added call to emit_max_function.
28262 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
28264 * machmode.def: Fixed comment.
28266 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
28268 * combine.c (try_combine): Removed useless assert.
28269 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
28271 2013-03-28 Marek Polacek <polacek@redhat.com>
28272 Richard Biener <rguenther@suse.de>
28274 PR tree-optimization/56695
28275 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
28276 build signed result of a vector comparison.
28277 * tree-cfg.c (verify_gimple_comparison): Check that a result
28278 of a vector comparison has signed type.
28280 2013-03-28 Richard Biener <rguenther@suse.de>
28282 PR tree-optimization/37021
28283 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
28284 do not restrict gaps between groups.
28285 * tree-vect-stmts.c (vectorizable_load): Properly account for
28286 a gap between groups.
28288 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
28290 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
28291 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
28294 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
28296 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
28297 * doc/extend.texi (Named Address Spaces): Ditto.
28298 (Variable Attributes): Ditto.
28300 2013-03-27 Kai Tietz <ktietz@redhat.com>
28302 * config.build: Add support for cygwin x64 target.
28303 * config.gcc: Likewise.
28304 * config.host: Likewise.
28305 * configure.ac: Likewise
28306 * configure: Regenerated.
28308 2013-03-27 Kai Tietz <ktietz@redhat.com>
28310 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
28311 * config/i386/t-cygwin-w64: New file.
28312 * config/i386/cygwin-w64.h: New file.
28313 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
28314 and add support for x64-cygwin target.
28315 (CPP_SPEC): Likewise.
28316 (CXX_WRAP_SPEC_LIST): Undefine before define.
28317 (LIBGCJ_SONAME): Use 15 as version.
28319 2013-03-27 Richard Biener <rguenther@suse.de>
28321 PR tree-optimization/56716
28322 * tree-ssa-structalias.c (perform_var_substitution): Adjust
28323 dumping for ref nodes.
28325 2013-03-27 Martin Jambor <mjambor@suse.cz>
28327 PR tree-optimization/55334
28328 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
28329 restricted pointers to arrays.
28331 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
28333 * Makefile.in (.SUFFIXES): Add .cc.
28334 (.c.o): Apply same recipe for implicit rule .cc.o.
28336 2013-03-27 Richard Biener <rguenther@suse.de>
28338 PR tree-optimization/37021
28339 * tree-vect-data-refs.c (vect_check_strided_load): Allow
28340 REALPART/IMAGPART_EXPRs around the supported refs.
28341 * tree-ssa-structalias.c (find_func_aliases): Assume that
28342 floating-point values are not used to transfer pointers.
28344 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
28346 * target.def (TARGET_HAS_IFUNC_P): New target hook.
28347 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
28348 * doc/tm.texi: Regenerate.
28349 * targhooks.h (default_has_ifunc_p): New.
28350 * targhooks.c (default_has_ifunc_p): Ditto.
28351 * config/linux-protos.h: New file.
28352 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
28353 hook for linux which disables support of indirect functions in android.
28354 * config/linux-android.c: New file.
28355 * config/t-linux-android.c: Ditto.
28356 * config.gcc: Added new object file linux-android.o.
28357 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
28358 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
28359 * varasm.c (do_assemble_alias): Likewise.
28360 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
28361 doesn't support indirect functions.
28362 * configure: Regenerate.
28364 2013-03-27 Bin Cheng <bin.cheng@arm.com>
28367 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
28368 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
28371 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28373 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
28375 2013-03-27 Terry Guo <terry.guo@arm.com>
28377 * config/arm/arm-cores.def: Added core cortex-r7.
28378 * config/arm/arm-tune.md: Regenerated.
28379 * config/arm/arm-tables.opt: Regenerated.
28380 * doc/invoke.texi: Added entry for core cortex-r7.
28382 2013-03-27 Walter Lee <walt@tilera.com>
28384 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
28385 double-decrement of next_scratch_regno.
28387 2013-03-27 Walter Lee <walt@tilera.com>
28389 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
28391 (insn_v1mulus): Ditto.
28392 (insn_v2muls): Ditto.
28394 2013-03-27 Walter Lee <walt@tilera.com>
28396 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
28397 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
28399 2013-03-27 Walter Lee <walt@tilera.com>
28401 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
28402 (*sibcall_value): Ditto.
28404 2013-03-27 Walter Lee <walt@tilera.com>
28406 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
28407 (insn_mnz_v8qi): ... this ...
28408 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
28410 (insn_v<n>mnz): Replaced by ...
28411 (insn_v1mnz): ... this ...
28412 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
28414 (insn_mz_<mode>): Replaced by ...
28415 (insn_mz_v8qi): ... this ...
28416 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
28418 (insn_v<n>mz): Replaced by ...
28419 (insn_v1mz): ... this ...
28420 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
28423 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
28425 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
28427 2013-03-26 Roland McGrath <mcgrathr@google.com>
28429 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
28430 than fprintf with a non-constant, non-format string.
28432 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
28434 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
28435 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
28436 operand 0 predicate.
28437 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
28438 attribute. Use general_x64nomem_operand as operand 1 predicate.
28439 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
28440 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
28441 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
28442 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
28443 (mov<mode>_insv_1): Remove expander. Merge insn with
28444 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
28445 Use general_x64nomem_operand as operand 1 predicate.
28446 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
28447 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
28448 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
28449 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
28450 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
28451 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
28452 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
28453 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
28454 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
28455 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
28456 (general_x64nomem_operand): Ditto.
28458 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
28460 * config/rtems.opt: Add -pthread option.
28462 2013-03-26 Richard Biener <rguenther@suse.de>
28464 * alias.c (find_base_term): Avoid redundant and not used recursion.
28465 (base_alias_check): Get the initial base term from the caller.
28466 (true_dependence_1): Compute and pass base terms to base_alias_check.
28467 (write_dependence_p): Likewise.
28468 (may_alias_p): Likewise.
28470 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
28472 * config/aarch64/aarch64.c (aarch64_classify_address): Support
28473 PC-relative load in SI modes and above only.
28475 2013-03-26 Xinyu Qi <xyqi@marvell.com>
28477 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
28478 * config/arm/iwmmxt.md (WCGR0): Update.
28479 (WCGR1, WCGR2, WCGR3): Likewise.
28481 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
28483 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
28484 Use x64 and nox64 isa attributes.
28486 2013-03-26 Richard Biener <rguenther@suse.de>
28488 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
28489 alignment computations and rely on get_object_alignment_1
28490 for the !TYPE_P case.
28491 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
28493 2013-03-26 Walter Lee <walt@tilera.com>
28495 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
28496 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
28498 2013-03-25 Jeff Law <law@redhat.com>
28500 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
28501 check for INTEGRAL_TYPE_P that was missing due to checking in
28502 wrong version of prior patch.
28504 2013-03-25 Walter Lee <walt@tilera.com>
28506 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
28507 TILEGX_INSN_SHUFFLEBYTES1.
28508 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
28510 (tilegx_builtins): Ditto.
28511 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
28513 2013-03-25 Walter Lee <walt@tilera.com>
28515 * config/tilegx/tilegx.md (floatsisf2): New pattern.
28516 (floatunssisf2): New pattern.
28517 (floatsidf2): New pattern.
28518 (floatunssidf2): New pattern.
28520 2013-03-25 Walter Lee <walt@tilera.com>
28522 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
28523 tests for constraint J, K, N, P.
28525 2013-03-25 Walter Lee <walt@tilera.com>
28527 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
28528 Use indirect/pcrel encoding.
28529 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
28532 2013-03-25 Steve Ellcey <sellcey@mips.com>
28534 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
28535 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
28536 * config/mips/mips.c (mips_option_override): Set IMADD default.
28537 * config/mips/mips.h (PTF_AVOID_IMADD): New.
28538 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
28539 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
28540 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
28541 * doc/invoke.texi (-mimadd/-mno-imadd): New.
28543 2013-03-25 Jeff Law <law@redhat.com>
28545 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
28546 slightly to avoid creating and folding useless trees. Simplify
28547 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
28549 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
28551 * config/i386/i386.md (*zero_extendsidi2): Merge with
28552 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
28553 * config/i386/predicates.md (x86_64_zext_operand): Rename from
28554 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
28555 targets. Clarify comment.
28557 2013-03-25 Martin Jambor <mjambor@suse.cz>
28559 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
28560 pass-through jump functions differently.
28561 (ipa_read_jump_function): Likewise. Also use setter functions to set
28564 2013-03-25 Martin Jambor <mjambor@suse.cz>
28566 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
28567 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
28569 (ipa_get_indirect_edge_target): New function.
28570 (devirtualization_time_bonus): New parameter known_aggs, pass it to
28571 ipa_get_indirect_edge_target. Update all callers.
28572 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
28573 ipa_get_indirect_edge_target_1 instead of calling
28574 ipa_get_indirect_edge_target.
28575 (create_specialized_node): Pass aggvlas to
28576 ipcp_discover_new_direct_edges.
28578 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28580 * config/arm/arm.md (f_sels, f_seld): New types.
28581 (*cmov<mode>): New pattern.
28582 * config/arm/predicates.md (arm_vsel_comparison_operator): New
28585 2013-03-25 Kai Tietz <ktietz@redhat.com>
28587 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
28588 POSIX-printf for mingw-hosted builds.
28590 2013-03-25 Richard Biener <rguenther@suse.de>
28592 PR middle-end/56694
28593 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
28594 must-not-throw stmt location.
28596 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28598 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
28599 Emit load-acquire versions when acq is true.
28600 (arm_emit_store_exclusive): Add rel parameter.
28601 Emit store-release versions when rel is true.
28602 (arm_split_compare_and_swap): Use acquire-release instructions
28604 of barriers when appropriate.
28605 (arm_split_atomic_op): Likewise.
28606 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
28607 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
28608 (VUNSPEC_SLX): Likewise.
28609 (VUNSPEC_LDA): Likewise.
28610 (VUNSPEC_STL): Likewise.
28611 * config/arm/sync.md (atomic_load<mode>): New pattern.
28612 (atomic_store<mode>): Likewise.
28613 (arm_load_acquire_exclusive<mode>): Likewise.
28614 (arm_load_acquire_exclusivesi): Likewise.
28615 (arm_load_acquire_exclusivedi): Likewise.
28616 (arm_store_release_exclusive<mode>): Likewise.
28618 2013-03-25 Catherine Moore <clm@codesourcery.com>
28620 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
28621 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
28622 * config/mip/predicates.md (lwsp_swsp_operand,
28623 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
28624 sb16_operand, db4_operand, db7_operand, ib3_operand,
28625 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
28626 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
28627 andi16_operand): New predicates.
28628 * config/mips/mips.md (compression): New attribute.
28629 (enabled): New attribute.
28630 (length): Consider compression in computing length.
28631 (shift_compression): New code attribute.
28632 (*add<mode>3): New operands. Record compression.
28633 (sub<mode>3): Likewise.
28634 (one_cmpl<mode>2): Likewise.
28635 (*and<mode>3): Likewise.
28636 (*ior<mode>3): Likewise.
28637 (unnamed pattern for xor): Likewise.
28638 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
28639 (*<optab><mode>3): Likewise.
28640 (*mov<mode>_internal: Likewise.
28641 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
28642 (mips_unsigned_immediate_p): New.
28643 (umips_lwsp_swsp_address_p): New.
28644 (m16_based_address_p): New.
28645 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
28646 (mips_unsigned_immediate_p): New prototype.
28647 (lwsp_swsp_address_p): New prototype.
28648 (m16_based_address_p): New prototype.
28649 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
28650 (mips_signed_immediate_p): New function.
28651 (m16_based_address_p): New function.
28652 (lwsp_swsp_address_p): New function.
28653 (mips_print_operand_punctuation): Recognize short delay slot insns
28654 for microMIPS.add<mode>3"
28656 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28659 * config/arm/iterators.md (v_cmp_result): New mode attribute.
28660 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
28662 2013-03-25 Richard Biener <rguenther@suse.de>
28664 PR tree-optimization/56689
28665 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
28668 2013-03-25 Richard Biener <rguenther@suse.de>
28670 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
28672 (memory_references): Likewise.
28673 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
28674 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
28675 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
28676 (gather_mem_refs_in_loops): Fold into ...
28677 (analyze_memory_references): ... this. Move initialization
28678 to tree_ssa_lim_initialize.
28679 (fill_always_executed_in): Rename to ...
28680 (fill_always_executed_in_1): ... this.
28681 (fill_always_executed_in): Move contains_call computation to
28682 this new function from ...
28683 (tree_ssa_lim_initialize): ... here.
28684 (tree_ssa_lim): Call fill_always_executed_in.
28686 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
28688 * postreload.c (reload_combine): Fix code detecting returns.
28690 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
28692 * function.c (emit_use_return_register_into_block): On cc0 targets,
28693 do not emit the sequence between cc0 setter and user.
28695 2013-03-25 Kai Tietz <ktietz@redhat.com>
28697 * config/i386/predicates.md (local_symbolic_operand): Interpret
28698 dll-imported symbols as none-local.
28700 2013-03-25 Richard Biener <rguenther@suse.de>
28702 * tree-ssa-loop-im.c (struct depend): Remove.
28703 (struct lim_aux_data): Make depends a vec of gimples.
28704 (free_lim_aux_data): Adjust.
28705 (add_dependency): Likewise.
28706 (set_level): Likewise.
28708 2013-03-25 Richard Biener <rguenther@suse.de>
28710 PR middle-end/56434
28711 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
28712 the pointer returned by calls with ECF_MALLOC set.
28714 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
28716 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
28718 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
28720 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
28721 using MMXMODE mode iterator.
28722 (*move<mode>_internal): Merge with *movv2sf_internal and
28723 *movv2sf_internal_rex64 using MMXMODE mode iterator.
28725 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
28727 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
28728 (record_last_mem_set_info): Likewise.
28730 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
28731 of XNEWVEC followed by memset.
28732 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
28734 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
28736 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
28737 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
28738 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
28739 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
28740 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
28741 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
28742 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
28743 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
28744 BARRIER_P instead of GET_CODE.
28746 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
28748 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
28749 inaccuracy in the probing code.
28751 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
28752 (ctrapdi4): Likewise.
28754 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
28756 * calls.c (expand_call): Add missing guard to code handling return
28757 of non-BLKmode structures in MSB.
28758 * function.c (expand_function_end): Likewise.
28760 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
28762 * combine.c (try_combine): Adjust comment. Do not add the set of
28763 insn #0 if the destination indirectly is set or dies in insn #2.
28764 Tidy up code to distribute a new note.
28766 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
28768 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
28769 also for alternatives 16 and 17.
28771 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
28773 * config/i386/sse.md (*mov<mode>_internal): Merge with
28774 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
28775 Emit insn template depending on type attribute. Use
28776 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
28777 movd instead of movq mnemonic for interunit moves. Rewrite mode
28778 attribute calculation. Remove unit attribute calculation.
28779 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
28780 Set prefix_data16 attribute for DImode ssemov types.
28781 Use Ym instead of y for SSE-MMX conversion alternatives.
28782 Reorder operand constraints.
28784 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
28786 * df.h (df_insn_delete): Adjust prototype.
28787 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
28788 and let it decide whether mark the basic block dirty.
28789 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
28790 * df-scan.c (df_insn_info_delete): New helper function, split
28791 off from df_insn_delete.
28792 (df_scan_free_bb_info): Use it.
28793 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
28795 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
28796 that the insn is actually an insn and it has a non-NULL basic block.
28797 Do not mark basic block dirty if only deleting a DEBUG_INSN.
28799 2013-03-22 Richard Biener <rguenther@suse.de>
28801 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
28803 (mem_ref_alloc): Do not allocate them.
28804 (refs_independent_p): Do not query or maintain a cache.
28806 2013-03-22 Richard Biener <rguenther@suse.de>
28808 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
28809 (gather_mem_refs_in_loops): Do not compute it.
28810 (analyze_memory_references): Do not allocate it.
28811 (tree_ssa_lim_finalize): Do not free it.
28812 (for_all_locs_in_loop): Do not query all_refs_in_loop.
28814 2013-03-22 Richard Biener <rguenther@suse.de>
28816 * is-a.h (as_a): Use gcc_checking_assert.
28818 2013-03-22 Ian Bolton <ian.bolton@arm.com>
28820 * config/aarch64/aarch64.c (aarch64_print_operand): New
28821 format specifier for printing a constant in hex.
28822 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
28823 format specifier for printing second operand.
28825 2013-03-22 Richard Biener <rguenther@suse.de>
28827 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
28829 (gather_mem_refs_in_loops): Perform store accumulation here.
28830 (create_vop_ref_mapping_loop): Remove.
28831 (create_vop_ref_mapping): Likewise.
28832 (analyze_memory_references): Initialize refs_stored_in_loop.
28833 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
28834 (record_indep_loop): Remove.
28835 (record_dep_loop): New function.
28836 (ref_indep_loop_p_1): Adjust to only walk over references
28837 in the loop, not its subloops.
28838 (ref_indep_loop_p): Rename to ...
28839 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
28840 maintaining a more fine-grained cache.
28841 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
28842 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
28844 2013-03-22 Richard Biener <rguenther@suse.de>
28846 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
28847 (struct mem_ref): Make accesses_in_loop a vec of a vec of
28848 aggregate mem_ref_loc.
28849 (free_mem_ref_locs): Inline into ...
28850 (memref_free): ... this and adjust.
28851 (mem_ref_alloc): Adjust.
28852 (mem_ref_locs_alloc): Remove.
28853 (record_mem_ref_loc): Adjust.
28854 (get_all_locs_in_loop): Rewrite into ...
28855 (for_all_locs_in_loop): ... this iterator.
28856 (rewrite_mem_ref_loc): New functor.
28857 (rewrite_mem_refs): Use for_all_locs_in_loop.
28858 (sm_set_flag_if_changed): New functor.
28859 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
28860 (ref_always_accessed): New functor.
28861 (ref_always_accessed_p): Use for_all_locs_in_loop.
28863 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
28865 * tree-pass.h (PROP_gimple_lvec): New.
28866 * passes.c (dump_properties): Handle PROP_gimple_lvec.
28867 (init_optimization_passes): Move pass_lower_vector.
28868 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
28870 (pass_lower_vector): Provide PROP_gimple_lvec.
28871 (pass_lower_vector_ssa): Likewise.
28872 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
28874 2013-03-21 Mark Wielaard <mjw@redhat.com>
28876 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
28878 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
28880 * config/i386/i386.md (*movdi_internal): Disparage slightly
28881 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
28882 conversion alternatives.
28884 2013-03-21 Jakub Jelinek <jakub@redhat.com>
28886 PR middle-end/48087
28887 * diagnostic.def (DK_WERROR): New kind.
28888 * diagnostic.h (werrorcount): Define.
28889 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
28890 promoted to DK_ERROR, increment DK_WERROR counter instead of
28892 * toplev.c (toplev_main): Call print_ignored_options even if
28893 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
28894 even if just werrorcount is non-zero.
28897 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
28899 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
28900 (string_cst_pool_decl): New function.
28901 (optimize_one_addr_into_implicit_ptr): New function.
28902 (resolve_addr_in_expr): Optimize DWARF location expression
28903 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
28904 which doesn't live in memory, but has DW_AT_location or
28905 DW_AT_const_value, or refers to a string literal, into
28906 DW_OP_GNU_implicit_pointer.
28907 (optimize_location_into_implicit_ptr): New function.
28908 (resolve_addr): If removing DW_AT_location of a variable because
28909 it was DW_OP_addr of address of the variable, but the variable doesn't
28910 live in memory, try to emit const value attribute for the initializer.
28912 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
28914 * tree.h (VECTOR_TYPE_P): New macro.
28915 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
28916 TYPE_MODE): Use it.
28917 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
28918 VEC_COND_EXPR cannot be lvalues.
28919 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
28921 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
28923 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
28924 Restrict the transformation to equal modes.
28926 2013-03-21 Richard Biener <rguenther@suse.de>
28928 PR tree-optimization/39326
28929 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
28930 (MEM_ANALYZABLE): Adjust.
28931 (record_mem_ref_loc): Move bitmap ops ...
28932 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
28933 unanalyzable refs, do not record locations for it.
28934 (analyze_memory_references): Allocate ref zero as shared
28936 (refs_independent_p): Do not test for unanalyzed mems here.
28937 (ref_indep_loop_p_1): Special-case disambiguation against
28938 the unanalyzed ref.
28939 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
28941 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
28943 * config/arm/arm-protos.h (tune_params): Add
28944 prefer_neon_for_64bits field.
28945 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
28946 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
28947 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
28948 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
28949 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
28950 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
28951 (arm_option_override): Handle -mneon-for-64bits new option.
28952 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
28953 (prefer_neon_for_64bits): Declare new variable.
28954 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
28955 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
28956 (arch_enabled): Handle new arch types. Remove support for onlya8
28958 (one_cmpldi2): Use new arch names.
28959 (zero_extend<mode>di2, extend<mode>di2): Ditto.
28960 * config/arm/arm.opt (mneon-for-64bits): Add option.
28961 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
28962 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
28963 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
28965 * doc/invoke.texi (-mneon-for-64bits): Document.
28967 2013-03-21 Richard Biener <rguenther@suse.de>
28969 PR tree-optimization/39326
28970 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
28971 (sort_bbs_in_loop_postorder_cmp): New function.
28972 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
28974 2013-03-21 Richard Biener <rguenther@suse.de>
28976 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
28977 (vect_insert_into_interleaving_chain): Likewise.
28978 (vect_drs_dependent_in_basic_block): Inline ...
28979 (vect_slp_analyze_data_ref_dependence): ... here. New function,
28981 (vect_analyze_data_ref_dependence): ... here. Simplify.
28982 (vect_check_interleaving): Simplify.
28983 (vect_analyze_data_ref_dependences): Likewise. Split out ...
28984 (vect_slp_analyze_data_ref_dependences): ... this new function.
28985 (dr_group_sort_cmp): New function.
28986 (vect_analyze_data_ref_accesses): Compute data-reference groups
28987 here instead of in vect_analyze_data_ref_dependence. Use
28988 a more efficient algorithm.
28989 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
28990 vect_slp_analyze_data_ref_dependences. Call
28991 vect_analyze_data_ref_accesses earlier.
28992 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28993 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
28994 (vect_slp_analyze_data_ref_dependences): New prototype.
28996 2013-03-21 Richard Biener <rguenther@suse.de>
28998 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
28999 ref is stored in the loop.
29000 (find_refs_for_sm): Walk only over all stores.
29001 (store_motion_loop): Allocate from lim_bitmap_obstack.
29002 (store_motion): Likewise.
29004 2013-03-21 Richard Biener <rguenther@suse.de>
29006 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
29007 Update virtual SSA form.
29009 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29011 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
29012 * configure: Regenerate.
29013 * config.in: Regenerate.
29014 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
29015 if !HAVE_LD_EH_FRAME_CIEV3.
29017 2013-03-21 Richard Biener <rguenther@suse.de>
29019 * tree-cfg.c (verify_expr_no_block): New function.
29020 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
29021 nor DECL_VALUE_EXPR have locations with associated blocks.
29022 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
29023 (clear_unused_block_pointer): Remove code dealing with
29024 blocks in DECL_DEBUG_EXPR locations.
29026 2013-03-21 Richard Biener <rguenther@suse.de>
29028 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
29029 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
29030 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
29031 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
29032 instead of DECL_DEBUG_EXPR_IS_FROM.
29033 * gimplify.c (gimplify_modify_expr): Likewise.
29034 * tree-cfg.c (verify_expr_location_1): Likewise.
29035 * tree-complex.c (create_one_component_var): Likewise.
29036 * tree-sra.c (create_access_replacement): Likewise.
29037 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
29038 (clear_unused_block_pointer): Likewise.
29039 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
29040 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
29041 * var-tracking.c (var_debug_decl): Likewise.
29042 (track_expr_p): Likewise.
29043 * tree-inline.c (add_local_variables): Likewise. Set
29044 DECL_HAS_DEBUG_EXPR_P after copying it.
29045 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
29046 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
29048 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
29051 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
29052 * configure: Regenerate.
29053 * config.in: Regenerate.
29054 * config/i386/i386.md (*movdf_internal): Use
29055 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
29056 movd instead of movq mnemonic for interunit moves.
29057 (*movdi_internal): Ditto.
29059 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29061 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
29062 (abd<mode>_3): New pattern.
29063 (aba<mode>_3): New pattern.
29064 (fabd<mode>_3): New pattern.
29066 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29068 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
29069 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
29070 occurrence of REGISTER_PREFIX as its empty string.
29072 2013-03-20 Jeff Law <law@redhat.com>
29074 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
29075 addititional equivalences for equality comparisons between an SSA_NAME
29076 and a constant where the SSA_NAME was set from a widening conversion.
29078 2013-03-20 Walter Lee <walt@tilera.com>
29080 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
29082 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
29084 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
29085 depending on type attribute.
29086 (*movti_internal): Ditto.
29087 (*movtf_internal): Ditto.
29088 (*movxf_internal): Ditto.
29089 (*movdf_internal): Ditto.
29090 (*movsf_internal): Ditto.
29092 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
29094 * config/i386/i386.md (*movti_internal): Set prefix attribute to
29095 maybe_vex for sselog1 and ssemov types.
29096 (*movdi_internal): Reorder operand constraints.
29097 (*movsi_internal): Ditto. Set prefix attribute to
29098 maybe_vex for sselog1 and ssemov types.
29099 (*movtf_internal): Set prefix attribute to maybe_vex
29100 for sselog1 and ssemov types.
29101 (*movdf_internal): Ditto. Set prefix_data16 attribute for
29102 DImode ssemov types. Reorder operand constraints.
29103 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
29104 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
29105 attribute for SImode ssemov types. Reorder operand constraints.
29107 2013-03-20 Martin Jambor <mjambor@suse.cz>
29109 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
29110 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
29112 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
29114 * config/rs6000/predicates.md (indexed_address, update_address_mem
29115 update_indexed_address_mem): New predicates.
29116 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
29117 attribute for load/store instructions.
29118 * config/rs6000/dfp.md (movsd_store): Likewise.
29119 (movsd_load): Likewise.
29120 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
29121 (unnamed HI->DI extend define_insn): Likewise.
29122 (unnamed SI->DI extend define_insn): Likewise.
29123 (unnamed QI->SI extend define_insn): Likewise.
29124 (unnamed QI->HI extend define_insn): Likewise.
29125 (unnamed HI->SI extend define_insn): Likewise.
29126 (unnamed HI->SI extend define_insn): Likewise.
29127 (extendsfdf2_fpr): Likewise.
29128 (movsi_internal1): Likewise.
29129 (movsi_internal1_single): Likewise.
29130 (movhi_internal): Likewise.
29131 (movqi_internal): Likewise.
29132 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
29133 attribute for load/store instructions.
29134 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
29136 (mov<mode>_softfloat): Likewise.
29137 (mov<mode>_hardfloat32): Likewise.
29138 (mov<mode>_hardfloat64): Likewise.
29139 (mov<mode>_softfloat64): Likewise.
29140 (movdi_internal32): Likewise.
29141 (movdi_internal64): Likewise.
29142 (probe_stack_<mode>): Likewise.
29144 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
29146 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
29147 floating point, and decimal floating point to reload iterator.
29149 * config/rs6000/constraints.md (wl constraint): New constraints to
29150 return FLOAT_REGS if certain options are used to reduce the number
29151 of separate patterns that exist in the file.
29152 (wx constraint): Likewise.
29153 (wz constraint): Likewise.
29155 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
29156 -mdebug=reg, print wg, wl, wx, and wz constraints.
29157 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
29158 Initialize the reload functions for 64-bit binary/decimal floating
29160 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
29161 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
29162 create the buffer on the stack to overcome not having a 32-bit
29164 (rs6000_emit_move): Likewise.
29165 (rs6000_secondary_memory_needed_rtx): Likewise.
29166 (rs6000_alloc_sdmode_stack_slot): Likewise.
29167 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
29168 via xxlxor, just like DFmode 0.0.
29170 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
29171 define as 1 if we are running on a power7 or newer.
29172 (enum r6000_reg_class_enum): Add new constraints.
29174 * config/rs6000/dfp.md (movsd): Delete, combine with binary
29175 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
29176 with other moves by using conditional constraits (wg). Use LFIWZX
29177 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
29178 (movsd splitter): Likewise.
29179 (movsd_hardfloat): Likewise.
29180 (movsd_softfloat): Likewise.
29182 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
29183 binary and decimal floating point moves.
29184 (fmove_ok): New attributes to combine binary and decimal floating
29185 point moves, and to combine power6x (mfpgpr) moves along normal
29187 (real_value_to_target): Likewise.
29188 (f32_lr): Likewise.
29189 (f32_lm): Likewise.
29190 (f32_li): Likewise.
29191 (f32_sr): Likewise.
29192 (f32_sm): Likewise.
29193 (f32_si): Likewise.
29194 (movsf): Combine binary and decimal floating point moves. Combine
29195 power6x (mfpgpr) moves with other moves by using conditional
29196 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
29197 (mov<mode> for SFmode/SDmode); Likewise.
29198 (SFmode/SDmode splitters): Likewise.
29199 (movsf_hardfloat): Likewise.
29200 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
29201 (movsf_softfloat): Likewise.
29202 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
29204 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
29205 wx and wz constraints.
29207 * config/rs6000/constraints.md (wg constraint): New constraint to
29208 return FLOAT_REGS if -mmfpgpr (power6x) was used.
29210 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
29213 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
29214 -mdebug=reg, print wg, wl, wx, and wz constraints.
29215 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
29216 Initialize the reload functions for 64-bit binary/decimal floating
29218 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
29219 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
29220 create the buffer on the stack to overcome not having a 32-bit
29222 (rs6000_emit_move): Likewise.
29223 (rs6000_secondary_memory_needed_rtx): Likewise.
29224 (rs6000_alloc_sdmode_stack_slot): Likewise.
29225 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
29226 via xxlxor, just like DFmode 0.0.
29228 * config/rs6000/dfp.md (movdd): Delete, combine with binary
29229 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
29230 with other moves by using conditional constraits (wg). Use LFIWZX
29231 and STFIWX for loading SDmode on power7.
29232 (movdd splitters): Likewise.
29233 (movdd_hardfloat32): Likewise.
29234 (movdd_softfloat32): Likewise.
29235 (movdd_hardfloat64_mfpgpr): Likewise.
29236 (movdd_hardfloat64): Likewise.
29237 (movdd_softfloat64): Likewise.
29239 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
29240 64-bit binary and decimal floating point moves.
29241 (FMOVE64X): Likewise.
29242 (movdf): Combine 64-bit binary and decimal floating point moves.
29243 Combine power6x (mfpgpr) moves with other moves by using
29244 conditional constraits (wg).
29245 (mov<mode> for DFmode/DDmode): Likewise.
29246 (DFmode/DDmode splitters): Likewise.
29247 (movdf_hardfloat32): Likewise.
29248 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
29249 (movdf_softfloat32): Likewise.
29250 (movdf_hardfloat64_mfpgpr): Likewise.
29251 (movdf_hardfloat64): Likewise.
29252 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
29253 (movdf_softfloat64): Likewise.
29254 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
29255 (reload_<mode>_load): Move to later in the file so they aren't in
29256 the middle of the floating point move insns.
29257 (reload_<mode>_store): Likewise.
29259 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
29262 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
29263 constraint if -mdebug=reg.
29264 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
29265 Enable using dd reload support if needed.
29267 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
29268 binary and decimal floating point moves in rs6000.md.
29269 (movtd_internal): Likewise.
29271 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
29272 decimal floating point moves.
29274 (movtf_internal): Likewise.
29275 (mov<mode>_internal, TDmode/TFmode): Likewise.
29276 (movtf_softfloat): Likewise.
29277 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
29279 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
29280 movdi_internal64, using wg constraint for move direct operations.
29281 (movdi_internal64): Likewise.
29283 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
29284 MODES_TIEABLE_P for selected modes. Print the numerical value of
29285 the various virtual registers. Use GPR/FPR first/last values,
29286 instead of hard coding the register numbers. Print which modes
29287 have reload functions registered.
29288 (rs6000_option_override_internal): If -mdebug=reg, trace the options
29289 settings before/after setting cpu, target and subtarget settings.
29290 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
29291 and for secondary reload failures in rs6000_secondary_reload_inner.
29292 (rs6000_secondary_reload_fail): Likewise.
29293 (rs6000_secondary_reload_inner): Likewise.
29295 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
29296 macros for first/last GPR and FPR registers.
29297 (LAST_GPR_REGNO): Likewise.
29298 (FIRST_FPR_REGNO): Likewise.
29299 (LAST_FPR_REGNO): Likewise.
29301 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
29302 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
29303 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
29304 (vcond<mode><mode>): Likewise.
29305 (vcondu<mode><mode>): Likewise.
29306 (vector_gtu<mode>): Likewise.
29307 (vector_gte<mode>): Likewise.
29308 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
29309 to prevent the compiler from converting DImode operations to TImode.
29310 (ior<mode>3): Likewise.
29311 (and<mode>3): Likewise.
29312 (one_cmpl<mode>2): Likewise.
29313 (nor<mode>3): Likewise.
29314 (andc<mode>3): Likewise.
29316 * config/rs6000/constraints.md (wt constraint): New constraint
29317 that returns VSX_REGS if TImode is allowed in VSX registers.
29319 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
29320 constant under VSX.
29322 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
29323 similar to TImode, but it is restricted to being in the GPRs.
29325 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
29326 TImode to occupy a single VSX register.
29328 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
29329 -mvsx-timode for power7/power8.
29330 (power7 cpu): Likewise.
29331 (power8 cpu): Likewise.
29333 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
29334 sure that TFmode/TDmode take up two registers if they are ever
29335 allowed in the upper VSX registers.
29336 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
29338 (rs6000_init_hard_regno_mode_ok): Likewise.
29339 (rs6000_debug_reg_global): Add debugging for PTImode and wt
29340 constraint. Print if LRA is turned on.
29341 (rs6000_option_override_internal): Give an error if -mvsx-timode
29342 and VSX is not enabled.
29343 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
29344 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
29345 to reg+offset addressing. Use PTImode when checking offset
29346 addresses for validity.
29347 (reg_offset_addressing_ok_p): Likewise.
29348 (rs6000_legitimate_offset_address_p): Likewise.
29349 (rs6000_legitimize_address): Likewise.
29350 (rs6000_legitimize_reload_address): Likewise.
29351 (rs6000_legitimate_address_p): Likewise.
29352 (rs6000_eliminate_indexed_memrefs): Likewise.
29353 (rs6000_emit_move): Likewise.
29354 (rs6000_secondary_reload): Likewise.
29355 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
29356 reloads to fpr registers to continue to use reg+offset addressing,
29357 but 64-bit reloads to altivec registers need reg+reg addressing.
29358 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
29359 it. Treat LO_SUM like a PLUS operation.
29360 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
29361 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
29362 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
29363 registers to share a register with a smaller sized type, since VSX
29364 puts scalars in the upper 64-bits.
29365 (print_operand): Add support for PTImode.
29366 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
29367 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
29368 registers, but don't have arithmetic support.
29369 (rs6000_memory_move_cost): Add test for VSX.
29370 (rs6000_opt_masks): Add -mvsx-timode.
29372 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
29375 (VSr): Use wt constraint for TImode.
29376 (VSv): Drop TImode support.
29377 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
29378 (vsx_movti_64bit): Likewise.
29379 (vsx_movti_32bit): Likewise.
29380 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
29381 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
29382 one '?' on the appropriate output constraint. Do not allow TImode
29383 logical operations on 32-bit systems.
29384 (vsx_ior<mode>3): Likewise.
29385 (vsx_xor<mode>3): Likewise.
29386 (vsx_one_cmpl<mode>2): Likewise.
29387 (vsx_nor<mode>3): Likewise.
29388 (vsx_andc<mode>3): Likewise.
29389 (vsx_concat_<mode>): Likewise.
29390 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
29392 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
29393 OPTION_MASK_VSX_TIMODE.
29394 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
29395 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
29397 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
29398 (TI2 iterator): New iterator for TImode, PTImode.
29399 (wd mode attribute): Add values for vector types.
29400 (movti_string): Replace TI move operations with operations for TImode
29401 and PTImode. Add support for TImode being allowed in VSX registers.
29402 (mov<mode>_string, TImode/PTImode): Likewise.
29403 (movti_ppc64): Likewise.
29404 (mov<mode>_ppc64, TImode/PTImode): Likewise.
29405 (TI mode splitters): Likewise.
29407 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
29410 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
29412 PR tree-optimization/56355
29413 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
29414 Also handle integers with undefined overflow.
29416 2013-03-20 Catherine Moore <clm@codesourcery.com>
29417 Maciej W. Rozycki <macro@codesourcery.com>
29418 Tom de Vries <tom@codesourcery.com>
29419 Nathan Sidwell <nathan@codesourcery.com>
29420 Iain Sandoe <iain@codesourcery.com>
29421 Nathan Froyd <froydnj@codesourcery.com>
29422 Chao-ying Fu <fu@mips.com>
29424 * doc/extend.texi: (micromips, nomicromips, nocompression):
29425 Document new function attributes.
29426 * doc/invoke.texi (minterlink-compressed, mmicromips,
29427 m14k, m14ke, m14kec): Document new options.
29428 (minterlink-mips16): Update documentation.
29429 * doc/md.texi (ZC, ZD): Document new constraints.
29430 * configure.ac (gcc_cv_as_micromips): Check if linker
29431 supports the .set micromips directive.
29432 * configure: Regenerate.
29433 * config.in: Regenerate.
29434 * config/mips/mips-tables.opt: Regenerate.
29435 * config/mips/micromips.md: New file.
29436 * constraints.md (ZC, ZD): New constraints.
29437 * config/mips/predicates.md (movep_src_register): New predicate.
29438 (movep_src_operand): New predicate.
29439 (non_volatile_mem_operand): New predicate.
29440 * config/mips/mips.md (multimem): New type.
29441 (length): Differentiate between 17-bit and 18-bit branch offsets.
29442 (MOVEP1, MOVEP2): New mode iterator.
29443 (mov_<load>l): Use ZC constraint.
29444 (mov_<load>r): Likewise.
29445 (mov_<store>l): Likewise.
29446 (mov_<store>r): Likewise.
29447 (*branch_equality<mode>_inverted): Add microMIPS support.
29448 (*branch_equality<mode>): Likewise.
29449 (*jump_absolute): Likewise.
29450 (indirect_jump_<mode>): Likewise.
29451 (tablejump_<mode>): Likewise.
29452 (<optab>_internal): Likewise.
29453 (sibcall_internal): Likewise.
29454 (sibcall_value_internal): Likewise.
29455 (prefetch): Use constraint ZD.
29456 * config/mips/mips.opt (minterlink-compressed): New option.
29457 (minterlink-mips16): Now an alias for minterlink-compressed.
29458 (mmicromips): New option.
29459 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
29460 (compare_and_swap_12): Likewise.
29461 (sync_add<mode>): Likewise.
29462 (sync_<optab>_12): Likewise.
29463 (sync_old_<optab>_12): Likewise.
29464 (sync_new_<optab>_12): Likewise.
29465 (sync_nand_12): Likewise.
29466 (sync_old_nand_12): Likewise.
29467 (sync_new_nand_12): Likewise.
29468 (sync_sub<mode>): Likewise.
29469 (sync_old_add<mode>): Likewise.
29470 (sync_old_sub<mode>): Likewise.
29471 (sync_new_add<mode>): Likewise.
29472 (sync_new_sub<mode>): Likewise.
29473 (sync_<optab><mode>): Likewise.
29474 (sync_old_<optab><mode>): Likewise.
29475 (sync_new_<optab><mode>): Likewise.
29476 (sync_nand<mode>): Likewise.
29477 (sync_old_nand<mode>): Likewise.
29478 (sync_new_nand<mode>): Likewise.
29479 (sync_lock_test_and_set<mode>): Likewise.
29480 (test_and_set_12): Likewise.
29481 (atomic_compare_and_swap<mode>): Likewise.
29482 (atomic_exchange<mode>_llsc): Likewise.
29483 (atomic_fetch_add<mode>_llsc): Likewise.
29484 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
29485 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
29486 (umips_save_restore_pattern_p): Likewise.
29487 (umips_load_store_pair_p): Likewise.
29488 (umips_output_load_store_pair): Likewise.
29489 (umips_movep_target_p): Likewise.
29490 (umips_12bit_offset_address_p): Likewise.
29491 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
29492 (mips_base_mips16): Rename this...
29493 (mips_base_compression_flags): ...to this. Update all uses.
29494 (mips_attribute_table): Add micromips, nomicromips and nocompression.
29495 (mips_mips16_decl_p): Delete.
29496 (mips_nomips16_decl_p): Delete.
29497 (mips_get_compress_on_flags): New function.
29498 (mips_get_compress_off_flags): New function.
29499 (mips_get_compress_mode): New function.
29500 (mips_get_compress_on_name): New function.
29501 (mips_get_compress_off_name): New function.
29502 (mips_insert_attributes): Support multiple compression types.
29503 (mips_merge_decl_attributes): Likewise.
29504 (umips_12bit_offset_address_p): New function.
29505 (mips_start_function_definition): Emit .set micromips directive.
29506 (mips_call_may_need_jalx_p): New function.
29507 (mips_function_ok_for_sibcall): Add microMIPS support.
29508 (mips_print_operand_punctuation): Support short delay slots and
29510 (umips_swm_mask, umips_swm_encoding): New.
29511 (umips_build_save_restore): New function.
29512 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
29513 (was_mips16_p): Remove.
29514 (old_compression_mode): New.
29515 (mips_set_compression_mode): New function.
29516 (mips_set_current_function): Add microMIPS support.
29517 (mips_option_override): Likewise.
29518 (umips_save_restore_pattern_p): New function.
29519 (umips_output_save_restore): New function.
29520 (umips_load_store_pair_p_1): New function.
29521 (umips_load_store_pair_p): New function.
29522 (umips_output_load_store_pair_1): New function.
29523 (umips_output_load_store_pair): New function.
29524 (umips_movep_target_p) New function.
29525 (mips_prepare_pch_save): Add microMIPS support.
29526 * config/mips/mips.h (TARGET_COMPRESSION): New.
29527 (TARGET_CPU_CPP_BUILTINS): Update macro
29528 to use new compression flags and to support microMIPS.
29529 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
29530 (MIPS_ARCH_FLOAT_SPEC): Likewise.
29531 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
29532 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
29533 (ASM_SPEC): Support mmicromips and mno-micromips.
29534 (M16STORE_REG_P): New macro.
29535 (MIPS_CALL): Support TARGET_MICROMIPS.
29536 (MICROMIPS_J): New macro.
29537 (mips_base_mips16): Rename this...
29538 (mips_base_compression_flags): ...to this.
29539 (UMIPS_12BIT_OFFSET_P): New macro.
29540 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
29541 (MULTILIB_DIRNAMES): Likewise.
29542 2013-03-20 Richard Biener <rguenther@suse.de>
29544 PR tree-optimization/56661
29545 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
29546 the result does not have to be distinct.
29548 2013-03-20 Richard Biener <rguenther@suse.de>
29550 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
29553 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29554 Steven Bosscher <steven@gcc.gnu.org>
29556 PR rtl-optimization/56605
29557 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
29559 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
29562 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
29563 that require movd instead of movq.
29565 2013-03-20 Richard Biener <rguenther@suse.de>
29567 * tree-ssa-structalias.c (struct variable_info): Add pointer
29568 to the first field of an aggregate with sub-vars. Make
29569 this and the pointer to the next subfield its ID.
29570 (vi_next): New function.
29571 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
29572 storedanything_id, integer_id): Increment by one.
29573 (new_var_info, get_call_vi, lookup_call_clobber_vi,
29574 get_call_clobber_vi): Adjust.
29575 (solution_set_expand): Simplify and speedup.
29576 (solution_set_add): Inline into ...
29577 (set_union_with_increment): ... this. Adjust accordingly.
29578 (do_sd_constraint): Likewise.
29579 (do_ds_constraint): Likewise.
29580 (do_complex_constraint): Simplify.
29581 (build_pred_graph): Adjust.
29582 (solve_graph): Likewise. Simplify and speedup.
29583 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
29584 get_constraint_for_component_ref, get_constraint_for_1,
29585 first_vi_for_offset, first_or_preceding_vi_for_offset,
29586 create_function_info_for, create_variable_info_for_1,
29587 create_variable_info_for, intra_create_variable_infos): Adjust.
29588 (init_base_vars): Push NULL for ID zero.
29589 (compute_points_to_sets): Adjust.
29591 2013-03-20 Richard Biener <rguenther@suse.de>
29593 * cfgloop.c (verify_loop_structure): Streamline and avoid
29594 ICEing on corrupt loop tree.
29595 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
29598 2013-03-20 Richard Biener <rguenther@suse.de>
29600 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
29601 check whether an SSA update is needed.
29603 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
29605 * config/mips/constraints.md (T): Rename to...
29609 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
29610 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
29612 2013-03-19 Ian Bolton <ian.bolton@arm.com>
29614 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
29615 (*subsi3_carryin_uxtw): Likewise.
29617 2013-03-19 Ian Bolton <ian.bolton@arm.com>
29619 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
29620 (*rorsi3_insn_uxtw): Likewise.
29622 2013-03-19 Ian Bolton <ian.bolton@arm.com>
29624 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
29625 (*extrsi5_insn_uxtw): Likewise.
29627 2013-03-19 Richard Biener <rguenther@suse.de>
29629 PR tree-optimization/56273
29630 * passes.c (init_optimization_passes): Move second VRP after DOM.
29632 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
29634 * config/i386/i386.md (*movti_internal): Merge from
29635 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
29636 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
29637 nox64 isa attributes.
29639 2013-03-18 Richard Biener <rguenther@suse.de>
29641 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
29643 (merge_node_constraints): Likewise.
29644 (build_succ_graph): Likewise.
29645 (valid_graph_edge): Inline into single caller.
29646 (unify_nodes): Likewise. Use bitmap_set_bit return value
29648 (scc_visit): Fix formatting and variable use.
29649 (do_sd_constraint): Use gcc_checking_assert.
29650 (do_ds_constraint): Likewise.
29651 (do_complex_constraint): Likewise.
29652 (condense_visit): Likewise. Cleanup.
29653 (dump_pred_graph): New function.
29654 (perform_var_substitution): Dump the pred-graph before
29655 variable substitution.
29656 (find_equivalent_node): Use gcc_checking_assert.
29657 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
29659 2013-03-18 Richard Biener <rguenther@suse.de>
29661 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
29662 Remove cond_expr_stmt_list argument and do not gimplify the
29664 (vect_loop_versioning): Adjust.
29665 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
29666 Cleanup to use less temporaries.
29667 (vect_create_data_ref_ptr): Cleanup.
29669 2013-03-18 Jakub Jelinek <jakub@redhat.com>
29671 PR tree-optimization/56635
29672 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
29673 require types_compatible_p types.
29675 2013-03-18 Nick Clifton <nickc@redhat.com>
29677 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
29678 spurious backslash.
29680 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
29681 Add missing line to comment describing function.
29683 2013-03-18 Richard Biener <rguenther@suse.de>
29685 PR tree-optimization/56210
29686 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29687 Handle string / character search functions.
29688 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
29690 2013-03-18 Richard Biener <rguenther@suse.de>
29692 PR middle-end/56483
29693 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
29694 and implement properly.
29695 * gimple.h (gimple_cond_single_var_p): Remove.
29697 2013-03-18 Richard Biener <rguenther@suse.de>
29699 * tree-data-ref.h (find_data_references_in_loop): Declare.
29700 * tree-data-ref.c (get_references_in_stmt): Use a stack
29701 vector pre-allocated in the callers.
29702 (find_data_references_in_stmt): Adjust.
29703 (graphite_find_data_references_in_stmt): Likewise.
29704 (create_rdg_vertices): Likewise.
29705 (find_data_references_in_loop): Export.
29706 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
29707 Compute dependences here...
29708 (vect_analyze_data_refs): ...not here. When we encounter
29709 a non-vectorizable data reference in basic-block vectorization
29710 truncate the data reference vector. Do not bother to
29711 fixup data-dependence information for gather loads.
29712 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
29713 of data references, as reported.
29715 2013-03-18 Richard Biener <rguenther@suse.de>
29717 PR tree-optimization/3713
29718 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
29719 has_constants and expr.
29720 (stmt_has_constants): Properly valueize SSA names when deciding
29721 whether the stmt has constants.
29723 2013-03-18 Richard Biener <rguenther@suse.de>
29725 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
29726 whole function when there is nothing to do.
29727 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
29728 * tree-vectorizer.c (vectorize_loops): Update virtual and
29729 loop-closed SSA once.
29730 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
29732 2013-03-18 Richard Biener <rguenther@suse.de>
29734 PR middle-end/56113
29735 * domwalk.c (bb_postorder): New global static.
29736 (cmp_bb_postorder): New function.
29737 (walk_dominator_tree): Replace scheme imposing an order for
29738 visiting dominator sons by one sorting them at the time they
29739 are pushed on the stack.
29741 2013-03-18 Richard Biener <rguenther@suse.de>
29743 PR tree-optimization/39326
29744 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
29745 (struct mem_ref): Replace mem member with ao_ref typed member.
29746 (MEM_ANALYZABLE): Adjust.
29747 (memref_eq): Likewise.
29748 (mem_ref_alloc): Likewise.
29749 (gather_mem_refs_stmt): Likewise.
29750 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
29751 (execute_sm_if_changed_flag_set): Adjust.
29752 (execute_sm): Likewise.
29753 (ref_always_accessed_p): Likewise.
29754 (refs_independent_p): Likewise.
29755 (can_sm_ref_p): Likewise.
29757 2013-03-18 Jakub Jelinek <jakub@redhat.com>
29760 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
29761 return 1 even for !unsignedp.
29763 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
29765 * config/i386/i386.md (isa): Add x64 and nox64.
29766 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
29767 (*pushtf): Enable *roF alternative for x64 isa only.
29768 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
29769 mode attribute of integer alternatives to DImode for TARGET_64BIT.
29770 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
29771 (*movtf_internal): Merge from *movtf_internal_rex64 and
29772 *movtf_internal_sse. Use x64 and nox64 isa attributes.
29773 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
29774 nox64 isa attributes.
29775 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
29776 nox64 isa attributes.
29777 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
29779 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
29781 * config/alpha/alpha.c (TARGET_LRA_P): New define.
29783 2013-03-17 Jakub Jelinek <jakub@redhat.com>
29786 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
29787 class names. Remove trailing comma after "ALL_REGS".
29789 2013-03-16 Jan Hubicka <jh@suse.cz>
29791 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
29792 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
29793 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
29794 of cgraph_get_create_node.
29795 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
29797 2013-03-16 Jason Merrill <jason@redhat.com>
29800 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
29801 with DW_AT_default_value.
29803 2013-03-16 Jakub Jelinek <jakub@redhat.com>
29805 * BASE-VER: Set to 4.9.0.
29807 2013-03-14 Andi Kleen <ak@linux.intel.com>
29810 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
29811 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
29812 Document _x* TSX intrinsics.
29814 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
29815 David Holsgrove <david.holsgrove@xilinx.com>
29817 * configure.ac: Add MicroBlaze TLS support detection.
29818 * configure: Regenerate.
29819 * config/microblaze/microblaze-protos.h
29820 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
29821 symbol_mentioned_p, label_mentioned_p): Add prototypes.
29822 * config/microblaze/microblaze.c (microblaze_address_type): Add
29823 ADDRESS_TLS and tls_reloc address types.
29824 (microblaze_address_info): Add tls_reloc.
29825 (TARGET_HAVE_TLS): Define.
29826 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
29827 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
29828 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
29829 load_tls_operand, microblaze_call_tls_get_addr,
29830 microblaze_legitimize_tls_address): New functions.
29831 (microblaze_classify_unspec): Handle UNSPEC_TLS.
29832 (get_base_reg): Use microblaze_tls_symbol_p.
29833 (microblaze_classify_address): Handle TLS.
29834 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
29835 label_mentioned_p and microblaze_tls_referenced_p.
29836 (microblaze_legitimize_address): Handle TLS.
29837 (microblaze_address_insns): Handle ADDRESS_TLS.
29838 (pic_address_needs_scratch): Handle TLS.
29839 (print_operand_address): Handle TLS.
29840 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
29841 (microblaze_expand_move): Handle TLS.
29842 (microblaze_legitimate_constant_p): Check
29843 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
29844 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
29845 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
29846 (PIC_OFFSET_TABLE_REGNUM): Set.
29847 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
29848 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
29849 (addsi3, movsi_internal2, movdf_internal): Update constraints
29850 * config/microblaze/predicates.md (arith_plus_operand): Define
29851 (move_operand): Redefine as move_src_operand,
29852 check microblaze_tls_referenced_p.
29854 2013-03-14 Ian Bolton <ian.bolton@arm.com>
29856 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
29857 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
29859 2013-03-14 Ian Bolton <ian.bolton@arm.com>
29861 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
29864 2013-03-14 Jakub Jelinek <jakub@redhat.com>
29866 PR tree-optimization/53265
29867 * common.opt (Waggressive-loop-optimizations): New option.
29868 * tree-ssa-loop-niter.c: Include tree-pass.h.
29869 (do_warn_aggressive_loop_optimizations): New function.
29870 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
29871 if number_of_latch_executions returned constant.
29872 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
29873 early. If number_of_latch_executions returned constant, set
29874 nb_iterations_upper_bound back to it.
29875 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
29877 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
29878 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
29880 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
29881 (MULTILIB_OSDIRNAMES): Set.
29882 * genmultilib: If defaultosdirname doesn't start with :: , set
29883 defaultosdirname2 instead, clear it and emit two . multilib_raw
29884 entries instead of just one.
29886 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
29888 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
29889 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
29890 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
29891 (SUBTARGET_OVERRIDE_OPTIONS): New.
29893 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
29896 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
29897 (musermode): Convert to Var(TARGET_USERMODE).
29898 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
29899 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
29900 * config/sh/sh.c (sh_option_override): Use
29901 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
29902 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
29904 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
29906 (udivsi3_i4_single, divsi3_i4_single): Use
29907 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
29909 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
29911 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
29914 2013-03-13 Richard Biener <rguenther@suse.de>
29916 PR tree-optimization/56608
29917 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
29918 calls when vectorizing basic-blocks.
29920 2013-03-13 Jakub Jelinek <jakub@redhat.com>
29923 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
29926 2013-03-12 Jakub Jelinek <jakub@redhat.com>
29928 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
29930 2013-03-11 Jan Hubicka <jh@suse.cz>
29933 * lto-streamer-out.c (output_symbol_p): Skip references from
29934 constructors of external variables.
29936 2013-03-11 Jan Hubicka <jh@suse.cz>
29938 PR middle-end/56571
29939 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
29941 * emit-rtl.c (verify_rtx_sharing): Likewise.
29942 (copy_insn_1): Likewise.
29943 * rtl.c (copy_rtx): Likewise.
29945 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
29948 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
29949 output_operand_lossage message.
29951 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
29954 * arm.c (shift_op): Validate RTL pattern on the fly.
29955 (arm_print_operand, case 'S'): Don't use shift_operator to validate
29958 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29961 * config/pa/pa.md (call_value): Check for calls to powf and direct to
29962 new call patterns that clobber %fr12.
29963 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
29964 split and postreload patterns.
29965 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
29966 registers %fr12 and %fr12R as call used.
29968 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
29970 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
29971 (canon_address, record_store, replace_read, check_mem_read_rtx,
29972 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
29973 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
29974 rest_of_handle_dse): Likewise.
29976 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
29978 PR middle-end/56524
29979 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
29981 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
29982 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
29983 (save_optabs_if_changed): Replace with...
29984 (init_tree_optimization_optabs): ...this.
29985 * optabs.c (save_optabs_if_changed): Rename to...
29986 (init_tree_optimization_optabs): ...this. Take the optimization node
29987 as argument. Do nothing if the base optabs are already correct.
29988 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
29989 to recompute optabs.
29990 * function.h (function): Remove optabs field.
29991 * function.c (invoke_set_current_function_hook): Call
29992 init_tree_optimization_optabs. Use the result to initialize
29995 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
29997 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
29998 if GTMA_HAS_NO_INSTRUMENTATION.
29999 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
30000 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
30001 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
30002 * gimple-pretty-print.c (dump_gimple_transaction): Handle
30003 GTMA_HAS_NO_INSTRUMENTATION.
30005 2013-03-08 Jakub Jelinek <jakub@redhat.com>
30007 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
30010 2013-03-08 Marek Polacek <polacek@redhat.com>
30011 Jakub Jelinek <jakub@redhat.com>
30013 PR tree-optimization/56478
30014 * predict.c (is_comparison_with_loop_invariant_p): Change the
30015 type of loop_step to tree.
30016 (predict_loops): Adjust.
30017 (predict_iv_comparison): Perform the computations on double_ints.
30019 2013-03-08 Richard Biener <rguenther@suse.de>
30021 PR tree-optimization/56570
30022 * tree-cfg.c (verify_expr_location_1): Verify locations for
30024 * tree-sra.c (create_access_replacement): Strip locations
30025 from DECL_DEBUG_EXPRs.
30027 2013-03-08 Richard Biener <rguenther@suse.de>
30029 * tree-inline.c (expand_call_inline): Do not associate
30030 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
30031 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
30033 2013-03-08 Richard Biener <rguenther@suse.de>
30035 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
30036 or block changes with -Og. Fix for location / block encoding
30037 changes and PHI arguments with locations.
30039 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
30041 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
30043 (struct output_info): Likewise.
30044 (register_overhead): Remove bad gcc_assert.
30045 (bitmap_find_bit): If there is only a single bitmap element, do not
30046 count a miss as a search.
30047 (print_statistics): Update for counter type changes.
30048 (dump_bitmap_statistics): Likewise. Print headers such that they
30049 are properly lined up with the printed counters.
30051 2013-03-07 Jakub Jelinek <jakub@redhat.com>
30053 PR tree-optimization/56559
30054 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
30055 check that it has only a single use.
30057 2013-03-07 Richard Biener <rguenther@suse.de>
30059 * doc/invoke.texi (fwhole-program): Discourage use in combination
30062 2013-03-06 Jakub Jelinek <jakub@redhat.com>
30064 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
30066 PR tree-optimization/56539
30067 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
30068 instead of GSI_CONTINUE_LINKING as last argument to
30069 force_gimple_operand_gsi. Adjust function comment.
30071 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
30074 PR middle-end/56548
30075 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
30076 promoted mode, convert the result back to the original mode.
30078 2013-03-06 Richard Biener <rguenther@suse.de>
30080 PR middle-end/56294
30081 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
30082 (insert_updated_phi_nodes_compare_uids): New function.
30083 (update_ssa): Sort symbols_to_rename after UID before
30084 traversing it to insert PHI nodes.
30086 2013-03-06 Richard Biener <rguenther@suse.de>
30088 PR middle-end/50494
30089 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
30090 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
30093 2013-02-13 Richard Biener <rguenther@suse.de>
30096 * varasm.c (output_constant_def_1): Get the decl representing
30097 the constant as argument.
30098 (output_constant_def): Wrap output_constant_def_1.
30099 (make_decl_rtl): Use output_constant_def_1 with the decl
30100 representing the constant.
30101 (build_constant_desc): Optionally re-use a decl already
30102 representing the constant.
30103 (tree_output_constant_def): Adjust.
30105 2013-03-06 Joey Ye <joey.ye@arm.com>
30108 * gcc.c (convert_white_space): New function.
30109 (main): Handles white space in function name.
30111 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
30114 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
30115 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
30116 to SH_DIV_CALL_TABLE for TARGET_SH2.
30117 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
30119 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
30120 call-table options.
30122 2013-03-05 Sterling Augustine <saugustine@google.com>
30123 Cary Coutant <ccoutant@google.com>
30126 * dwarf2out.c (resolve_addr): Don't call
30127 remove_loc_list_addr_table_entries a second time for the same
30130 2013-03-05 Jakub Jelinek <jakub@redhat.com>
30133 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
30134 (avoid_complex_debug_insns): New function.
30135 (expand_debug_locations): Call it.
30137 PR rtl-optimization/56484
30138 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
30139 lifetimes of hard registers on small register class machines.
30141 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
30143 * config/microblaze/microblaze-protos.h: Rename
30144 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
30145 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
30147 (microblaze_fast_interrupt_function_p): New function.
30148 (microblaze_is_interrupt_handler): Rename to
30149 microblaze_is_interrupt_variant and add fast_interrupt check.
30150 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
30151 (save_restore_insns): Likewise.
30152 (compute_frame_size): Likewise.
30153 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
30154 (microblaze_globalize_label): Likewise.
30155 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
30156 * config/microblaze/microblaze.md: Use wrapper
30157 microblaze_is_interrupt_variant.
30159 2013-03-05 Kai Tietz <ktietz@redhat.com>
30161 * sdbout.c (sdbout_one_type): Switch to current function's section
30162 supporting cold/hot.
30164 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
30166 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
30169 2013-03-05 Jakub Jelinek <jakub@redhat.com>
30171 PR middle-end/56461
30172 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
30173 if VALGRIND_GET_VBITS is defined, temporarily make object
30174 memory all defined, and restore previous valgrind addressability
30175 and definability afterwards. Free this_object at the end.
30177 PR middle-end/56461
30178 * lra.c (lra): Call lra_clear_live_ranges if live_p,
30179 right before calling lra_create_live_ranges, also call it
30180 when clearing live_p. Only call lra_clear_live_ranges
30181 at the end if live_p.
30183 PR middle-end/56461
30184 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
30186 2013-03-05 Richard Biener <rguenther@suse.de>
30188 PR tree-optimization/56521
30189 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
30192 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
30195 * except.h (remove_unreachable_eh_regions): New prototype.
30196 * except.c (remove_eh_handler_splicer): New function, split out
30197 of remove_eh_handler.
30198 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
30199 warning about running it on many EH regions one at a time.
30200 (remove_unreachable_eh_regions_worker): New function, walk the
30201 EH tree in depth-first order and remove non-marked regions.
30202 (remove_unreachable_eh_regions): New function.
30203 * tree-eh.c (mark_reachable_handlers): New function, split out
30204 from remove_unreachable_handlers.
30205 (remove_unreachable_handlers): Use mark_reachable_handlers and
30206 remove_unreachable_eh_regions.
30207 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
30208 and remove_unreachable_eh_regions.
30210 2013-03-05 Richard Biener <rguenther@suse.de>
30212 PR middle-end/56525
30213 * loop-init.c (fix_loop_structure): Remove loops in two stages,
30214 not freeing them until the end.
30216 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30218 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
30220 2013-03-05 Richard Biener <rguenther@suse.de>
30222 PR tree-optimization/56270
30223 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
30224 of loads after scheduling an SLP instance.
30226 2013-03-05 Jakub Jelinek <jakub@redhat.com>
30228 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
30230 (check_gcc_parallelize): Run guality.exp as a separate job from
30231 vect.exp with unsorted.exp and $(dg_target_exps) separately from
30232 struct-layout-1.exp with stackalign.exp.
30234 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
30236 PR middle-end/56461
30237 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
30238 load_index sbitmap even if some bit in it isn't set.
30240 PR middle-end/56461
30241 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
30242 (discover_iteration_bound_by_body_walk): Change queues to
30243 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
30244 spelling in comment. Call safe_push on queues[bound_index] directly.
30245 Release queues[queue_index] in every iteration unconditionally.
30246 Release bounds vector.
30248 PR middle-end/56461
30249 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
30250 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
30251 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
30254 2013-03-05 Richard Biener <rguenther@suse.de>
30257 * tree-inline.c (remap_blocks_to_null): New function.
30258 (expand_call_inline): When expanding a call stmt without
30259 an associated block inline remap all callee blocks to NULL.
30261 2013-03-05 Jakub Jelinek <jakub@redhat.com>
30263 PR rtl-optimization/56494
30264 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
30265 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
30266 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
30268 PR middle-end/56461
30269 * sel-sched-ir.c (free_sched_pools): Release
30270 succs_info_pool.stack[succs_info_pool.max_top] vectors too
30271 if succs_info_pool.max_top isn't -1.
30274 * opts.c (opts_obstack, opts_concat): Moved to...
30275 * opts-common.c (opts_obstack, opts_concat): ... here.
30277 2013-03-04 Jakub Jelinek <jakub@redhat.com>
30279 PR middle-end/56461
30280 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
30282 2013-03-04 Martin Jambor <mjambor@suse.cz>
30284 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
30285 all appropriate places.
30287 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
30289 PR tree-optimization/56424
30290 * ipa-split.c (split_function): Do not set the RSO flag if result is
30291 not by reference and its type is a register type.
30293 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
30295 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
30296 (microblaze_legitimate_pic_operand): Likewise
30297 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
30298 new function microblaze_legitimate_pic_operand
30299 * config/microblaze/microblaze-protos.h
30300 (microblaze_legitimate_pic_operand): Declare.
30302 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
30304 * config/microblaze/predicates.md (call_insn_simple_operand):
30305 New predicate for supported rtx code types.
30306 * config/microblaze/microblaze.md (call_internal1): Use
30307 call_insn_simple_operand predicate.
30309 2013-03-04 Jakub Jelinek <jakub@redhat.com>
30311 PR middle-end/56461
30312 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
30313 partitions.ordered_remove.
30315 PR middle-end/56461
30316 * tree-vect-stmts.c (vectorizable_conversion): Don't call
30317 vec_oprnds0.create (1) for modifier == NONE.
30319 PR middle-end/56461
30320 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
30321 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
30322 vec_oprnds1 right before pushing anything to it for
30325 PR middle-end/56461
30326 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
30327 set nbbs to 0 instead of having separate code path.
30328 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
30329 instead of false as last argument if returning NULL.
30331 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
30333 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
30334 the attribute is now called "target" instead of "option".
30335 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
30336 * doc/tm.texi.in (Target Attributes): Likewise document the correct
30337 attribute/pragma name for TARGET_OPTION_VALID_P and
30338 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
30339 * doc/tm.texi: Regenerated.
30341 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
30343 * config/microblaze/microblaze.c:
30344 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
30345 * config/microblaze/microblaze.h: Add -mxl-reorder to
30347 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
30348 instructions emitted if TARGET_REORDER.
30349 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
30350 or 0 for -m/-mno case, but initialises as 2 to detect default use case
30353 2013-03-01 Xinliang David Li <davidxl@google.com>
30355 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
30358 2013-03-01 Jakub Jelinek <jakub@redhat.com>
30360 PR middle-end/56461
30361 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
30362 vector even when returning true. Fix up function comment formatting.
30364 PR middle-end/56461
30365 * ira-build.c (ira_loop_nodes_count): New variable.
30366 (create_loop_tree_nodes): Initialize it.
30367 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
30369 PR middle-end/56461
30370 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
30371 method on dr_chain and result_chain.
30372 * tree-vect-stmts.c (vectorizable_store): Only call
30373 result_chain.create if j == 0.
30375 PR middle-end/56461
30376 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
30377 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
30378 before overwriting it.
30380 2013-03-01 Tobias Burnus <burnus@net-b.de>
30382 * doc/extended.texi (C Extensions): Change order in @menu
30384 (Other MIPS Built-in Functions): Move last MIPS entry before
30385 "picoChip Built-in Functions".
30386 (SH Built-in Functions): Move after RX Built-in Functions.
30387 * doc/gcc.texi (Introduction): Change order in @menu
30389 * doc/md.texi (Constraints): Ditto.
30390 * gty.texi (Type Information): Ditto.
30391 (User-provided marking routines for template types): Make
30393 * doc/invoke.texi (AArch64 Options): Move before
30394 "Adapteva Epiphany Options".
30396 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
30397 Jakub Jelinek <jakub@redhat.com>
30400 * asan.c (gate_asan): Lookup no_sanitize_address instead of
30401 no_address_safety_analysis attribute.
30402 * doc/extend.texi (no_address_safety_attribute): Rename to
30403 no_sanitize_address attribute, mention no_address_safety_analysis
30404 attribute as deprecated alias.
30406 2013-02-28 Jakub Jelinek <jakub@redhat.com>
30408 PR middle-end/56461
30409 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
30410 type to vec<vec<tree> > *.
30411 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
30412 to be vec<tree> instead of vec<tree> *, set vec_defs
30413 to vNULL and call vec_defs.create (number_of_vects), adjust other
30415 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
30416 vectorizable_condition): Adjust vect_get_slp_defs callers.
30418 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
30420 * config/aarch64/aarch64.c
30421 (aarch64_float_const_representable): Remove unused variable.
30423 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
30425 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
30427 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
30429 * config/aarch64/aarch64-builtins.c
30430 (aarch64_init_simd_builtins): Make static.
30432 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
30434 * config/aarch64/aarch64.c
30435 (aarch64_simd_make_constant): Make static.
30437 2013-02-28 Martin Jambor <mjambor@suse.cz>
30439 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
30440 with no initialization to the RHS of debug statements.
30442 2013-02-28 Martin Jambor <mjambor@suse.cz>
30444 PR tree-optimization/56294
30445 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
30447 (get_access_replacement): Do not call create_access_replacement.
30448 Assert a replacement exists.
30449 (get_repl_default_def_ssa_name): Create the replacement declaration
30452 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30454 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
30455 final_end_function.
30457 2013-02-28 Marek Polacek <polacek@redhat.com>
30459 PR rtl-optimization/56466
30460 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
30461 if we're changing a loop.
30462 (peel_loops_completely): Likewise.
30464 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
30467 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
30469 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
30472 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
30473 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
30474 INTX_FTYPE_FX, FX_FTYPE_INTX.
30475 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
30477 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
30479 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
30480 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
30481 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
30482 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
30483 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
30484 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
30485 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
30486 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
30487 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
30488 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
30489 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
30490 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
30491 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
30492 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
30493 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
30494 (avrxmega6): Increase max flash segments from 5 to 6.
30495 * config/avr/t-multilib: Regenerate.
30496 * config/avr/avr-tables.opt: Regenerate.
30497 * doc/avr-mmcu.texi: Regenerate.
30499 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
30501 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
30502 (avr_device_to_arch): Rename to avr_device_to_ld.
30503 (avr_device_to_as): New prototype.
30504 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
30505 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
30506 * config/avr/driver-avr.c (avr_device_to_as): New.
30507 (avr_device_to_arch): Rename to avr_device_to_ld.
30509 2013-02-27 Jakub Jelinek <jakub@redhat.com>
30511 PR middle-end/56461
30512 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
30513 method on dr_chain and result_chain.
30515 PR middle-end/56461
30516 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
30517 pointer_set_destroy on not_executed_last_iteration.
30519 PR middle-end/56461
30520 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
30522 PR middle-end/56461
30523 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
30524 FOR_EACH_DEFINED_FUNCTION when freeing state.
30526 PR middle-end/56461
30527 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
30529 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
30532 PR middle-end/56461
30533 * ipa-cp.c (decide_whether_version_node): Call vec_free on
30534 known_aggs[i].items and release known_aggs vector.
30536 PR middle-end/56461
30537 * ipa-reference.c (propagate): Free node_info even for alias nodes.
30539 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
30541 * config/microblaze/microblaze.c (microblaze_emit_compare):
30542 Use xor for EQ/NE comparisions.
30543 * config/microblaze/microblaze.md (cstoresf4): Add constraints
30544 (cbranchsf4): Adjust operator to comparison_operator.
30546 2013-02-27 Jakub Jelinek <jakub@redhat.com>
30548 PR middle-end/56461
30549 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
30551 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
30552 vec_safe_push, always update *slot.
30553 (redirect_edge_var_map_clear): Use vec_free.
30554 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
30555 (free_var_map_entry): Use vec_free.
30556 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
30557 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
30559 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
30561 PR middle-end/45472
30562 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
30563 when the may_trap_p bit of the exprs being merged differs.
30564 Reorder tests for speculativeness in the logical and operator.
30566 2013-02-27 Jakub Jelinek <jakub@redhat.com>
30568 * incpath.c (add_standard_paths): Use reconcat instead of concat
30569 where appropriate and avoid leaking memory.
30571 * opts.h: Include obstack.h.
30572 (opts_concat): New prototype.
30573 (opts_obstack): New declaration.
30574 * opts.c (opts_concat): New function.
30575 (opts_obstack): New variable.
30576 (init_options_struct): Call gcc_init_obstack on opts_obstack.
30577 (finish_options): Use opts_concat instead of concat
30578 and XOBNEWVEC instead of XNEWVEC.
30579 * opts-common.c (generate_canonical_option, decode_cmdline_option,
30580 generate_option): Likewise.
30581 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
30582 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
30585 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
30586 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
30588 2013-02-26 Jakub Jelinek <jakub@redhat.com>
30590 PR middle-end/56461
30591 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
30593 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
30595 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
30596 (arm_block_move_unaligned_straight): Likewise.
30597 (arm_adjust_block_mem): Likewise.
30599 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
30602 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
30603 temp, cond and label.
30604 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
30607 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
30608 * config/c6x/c6x.h (dbx_register_map): Update declaration.
30611 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
30612 of prologue/epilogue functions.
30615 * config/tilegx/tilegx.c (tilegx_expand_prologue):
30616 Remove unused variable cfa_offset.
30617 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
30620 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
30621 type promotion to unsigned.
30624 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
30625 for HOST_WIDE_INT of 32 bit / same size as int.
30626 (arm_block_move_unaligned_straight): Likewise.
30627 (arm_adjust_block_mem): Likewise.
30630 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
30633 2013-02-26 Marek Polacek <polacek@redhat.com>
30635 PR tree-optimization/56426
30636 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
30638 2013-02-26 Richard Biener <rguenther@suse.de>
30641 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
30642 unused variable loops.
30644 2013-02-26 Jakub Jelinek <jakub@redhat.com>
30646 PR tree-optimization/56448
30647 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
30648 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
30649 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
30650 later operands of the references, or even first operand for
30651 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
30653 PR tree-optimization/56443
30654 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
30655 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
30656 to type_for_mode langhook.
30658 2013-02-25 Matt Turner <mattst88@gmail.com>
30660 * doc/invoke.texi: Document r4700.
30662 2013-02-25 Richard Biener <rguenther@suse.de>
30664 PR tree-optimization/56175
30665 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
30667 (simplify_bitwise_binary): ... here. Also guard the conversion
30668 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
30670 2013-02-25 Catherine Moore <clm@codesourcery.com>
30673 2013-02-24 Catherine Moore <clm@codesourcery.com>
30674 Maciej W. Rozycki <macro@codesourcery.com>
30675 Tom de Vries <tom@codesourcery.com>
30676 Nathan Sidwell <nathan@codesourcery.com>
30677 Iain Sandoe <iain@codesourcery.com>
30678 Nathan Froyd <froydnj@codesourcery.com>
30679 Chao-ying Fu <fu@mips.com>
30681 * doc/extend.texi: (micromips, nomicromips, nocompression):
30682 Document new function attributes.
30683 * doc/invoke.texi (minterlink-compressed, mmicromips,
30684 m14k, m14ke, m14kec): Document new options.
30685 (minterlink-mips16): Update documentation.
30686 * doc/md.texi (ZC, ZD): Document new constraints.
30687 * configure.ac (gcc_cv_as_micromips): Check if linker
30688 supports the .set micromips directive.
30689 * configure: Regenerate.
30690 * config.in: Regenerate.
30691 * config/mips/mips-tables.opt: Regenerate.
30692 * config/mips/micromips.md: New file.
30693 * constraints.md (ZC, AD): New constraints.
30694 * config/mips/predicates.md (movep_src_register): New predicate.
30695 (movep_src_operand): New predicate.
30696 (non_volatile_mem_operand): New predicate.
30697 * config/mips/mips.md (multimem): New type.
30698 (length): Differentiate between 17-bit and 18-bit branch offsets.
30699 (MOVEP1, MOVEP2): New mode iterator.
30700 (mov_<load>l): Use ZC constraint.
30701 (mov_<load>r): Likewise.
30702 (mov_<store>l): Likewise.
30703 (mov_<store>r): Likewise.
30704 (*branch_equality<mode>_inverted): Add microMIPS support.
30705 (*branch_equality<mode>): Likewise.
30706 (*jump_absolute): Likewise.
30707 (indirect_jump_<mode>): Likewise.
30708 (tablejump_<mode>): Likewise.
30709 (<optab>_internal): Likewise.
30710 (sibcall_internal): Likewise.
30711 (sibcall_value_internal): Likewise.
30712 (prefetch): Use constraint ZD.
30713 * config/mips/mips.opt (minterlink-compressed): New option.
30714 (minterlink-mips16): Now an alias for minterlink-compressed.
30715 (mmicromips): New option.
30716 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
30717 (compare_and_swap_12): Likewise.
30718 (sync_add<mode>): Likewise.
30719 (sync_<optab>_12): Likewise.
30720 (sync_old_<optab>_12): Likewise.
30721 (sync_new_<optab>_12): Likewise.
30722 (sync_nand_12): Likewise.
30723 (sync_old_nand_12): Likewise.
30724 (sync_new_nand_12): Likewise.
30725 (sync_sub<mode>): Likewise.
30726 (sync_old_add<mode>): Likewise.
30727 (sync_old_sub<mode>): Likewise.
30728 (sync_new_add<mode>): Likewise.
30729 (sync_new_sub<mode>): Likewise.
30730 (sync_<optab><mode>): Likewise.
30731 (sync_old_<optab><mode>): Likewise.
30732 (sync_new_<optab><mode>): Likewise.
30733 (sync_nand<mode>): Likewise.
30734 (sync_old_nand<mode>): Likewise.
30735 (sync_new_nand<mode>): Likewise.
30736 (sync_lock_test_and_set<mode>): Likewise.
30737 (test_and_set_12): Likewise.
30738 (atomic_compare_and_swap<mode>): Likewise.
30739 (atomic_exchange<mode>_llsc): Likewise.
30740 (atomic_fetch_add<mode>_llsc): Likewise.
30741 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
30742 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
30743 (umips_save_restore_pattern_p): Likewise.
30744 (umips_load_store_pair_p): Likewise.
30745 (umips_output_load_store_pair): Likewise.
30746 (umips_movep_target_p): Likewise.
30747 (umips_12bit_offset_address_p): Likewise.
30748 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
30749 (mips_base_mips16): Rename this...
30750 (mips_base_compression_flags): ...to this. Update all uses.
30751 (mips_attribute_table): Add micromips, nomicromips and nocompression.
30752 (mips_mips16_decl_p): Delete.
30753 (mips_nomips16_decl_p): Delete.
30754 (mips_get_compress_on_flags): New function.
30755 (mips_get_compress_off_flags): New function.
30756 (mips_get_compress_mode): New function.
30757 (mips_get_compress_on_name): New function.
30758 (mips_get_compress_off_name): New function.
30759 (mips_insert_attributes): Support multiple compression types.
30760 (mips_merge_decl_attributes): Likewise.
30761 (umips_12bit_offset_address_p): New function.
30762 (mips_start_function_definition): Emit .set micromips directive.
30763 (mips_call_may_need_jalx_p): New function.
30764 (mips_function_ok_for_sibcall): Add microMIPS support.
30765 (mips_print_operand_punctuation): Support short delay slots and
30767 (umips_swm_mask, umips_swm_encoding): New.
30768 (umips_build_save_restore): New function.
30769 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
30770 (was_mips16_p): Remove.
30771 (old_compression_mode): New.
30772 (mips_set_compression_mode): New function.
30773 (mips_set_current_function): Add microMIPS support.
30774 (mips_option_override): Likewise.
30775 (umips_save_restore_pattern_p): New function.
30776 (umips_output_save_restore): New function.
30777 (umips_load_store_pair_p_1): New function.
30778 (umips_load_store_pair_p): New function.
30779 (umips_output_load_store_pair_1): New function.
30780 (umips_output_load_store_pair): New function.
30781 (umips_movep_target_p) New function.
30782 (mips_prepare_pch_save): Add microMIPS support.
30783 * config/mips/mips.h (TARGET_COMPRESSION): New.
30784 (TARGET_CPU_CPP_BUILTINS): Update macro
30785 to use new compression flags and to support microMIPS.
30786 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
30787 (MIPS_ARCH_FLOAT_SPEC): Likewise.
30788 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
30789 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
30790 (ASM_SPEC): Support mmicromips and mno-micromips.
30791 (M16STORE_REG_P): New macro.
30792 (MIPS_CALL): Support TARGET_MICROMIPS.
30793 (MICROMIPS_J): New macro.
30794 (mips_base_mips16): Rename this...
30795 (mips_base_compression_flags): ...to this.
30796 (UMIPS_12BIT_OFFSET_P): New macro.
30797 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
30798 (MULTILIB_DIRNAMES): Likewise.
30800 2013-02-25 Tom de Vries <tom@codesourcery.com>
30802 PR rtl-optimization/56131
30803 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
30804 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
30805 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
30807 2013-02-25 Tobias Burnus <burnus@net-b.de>
30809 * doc/invoke.texi (-fsanitize=): Move from optimization
30810 to debugging options.
30812 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
30814 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
30816 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
30817 Alexander Monakov <amonakov@ispras.ru>
30819 PR middle-end/56077
30820 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
30821 flush pending lists also on non-jumps. Adjust comment.
30823 2013-02-24 Catherine Moore <clm@codesourcery.com>
30824 Maciej W. Rozycki <macro@codesourcery.com>
30825 Tom de Vries <tom@codesourcery.com>
30826 Nathan Sidwell <nathan@codesourcery.com>
30827 Iain Sandoe <iain@codesourcery.com>
30828 Nathan Froyd <froydnj@codesourcery.com>
30829 Chao-ying Fu <fu@mips.com>
30831 * doc/extend.texi: (micromips, nomicromips, nocompression):
30832 Document new function attributes.
30833 * doc/invoke.texi (minterlink-compressed, mmicromips,
30834 m14k, m14ke, m14kec): Document new options.
30835 (minterlink-mips16): Update documentation.
30836 * doc/md.texi (ZC, ZD): Document new constraints.
30837 * configure.ac (gcc_cv_as_micromips): Check if linker
30838 supports the .set micromips directive.
30839 * configure: Regenerate.
30840 * config.in: Regenerate.
30841 * config/mips/mips-tables.opt: Regenerate.
30842 * config/mips/micromips.md: New file.
30843 * constraints.md (ZC, AD): New constraints.
30844 * config/mips/predicates.md (movep_src_register): New predicate.
30845 (movep_src_operand): New predicate.
30846 (non_volatile_mem_operand): New predicate.
30847 * config/mips/mips.md (multimem): New type.
30848 (length): Differentiate between 17-bit and 18-bit branch offsets.
30849 (MOVEP1, MOVEP2): New mode iterator.
30850 (mov_<load>l): Use ZC constraint.
30851 (mov_<load>r): Likewise.
30852 (mov_<store>l): Likewise.
30853 (mov_<store>r): Likewise.
30854 (*branch_equality<mode>_inverted): Add microMIPS support.
30855 (*branch_equality<mode>): Likewise.
30856 (*jump_absolute): Likewise.
30857 (indirect_jump_<mode>): Likewise.
30858 (tablejump_<mode>): Likewise.
30859 (<optab>_internal): Likewise.
30860 (sibcall_internal): Likewise.
30861 (sibcall_value_internal): Likewise.
30862 (prefetch): Use constraint ZD.
30863 * config/mips/mips.opt (minterlink-compressed): New option.
30864 (minterlink-mips16): Now an alias for minterlink-compressed.
30865 (mmicromips): New option.
30866 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
30867 (compare_and_swap_12): Likewise.
30868 (sync_add<mode>): Likewise.
30869 (sync_<optab>_12): Likewise.
30870 (sync_old_<optab>_12): Likewise.
30871 (sync_new_<optab>_12): Likewise.
30872 (sync_nand_12): Likewise.
30873 (sync_old_nand_12): Likewise.
30874 (sync_new_nand_12): Likewise.
30875 (sync_sub<mode>): Likewise.
30876 (sync_old_add<mode>): Likewise.
30877 (sync_old_sub<mode>): Likewise.
30878 (sync_new_add<mode>): Likewise.
30879 (sync_new_sub<mode>): Likewise.
30880 (sync_<optab><mode>): Likewise.
30881 (sync_old_<optab><mode>): Likewise.
30882 (sync_new_<optab><mode>): Likewise.
30883 (sync_nand<mode>): Likewise.
30884 (sync_old_nand<mode>): Likewise.
30885 (sync_new_nand<mode>): Likewise.
30886 (sync_lock_test_and_set<mode>): Likewise.
30887 (test_and_set_12): Likewise.
30888 (atomic_compare_and_swap<mode>): Likewise.
30889 (atomic_exchange<mode>_llsc): Likewise.
30890 (atomic_fetch_add<mode>_llsc): Likewise.
30891 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
30892 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
30893 (umips_save_restore_pattern_p): Likewise.
30894 (umips_load_store_pair_p): Likewise.
30895 (umips_output_load_store_pair): Likewise.
30896 (umips_movep_target_p): Likewise.
30897 (umips_12bit_offset_address_p): Likewise.
30898 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
30899 (mips_base_mips16): Rename this...
30900 (mips_base_compression_flags): ...to this. Update all uses.
30901 (mips_attribute_table): Add micromips, nomicromips and nocompression.
30902 (mips_mips16_decl_p): Delete.
30903 (mips_nomips16_decl_p): Delete.
30904 (mips_get_compress_on_flags): New function.
30905 (mips_get_compress_off_flags): New function.
30906 (mips_get_compress_mode): New function.
30907 (mips_get_compress_on_name): New function.
30908 (mips_get_compress_off_name): New function.
30909 (mips_insert_attributes): Support multiple compression types.
30910 (mips_merge_decl_attributes): Likewise.
30911 (umips_12bit_offset_address_p): New function.
30912 (mips_start_function_definition): Emit .set micromips directive.
30913 (mips_call_may_need_jalx_p): New function.
30914 (mips_function_ok_for_sibcall): Add microMIPS support.
30915 (mips_print_operand_punctuation): Support short delay slots and
30917 (umips_swm_mask, umips_swm_encoding): New.
30918 (umips_build_save_restore): New function.
30919 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
30920 (was_mips16_p): Remove.
30921 (old_compression_mode): New.
30922 (mips_set_compression_mode): New function.
30923 (mips_set_current_function): Add microMIPS support.
30924 (mips_option_override): Likewise.
30925 (umips_save_restore_pattern_p): New function.
30926 (umips_output_save_restore): New function.
30927 (umips_load_store_pair_p_1): New function.
30928 (umips_load_store_pair_p): New function.
30929 (umips_output_load_store_pair_1): New function.
30930 (umips_output_load_store_pair): New function.
30931 (umips_movep_target_p) New function.
30932 (mips_prepare_pch_save): Add microMIPS support.
30933 * config/mips/mips.h (TARGET_COMPRESSION): New.
30934 (TARGET_CPU_CPP_BUILTINS): Update macro
30935 to use new compression flags and to support microMIPS.
30936 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
30937 (MIPS_ARCH_FLOAT_SPEC): Likewise.
30938 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
30939 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
30940 (ASM_SPEC): Support mmicromips and mno-micromips.
30941 (M16STORE_REG_P): New macro.
30942 (MIPS_CALL): Support TARGET_MICROMIPS.
30943 (MICROMIPS_J): New macro.
30944 (mips_base_mips16): Rename this...
30945 (mips_base_compression_flags): ...to this.
30946 (UMIPS_12BIT_OFFSET_P): New macro.
30947 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
30948 (MULTILIB_DIRNAMES): Likewise.
30950 2013-02-24 Jakub Jelinek <jakub@redhat.com>
30953 * target-globals.c (save_target_globals): For init_reg_sets and
30954 target_reinit remporarily set this_fn_optabs to this_target_optabs.
30956 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
30958 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
30959 * config/aarch64/t-aarch64
30960 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
30962 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
30964 PR inline-asm/56148
30965 * lra-constraints.c (process_alt_operands): Reload operand
30966 conflicting with earlier clobber only if no more other conflicting
30969 2013-02-22 Jakub Jelinek <jakub@redhat.com>
30972 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
30973 if not linking a shared library.
30975 2013-02-22 Seth LaForge <sethml@google.com>
30977 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
30979 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
30981 * config/arm/arm.md (split for extendsidi): Update condition.
30982 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
30983 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
30984 (qhs_zextenddi_cstr): Likewise.
30986 2013-02-21 Jakub Jelinek <jakub@redhat.com>
30988 PR middle-end/56420
30989 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
30990 avoid signed wrapping.
30991 (expand_mult): Handle properly multiplication by
30992 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
30993 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
30994 in the compiler if coeff is HOST_WIDE_INT_MIN.
30995 (expand_divmod): Don't make ext_op1 static, change it's type to
30996 uhwi. Avoid undefined behavior in -INTVAL (op1).
30998 PR rtl-optimization/50339
30999 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
31001 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
31002 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
31003 into splitting_ashiftrt field.
31004 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
31006 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
31009 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
31011 PR middle-end/56108
31012 * trans-mem.c (execute_tm_mark): Do not expand transactions that
31013 are sure to go irrevocable.
31015 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
31017 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
31018 scalars are valid operands.
31020 2013-02-21 Martin Jambor <mjambor@suse.cz>
31022 PR tree-optimization/56310
31023 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
31024 only matching indices and non-negative final offsets.
31025 (intersect_aggregates_with_edge): Pass src_idx to
31026 agg_replacements_to_vector. Pass src_idx insstead of index to
31027 intersect_with_agg_replacements.
31029 2013-02-21 Martin Jambor <mjambor@suse.cz>
31031 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
31032 instead of hard-wired defaults.
31034 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
31036 * doc/invoke.texi (MIPS Options): Update documentation of the
31037 floating-point multiply-accumulate instruction restrictions.
31039 2013-02-21 Kostya Serebryany <kcc@google.com>
31041 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
31042 asan_shadow_offset on x86_64 linux.
31044 2013-02-21 Richard Biener <rguenther@suse.de>
31046 PR tree-optimization/56415
31048 2013-02-11 Richard Biener <rguenther@suse.de>
31050 PR tree-optimization/56273
31051 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
31054 2013-02-21 Jakub Jelinek <jakub@redhat.com>
31057 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
31060 PR inline-asm/56405
31061 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
31062 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
31064 2013-02-20 Jan Hubicka <jh@suse.cz>
31066 PR tree-optimization/56265
31067 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
31068 when target is referenced for first time.
31070 2013-02-20 Richard Biener <rguenther@suse.de>
31072 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
31073 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
31074 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
31075 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
31076 not return anything.
31077 (rename_ssa_copies): Do not remove unused locals.
31078 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
31079 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
31080 * passes.c (execute_function_todo): Do not schedule unused locals
31081 removal if cleanup_tree_cfg did something.
31082 * tree-ssa-live.c (remove_unused_locals): Dump statistics
31083 about the number of removed locals.
31085 2013-02-20 Richard Biener <rguenther@suse.de>
31087 PR tree-optimization/56398
31088 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
31090 2013-02-20 Martin Jambor <mjambor@suse.cz>
31092 PR tree-optimization/55334
31093 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
31094 restricted pointers to arrays.
31096 2013-02-20 Richard Biener <rguenther@suse.de>
31097 Jakub Jelinek <jakub@redhat.com>
31099 PR tree-optimization/56396
31100 * tree-ssa-ccp.c (n_const_val): New static variable.
31101 (get_value): Return NULL for SSA names we don't have a lattice
31103 (ccp_initialize): Initialize n_const_val.
31104 * tree-ssa-copy.c (n_copy_of): New static variable.
31105 (init_copy_prop): Initialize n_copy_of.
31106 (get_value): Return NULL_TREE for SSA names we don't have a
31109 2013-02-20 Martin Jambor <mjambor@suse.cz>
31111 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
31113 2013-02-20 Richard Biener <rguenther@suse.de>
31115 * genpreds.c (write_lookup_constraint): Do not compare first
31116 letter of the constraint again.
31118 2013-02-20 Richard Biener <rguenther@suse.de>
31120 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
31122 (get_use_iv_cost): Terminate hashtable walk when coming across
31125 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
31127 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
31128 reassociation for avx2 targets.
31130 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31132 * config/microblaze/microblaze.c: microblaze_has_clz = 0
31133 Add version check for v8.10.a to enable microblaze_has_clz
31134 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
31135 version and TARGET_PATTERN_COMPARE check
31136 * config/microblaze/microblaze.md: New clzsi2 instruction
31138 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31140 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
31141 function before branching.
31143 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
31145 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
31147 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
31149 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
31151 PR middle-end/55889
31152 * sel-sched.c: Include ira.h.
31153 (implicit_clobber_conflict_p): New function.
31154 (moveup_expr): Use it.
31155 * Makefile.in (sel-sched.o): Depend on ira.h.
31157 2013-02-19 Richard Biener <rguenther@suse.de>
31159 PR tree-optimization/56384
31160 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
31161 (vn_hash_type): Split out from ...
31162 (vn_hash_constant_with_type): ... here.
31163 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
31164 (vn_phi_eq): Compare types from vn_phi_s structure.
31165 (vn_phi_lookup): Populate vn_phi_s type.
31166 (vn_phi_insert): Likewise.
31168 2013-02-19 Jakub Jelinek <jakub@redhat.com>
31170 PR tree-optimization/56350
31171 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
31172 if haven't found reduction or nested cycle operand, rather than
31173 asserting we must find it.
31175 PR tree-optimization/56381
31176 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
31179 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
31180 Jakub Jelinek <jakub@redhat.com>
31183 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
31184 (swap_optab_enable): Same.
31185 (init_all_optabs): Use argument instead of global.
31186 * tree.h (struct tree_optimization_option): New field target_optabs.
31187 * expr.h (init_all_optabs): Add argument to prototype.
31188 (TREE_OPTIMIZATION_OPTABS): New.
31189 (save_optabs_if_changed): Protoize.
31190 * optabs.h: Declare this_fn_optabs.
31191 * optabs.c (save_optabs_if_changed): New.
31192 Declare this_fn_optabs.
31193 (init_optabs): Add argument to init_all_optabs() call.
31194 * function.c (invoke_set_current_function_hook): Handle per
31196 * function.h (struct function): New field optabs.
31197 * config/mips/mips.c (mips_set_mips16_mode): Handle when
31198 optimization_current_node has changed.
31199 * target-globals.h (save_target_globals_default_opts): Protoize.
31200 * target-globals.c (save_target_globals_default_opts): New.
31202 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31205 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
31206 registers %fr12 and %fr12R as call used.
31209 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
31210 and HImode, require all displacements to be an integer multiple of
31212 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
31213 only allow QImode and HImode when reload is in progress and strict is
31214 true. Likewise for symbolic addresses. Use base14_operand to check
31215 displacements in REG+BASE addresses.
31217 2013-02-18 Richard Biener <rguenther@suse.de>
31219 PR tree-optimization/56366
31220 * tree-vect-loop.c (get_initial_def_for_induction): Properly
31221 handle sign-conversion of outer-loop initial induction value.
31223 2013-02-18 Richard Biener <rguenther@suse.de>
31225 PR middle-end/56349
31226 * cfghooks.c (merge_blocks): If we merge a latch into another
31227 block adjust references to it.
31228 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
31229 (verify_loop_structure): Verify that a recorded latch is in fact
31232 2013-02-18 Richard Biener <rguenther@suse.de>
31234 PR tree-optimization/56321
31235 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
31236 order SSA name release and virtual operand unlinking.
31238 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31240 * config/microblaze/microblaze.md (save_stack_block): Define.
31241 (restore_stack_block): Likewise.
31243 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31245 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
31246 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
31247 * config/microblaze/microblaze.c (microblaze_option_override):
31248 Bail out early for PIC modes when target does not support PIC.
31250 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31252 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
31253 Replace with a microblaze version.
31254 (microblaze_trampoline_init): Adapt for microblaze.
31255 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
31258 2013-02-16 Jakub Jelinek <jakub@redhat.com>
31259 Dodji Seketeli <dodji@redhat.com>
31262 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
31263 (instrument_mem_region_access): Do not forget to always put
31264 instrumentation of the of 'base' and 'base + len' in a "if (len !=
31265 0) statement, even for cases where either 'base' or 'base + len'
31266 are not instrumented -- because they have been previously
31267 instrumented. Simplify the logic by putting all the statements
31268 instrument 'base + len' inside a sequence, and then insert that
31269 sequence right before the current insertion point. Then, to
31270 instrument 'base + len', just get an iterator on that statement.
31271 And do not forget to update the pointer to iterator the function
31272 received as argument.
31274 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
31276 PR rtl-optimization/56348
31277 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
31279 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
31281 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
31282 (clean_graph_dump_file): Pass base to start_graph_dump.
31284 2013-02-14 Richard Henderson <rth@redhat.com>
31287 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
31289 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
31291 * collect2-aix.h: Define F_LOADONLY.
31293 2013-02-14 Richard Biener <rguenther@suse.de>
31296 * varasm.c (output_constant_def_1): Get the decl representing
31297 the constant as argument.
31298 (output_constant_def): Wrap output_constant_def_1.
31299 (make_decl_rtl): Use output_constant_def_1 with the decl
31300 representing the constant.
31301 (build_constant_desc): Optionally re-use a decl already
31302 representing the constant.
31303 (tree_output_constant_def): Adjust.
31305 2013-02-14 Dodji Seketeli <dodji@redhat.com>
31308 * asan.c (instrument_builtin_call): Really put the length of the
31309 second source argument into src1_len.
31311 2013-02-13 Jakub Jelinek <jakub@redhat.com>
31313 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
31314 argument. If it is false, don't create edge from then_bb to
31316 (insert_if_then_before_iter): Pass true to it.
31317 (build_check_stmt): Pass false to it.
31318 (transform_statements): Flush hash table only on extended basic
31319 block boundaries, rather than at the beginning of every bb.
31320 Don't flush hash table on nonfreeing_call_p calls.
31321 * tree-flow.h (nonfreeing_call_p): New prototype.
31322 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
31324 2013-02-13 David S. Miller <davem@davemloft.net>
31326 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
31328 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
31331 * ira.c (max_regno_before_ira): Move from ...
31333 (fix_reg_equiv_init): Use max_regno_before_ira instead of
31336 2013-02-13 Jakub Jelinek <jakub@redhat.com>
31338 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
31340 2013-02-13 Richard Biener <rguenther@suse.de>
31343 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
31344 globals in MEM_REFs.
31346 2013-02-13 Richard Biener <rguenther@suse.de>
31348 * loop-init.c (loop_optimizer_init): Clear loop state when
31349 re-initializing preserved loops.
31350 * loop-unswitch.c (unswitch_single_loop): Return whether
31351 we unswitched the loop. Do not verify loop state here.
31352 (unswitch_loops): When we unswitched a loop discover new loops.
31354 2013-02-13 Kostya Serebryany <kcc@google.com>
31356 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
31358 * sanitizer.def: Rename __asan_init to __asan_init_v1.
31360 2013-02-12 Dodji Seketeli <dodji@redhat.com>
31362 Avoid instrumenting duplicated memory access in the same basic block
31363 * Makefile.in (asan.o): Add new dependency on hash-table.h
31364 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
31365 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
31366 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
31367 (free_mem_ref_resources, has_mem_ref_been_instrumented)
31368 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
31369 (get_mem_ref_of_assignment): New functions.
31370 (get_mem_refs_of_builtin_call): Extract from
31371 instrument_builtin_call and tweak a little bit to make it fit with
31373 (instrument_builtin_call): Use the new
31374 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
31375 of is_gimple_builtin_call.
31376 (instrument_derefs, instrument_mem_region_access): Insert the
31377 instrumented memory reference into the hash table.
31378 (maybe_instrument_assignment): Renamed instrument_assignment into
31379 this, and change it to advance the iterator when instrumentation
31380 actually happened and return true in that case. This makes it
31381 homogeneous with maybe_instrument_assignment, and thus give a
31382 chance to callers to be more 'regular'.
31383 (transform_statements): Clear the memory reference hash table
31384 whenever we enter a new BB, when we cross a function call, or when
31385 we are done transforming statements. Use
31386 maybe_instrument_assignment instead of instrumentation. No more
31387 need to special case maybe_instrument_assignment and advance the
31388 iterator after calling it; it's now handled just like
31389 maybe_instrument_call. Update comment.
31391 2013-02-13 Richard Biener <rguenther@suse.de>
31393 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
31394 Fix loop discovery code.
31396 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
31398 PR inline-asm/56148
31399 * lra-constraints.c (process_alt_operands): Match early clobber
31400 operand with itself. Check conflicts with earlyclobber only if
31401 the operand is not reloaded. Prefer to reload conflicting operand
31402 if earlyclobber and matching operands are the same.
31404 2013-02-12 Richard Biener <rguenther@suse.de>
31407 * lto-streamer-out.c (write_symbol): Do not output symbols
31408 for hard register variables.
31410 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
31413 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
31414 (umulsidi3_insn, mulsidi3_insn): New insns.
31416 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
31418 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
31419 (struct tune_params): Add vec_costs field.
31420 * config/arm/arm.c (arm_builtin_vectorization_cost)
31421 (arm_add_stmt_cost): New functions.
31422 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
31423 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
31424 (arm_default_vec_cost): New struct of type cpu_vec_costs.
31425 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
31426 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
31427 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
31428 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
31430 2013-02-12 Richard Biener <rguenther@suse.de>
31433 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
31434 decls again if possible.
31436 2013-02-12 Richard Biener <rguenther@suse.de>
31438 PR middle-end/56288
31439 * tree-ssa.c (verify_ssa_name): Fix check, move
31440 SSA_NAME_IN_FREE_LIST check up.
31442 2013-02-12 Jakub Jelinek <jakub@redhat.com>
31443 Steven Bosscher <steven@gcc.gnu.org>
31445 PR rtl-optimization/56151
31446 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
31447 equal to op0 or op1, and last_insn pattern is CODE operation
31448 with MEM dest and one of the operands matches that MEM.
31450 2013-02-11 Sriraman Tallam <tmsriram@google.com>
31452 * doc/extend.texi: Document Function Multiversioning and "default"
31453 parameter string to target attribute.
31454 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
31455 target attribute parameter is "default".
31456 (ix86_compare_version_priority): Remove checks for target attribute.
31457 (ix86_mangle_function_version_assembler_name): Change error to sorry.
31458 Remove check for target attribute equal to NULL. Add assert.
31459 (ix86_generate_version_dispatcher_body): Change error to sorry.
31461 2013-02-11 Iain Sandoe <iain@codesourcery.com>
31462 Jack Howarth <howarth@bromo.med.uc.edu>
31463 Patrick Marlier <patrick.marlier@gmail.com>
31466 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
31467 define ENDFILE_SPEC as TM_DESTRUCTOR.
31468 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
31470 2013-02-11 Alexander Potapenko <glider@google.com>
31471 Jack Howarth <howarth@bromo.med.uc.edu>
31472 Jakub Jelinek <jakub@redhat.com>
31475 * config/darwin.c (cdtor_record): Rename ctor_record.
31476 (sort_cdtor_records): Rename sort_ctor_records.
31477 (finalize_dtors): New routine to sort destructors by
31478 priority before use in assemble_integer.
31479 (machopic_asm_out_destructor): Use finalize_dtors if needed.
31481 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
31483 PR rtl-optimization/56275
31484 * simplify-rtx.c (avoid_constant_pool_reference): Check that
31485 offset is non-negative and less than cmode size before
31486 calling simplify_subreg.
31488 2013-02-11 Richard Biener <rguenther@suse.de>
31490 PR tree-optimization/56264
31491 * cfgloop.h (fix_loop_structure): Adjust prototype.
31492 * loop-init.c (fix_loop_structure): Return the number of
31493 newly discovered loops.
31494 * tree-cfgcleanup.c (repair_loop_structures): When new loops
31495 are discovered, do a full loop-closed SSA rewrite.
31497 2013-02-11 Richard Biener <rguenther@suse.de>
31499 PR tree-optimization/56273
31500 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
31502 (check_array_ref): Fix missing newline in dumps.
31503 (search_for_addr_array): Likewise.
31505 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
31507 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
31509 2013-02-09 Jakub Jelinek <jakub@redhat.com>
31512 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
31514 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
31516 PR rtl-optimization/56246
31517 * lra-constraints.c (simplify_operand_subreg): Try to reuse
31519 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
31520 constraints are satisfied.
31522 2013-02-08 Jeff Law <law@redhat.com>
31525 * emit-rtl.c (reg_is_parm_p): New function.
31526 * regs.h (reg_is_parm_p): New prototype.
31527 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
31528 callee-clobbered registers.
31530 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
31533 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
31534 If there is no implicit builtin declaration, just return NULL.
31536 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
31538 * config/i386/sse.md (FMAMODEM): New mode iterator.
31539 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
31540 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
31542 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
31544 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
31545 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
31546 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
31548 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31550 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
31551 (microblaze*-*-elf): Likewise.
31552 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
31554 * config/microblaze/microblaze-c.c: Add builtin defines for
31555 _LITTLE_ENDIAN and _BIG_ENDIAN.
31556 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
31557 add to TARGET_DEFAULT flags.
31558 Expand ASM_SPEC and LINK_SPEC.
31559 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
31560 * config/microblaze/microblaze.md: Update extendsidi2 and
31561 movdi_internal instructions to use low-order / high-order reg
31563 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
31564 options and inversemask / mask of LITTLE_ENDIAN.
31565 * config/microblaze/t-microblaze: Expand multilib options to
31566 include mlittle-endian (le) and update exceptions patterns.
31568 2013-02-08 Jakub Jelinek <jakub@redhat.com>
31570 PR rtl-optimization/56195
31571 * lra-constraints.c (get_reload_reg): Don't reuse regs
31572 if they have smaller mode than requested, if they have
31573 wider mode than requested, try to return a SUBREG.
31575 PR tree-optimization/56250
31576 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
31577 if type is unsigned and code isn't MULT_EXPR.
31579 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
31581 PR tree-optimization/56064
31582 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
31583 bits according to mode.
31584 * fixed-value.h (fixed_from_double_int)
31585 (const_fixed_from_double_int): Adjust comments.
31587 2013-02-08 Richard Biener <rguenther@suse.de>
31590 * lto-streamer.h (struct data_in): Remove current_file, current_line
31591 and current_col members.
31592 * lto-streamer-out.c (lto_output_location): Stream changed bits
31593 en-block for efficiency.
31594 * lto-streamer-in.c (clear_line_info): Remove.
31595 (lto_input_location): Cache current file, line and column
31596 globally via local statics. Read changed bits en-block.
31597 (input_function): Do not call clear_line_info.
31598 (lto_read_body): Likewise.
31599 (lto_input_toplevel_asms): Likewise.
31601 2013-02-08 Michael Matz <matz@suse.de>
31603 PR tree-optimization/52448
31604 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
31605 (nt_call_phase): New static.
31606 (add_or_mark_expr): Only mark accesses with newer phase than any
31608 (nonfreeing_call_p): New.
31609 (nt_init_block): Update nt_call_phase, mark blocks as visited.
31610 (nt_fini_block): Keep blocks marked as visited.
31611 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
31613 2013-02-08 Richard Biener <rguenther@suse.de>
31615 * ira.c (ira): Free broken dominator information.
31617 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
31619 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
31621 2013-02-08 Marek Polacek <polacek@redhat.com>
31623 * cfgloop.c (verify_loop_structure): Add more checking of headers.
31625 2013-02-08 Richard Biener <rguenther@suse.de>
31627 PR middle-end/56181
31628 * cfgloop.h (flow_loops_find): Adjust.
31629 (bb_loop_header_p): Declare.
31630 * cfgloop.c (bb_loop_header_p): New function split out from ...
31631 (flow_loops_find): ... here. Adjust function signature,
31632 support incremental loop structure update.
31633 (verify_loop_structure): Cleanup. Verify a loop is a loop.
31634 * cfgloopmanip.c (fix_loop_structure): Move ...
31635 * loop-init.c (fix_loop_structure): ... here.
31636 (apply_loop_flags): Split out from ...
31637 (loop_optimizer_init): ... here.
31638 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
31639 in incremental mode, only remove dead loops here.
31641 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
31644 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
31645 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
31646 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
31647 (*round<mode>3.libgcc): New insns for fixed-modes.
31648 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
31649 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
31650 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
31651 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
31652 implementations. Define to __builtin_avr_absFX,
31653 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
31654 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
31655 __builtin_avr_countlsFX, respectively.
31656 * config/avr/avr-c.c (target.h): Include it.
31657 (enum avr_builtin_id): New enum.
31658 (avr_resolve_overloaded_builtin): New static function.
31659 (avr_register_target_pragmas): Use it to set
31660 targetm.resolve_overloaded_builtin.
31661 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
31662 tree nodes used by DEF_BUILTIN.
31663 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
31664 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
31665 <AVR_BUILTIN_xxBITS>: Same.
31667 2013-02-08 Richard Biener <rguenther@suse.de>
31669 * cfgloop.c (verify_loop_structure): Properly handle
31670 a loop exiting to another loop header.
31671 * ira-int.h (ira_loops): Remove.
31672 * ira.c (ira_loops): Remove.
31673 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
31674 (do_reload): Use loop_optimizer_finalize.
31675 * ira-build.c (create_loop_tree_nodes): Use get_loops and
31676 number_of_loops to access the loop tree.
31677 (more_one_region_p): Likewise.
31678 (finish_loop_tree_nodes): Likewise.
31679 (rebuild_regno_allocno_maps): Likewise.
31680 (mark_loops_for_removal): Likewise.
31681 (mark_all_loops_for_removal): Likewise.
31682 (remove_unnecessary_regions): Likewise.
31683 (ira_build): Likewise.
31684 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
31686 2013-02-08 Richard Biener <rguenther@suse.de>
31688 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
31689 * ipa-pure-const.c (analyze_function): Avoid calling
31690 mark_irreducible_loops twice.
31691 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
31693 2013-02-07 David S. Miller <davem@davemloft.net>
31695 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
31697 * var-tracking.c (vt_add_function_parameter): Test the presence of
31698 HAVE_window_save properly and do not remap argument registers when
31699 we have a leaf function.
31701 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
31704 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
31706 * config/i386/i386.c (ix86_print_operand): Ditto.
31708 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
31710 * lra-constraints.c (process_alt_operands): Fix recently added comment.
31712 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
31714 PR rtl-optimization/56225
31715 * lra-constraints.c (process_alt_operands): Check that reload hard
31716 reg can hold value for strict_low_part.
31718 2013-02-07 Jakub Jelinek <jakub@redhat.com>
31721 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
31722 dwarf2out_end_function.
31723 (in_first_function_p, maybe_at_text_label_p,
31724 first_loclabel_num_not_at_text_label): New variables.
31725 (dwarf2out_var_location): In the first function find out
31726 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
31727 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
31730 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
31732 PR rtl-optimization/56178
31733 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
31734 SUBREG of a register. Tidy up related block of code.
31735 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
31736 note if the source is a register or a SUBREG of a register.
31738 2013-02-07 Jakub Jelinek <jakub@redhat.com>
31741 * config/rs6000/rs6000.md (ptrm): New mode attr.
31742 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
31743 call_value_indirect_aix<pttrsize>,
31744 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
31747 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
31749 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
31750 if -bnortl. Convert to strcmp and strncmp.
31752 2013-02-07 Alan Modra <amodra@gmail.com>
31755 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
31756 addresses won't wrap when offsetting.
31757 (rs6000_secondary_reload): Provide secondary reloads needed for
31758 wrapping LO_SUM addresses.
31760 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
31762 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
31763 MACH, just __MACH__.
31765 2013-02-06 Richard Biener <rguenther@suse.de>
31767 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
31768 instead of calling fix_loop_structure.
31770 2013-02-06 Jakub Jelinek <jakub@redhat.com>
31772 PR middle-end/56217
31773 * omp-low.c (use_pointer_for_field): Return false if
31774 lower_send_shared_vars doesn't generate any copy-out code.
31776 2013-02-06 Tom de Vries <tom@codesourcery.com>
31778 PR rtl-optimization/56131
31779 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
31780 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
31781 of the label is NULL. Add comment.
31783 2013-02-05 Jakub Jelinek <jakub@redhat.com>
31785 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
31788 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
31789 (STATIC_LIBTSAN_LIBS): Likewise.
31790 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
31791 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
31792 is defined, don't add anything else beyond that.
31793 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
31794 (LINK_COMMAND_SPEC): Use them.
31796 PR tree-optimization/56205
31797 * tree-stdarg.c (check_all_va_list_escapes): Return true if
31798 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
31799 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
31801 2013-02-05 Richard Biener <rguenther@suse.de>
31803 PR tree-optimization/53342
31804 PR tree-optimization/53185
31805 * tree-vectorizer.h (vect_check_strided_load): Remove.
31806 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
31807 not disallow peeling for vectorized strided loads.
31808 (vect_check_strided_load): Make static and simplify.
31809 (vect_analyze_data_refs): Adjust.
31810 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
31811 correctly when vectorizing strided loads.
31813 2013-02-05 Richard Biener <rguenther@suse.de>
31815 * doc/install.texi: Refer to ISL, not PPL.
31817 2013-02-05 Jan Hubicka <jh@suse.cz>
31819 PR tree-optimization/55789
31820 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
31822 2013-02-05 Jan Hubicka <jh@suse.cz>
31824 PR tree-optimization/55789
31825 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
31826 the dead call anyway.
31828 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
31831 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
31833 2013-02-04 Alexander Potapenko <glider@google.com>
31834 Jack Howarth <howarth@bromo.med.uc.edu>
31835 Jakub Jelinek <jakub@redhat.com>
31838 * config/darwin.c (sort_ctor_records): Stabilized qsort
31839 on constructor priority by using original position.
31840 (finalize_ctors): New routine to sort constructors by
31841 priority before use in assemble_integer.
31842 (machopic_asm_out_constructor): Use finalize_ctors if needed.
31844 2013-02-04 Jakub Jelinek <jakub@redhat.com>
31847 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
31848 about visibility on artificial decls.
31849 * config/sol2.c (solaris_assemble_visibility): Likewise.
31851 2013-02-04 Kai Tietz <ktietz@redhat.com>
31854 * config/i386/i386.c (function_value_ms_64): Add additional valtype
31855 argument and improve checking of return-argument types for 16-byte
31857 (ix86_function_value_1): Add additional valtype argument on call
31858 of function_value_64.
31859 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
31860 handling infunction_value_64 function.
31862 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
31864 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
31866 2013-02-04 Richard Biener <rguenther@suse.de>
31868 PR tree-optimization/56188
31869 * tree-ssa-structalias.c (label_visit): Consider case with
31870 initially non-empty points-to set.
31871 (perform_var_substitution): Dump node mapping and clean up.
31873 2013-02-04 Richard Guenther <rguenther@suse.de>
31876 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
31877 node prevail as last resort.
31878 (lto_symtab_merge_decls): Remove guard on LTRANS here.
31879 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
31881 2013-02-04 Richard Biener <rguenther@suse.de>
31883 PR tree-optimization/56113
31884 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
31886 (equiv_class_lookup_or_add): ... this.
31887 (label_visit): Adjust and fix error in previous patch.
31888 (perform_var_substitution): Adjust.
31890 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
31892 * config/sh/divtab.c: Fix formatting and comments throughout the file.
31893 * config/sh/sh4-300.md: Likewise.
31894 * config/sh/sh4a.md: Likewise.
31895 * config/sh/constraints.md: Likewise.
31896 * config/sh/sh.md: Likewise.
31897 * config/sh/netbsd-elf.h: Likewise.
31898 * config/sh/predicates.md: Likewise.
31899 * config/sh/sh-protos.h: Likewise.
31900 * config/sh/ushmedia.h: Likewise.
31901 * config/sh/linux.h: Likewise.
31902 * config/sh/sh.c: Likewise.
31903 * config/sh/superh.h: Likewise.
31904 * config/sh/elf.h: Likewise.
31905 * config/sh/sh4.md: Likewise.
31906 * config/sh/sh.h: Likewise.
31908 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31910 * config/pa/constraints.md: Adjust unused letters. Change "T"
31911 constraint to match_test floating_point_store_memory_operand().
31912 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
31913 (base14_operand): New.
31914 (floating_point_store_memory_operand): New.
31915 (integer_store_memory_operand): Revise to use base14_operand and
31916 reg_plus_base_memory_operand.
31917 (move_dest_operand): Allow symbolic_memory_operands.
31918 (symbolic_memory_operand): Check for LO_SOM.
31919 (symbolic_operand): Change default case to break.
31920 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
31921 CONST_DOUBLE values to be reloaded by putting them into memory when
31922 the destination is a floating point register.
31923 (movdf): Remove code to handle CONST_DOUBLE.
31925 (reload_indf_r1): New.
31926 (reload_insf_r1): New.
31927 Consistently use "Q" and "T" constraints with integer and floating
31928 point move instructions, respectively.
31929 (movdi): Remove FAIL.
31930 Change predicate for source operand unamed DImode move from
31931 general_operand to move_src_operand.
31932 (umulsidi3): Change predicate for destination operand to
31934 Likewise for similar unamed patterns.
31935 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
31936 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
31937 (hppa_legitimize_address): Simplify mask calculation.
31938 (pa_emit_move_sequence): Revised handling of secondary reloads from
31939 REG+D addresses for floating point loads and stores. Directly handle
31940 loading CONST0_RTX (mode) to a floating point register.
31941 (pa_secondary_reload): Handle reloading DF and SFmode constant values
31942 to floating point registers. Don't restrict secondary reloads to
31943 floating point registers to integer modes. Revise some comments and
31945 (TARGET_LEGITIMATE_ADDRESS_P): Define.
31946 (pa_legitimate_address_p): New.
31947 (pa_legitimize_reload_address): New.
31948 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
31949 (STRICT_REG_OK_FOR_BASE_P): New.
31950 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
31951 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
31953 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
31954 Andrew Dixie <andrewd@gentrack.com>
31956 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
31959 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
31961 * expmed.c (extract_bit_field_1): Pass the full width of the
31962 structure to get_best_reg_extraction_insn.
31964 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
31967 * configure.ac (use_cxa_atexit): Add AIX.
31968 * configure: Regenerate.
31970 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
31972 2013-02-01 Jakub Jelinek <jakub@redhat.com>
31975 * final.c (need_profile_function): New variable.
31976 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
31977 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
31978 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
31979 notes, targetm.asm_out.function_prologue doesn't emit anything,
31980 HAVE_prologue and profiler should be emitted before prologue,
31981 set need_profile_function instead of emitting it.
31982 (final_scan_insn): If need_profile_function, emit
31983 profile_function on the first NOTE_INSN_BASIC_BLOCK or
31984 NOTE_INSN_FUNCTION_BEG note.
31986 2013-02-01 Richard Henderson <rth@redhat.com>
31988 * config/rs6000/rs6000.md (smulditi3): New.
31991 * config/alpha/alpha.md (umulditi3): New.
31993 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
31995 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
31996 (ASM_OUTPUT_ALIGNED_LOCAL): New.
31998 2013-02-01 Richard Biener <rguenther@suse.de>
32000 PR tree-optimization/56113
32001 * tree-ssa-structalias.c (label_visit): Reduce work for
32002 single-predecessor nodes.
32004 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
32006 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
32007 range isn't testing for zero.
32009 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
32011 PR middle-end/56113
32012 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
32014 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
32015 Nick Clifton <nickc@redhat.com>
32017 * config/v850/constraints.md (Q): Define as a memory constraint.
32018 * config/v850/predicates.md (label_ref_operand): New predicate.
32019 (e3v5_shift_operand): New predicate.
32020 (ior_operator): New predicate.
32021 * config/v850/t-v850: Add e3v5 multilib.
32022 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
32023 (v850_gen_movdi): Prototype.
32024 * config/v850/v850.c: Add support for e3v5 architecture.
32025 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
32027 (construct_save_jarl): Add e3v5 long JARL support.
32028 (v850_adjust_insn_length): New function. Adjust length of call
32029 insns when using e3v5 instructions.
32030 (v850_gen_movdi): New function: Generate instructions to move a
32032 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
32033 (CPP_SPEC): Define __v850e3v5__ as appropriate.
32034 (TARGET_USE_FPU): Enable for e3v5.
32035 (CONST_OK_FOR_W): New macro.
32036 (ADJUST_INSN_LENGTH): Define.
32037 * config/v850/v850.md (UNSPEC_LOOP): Define.
32038 (attr cpu): Add v850e3v5.
32039 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
32040 (movdi): New pattern.
32041 (movdi_internal): New pattern.
32042 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
32043 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
32044 (cstoresf4): Likewise.
32045 (cstoredf4): Likewise.
32046 (insv): New pattern.
32047 (rotlso3_a): New pattern.
32048 (rotlsi3_b): New pattern
32049 (rotlsi3_v850e3v5): New pattern.
32050 (doloop_begin): New pattern.
32051 (fix_loop_counter): New pattern.
32052 (doloop_end): New pattern.
32053 (branch_normal): Add e3v5 long branch support.
32054 (branch_invert): Likewise.
32055 (branch_z_normal): Likewise.
32056 (branch_z_invert): Likewise.
32057 (branch_nz_normal): Likewise.
32058 (branch_nz_invert): Likewise.
32059 (call_internal_short): Add e3v5 register-indirect JARL support.
32060 (call_internal_long): Likewise.
32061 (call_value_internal_short): Likewise.
32062 (call_value_internal_long): Likewise.
32063 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
32064 (mloop): New option.
32065 * config.gcc: Add support for configuring v840e3v5 target.
32066 * doc/invoke.texi: Document new v850 specific command line options.
32068 2013-01-31 Paul Koning <ni1d@arrl.net>
32072 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
32073 children if parent is a class.
32074 (prune_unused_types_prune): Don't add DW_AT_declaration.
32076 2013-01-31 Richard Biener <rguenther@suse.de>
32078 PR tree-optimization/56157
32079 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
32080 match up operand with SLP child.
32082 2013-01-31 Jason Merrill <jason@redhat.com>
32085 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
32086 parameters the first time.
32087 (gen_scheduled_generic_parms_dies): Check completeness here.
32089 2013-01-31 Richard Biener <rguenther@suse.de>
32091 PR middle-end/53073
32092 * common.opt (faggressive-loop-optimizations): New flag,
32093 enabled by default.
32094 * doc/invoke.texi (faggressive-loop-optimizations): Document.
32095 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
32096 infer_loop_bounds_from_undefined by it.
32098 2013-01-31 Richard Biener <rguenther@suse.de>
32100 PR tree-optimization/56150
32101 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
32102 visit virtual operands.
32103 (find_uses_to_rename_bb): Likewise.
32105 2013-01-31 Richard Biener <rguenther@suse.de>
32107 PR tree-optimization/56150
32108 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
32109 mixed store non-store stmts.
32111 2013-01-30 Jakub Jelinek <jakub@redhat.com>
32114 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
32115 LIBASAN_EARLY_SPEC is defined.
32116 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
32117 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
32119 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
32122 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
32123 invalid args instead of ICEing on it.
32124 (ix86_valid_target_attribute_tree): Return error_mark_node if
32125 ix86_valid_target_attribute_inner_p failed.
32126 (ix86_valid_target_attribute_p): Return false only if
32127 ix86_valid_target_attribute_tree returned error_mark_node. Allow
32128 target("default") attribute.
32129 (sorted_attr_string): Change argument from const char * to tree,
32130 merge in all target attribute arguments rather than just one.
32131 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
32132 instead of free. Avoid using strcat.
32133 (ix86_mangle_function_version_assembler_name): Mangle
32134 target("default") as if no target attribute is present. Adjust
32135 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
32136 instead of xmalloc and XDELETEVEC instead of free.
32137 (ix86_function_versions): Don't return true if one of the decls
32138 doesn't have target attribute. If they don't and one of the decls
32139 is DECL_FUNCTION_VERSIONED, report an error. Adjust
32140 sorted_attr_string caller. Use XDELETEVEC instead of free.
32141 (ix86_supports_function_versions): Remove.
32142 (make_name): Fix up formatting.
32143 (make_dispatcher_decl): Remove resolver_name and its initialization.
32144 Avoid leaking memory.
32145 (is_function_default_version): Return true if there is
32146 target("default") attribute rather than no target attribute at all.
32147 (make_resolver_func): Avoid leaking memory.
32148 (ix86_generate_version_dispatcher_body): Likewise.
32149 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
32150 * target.def (supports_function_versions): Remove.
32151 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
32152 * doc/tm.texi: Regenerated.
32154 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
32156 PR rtl-optimization/56144
32157 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
32158 for values with side effects.
32160 2013-01-30 Richard Biener <rguenther@suse.de>
32162 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
32163 (sparseset_pop): Likewise.
32164 * cfganal.c (compute_idf): Likewise. Increase work-stack size
32165 to be able to use quick_push in the worker loop.
32167 2013-01-30 Marek Polacek <polacek@redhat.com>
32169 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
32171 2013-01-30 Richard Biener <rguenther@suse.de>
32174 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
32176 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
32178 PR tree-optimization/56064
32179 * fixed-value.c (fixed_from_double_int): New function.
32180 * fixed-value.h (fixed_from_double_int): New prototype.
32181 (const_fixed_from_double_int): New static inline function.
32182 * fold-const.c (native_interpret_fixed): New static function.
32183 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
32184 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
32185 (native_encode_fixed): New static function.
32186 (native_encode_expr) <FIXED_CST>: Use it.
32187 (native_interpret_int): Move double_int worker code to...
32188 * double-int.c (double_int::from_buffer): ...this new static method.
32189 * double-int.h (double_int::from_buffer): Prototype it.
32191 2013-01-30 Richard Biener <rguenther@suse.de>
32193 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
32194 New pointer-map and obstack.
32195 (init_alias_vars): Allocate pointer-map and obstack.
32196 (delete_points_to_sets): Free them.
32197 (find_what_var_points_to): Cache result.
32198 (find_what_p_points_to): Adjust for changed interface of
32199 find_what_var_points_to.
32200 (compute_points_to_sets): Likewise.
32201 (ipa_pta_execute): Likewise.
32203 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32205 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
32206 * configure: Regenerate.
32207 * config.in: Regenerate.
32208 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
32209 #nobits/#progbits if supported.
32211 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
32214 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
32215 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
32216 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
32218 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
32220 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
32221 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
32223 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
32225 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
32226 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
32228 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
32230 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
32232 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
32233 * config/arm/cortex-a7.md: New bypasses using
32234 arm_mac_accumulator_is_result.
32236 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
32238 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
32239 (cortex_a7_neon_mla): Likewise.
32240 (cortex_a7_fpfmad): New reservation.
32241 (cortex_a7_fpmacs): Use ffmas and update required units.
32242 (cortex_a7_fpmuld): Update required units and latency.
32243 (cortex_a7_fpmacd): Likewise.
32244 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
32245 (cortex_a7_neon). Likewise.
32246 (bypass) Update participating units.
32248 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
32250 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
32251 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
32253 * config/arm/vfp11.md (vfp_farith): Use ffmas.
32254 (vfp_fmul): Use ffmad.
32255 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
32256 (cortex_r4_fmacd): Use ffmad.
32257 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
32258 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
32259 (cortex_a9_fmacd): Use ffmad.
32260 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
32261 (cortex_a8_vfp_macd): Use ffmad.
32262 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
32263 (cortex_a5_fpmacd): Use ffmad.
32264 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
32265 (cortex_a15_vfp_macd): Use ffmad.
32266 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
32268 2013-01-29 Jason Merrill <jason@redhat.com>
32271 * varasm.c (default_assemble_visibility): Don't warn about
32272 visibility on artificial decls.
32274 2013-01-29 Richard Biener <rguenther@suse.de>
32276 PR tree-optimization/56113
32277 * tree-ssa-structalias.c (equiv_class_lookup): Also return
32279 (label_visit): Free duplicate bitmaps and record the leader instead.
32280 (perform_var_substitution): Adjust.
32282 2013-01-29 Richard Biener <rguenther@suse.de>
32284 PR tree-optimization/55270
32285 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
32286 the CFG, schedule loops for fixup.
32288 2013-01-29 Nick Clifton <nickc@redhat.com>
32290 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
32293 2013-01-28 Leif Ekblad <leif@rdos.net>
32295 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
32296 * config/i386/i386.h (TARGET_RDOS): New macro.
32297 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
32298 * config/i386/i386.c (ix86_option_override_internal): For 64bit
32299 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
32300 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
32301 DEFAULT_LARGE_SECTION_THRESHOLD.
32302 * config/i386/i386.md (R14_REG, R15_REG): New constants.
32303 * config/i386/rdos.h: New file.
32304 * config/i386/rdos64.h: New file.
32306 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
32309 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
32312 2013-01-28 Jakub Jelinek <jakub@redhat.com>
32314 PR rtl-optimization/56117
32315 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
32316 call cselib_lookup_from_insn on the MEM before calling
32317 add_insn_mem_dependence.
32319 2013-01-28 Richard Biener <rguenther@suse.de>
32321 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
32322 to a stmt that didn't have one.
32323 (copy_phis_for_bb): Likewise for PHI arguments.
32324 (copy_debug_stmt): Likewise for debug stmts.
32326 2013-01-28 Richard Biener <rguenther@suse.de>
32328 PR tree-optimization/56034
32329 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
32330 (partition_builtin_p): Adjust.
32331 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
32332 it is the last partition.
32333 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
32334 up the vertex for the definition.
32335 (classify_partition): Classify whether a partition is a
32336 PKIND_REDUCTION, thus has uses outside of the loop.
32337 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
32338 Merge all PKIND_REDUCTION partitions into the last partition.
32339 (tree_loop_distribution): Seed partitions from reductions as well.
32341 2013-01-28 Jakub Jelinek <jakub@redhat.com>
32343 PR tree-optimization/56125
32344 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
32345 pow(x,c) into sqrt(x) * powi(x, n/2) or
32346 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
32347 optimizing for size.
32348 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
32349 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
32352 PR tree-optimization/56094
32353 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
32354 to UNKNOWN_LOCATION while gimplifying expr.
32356 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
32359 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
32360 operand 0 in movabs insn template for -masm=intel asm alternative.
32361 (*movabs<mode>_2): Ditto for operand 1.
32363 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
32366 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
32369 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32371 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
32374 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32376 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
32377 Undef to avoid warning.
32379 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
32381 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
32382 * configure: Regenerate.
32384 2013-01-25 Jakub Jelinek <jakub@redhat.com>
32386 PR tree-optimization/56098
32387 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
32388 for stmts with volatile ops.
32389 (cond_store_replacement): Don't optimize if assign has volatile ops.
32390 (cond_if_else_store_replacement_1): Don't optimize if either
32391 then_assign or else_assign have volatile ops.
32392 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
32395 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
32397 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
32399 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
32401 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
32402 missing ':' in asm example.
32404 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
32406 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
32407 entries into lane and laneq entries.
32408 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
32409 Remove AdvSIMD scalar modes.
32410 (aarch64_sq<r>dmulh_laneq<mode>): New.
32411 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
32413 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
32414 builtin implementations to relfect changes in RTL in aarch64-simd.md.
32415 * config/aarch64/iterators.md (VCOND): New.
32418 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
32421 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
32422 Add NULL LIBNAME argument to existing definitions.
32423 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
32424 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
32425 * config/avr/avr.c (DEF_BUILTIN): Same.
32426 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
32427 (avr_expand_builtin): Expand to a vanilla call if a libgcc
32428 implementation is available (DECL_ASSEMBLER_NAME is set).
32429 (avr_fold_absfx): New static function.
32430 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
32431 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
32432 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
32433 AVR_BUILTIN_ABSLLK.
32434 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
32435 (abshk, absk, abslk, absllk): Provide as static inline functions.
32437 2013-01-25 Marek Polacek <polacek@redhat.com>
32439 PR tree-optimization/56035
32440 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
32442 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
32444 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
32445 (*movtf_internal_rex64): Add (!o,C) alternative
32446 (*movxf_internal_rex64): Ditto.
32447 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
32449 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
32451 * doc/invoke.texi: fix typo.
32452 * doc/objc.texi: fix typo.
32454 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
32456 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
32457 for the first two alternatives.
32459 2013-01-24 Diego Novillo <dnovillo@google.com>
32461 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
32462 (ggc-zone.o): Remove.
32463 * configure.ac: Remove option --with-gc.
32464 * configure: Re-generate.
32465 * doc/install.texi: Remove documentation for --with-gc.
32466 * gengtype.c (write_enum_defn): Remove. Update all users.
32467 (write_Types_process_field): Remove generation of gt_e_* argument.
32468 (output_type_enum): Remove. Update all users.
32469 (write_enum_defn): Remove. Update all users.
32470 (enum alloc_zone): Remove. Update all users.
32471 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
32472 * ggc-common.c (ggc_splay_alloc): Remove first argument.
32473 Update all callers.
32474 (struct ptr_data): Remove field TYPE. Update all users.
32475 (gt_pch_note_object): Remove argument TYPE. Update all users.
32476 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
32478 * ggc-none.c (ggc_alloc_typed_stat): Remove.
32479 (struct alloc_zone): Remove.
32480 (ggc_internal_alloc_zone_stat): Remove.
32481 (ggc_internal_cleared_alloc_zone_stat): Remove.
32482 * ggc-page.c (ggc_alloc_typed_stat): Remove.
32483 (ggc_pch_count_object): Remove last argument. Update all users.
32484 (ggc_pch_alloc_object): Remove last argument. Update all users.
32485 (struct alloc_zone): Remove.
32486 * ggc-zone.c: Remove.
32487 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
32488 (struct alloc_zone): Remove.
32489 (ggc_alloc_typed_stat): Remove.
32490 (ggc_alloc_typed): Remove.
32491 (ggc_splay_alloc): Remove first argument.
32492 (rtl_zone): Remove. Update all users.
32493 (tree_zone): Remove. Update all users.
32494 (tree_id_zone): Remove. Update all users.
32495 (ggc_internal_zone_alloc_stat): Remove. Update all users.
32496 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
32497 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
32498 * tree-ssanames.c: Remove references to zone allocator in comments.
32500 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
32502 * config/avr/avr.c (avr_out_fract): Make register numbers that
32503 might be outside of source operand signed.
32505 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
32507 * config/i386/constraints.md (Yf): New constraint.
32508 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
32509 of f constraint to conditionaly disable x87 register preferences.
32510 (*movdf_internal): Ditto.
32511 (*movsf_internal): Ditto.
32513 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
32515 PR inline-asm/55934
32516 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
32517 that have operands with impossible constraints.
32518 Add a FIXME for a speed-up opportunity.
32519 * lra-constraints.c (process_alt_operands): Verify that a class
32520 selected from constraints on asms is valid for the operand mode.
32521 (curr_insn_transform): Remove incorrect comment.
32523 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
32525 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
32526 TOC operand is a valid symbol ref in the constant pool.
32528 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32530 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
32532 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
32535 * config/avr/stdfix.h: New file.
32536 * t-avr (stdfix-gcc.h): New rule to build it.
32537 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
32539 2013-01-23 Kostya Serebryany <kcc@google.com>
32541 * config/darwin.h: remove dependency on
32542 CoreFoundation (asan on Mac OS).
32544 2013-01-23 Jakub Jelinek <jakub@redhat.com>
32547 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
32548 instead of cmpdi_operand for first comparison operand.
32549 Don't assert that comparison operands aren't both constants.
32551 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
32553 * doc/install.texi (Downloading the Source): Update references to
32554 downloading separate components.
32556 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
32558 * doc/extend.texi (__int128): Improve grammar.
32560 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
32563 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
32564 alternative to (o,r).
32565 (*movdi_internal_rex64): Remove (!o,n) alternative.
32566 (DImode immediate->memory splitter): Remove.
32567 (DImode immediate->memory peephole2): Remove.
32568 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
32569 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
32570 alternative to (!o,*r).
32571 (*movtf_internal_sse): New pattern.
32572 (*movxf_internal_rex64): New pattern.
32573 (*movxf_internal): Disable for TARGET_64BIT.
32574 (*movdf_internal_rex64): Remove (!o,F) alternative.
32576 2013-01-22 Jakub Jelinek <jakub@redhat.com>
32578 PR middle-end/56074
32579 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
32580 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
32581 * tree-vect-loop-manip.c (find_loop_location): Also ignore
32582 stmt locations where LOCATION_LOCUS of the stmt location is
32583 UNKNOWN_LOCATION or BUILTINS_LOCATION.
32586 * config/i386/i386.md (UNSPEC_STOS): New.
32587 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
32588 *strsetqi_1): Add UNSPEC_STOS.
32590 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
32593 * doc/invoke.texi: Remove left over -Wsynth example.
32595 2013-01-21 Jakub Jelinek <jakub@redhat.com>
32597 PR tree-optimization/56051
32598 * fold-const.c (fold_binary_loc): Don't fold
32599 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
32600 a narrowing conversion, or widening conversion from signed
32603 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
32605 PR rtl-optimization/56023
32606 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
32607 dependent on debug instruction.
32609 2013-01-21 Martin Jambor <mjambor@suse.cz>
32611 PR middle-end/56022
32612 * function.c (allocate_struct_function): Call
32613 invoke_set_current_function_hook earlier.
32615 2013-01-21 Jakub Jelinek <jakub@redhat.com>
32617 * reload1.c (init_reload): Only initialize reload_obstack
32618 during the first call.
32620 2013-01-21 Marek Polacek <polacek@redhat.com>
32622 * cfgloop.c (verify_loop_structure): Fix up grammar.
32624 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
32626 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
32627 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
32629 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32632 * config/arm/marvell-pj4.md: Update copyright year.
32633 Fix up use of alu to alu_reg and simple_alu_imm.
32635 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
32637 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
32639 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
32642 * lra-constraints.c (curr_insn_transform): Don't reuse original
32643 insn for secondary memory move when memory mode should be different.
32645 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32647 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
32648 atomic_storedi_1): New patterns.
32650 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
32652 btver2 pipeline descriptions.
32653 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
32655 * config/i386/i386.md (btver2_decode): New type attributes.
32656 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
32658 * config/i386/btver2.md: New file describing btver2 pipelines.
32660 2013-01-19 Andrew Pinski <apinski@cavium.com>
32662 PR tree-optimization/52631
32663 * tree-ssa-sccvn (visit_use): Before looking up the original
32664 statement, try looking up the simplified expression.
32666 2013-01-19 Anthony Green <green@moxielogic.com>
32668 * config/moxie/moxie.c (moxie_expand_prologue): Set
32669 current_function_static_stack_size.
32671 2013-01-18 Jakub Jelinek <jakub@redhat.com>
32673 PR tree-optimization/56029
32674 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
32675 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
32677 2013-01-18 Sharad Singhai <singhai@google.com>
32679 PR tree-optimization/55995
32680 * dumpfile.c (dump_loc): Print location only if available.
32681 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
32683 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
32686 * lra-constraints.c (curr_insn_transform): Reuse original insn for
32687 secondary memory move.
32688 (inherit_reload_reg): Use rclass instead of cl for
32689 check_secondary_memory_needed_p.
32691 2013-01-18 Jakub Jelinek <jakub@redhat.com>
32693 PR middle-end/56015
32694 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
32695 the case where writing real complex part of target modifies op1.
32697 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
32699 * config/aarch64/aarch64-simd.md
32700 (aarch64_vcond_internal<mode>): Handle unordered cases.
32701 * config/aarch64/iterators.md (v_cmp_result): New.
32703 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
32704 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32706 * config/arm/marvell-pj4.md: New file.
32707 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
32708 * config/arm/arm.md (generic_sched): Add marvell_pj4.
32709 (generic_vfp): Likewise.
32710 * config/arm/arm-cores.def: Add marvell-pj4.
32711 * config/arm/arm-tune.md: Regenerate.
32712 * config/arm/arm-tables.opt: Regenerate.
32713 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
32714 * doc/invoke.texi: Document marvell-pj4.
32716 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
32718 * config/aarch64/arm_neon.h: Map scalar types to standard types.
32720 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
32725 * var-tracking.c (negative_power_of_two_p): New.
32726 (global_get_addr_cache, local_get_addr_cache): New.
32727 (get_addr_from_global_cache, get_addr_from_local_cache): New.
32728 (vt_canonicalize_addr): Rewrite using the above. Adjust the
32730 (vt_stack_offset_p): Remove.
32731 (vt_canon_true_dep): Always canonicalize loc's address.
32732 (clobber_overlapping_mems): Make sure we have a MEM.
32733 (local_get_addr_clear_given_value): New.
32734 (val_reset): Clear local cached entries.
32735 (compute_bb_dataflow): Create and release the local cache.
32736 Disable duplicate MEMs clobbering.
32737 (emit_notes_in_bb): Clobber MEMs likewise.
32738 (vt_emit_notes): Create and release the local cache.
32739 (vt_initialize, vt_finalize): Create and release the global
32740 cache, respectively.
32741 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
32743 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
32745 PR libmudflap/53359
32746 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
32747 not found in the symtab.
32749 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
32752 PR rtl-optimization/55547
32753 PR rtl-optimization/53827
32756 * alias.c (offset_overlap_p): New, factored out of...
32757 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
32758 the conservative special case for symbolic constants. Don't
32759 adjust zero sizes on alignment.
32761 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
32763 PR rtl-optimization/52573
32764 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
32765 REG_UNUSED for the same register.
32767 2013-01-17 Richard Biener <rguenther@suse.de>
32768 Marek Polacek <polacek@redhat.com>
32770 PR rtl-optimization/55833
32771 * loop-unswitch.c (unswitch_loops): Move loop verification...
32772 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
32773 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
32774 Set it to true when we're removing a loop from hierarchy tree in
32775 an irreducible region.
32776 (fix_bb_placements): Adjust caller.
32777 (fix_loop_placements): Likewise.
32779 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
32781 * config/avr/builtins.def (DEF_BUILTIN): Factor out
32782 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
32783 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
32784 Remove ID. Adjust comments.
32785 * config/avr/avr-c.c (avr_builtin_name): Remove.
32786 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
32787 * config/avr/avr.c (avr_tolower): New static function.
32788 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
32789 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
32790 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
32793 2013-01-17 Jan Hubicka <jh@suse.cz>
32795 PR tree-optimization/55273
32796 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
32798 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
32801 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
32802 store through atomic_store<mode>_1.
32803 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
32805 2013-01-17 Martin Jambor <mjambor@suse.cz>
32807 PR tree-optimizations/55264
32808 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
32809 for virtual methods.
32810 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
32811 virtual methods before inlining is over.
32812 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
32814 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
32817 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
32819 PR rtl-optimization/56005
32820 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
32821 pending reads for prefetch.
32823 2013-01-16 Ian Bolton <ian.bolton@arm.com>
32825 * config/aarch64/aarch64.md
32826 (*cstoresi_neg_uxtw): New pattern.
32827 (*cmovsi_insn_uxtw): New pattern.
32828 (*<optab>si3_uxtw): New pattern.
32829 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
32830 (*<optab>si3_insn_uxtw): New pattern.
32831 (*bswapsi2_uxtw): New pattern.
32833 2013-01-16 Richard Biener <rguenther@suse.de>
32835 * tree-inline.c (tree_function_versioning): Remove set but
32836 never used variable.
32838 2013-01-16 Richard Biener <rguenther@suse.de>
32840 PR tree-optimization/55964
32841 * tree-flow.h (rename_variables_in_loop): Remove.
32842 (rename_variables_in_bb): Likewise.
32843 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
32844 (copy_loop_before): Adjust and delete update-ssa status.
32845 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
32846 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
32847 (rename_variables_in_loop): Remove.
32848 (slpeel_update_phis_for_duplicate_loop): Likewise.
32849 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
32850 use available cfg machinery instead of duplicating it.
32851 Update PHI nodes and perform poor-mans SSA update here.
32852 (slpeel_tree_peel_loop_to_edge): Adjust.
32854 2013-01-16 Richard Biener <rguenther@suse.de>
32856 PR tree-optimization/54767
32857 PR tree-optimization/53465
32858 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
32859 (vrp_visit_phi_node): For PHI arguments coming via backedges
32860 drop all symbolical range information.
32861 (execute_vrp): Compute backedges.
32863 2013-01-16 Richard Biener <rguenther@suse.de>
32865 * doc/install.texi: Update CLooG and ISL requirements to
32868 2013-01-16 Christian Bruel <christian.bruel@st.com>
32871 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
32872 (broken_move): Handle UNSPECV_SP_SWITCH_B.
32873 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
32875 2013-01-16 DJ Delorie <dj@redhat.com>
32877 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
32878 (UNSPECV_SP_SWITCH_E): New.
32879 (sp_switch_1): Change to an unspec.
32880 (sp_switch_2): Change to an unspec. Don't use post-inc when we
32883 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
32885 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
32886 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
32887 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
32888 (expand_mem_thread_fence): Ditto.
32889 (expand_mem_signal_fence): Ditto.
32890 (expand_atomic_load): Ditto.
32891 (expand_atomic_store): Ditto.
32893 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
32895 PR rtl-optimization/55547
32896 PR rtl-optimization/53827
32899 * alias.c (memrefs_conflict_p): Set sizes to negative after
32902 2013-01-15 Jakub Jelinek <jakub@redhat.com>
32905 * function.c (thread_prologue_and_epilogue_insns): Always
32906 add crtl->drap_reg to set_up_by_prologue.set, even if
32907 stack_realign_drap is false.
32909 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
32911 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
32912 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
32913 *call): Fix indention.
32915 2013-01-15 Tom de Vries <tom@codesourcery.com>
32918 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
32921 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
32923 PR rtl-optimization/55153
32924 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
32926 2013-01-15 Martin Jambor <mjambor@suse.cz>
32928 PR tree-optimization/55920
32929 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
32930 accesses as grp_to_be_debug_replaced.
32932 2013-01-15 Jakub Jelinek <jakub@redhat.com>
32934 PR tree-optimization/55920
32935 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
32936 there is non-useless type conversion needed from debug rhs to lhs,
32937 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
32939 2013-01-15 Joseph Myers <joseph@codesourcery.com>
32940 Mikael Pettersson <mikpe@it.uu.se>
32943 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
32945 (ASM_OUTPUT_CASE_LABEL): Remove.
32946 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
32947 * final.c (shorten_branches): Update alignment of labels before
32948 jump tables if CASE_VECTOR_SHORTEN_MODE.
32950 2013-01-15 Richard Biener <rguenther@suse.de>
32953 * system.h: Do not include gmp.h for building host tools.
32955 2013-01-15 Richard Biener <rguenther@suse.de>
32957 PR middle-end/55882
32958 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
32959 account for bitpos when computing alignment.
32961 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
32963 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
32964 (ix86_target_macros_internal): Likewise.
32966 * config/i386/i386.c (m_CORE2I7): Removed.
32967 (m_CORE_HASWELL): New macro.
32968 (m_CORE_ALL): Likewise.
32969 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
32970 (initial_ix86_arch_features): Likewise.
32971 (processor_target_table): Initializations for Core avx2.
32972 (cpu_names): New names "core-avx2".
32973 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
32974 PROCESSOR_CORE_HASWELL.
32975 (ix86_issue_rate): New case.
32976 (ia32_multipass_dfa_lookahead): Likewise.
32977 (ix86_sched_init_global): Likewise.
32979 * config/i386/i386.h (TARGET_HASWELL): New macro.
32980 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
32981 (processor_type): New PROCESSOR_HASWELL.
32983 2013-01-15 Jakub Jelinek <jakub@redhat.com>
32985 PR tree-optimization/55955
32986 * tree-vect-loop.c (vectorizable_reduction): Give up early on
32987 *SHIFT_EXPR and *ROTATE_EXPR codes.
32989 PR tree-optimization/48766
32990 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
32991 -ftrapv disable -fwrapv.
32993 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
32996 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
32997 etc. to 1 and not to __flash.
32998 Use LL suffix for __INT24_MAX__ with -mint8.
32999 Use ULL suffix for __UINT24_MAX__ with -mint8.
33001 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
33003 * config/avr/avr-arch.h
33004 (struct base_arch_s): Use typedef avr_arch_t instead.
33005 (struct arch_info_s): Use typedef avr_arch_info_t instead.
33006 (struct mcu_type_s): Use typedef avr_mcu_t instead.
33007 * config/avr/avr.c: Same.
33008 * config/avr/avr-devices.c: Same.
33009 * config/avr/driver-avr.c: Same.
33010 * config/avr/gen-avr-mmcu-texi.c: Same.
33011 * config/avr/avr-mcus.def: Adjust comment.
33013 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
33015 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
33016 * config/aarch64/iterators.md (VALLDI): New.
33018 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
33019 Andi Kleen <ak@linux.intel.com>
33022 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
33023 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
33026 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
33028 * config/avr/avr-stdint.h: Remove trailing blanks.
33029 * config/avr/avr-log.h: Same.
33030 * config/avr/avr-arch.h: Same.
33031 * config/avr/avr-devices.c: Same.
33032 * config/avr/avr-dimode.md: Same.
33033 * config/avr/predicates.md: Same.
33034 * config/avr/avr-c.c: Same. And fix typo.
33036 * config/avr/avr-protos.h: Same. And:
33037 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
33038 (init_cumulative_args): Rename to avr_init_cumulative_args.
33039 (expand_prologue): Rename to avr_expand_prologue.
33040 (expand_epilogue): Rename to avr_expand_epilogue.
33041 (adjust_insn_length): Rename to avr_adjust_insn_length.
33042 (notice_update_cc): Rename to avr_notice_update_cc.
33043 (final_prescan_insn): Rename to avr_final_prescan_insn.
33044 * config/avr/avr.c: Same.
33045 * config/avr/avr.h: Same.
33046 * config/avr/avr.md: Remove trailing blanks.
33047 (prologue): Use avr_expand_prologue.
33048 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
33050 2013-01-14 Richard Biener <rguenther@suse.de>
33052 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
33053 verify_location, collect_subblocks): New functions.
33054 (verify_gimple_in_cfg): Verify that locations only reference
33055 BLOCKs in the functions BLOCK tree.
33057 2013-01-14 Richard Biener <rguenther@suse.de>
33059 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
33061 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
33063 (insert_out_of_ssa_copy_on_edge): Likewise.
33064 (rewrite_close_phi_out_of_ssa): Likewise.
33065 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
33067 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
33068 propagated constants.
33069 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
33072 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
33074 * config/avr/avr-modes.def: Add GPL copyright notice.
33076 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
33078 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
33079 MEMMODEL_MASK to determine memory model.
33080 (atomic_store<mode>): Ditto from operands[2].
33081 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
33083 2013-01-13 Jakub Jelinek <jakub@redhat.com>
33086 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
33087 (fold_gimple_assign): Don't call unshare_expr here.
33088 (fold_ctor_reference): Call unshare_expr.
33090 2013-01-13 Terry Guo <terry.guo@arm.com>
33092 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
33093 * doc/fragments.texi: Document MULTILIB_REUSE.
33094 * gcc.c (multilib_reuse): New internal spec.
33095 (set_multilib_dir): Also search multilib from multilib_reuse.
33096 * genmultilib (tmpmultilib3): Refactor code.
33097 (tmpmultilib4): Ditto.
33098 (multilib_reuse): New multilib argument.
33100 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
33102 * Makefile.in: Update copyright.
33104 2013-01-12 Tom de Vries <tom@codesourcery.com>
33106 PR middle-end/55890
33107 * calls.c (expand_call): Check if arg_nr is valid.
33109 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
33111 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
33112 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
33113 documentation. Add missing '__' in front of
33114 __builtin_ia32_packssdw256.
33116 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33119 * config/s390/s390.c (s390_preferred_reload_class): Do not return
33120 NO_REGS for larl operands.
33121 (s390_reload_larl_operand): Use s390_load_address instead of
33124 2013-01-11 Richard Biener <rguenther@suse.de>
33126 * tree-cfg.c (verify_node_sharing_1): Split out from ...
33127 (verify_node_sharing): ... here.
33128 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
33130 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
33132 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
33133 Substitute TREECHECKING.
33134 * configure: Regenerate.
33135 * Makefile.in (TREECHECKING): New.
33137 2013-01-11 Richard Guenther <rguenther@suse.de>
33139 PR tree-optimization/44061
33140 * tree-vrp.c (extract_range_basic): Compute zero as
33141 value-range for __builtin_constant_p of function parameters.
33143 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
33145 Update copyright years.
33147 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
33149 PR rtl-optimization/55672
33150 * lra-eliminations.c (mark_not_eliminable): Permit addition with
33151 const to be eliminable.
33153 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
33155 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
33156 * configure: Regenerate.
33158 2013-01-10 Richard Biener <rguenther@suse.de>
33160 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
33162 2013-01-10 Richard Biener <rguenther@suse.de>
33165 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
33166 locations for virtual PHI arguments.
33167 (rewrite_update_phi_arguments): Likewise.
33169 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
33171 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
33174 2013-01-10 Jakub Jelinek <jakub@redhat.com>
33176 PR tree-optimization/55921
33177 * tree-complex.c (expand_complex_asm): New function.
33178 (expand_complex_operations_1): Call it for GIMPLE_ASM.
33180 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33183 * config/s390/s390.c (s390_symref_operand_p)
33184 (s390_loadrelative_operand_p): Merge the two functions.
33185 (s390_check_qrst_address, print_operand_address): Add parameters
33186 to s390_loadrelative_operand_p invokation.
33187 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
33188 (s390_reload_larl_operand, s390_secondary_reload): Use
33189 s390_loadrelative_operand_p instead of s390_symref_operand_p.
33190 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
33192 2013-01-09 Mike Stump <mikestump@comcast.net>
33194 * dse.c (record_store): Remove unnecessary assert.
33196 2013-01-09 Jan Hubicka <jh@suse.cz>
33198 PR tree-optimization/55569
33199 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
33200 * cfgloop.h (scale_loop_profile): Likewise.
33202 2013-01-09 Jan Hubicka <jh@suse.cz>
33205 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
33207 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
33209 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
33211 PR middle-end/55114
33212 * expr.h (maybe_emit_group_store): Declare.
33213 * expr.c (maybe_emit_group_store): New function.
33214 * builtins.c (expand_builtin_int_roundingfn): Call it.
33215 (expand_builtin_int_roundingfn_2): Likewise.
33217 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
33219 PR rtl-optimization/55829
33220 * lra-constraints.c (match_reload): Add code for absent output.
33221 (curr_insn_transform): Add code for reloads of matched inputs
33224 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
33226 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
33227 attribute of movddup insn to DF.
33228 (*vec_interleave_lowv2df): Ditto.
33229 (vec_dupv2df): Ditto.
33231 2013-01-09 Jan Hubicka <jh@suse.cz>
33233 PR tree-optimiation/55875
33234 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
33235 EVERY_ITERATION parameter.
33236 (number_of_iterations_exit): Check if exit is executed every iteration.
33237 (idx_infer_loop_bounds): Similarly here.
33238 (n_of_executions_at_most): Simplify
33239 to only test for cases where statement is dominated by the
33240 particular bound; handle correctly the "postdominance" test.
33241 (scev_probably_wraps_p): Use max loop iterations info
33242 as a global bound first.
33244 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
33245 Nick Clifton <nickc@redhat.com>
33247 * config/v850/v850.md (cbranchsf4): New pattern.
33248 (cstoresf4): New pattern.
33249 (cbranchdf4): New pattern.
33250 (cstoredf4): New pattern.
33251 (movsicc): Disallow floating point comparisons.
33252 (cmpsf_le_insn): Fix order of operators.
33253 (cmpsf_lt_insn): Likewise.
33254 (cmpsf_eq_insn): Likewise.
33255 (cmpdf_le_insn): Likewise.
33256 (cmpdf_lt_insn): Likewise.
33257 (cmpdf_eq_insn): Likewise.
33258 (cmpsf_ge_insn): Use LE comparison.
33259 (cmpdf_ge_insn): Likewise.
33260 (cmpsf_gt_insn): Use LT comparison.
33261 (cmpdf_gt_insn): Likewise.
33262 (cmpsf_ne_insn): Delete pattern.
33263 (cmpdf_ne_insn): Delete pattern.
33264 * config/v850/v850.c (v850_gen_float_compare): Use
33265 gen_cmpdf_eq_insn for NE comparison.
33266 (v850_float_z_comparison_operator)
33267 (v850_float_nz_comparison_operator): Move from here ...
33268 * config/v850/predicates.md: ... to here. Move GT and GE
33269 comparisons into v850_float_z_comparison_operator.
33270 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
33272 (v850_float_nz_comparison_operator): Likewise.
33274 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33276 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
33277 with calls to gen_insvsi/gen_insvdi.
33279 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
33281 * config/i386/i386.c (initial_ix86_tune_features): Set up
33282 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
33284 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
33285 Jakub Jelinek <jakub@redhat.com>
33287 PR tree-optimization/48189
33288 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
33289 If nitercst is 0, don't predict the exit edge.
33291 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33293 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
33294 in asm_fprintf with reg_names.
33295 (aarch64_print_operand_address): Likewise.
33296 (aarch64_return_addr): Likewise.
33297 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
33299 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33301 * config/pa/pa.h (VAL_U6_BITS_P): Define.
33302 (INT_U6_BITS): Likewise.
33303 * config/pa/predicates.md (uint6_operand): New predicate.
33304 (shift5_operand, shift6_operand): Likewise.
33305 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
33307 (lshrdi3): Use shift6_operand.
33308 (shrpsi4, shrpdi4): New insn patterns.
33309 (extzv): Delete expander.
33310 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
33311 predicates in unamed zero extract patterns. Tighten common constraint.
33312 (extv): Delete expander.
33313 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
33314 predicates in unamed sign extract patterns. Tighten common constraint.
33315 (insv): Delete expander.
33316 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
33317 predicates in unamed insert patterns. Tighten common constraint.
33318 Change uint32_operand predicate to uint6_operand predicate in unamed
33319 DImode pattern to insert constant values of type 1...1xxxx.
33321 2013-01-04 Jan Hubicka <jh@suse.cz>
33323 PR tree-optimization/55823
33324 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
33327 2013-01-08 Jakub Jelinek <jakub@redhat.com>
33328 Uros Bizjak <ubizjak@gmail.com>
33330 PR rtl-optimization/55845
33331 * df-problems.c (can_move_insns_across): Stop scanning at
33332 volatile_insn_p source instruction or give up if
33333 across_from .. across_to range contains any volatile_insn_p
33336 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
33338 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
33339 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
33341 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
33342 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
33344 2013-01-08 Jakub Jelinek <jakub@redhat.com>
33347 * asan.c (asan_clear_shadow): New function.
33348 (asan_emit_stack_protection): Use it.
33350 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
33352 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
33353 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
33354 with tab instead of space.
33356 2013-01-08 Nick Clifton <nickc@redhat.com>
33358 * config/rl78/rl78.c (rl78_expand_prologue): Always select
33359 register bank 0 at the start of an interrupt handler.
33360 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
33363 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
33365 * config/aarch64/aarch64-simd.md
33366 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
33367 (aarch64_simd_bsl): Likewise.
33368 (aarch64_vcond_internal<mode>): Likewise.
33369 (vcond<mode><mode>): Likewise.
33370 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
33371 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
33373 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
33375 * config/aarch64/aarch64-builtins.c
33376 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
33378 2013-01-08 Martin Jambor <mjambor@suse.cz>
33381 * tree-sra.c (analyze_access_subtree): Return true also after
33382 potentially creating a debug-only replacement.
33384 2013-01-08 Jakub Jelinek <jakub@redhat.com>
33386 PR middle-end/55890
33387 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
33389 PR tree-optimization/54120
33390 * tree-vrp.c (range_fits_type_p): Don't allow
33391 src_precision < precision from signed vr to unsigned_p
33392 if vr->min or vr->max is negative.
33393 (simplify_float_conversion_using_ranges): Test can_float_p
33394 against CODE_FOR_nothing.
33396 2013-01-08 Jakub Jelinek <jakub@redhat.com>
33397 Richard Biener <rguenther@suse.de>
33399 PR middle-end/55851
33400 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
33401 types instead of just INTEGER_TYPE types.
33403 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
33405 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
33408 2013-01-07 Steve Ellcey <sellcey@mips.com>
33411 * config/mips/mips.opt: Change mad to mmad to match documentation.
33413 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
33416 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
33417 .progmemx.data now.
33419 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
33422 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
33423 (avr_addrspace_t): Add .section_name field.
33424 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
33426 (avr_addrspace): Same. Initialize .section_name. Remove last
33427 NULL entry. Put __memx into .progmemx.data.
33428 (progmem_section_prefix): Remove.
33429 (avr_asm_init_sections): No need to initialize progmem_section.
33430 (avr_asm_named_section): Use avr_addrspace[].section_name to get
33431 section name prefix.
33432 (avr_asm_select_section): Ditto. And use get_unnamed_section to
33433 retrieve the progmem section.
33434 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
33435 boundary to run over avr_addrspace[].
33436 (avr_register_target_pragmas): Ditto.
33438 2013-01-06 Jakub Jelinek <jakub@redhat.com>
33440 * varasm.c (output_constant_def_contents): For asan_protect_global
33441 protected strings, adjust DECL_ALIGN if needed, before testing for
33443 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
33444 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
33446 (output_object_block): For asan protected decls, emit asan padding
33447 after their contents.
33448 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
33449 (asan_finish_file): Test it here instead.
33451 2013-01-07 Nick Clifton <nickc@redhat.com>
33452 Matthias Klose <doko@debian.org>
33453 Doug Kwan <dougkwan@google.com>
33454 H.J. Lu <hongjiu.lu@intel.com>
33457 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
33459 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
33461 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
33463 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
33465 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
33467 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
33470 * doc/install.texi (Cross-Compiler-Specific Options): Document
33473 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
33475 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
33476 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
33477 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
33478 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
33479 vqmovun_high_s64): Fix source operand number and update copyright.
33481 2013-01-07 Richard Biener <rguenther@suse.de>
33483 PR middle-end/55890
33484 * gimple.h (gimple_call_builtin_p): New overload.
33485 * gimple.c (validate_call): New function.
33486 (gimple_call_builtin_p): Likewise.
33487 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
33488 Use gimple_call_builtin_p.
33489 (find_func_clobbers): Likewise.
33490 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
33491 (strlen_optimize_stmt): Likewise.
33493 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
33495 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
33496 (vld1q_dup_*): Likewise.
33497 (vld1_*): Likewise.
33498 (vld1q_*): Likewise.
33499 (vld1_lane_*): Likewise.
33500 (vld1q_lane_*): Likewise.
33502 2013-01-07 Richard Biener <rguenther@suse.de>
33504 * lto-streamer.h (LTO_minor_version): Bump to 2.
33506 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
33508 * config/aarch64/aarch64-protos.h
33509 (aarch64_const_double_zero_rtx_p): Rename to...
33510 (aarch64_float_const_zero_rtx_p): ...this.
33511 (aarch64_float_const_representable_p): New.
33512 (aarch64_output_simd_mov_immediate): Likewise.
33513 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
33514 move immediate case.
33515 * config/aarch64/aarch64.c
33516 (aarch64_const_double_zero_rtx_p): Rename to...
33517 (aarch64_float_const_zero_rtx_p): ...this.
33518 (aarch64_print_operand): Allow printing of new constants.
33519 (aarch64_valid_floating_const): New.
33520 (aarch64_legitimate_constant_p): Check for valid floating-point
33522 (aarch64_simd_valid_immediate): Likewise.
33523 (aarch64_vect_float_const_representable_p): New.
33524 (aarch64_float_const_representable_p): Likewise.
33525 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
33526 (aarch64_output_simd_mov_immediate): New.
33527 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
33528 (*movdf_aarch64): Likewise.
33529 * config/aarch64/constraints.md (Ufc): New.
33530 (Y): call aarch64_float_const_zero_rtx.
33531 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
33533 2013-01-07 Richard Biener <rguenther@suse.de>
33535 PR tree-optimization/55888
33536 PR tree-optimization/55862
33537 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
33538 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
33539 not if it is contained therein.
33541 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
33543 * config/avr/t-avr: Typo.
33545 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
33548 * config/avr/t-avr: Don't automatically rebuild
33549 $(srcdir)/config/avr/t-multilib
33550 $(srcdir)/config/avr/avr-tables.opt
33551 $(srcdir)/doc/avr-mmcu.texi
33552 (avr-mcus): New phony target to build them on request.
33553 (s-avr-mlib, s-avr-mmcu-texi): Remove.
33554 * avr/avr-mcus.def: Adjust comments.
33556 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
33558 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
33560 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
33562 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
33564 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
33566 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
33568 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
33570 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
33571 to generate profiling.
33572 * config/rs6000/aix64.h (LIB_SPEC): Same.
33574 2013-01-04 Andrew Pinski <apinski@cavium.com>
33576 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
33578 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
33580 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
33582 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
33584 (ix86_expand_move): Ditto.
33585 (ix86_zero_extend_to_Pmode): Ditto.
33586 (ix86_expand_call): Ditto.
33587 (ix86_expand_special_args_builtin): Ditto.
33588 (ix86_expand_builtin): Ditto.
33590 2013-01-04 Richard Biener <rguenther@suse.de>
33592 PR tree-optimization/55862
33593 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
33594 translating them through PHI nodes.
33596 2013-01-04 Martin Jambor <mjambor@suse.cz>
33598 PR tree-optimization/55755
33599 * tree-sra.c (sra_modify_assign): Do not check that an access has no
33600 children when trying to avoid producing a VIEW_CONVERT_EXPR.
33602 2013-01-04 Marek Polacek <polacek@redhat.com>
33604 PR middle-end/55859
33605 * opts.c (default_options_optimization): Clarify error message.
33607 2013-01-04 Richard Biener <rguenther@suse.de>
33609 PR middle-end/55863
33610 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
33613 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33616 * config/pa/pa.md (movsi): Revert previous change.
33617 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
33620 2013-01-03 Richard Henderson <rth@redhat.com>
33622 * config/i386/i386.c (ix86_expand_move): Always assign to op1
33623 after eliminating TLS symbols.
33625 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
33628 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
33629 * graphite-poly.c (debug_gmp_value): Likewise.
33631 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
33634 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
33635 selected code model, define __code_mode_small__, __code_model_medium__,
33636 __code_model_large__, __code_model_32__ or __code_model_kernel__.
33637 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
33638 xchg temporary register with %k. Declare temporary register as
33640 [__x86_64__]: For medium and large code models, preserve %rbx register.
33642 2013-01-03 Richard Biener <rguenther@suse.de>
33644 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
33645 (dump_subscript): Adjust.
33646 (finalize_ddr_dependent): Do not dump redundant info.
33647 (analyze_siv_subscript): Adjust.
33648 (subscript_dependence_tester): Likewise.
33649 (compute_affine_dependence): Likewise.
33651 2013-01-03 Richard Biener <rguenther@suse.de>
33654 2013-01-03 Richard Biener <rguenther@suse.de>
33656 PR tree-optimization/55857
33657 * tree-vect-stmts.c (vectorizable_load): Do not setup
33658 re-alignment for invariant loads.
33660 2013-01-02 Richard Biener <rguenther@suse.de>
33662 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
33663 invariant load do not generate a vector load from the scalar location.
33665 2013-01-03 Richard Biener <rguenther@suse.de>
33667 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
33668 for not vectorizing.
33669 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
33670 not build INDIRECT_REFs, call get_name once only.
33671 (vect_create_data_ref_ptr): Likewise. Dump base object kind
33672 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
33674 2013-01-03 Richard Biener <rguenther@suse.de>
33676 PR tree-optimization/55857
33677 * tree-vect-stmts.c (vectorizable_load): Do not setup
33678 re-alignment for invariant loads.
33680 2013-01-03 Richard Biener <rguenther@suse.de>
33683 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
33684 prefer a built-in decl.
33686 2013-01-03 Jakub Jelinek <jakub@redhat.com>
33688 * gcc.c (process_command): Update copyright notice dates.
33689 * gcov.c (print_version): Likewise.
33690 * gcov-dump.c (print_version): Likewise.
33692 PR rtl-optimization/55838
33693 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
33694 iv0.step, iv1.step and step.
33696 2013-01-03 Jakub Jelinek <jakub@redhat.com>
33697 Marc Glisse <marc.glisse@inria.fr>
33699 PR tree-optimization/55832
33700 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
33701 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
33702 integer_{one,zero}_node.
33704 2013-01-03 Jakub Jelinek <jakub@redhat.com>
33707 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
33708 * var-tracking.c (reverse_op): Don't add reverse ops to
33709 VALUEs that have already
33710 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
33712 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
33714 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
33716 2013-01-02 Teresa Johnson <tejohnson@google.com>
33718 * dumpfile.c (dump_loc): Print filename with location.
33719 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
33720 new location_t parameter to emit complete unroll message with
33721 new dump framework.
33722 (canonicalize_loop_induction_variables): Compute loops location
33723 and pass to try_unroll_loop_completely.
33724 * loop-unroll.c (report_unroll_peel): New function.
33725 (peel_loops_completely): Use new dump format with location
33726 for main dumpfile message, and invoke report_unroll_peel on success.
33727 (decide_unrolling_and_peeling): Ditto.
33728 (decide_peel_once_rolling): Remove old dumpfile message subsumed
33729 by report_unroll_peel.
33730 (decide_peel_completely): Ditto.
33731 (decide_unroll_constant_iterations): Ditto.
33732 (decide_unroll_runtime_iterations): Ditto.
33733 (decide_peel_simple): Ditto.
33734 (decide_unroll_stupid): Ditto.
33735 * cfgloop.c (get_loop_location): New function.
33736 * cfgloop.h (get_loop_location): Declare.
33738 2013-01-02 Sriraman Tallam <tmsriram@google.com>
33740 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
33743 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33745 PR middle-end/55198
33746 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
33747 BLKmode objects when EXPAND_MEMORY is specified.
33749 2013-01-02 Sriraman Tallam <tmsriram@google.com>
33751 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
33753 (fold_builtin_cpu): Do not share cpu model decls across statements.
33755 2013-01-02 Jason Merrill <jason@redhat.com>
33758 * tree.c (build_array_type_1): Revert earlier change.
33760 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
33762 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
33764 * config/aarch64/aarch64-tune.md: Re-generate.
33766 2013-01-02 Richard Biener <rguenther@suse.de>
33768 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
33769 invariant load do not generate a vector load from the scalar location.
33771 2013-01-02 Richard Biener <rguenther@suse.de>
33774 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
33775 * configure: Regenerate.
33777 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
33779 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
33780 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
33781 (expand_builtin_int_roundingfn_2): Keep the original target around
33782 for the fallback case.
33784 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
33786 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
33787 to be clear for sign changes.
33789 2013-01-01 Jan Hubicka <jh@suse.cz>
33791 * ipa-inline-analysis.c: Fix formatting.
33793 2013-01-01 Jakub Jelinek <jakub@redhat.com>
33795 PR tree-optimization/55831
33796 * tree-vect-loop.c (get_initial_def_for_induction): Use
33797 gsi_after_labels instead of gsi_start_bb.
33799 Copyright (C) 2013 Free Software Foundation, Inc.
33801 Copying and distribution of this file, with or without modification,
33802 are permitted in any medium without royalty provided the copyright
33803 notice and this notice are preserved.